<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/get-insights-of-instacart-market-basket/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://nycdatascience.com/blog/student-works/get-insights-of-instacart-market-basket/"> R – NYC Data Science Academy Blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><img sizes="(max-width: 640px) 100vw, 640px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/insta.jpg?w=450&ssl=1" alt="" class="wp-post-image" data-recalc-dims="1"></p>
<p><span><strong>Introduction</strong></span></p>
<p>Services that deliver the ingredients and recipes you need to make fresh, home-cooked meals, like Instacart have grown in popularity as people are turning away from low-cost, fast food in favor of healthier alternatives. However, those subscription services are still luxury for many so I decided to create a interactive dashboard to help the Instacart have some promotions with the consumers.</p>
<p> </p>
<p><span><strong>Research Question</strong></span></p>
<p>What consumer behaviors can we find based on previous purchasing data?</p>
<p>What’s the best time to deliver effective promotions to targeted consumers?</p>
<p> </p>
<p><span><strong>Data</strong></span></p>
<p>The data set is on <a rel="nofollow" href="https://www.kaggle.com/c/instacart-market-basket-analysis/data" target="_blank">kaggle’s</a> competition and I used orders, order products, products to do the analysis.</p>
<p> </p>
<p><span><strong>Order Time</strong></span></p>
<p> </p>
<p><a rel="nofollow" href="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-01-22-%E4%B8%8B%E5%8D%885.02.26.png" target="_blank"><img sizes="(max-width: 1786px) 100vw, 1786px" src="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-01-22-%E4%B8%8B%E5%8D%885.02.26.png?w=450" alt="" class="wp-image-27503" data-recalc-dims="1"></a></p>
<p>The first plot shows that there is a clear effect of day of the week. Most orders are on days 0 and 1. Unfortunately there is no info regarding which values represent which day, but one would assume that this is the weekend.The second plot shows most orders are between 8.00-18.00. The third plot shows that people seem to order more often after exactly 1 week.</p>
<p>We can prove previous plots by the heat map in bottom</p>
<p><a rel="nofollow" href="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-01-22-%E4%B8%8B%E5%8D%885.09.01.png" target="_blank"><img sizes="(max-width: 2548px) 100vw, 2548px" src="https://i0.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-01-22-%E4%B8%8B%E5%8D%885.09.01.png?w=450" alt="" class="wp-image-27505" data-recalc-dims="1"></a></p>
<p>In the heat map we can find that density over weekend is relatively high, from the previous graphs, we can come out with a promotion idea to increase customers loyalty. For example, we can send out coupons before weekend comes and to see if consumers to use coupon or not. If consumers use coupons, we can calculate the percentage of consumers who actually use coupon. This can tell us our promotion is effective or not.</p>
<p> </p>
<p><span><strong>Top Categories &amp; Average Number of Items do People Buy</strong></span></p>
<p><a rel="nofollow" href="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-01-22-%E4%B8%8B%E5%8D%885.20.09.png" target="_blank"><img sizes="(max-width: 2544px) 100vw, 2544px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-01-22-%E4%B8%8B%E5%8D%885.20.09.png?w=450" alt="" class="wp-image-27509" data-recalc-dims="1"></a></p>
<p>In this plot we can find that which products are sold most often (top10). It’s obviously that the winner is <strong>Bananas. </strong>I also find that more and more people prefer to buy organic food now.</p>
<p><a rel="nofollow" href="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-01-22-%E4%B8%8B%E5%8D%885.28.13.png" target="_blank"><img sizes="(max-width: 2226px) 100vw, 2226px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-01-22-%E4%B8%8B%E5%8D%885.28.13.png?w=450" alt="" class="wp-image-27512" data-recalc-dims="1"></a></p>
<p>Let’s have a look how many items are in the orders. We can see that people most often order 5 items online.</p>
<p>Right now, we can also make a promotion based on these insights. For example, if consumers buy five products at a time, we can add one free organic food or bananas to their order. By doing so, we can encourage consumers buying less than 5 items to add more items to their cart to get one free organic food. we can combine data analysis of consumer data with marketing to better deliver promotion to our target consumers.</p>
<p> </p>
<p><span><strong>Summary</strong></span></p>
<p><a rel="nofollow" href="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-01-22-%E4%B8%8B%E5%8D%887.17.27.png" target="_blank"><img sizes="(max-width: 438px) 100vw, 438px" src="https://i1.wp.com/nycdatascience.com/blog/wp-content/uploads/2018/01/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-01-22-%E4%B8%8B%E5%8D%887.17.27.png?resize=438%2C377" alt="" width="438" class="wp-image-27515" data-recalc-dims="1" height="377"></a></p>
<p>Based on the word cloud we can find that popular products are organic products. People care about their health and it totally worth it with the higher price buying organic food. Instacart can put more efforts on organic products/food promotions to better meet consumers need.</p>
<p>If you have any question, please feel free to check my <a rel="nofollow" href="https://github.com/joshualee791204/Shiny_FreshFood" target="_blank">GitHub</a>!</p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://nycdatascience.com/blog/student-works/get-insights-of-instacart-market-basket/"> R – NYC Data Science Academy Blog</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/k83Ll_UGa1E" height="1"></a></div>