Hey, this we have focused on the equations which we are going to use them to calculate effects of all the ingreidents on recipes. First, we worked on IDF and TF data of ingredients. Thus, we came with the below formula to estimate them.
The notation R depicts all recipes which user has rated. K holds the all ingredients for…