Using Data to Create a Guide for Your Grocery Shoping

Posted on May 17, 2016
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Introduction

This shiny data app can be found here: http://shiny.markko.net/food_nutrition/

Have you ever tried to watch your diet? Do you actively look through all the nutrition factors on the back of the package?  Are you one of those people that carefully calculate your calories everyday? Hopefully my App can give you an overview by the type of nutrition you are looking for.

The data is from Open Food Facts, which is an open database that contains nutrition information of 81K products across 139 countries.  There are three questions that I hope the App can address for the users.  First is to give the users the ability to check the nutrition factors across countries and product categories.  Second is to see whether there are some relationships between different nutritions.  Thirdly, the app will give the users the top 15 brands of a specific food category.

Shiny App Data

Diet By Countries

First, the app provides an overview of the diet by countries.   For example, the graph shows the rank of countries by the overall carbohydrates consumption.  The graph below  shows that Italy has the most heavy carb diet among all the target countries.  Austria and Germany have lowest carb diets.   The nutrition drop-down selection include various nutrition factors, including fat, sodium, fiber, sugar and overall energy.

Using Data to Create a Guide for Your Grocery Shoping

Nutrition Factor

The second graph, which will change as you select the nutrition factor on top of the tab, shows the ranking of product categories by specific nutrition factor. The graph below shows the ranking by average carbohydrates intake again.  All the sugary and salty snacks contain more carb than all other types.

Using Data to Create a Guide for Your Grocery Shoping

Relationships

The second question to address is whether there is a relationship between the two different nutrition groups.  For an example, the scatter plot below shows that the carb consumption has a positive relationship with the energy consumption.  The more carb we consume, the higher calories overall.  Other than protein, carbohydrates and fat, energy doesn't have an obvious relationship with any other nutrition factors.

Using Data to Create a Guide for Your Grocery Shoping

 

The last question to address by the App is to provide consumers a brand list by product type you are looking for.  Users can pull out the list of top 15 brands by the highest nutrition score that was ranked by British Food Foundation.

Screen Shot 2016-05-16 at 9.26.43 PM

Conclusion

While working on the App, I validated some of the conventional diet assumption.  For instance, sugary snack and beverage have the lowest nutrition scores.  Note that the data id based on the voluntarily input by consumers.  It is mostly conducted in the French market.  Therefore, it may lack some credibility in the lower represented countries.

About Author

Ruonan Ding

Ruonan Ding has more than five years of experience in the actuarial science and financial field across asset management and insurance sectors. She was a pricing actuary for a property and casualty company, a lead analyst in capital...
View all posts by Ruonan Ding >

Related Articles

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI