starbucks sales dataset

One was because I believed BOGO and discount offers had a different business logic from the informational offer/advertisement. One caveat, given by Udacity drawn my attention. (World Atlas)3.The USA ranks 11th among the countries with the highest caffeine consumption, with a rate of 200 mg per person per day. The company's loyalty program reported 24.8 million . Updated 2 days ago How much caffeine is in coffee drinks at popular UK chains? Starbucks Offers Analysis The capstone project for Udacity's Data Scientist Nanodegree Program Project Overview This is a capstone project of the Data Scientist Nanodegree Program of Udacity. This cookie is set by GDPR Cookie Consent plugin. transcript.json Overview and forecasts on trending topics, Industry and market insights and forecasts, Key figures and rankings about companies and products, Consumer and brand insights and preferences in various industries, Detailed information about political and social topics, All key figures about countries and regions, Market forecast and expert KPIs for 600+ segments in 150+ countries, Insights on consumer attitudes and behavior worldwide, Business information on 60m+ public and private companies, Detailed information for 35,000+ online stores and marketplaces. Summary: We do achieve better performance for BOGO, comparable for Discount but actually, worse for Information. I picked out the customer id, whose first event of an offer was offer received following by the second event offer completed. How to Ace Data Science Interview by Working on Portfolio Projects. We aim to publish unbiased AI and technology-related articles and be an impartial source of information. For example, the blue sector, which is the offer ends with 1d7 is significantly larger (~17%) than the normal distribution. the original README: This dataset release re-geocodes all of the addresses, for the us_starbucks This dataset was inspired by the book Machine Learning with R by Brett Lantz. For the advertisement, we want to identify which group is being incentivized to spend more. After submitting your information, you will receive an email. DATABASE PROJECT Growth was strong across all channels, particularly in e-commerce and pet specialty stores. The SlideShare family just got bigger. ), profile.json demographic data for each customer, transcript.json records for transactions, offers received, offers viewed, and offers completed. age for instance, has a very high score too. 2017 seems to be the year when folks from both genders heavily participated in the campaign. item Food item. In the data preparation stage, I did 2 main things. The data begins at time t=0, value (dict of strings) either an offer id or transaction amount depending on the record. The Reward Program is available on mobile devices as the Starbucks app, and has seen impressive membership and growth since 2008, with multiple iterations on its original form. These cookies track visitors across websites and collect information to provide customized ads. Lets first take a look at the data. Dollars per pound. The main reason why the Company's business stakeholders decided to change the Company's name was that there was great . I finally picked logistic regression because it is more robust. Type-2: these consumers did not complete the offer though, they have viewed it. Q5: Which type of offer is more likely to be used WITHOUT being viewed, if there is one? The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". In addition, that column was a dictionary object. A sneakof the final data after being cleaned and analyzed: the data contains information about 8 offerssent to 14,825 customerswho made 26,226 transactionswhilecompleting at least one offer. 1.In 2019, 64% of Americans aged 18 and over drank coffee every day. Share what I learned, and learn from what I shared. How offers are utilized among different genders? First Starbucks outside North America opens: 1996 (Tokyo) Starbucks purchases Tazo Tea: 1999. Thus, it is open-ended. If you are an admin, please authenticate by logging in again. Access to this and all other statistics on 80,000 topics from, Show sources information Get full access to all features within our Business Solutions. profile.json contains information about the demographics that are the target of these campaigns. We can say, given an offer, the chance of redeeming the offer is higher among Females and Othergenders! 4. Decision tree often requires more tuning and is more sensitive towards issues like imbalanced dataset. Howard Schultz purchases Starbucks: 1987. Updated 3 years ago We analyze problems on Azerbaijan online marketplace. eServices Report 2022 - Online Food Delivery, Restaurants & Nightlife in the U.S. 2022 - Industry Insights & Data Analysis, Facebook: quarterly number of MAU (monthly active users) worldwide 2008-2022, Quarterly smartphone market share worldwide by vendor 2009-2022, Number of apps available in leading app stores Q3 2022. Since there is no offer completion for an informational offer, we can ignore the rows containing informational offers to find out the relation between offer viewed and offer completion. (2.Americans rank 25th for coffee consumption per capita, with an average consumption of 4.2 kg per person per year. Dataset with 108 projects 1 file 1 table. This shows that Starbucks is able to make $18.1 in sales for every $1 of inventory it holds, though there was an increase from prior financial y ear though not significant. Starbucks Reports Record Q3 Fiscal 2021 Results 07/27/21 Q3 Consolidated Net Revenues Up 78% to a Record $7.5 Billion Q3 Comparable Store Sales Up 73% Globally; U.S. Up 83% with 10% Two-Year Growth Q3 GAAP EPS $0.97; Record Non-GAAP EPS of $1.01 Driven by Strong U.S. Duplicates: There were no duplicate columns. Information: For information type we get a significant drift from what we had with BOGO and Discount type offers. There were 2 trickier columns, one was the year column and the other one was the channel column. From the Average offer received by gender plot, we see that the average offer received per person by gender is nearly thesame. There are only 4 demographic attributes that we can work with: age, income, gender and membership start date. Chart. The action you just performed triggered the security solution. (November 18, 2022). Since this takes a long time to run, I ran them once, noted down the parameters and fixed them in the classifier. transcript.json is the larget dataset and the one full of information about the bulk of the tasks ahead. Take everything with a grain of salt. Profit from the additional features of your individual account. Once every few days, Starbucks sends out an offer to users of the mobile app. I wanted to see the influence of these offers on purchases. Download Historical Data. Internally, they provide a full picture of their data that is available to all levels of retail leadership and partners to give them a greater sense of the business and encourage accountability for P&L of that store. It will be very helpful to increase my model accuracy to be above 85%. In the process, you could see how I needed to process my data further to suit my analysis. Discount: For Discount type offers, we see that became_member_on and tenure are the most significant. Get an idea of the demographics, income etc. Since 1971, Starbucks Coffee Company has been committed to ethically sourcing and roasting high-qualityarabicacoffee. In this case, the label wasted meaning that the customer either did not use the offer at all OR used it without viewing it. Discount: In this offer, a user needs to spend a certain amount to get a discount. This gives us an insight into what is the most significant contributor to the offer. This website is using a security service to protect itself from online attacks. Starbucks Sales Analysis Part 1 was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story. ), time (int) time in hours since start of test. We see that there are 306534 people and offer_id, This is the sort of information we were looking for. To redeem the offers one has to spend 0, 5, 7, 10, or 20dollars. Nestl Professional . In our Data Analysis, we answered the three questions that we set out to explore with the Starbucks Transactions dataset. Therefore, I want to treat the list of items as 1 thing. How transaction varies with gender, age, andincome? Information related to Starbucks: It is an American coffee company and was started Seattle, Washington in 1971. So they should be comparable. Submission for the Udacity Capstone challenge. To use individual functions (e.g., mark statistics as favourites, set Answer: The peak of offer completed was slightly before the offer viewed in the first 5 days of experiment time. We will get rid of this because the population of 118 year-olds is not insignificant in our dataset. fat a numeric vector carb a numeric vector fiber a numeric vector protein An in-depth look at Starbucks salesdata! So classification accuracy should improve with more data available. So it will be good to know what type of error the model is more prone to. Looks like youve clipped this slide to already. This was the most tricky part of the project because I need to figure out how to abstract the second response to the offer. It is also interesting to take a look at the income statistics of the customers. Meanwhile, those people who achieved it are likely to achieve that amount of spending regardless of the offer. Snapshot of original profile dataset. The cookie is used to store the user consent for the cookies in the category "Performance". If you are making an investment decision regarding Starbucks, we suggest that you view our current Annual Report and check Starbucks filings with the Securities and Exchange Commission. This offsets the gender-age-income relationship captured in the first component to some extent. HAILING LI Using Polynomial Features: To see if the model improves, I implemented a polynomial features pipeline with StandardScalar(). This is knowledgeable Starbucks is the third largest fast food restaurant chain. This dataset is composed of a survey questions of over 100 respondents for their buying behavior at Starbucks. You also have the option to opt-out of these cookies. Activate your 30 day free trialto unlock unlimited reading. or they use the offer without notice it? You must click the link in the email to activate your subscription. You can read the details below. Here's What Investors Should Know. As you can see, the design of the offer did make a difference. (Caffeine Informer) A link to part 2 of this blog can be foundhere. Given an offer, the chance of redeeming the offer is higher among. Performed an exploratory data analysis on the datasets. Sales insights: Walmart dataset is the real-world data and from this one can learn about sales forecasting and analysis. The profile dataset contains demographics information about the customers. Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors. By whitelisting SlideShare on your ad-blocker, you are supporting our community of content creators. However, for information-type offers, we need to take into account the offer validity. 4.0. This cookie is set by GDPR Cookie Consent plugin. Its free, we dont spam, and we never share your email address. Plotting bar graphs for two clusters, we see that Male and Female genders are the major points of distinction. Another reason is linked to the first reason, it is about the scope. What are the main drivers of an effective offer? There are three types of offers: BOGO ( buy one get one ), discount, and informational. So, in this blog, I will try to explain what Idid. Therefore, the higher accuracy, the better. Customers spent 3% more on transactions on average. But opting out of some of these cookies may affect your browsing experience. Actively . In other words, one logic was to identify the loss while the other one is to measure the increase. The data file contains 3 different JSON files. time(numeric): 0 is the start of the experiment. For future studies, there is still a lot that can be done. From the portfolio.json file, I found out that there are 10 offers of 3 different types: BOGO, Discount, Informational. If youre not familiar with the concept. This dataset is a simplified version of the real Starbucks app because the underlying simulator only has one product whereas Starbucks sells dozens of products. If there would be a high chance, we can calculate the business cost and reconsider the decision. The goal of this project is to combine transaction, demographic, and offer data to determine which demographic groups respond best to which offer type. Get in touch with us. The goal of this project was not defined by Udacity. Preprocessed the data to ensure it was appropriate for the predictive algorithms. In this case, using SMOTE or upsampling can cause the problem of overfitting our dataset. We receive millions of visits per year, have several thousands of followers across social media, and thousands of subscribers. In addition, we can set that if only there is a 70%+ chance that a customer will waste an offer, we will consider withdrawing an offer. Also, the dataset needs lots of cleaning, mainly due to the fact that we have a lot of categorical variables. Find jobs. We merge transcript and profile data over offer_id column so we get individuals (anonymized) in our transcript dataframe. Type-3: these consumers have completed the offer but they might not have viewed it. The whole analysis is provided in the notebook. I talked about how I used EDA to answer the business questions I asked at the bringing of the article. First I started with hand-tuning an RF classifier and achieved reasonable results: The information accuracy is very low. Today, with stores around the globe, the Company is the premier roaster and retailer of specialty coffee in the world. Prime cost (cost of goods sold + labor cost) is generally the most reliable data that's initially tied to restaurant profitability as it can represent more than 60% of every sale in expenses. liability for the information given being complete or correct. In summary, I have walked you through how I processed the data to merge the 3 datasets so that I could do data analysis. Once every few days, Starbucks sends out an offer to users of the mobile app. active (3268) statistic (3122) atmosphere (2381) health (2524) statbank (3110) cso (3142) united states (895) geospatial (1110) society (1464) transportation (3829) animal husbandry (1055) Show Recessions Log Scale. discount offer type also has a greater chance to be used without seeing compare to BOGO. DATA SOURCES 1. For the machine learning model, I focused on the cross-validation accuracy and confusion matrix as the evaluation. And by looking at the data we can say that some people did not disclose their gender, age, or income. Answer: As you can see, there were no significant differences, which was disappointing. http://s3.amazonaws.com/radius.civicknowledge.com/chrismeller.github.com-starbucks-2.1.1.csv, https://github.com/metatab-packages/chrismeller.github.com-starbucks.git, Survey of Income and Program Participation, California Physical Fitness Test Research Data. Database Management Systems Project Report, Data and database administration(database). The RSI is presented at both current prices and constant prices. Female participation dropped in 2018 more sharply than mens. You need at least a Starter Account to use this feature. Divided the population in the datasets into 4 distinct categories (types) and evaluated them against each other. For example, if I used: 02017, 12018, 22015, 32016, 42013. As we can see the age data is nearly a Gaussian distribution(slightly right-skewed) with 118 as outlier whereas the income data is right-skewed. Income is show in Malaysian Ringgit (RM) Context Predict behavior to retain customers. Firstly, I merged the portfolio.json, profile.json, and transcript.json files to add the demographic information and offer information for better visualization. Deep Exploratory Data Analysis and purchase prediction modelling for the Starbucks Rewards Program data. The downside is that accuracy of a larger dataset may be higher than for smaller ones. "Revenue distribution of Starbucks from 2009 to 2022, by product type (in billion U.S. Click here to review the details. U.S. same-store sales increased by 22% in the quarter, and rose 11% on a two-year basis. We see that not many older people are responsive in this campaign. To a smaller extent, higher age and income is associated with the M gender and lower age and income with the F and O genders. There are three main questions I attempted toanswer. Towards AI is the world's leading artificial intelligence (AI) and technology publication. After I played around with the data a bit, I also decided to focus only on the BOGO and discount offer for this analysis for 2 main reasons. However, it is worth noticing that BOGO offer has a much greater chance to be viewed or seen by customers. I want to end this article with some suggestions for the business and potential future studies. Here's my thought process when cleaning the data set:1. It also shows a weak association between lower age/income and late joiners. I will follow the CRISP-DM process. It generates the majority of its revenues from the sale of beverages, which mostly consist of coffee beverages. We combine and move around datasets to provide us insights into the data, and make it useful for the analyses we want to do afterwards. The assumption being that this may slightly improve the models. PC0: The largest bars are for the M and F genders. Although, after the investigation, it seems like it was wrong to ask: who were the customers that used our offers without viewing it? Most of the offers as we see, were delivered via email and the mobile app. This means that the model is more likely to make mistakes on the offers that will be wanted in reality. Here are the things we can conclude from this analysis. This means that the company Stock Market Predictions using Deep Learning, Data Analysis Project with PandasStep-by-Step Guide (Ted Talks Data), Bringing Your Story to Life: Creating Customized Animated Videos using Generative AI, Top 5 Data Science Projects From Beginners to Pros in Python, Best Workstations for Deep Learning, Data Science, and Machine Learning (ML) for2022, Descriptive Statistics for Data-driven Decision Making withPython, Best Machine Learning (ML) Books-Free and Paid-Editorial Recommendations for2022, Best Laptops for Deep Learning, Machine Learning (ML), and Data Science for2022, Best Data Science Books-Free and Paid-Editorial Recommendations for2022, Mastering Derivatives for Machine Learning, We employed ChatGPT as an ML Engineer. View daily, weekly or monthly format back to when Starbucks Corporation stock was issued. Here are the five business questions I would like to address by the end of the analysis. So, we have failed to significantly improve the information model. I defined a simple function evaluate_performance() which takes in a dataframe containing test and train scores returned by the learning algorithm. Let us look at the provided data. However, age got a higher rank than I had thought. Finally, I wanted to see how the offers influence a particular group ofpeople. Q2: Do different groups of people react differently to offers? So, in conclusion, to answer What is the spending pattern based on offer type and demographics? Here is how I created this label. I wanted to analyse the data based on calorie and caffeine content. The indices at current prices measure the changes of sales values which can result from changes in both price and quantity. This shows that the dataset is not highly imbalanced. The profile data has the same mean age distribution amonggenders. There are two ways to approach this. This against our intuition. Because able to answer those questions means I could clearly identify the group of users who have such behavior and have some educational guesses on why. Perhaps, more data is required to get a better model. Some users might not receive any offers during certain weeks. After submitting your information, you will receive an email. income(numeric): numeric column with some null values corresponding to 118age. By using Towards AI, you agree to our Privacy Policy, including our cookie policy. As a part of Udacity's Data Science nano-degree program, I was fortunate enough to have a look at Starbucks ' sales data. Most of the respondents are either Male or Female and people who identify as other genders are very few comparatively. Jul 2015 - Dec 20172 years 6 months. portfolio.json containing offer ids and meta data about each offer (duration, type, etc. Continue exploring At the end, we analyze what features are most significant in each of the three models. Sales in new growth platforms Tails.com, Lily's Kitchen and Terra Canis combined increased by close to 40%. In this case, however, the imbalanced dataset is not a big concern. Ability to manipulate, analyze and transform large datasets into clear business insights; Proficient in Python, R, SQL or other programming languages; Experience with data visualization and dashboarding (Power BI, Tableau) Expert in Microsoft Office software (Word, Excel, PowerPoint, Access) Key Skills Business / Analytics Skills Rewards represented 36% of U.S. company-operated sales last year and mobile payment was 29 percent of transactions. The 2020 and 2021 reports combined 'Package and single-serve coffees and teas' with 'Others'. For Starbucks. A listing of all retail food stores which are licensed by the Department of Agriculture and Markets. We've encountered a problem, please try again. Age and income seem to be significant factors. The following figure summarizes the different events in the event column. From Refresh the page, check Medium 's site status, or find something interesting to read. Income is also as significant as age. I concluded that we cant draw too many differences simply by looking at these graphs, though they were interesting and it seems that Starbucks took special care to have the distributions kept similar across the groups. Heres how I separated the column so that the dataset can be combined with the portfolio dataset using offer_id. 1-1 of 1. Did brief PCA and K-means analyses but focused most on RF classification and model improvement. the dataset used here is a simulated data that mimics customer behaviour on the Starbucks rewards mobile app. Read by thought-leaders and decision-makers around the world. All rights reserved. Join thousands of data leaders on the AI newsletter. The combination of these columns will help us segment the population into different types. A transaction can be completed with or without the offer being viewed. Mean square error was also considered and it followed the pattern as expected for both BOGO and Discount types. Once everything is inside a single dataframe (i.e. Interactive chart of historical daily coffee prices back to 1969. Store Counts Store Counts: by Market Supplemental Data Directly accessible data for 170 industries from 50 countries and over 1 million facts: Get quick analyses with our professional research service. However, for each type of offer, the offer duration, difficulties or promotional channels may vary. Accessed March 01, 2023. https://www.statista.com/statistics/219513/starbucks-revenue-by-product-type/, Starbucks. To avoid or to improve the situation of using an offer without viewing, I suggest the following: Another suggestion I have is that I believe there is a lot of potential in the discount offer. On average, women spend around $6 more per purchase at Starbucks. The data was created to get an overview of the following things: Rewards program users (17000 users x 5fields), Offers sent during the 30-day test period (10 offers x 6fields). PC0 also shows (again) that the income of Females is more than males. 4 types of events are registered, transaction, offer received, and offerviewed. The reason is that the business costs associate with False Positive and False Negative might be different. Starbucks Corporation - Financial Data - Supplemental Financial Data Investor Relations > Financial Data > Supplemental Financial Data Financial Data Supplemental Financial Data The information contained on this page is updated as appropriate; timeframes are noted within each document. Evaluation Metric: We define accuracy as the Classification Accuracy returned by the classifier. RUIBING JI Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet. Starbucks is passionate about data transparency and providing a strong, secure governance experience. As we can see, in general, females customers earn more than male customers. precise. Coffee exports from Colombia, the world's second-largest producer of arabica coffee beans, dropped 19% year-on-year to 835,000 in January. We perform k-mean on 210 clusters and plot the results. Importing Libraries Once these categorical columns are created, we dont need the original columns so we can safely drop them. This dataset contains about 300,000+ stimulated transactions. 2 Lawrence C. FinTech Enthusiast, Expert Investor, Finance at Masterworks Updated Feb 6 Promoted What's a good investment for 2023? The reason is that we dont have too many features in the dataset. Through this, Starbucks can see what specific people are ordering and adjust offerings accordingly. So, could it be more related to the way that we design our offers? 754. So, in this blog, I will try to explain what I did. Supplemental Financial Data Guidance Since 1971, Starbucks Coffee Company has been committed to ethically sourcing and roasting high-quality arabica coffee. A mom-and-pop store can probably take feedback from the community and register it in their heads, but a company like Starbucks with millions of customers needs more sophisticated methods. New drinks every month and a bit can be annoying especially in high sale areas. Q3: Do people generally view and then use the offer? Then you can access your favorite statistics via the star in the header. I used the default l2 for the penalty. Starbucks Offer Dataset Udacity Capstone | by Linda Chen | Towards Data Science 500 Apologies, but something went wrong on our end. For BOGO and discount offers, we want to identify people who used them without knowing it, so that we are not giving money for no gains. Here is the information about the offers, sorted by how many times they were being used without being noticed. Click to reveal We can know how confident we are about a specific prediction. To answer the first question: What is the spending pattern based on offer type and demographics? ** Other includes royalty and licensing revenues, beverage-related ingredients, ready-to-drink beverages and serveware, among other items. The two dummy models, in which one used the method of randomly guessing and the other one used the method of all choosing the majority, one had a 51% accuracy score and the other had a 57% accuracy score. Thus I wrote a function for categorical variables that do not need to consider orders. This cookie is set by GDPR Cookie Consent plugin. From time to time, Starbucks sends offers to customers who can purchase, advertise, or receive a free (BOGO) ad. As a whole, 2017 and 2018 can be looked as successful years. Now customize the name of a clipboard to store your clips. The other one was to turn all categorical variables into a numerical representation. Expanding a bit more on this. Dataset with 5 projects 1 file 1 table Elasticity exercise points 100 in this project, you are asked. Similarly, we mege the portfolio dataset as well. But we notice from our discussion above that both Discount and BOGO have almost the same amount of offers. Clipping is a handy way to collect important slides you want to go back to later. to incorporate the statistic into your presentation at any time. Former Server/Waiter in Adelaide, South Australia. Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.