Code Monkey home page Code Monkey logo

recipe_hypothesis_test's Introduction

Recipe Analysis

Eric Wang

Background and the Data

Cooking can be fun but challenging. Finding the right recipe is not always easy.
Epicurious.com is a popular website for all types of recipes. I want to see if the tags are reliable and if I can find any indicators by looking at their recipes.

One of the features is the tag function. By tagging recipes, recipe publishers can give a bit more insight into the culture or background of the recipe. I will be analyzing their usage and accuracy.

png

Work Flow

Recipe data is collected by using BeautifulSoup and MongoDB. It is then converted to Pandas Dataframe for EDA. Simple iteration functions were built for this. I then looked through the columns and extracted what I needed. Cleaned nan data where necessary.

Plotting and Analysis

For each hypothesis, I would switch between filtering the recipe tags or ingredients. This involved simple pandas commands. To find my distributions, I would plot the density functions of the parameters I was checking. I noticed there were many outliers in the data so I had to clean the data.

png

Hypothesis Test

After plotting the distribution we can see that it is not a normal distribution. Thus I used the U-test for my hypothesis tests.

Hypothesis Test 1: Trying to lose weight is common in the summer. I chose to look at data with summer and winter tags and compare the fat content. I performed a U-test on my hypothesis

H0: summer fat content is higher than winter. H1: winter fat is higher.

P<.02, Reject the null hypothesis (0.000398)

png

Conclusion

Although some of the data needed to be wrangled, I believe my hypothesis tests shows that the tags can be a reliable source when determining what kind of meals you want to cook. Whether it is a fatty winter dessert or a healthy summer/vegetarian dish, Epicurious is a great resource for delicious meals.

recipe_hypothesis_test's People

Contributors

esotewic avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.