Ice Cream Sales by Temperature Analysis

Understanding ice cream sales and temperature correlation.


Business Scenario

An ice cream business in a large metropolitan city has been collecting sales data over the past 12 months alongside daily average temperatures. They tasked us with identifying which weather conditions drive the highest demand so they can ensure proper stock levels at their store during peak days.

Data & Transformation

We were given the raw dataset, which we then began to clean and transform. The cleaning process was straightforward as there were only two columns of data: temperature and daily profits for that temperature, making for a very clean dataset.

To spot patterns across weather conditions instead of individual degree readings, I grouped the daily temperatures into 10-degree Fahrenheit buckets ( 30–39, 40–49, up to 100+). From there, I aggregated the profits within each bucket to compare both total revenue and daily average profit across temperature ranges.

Source files used in this analysis:
Raw Data
Cleaned & Transformed Data

Tools used in this analysis:

Excel: data cleaning and transformation
Tableau: visualization


Key Visuals & Insights


Ice Cream Sales by Temperature (Sum)


Looking at total sales by temperature alone, demand appears to peak between 70°F and 89°F before dropping off in the extreme heat, as shown in the visual below. At first glance, this bell curve makes logical sense, as the hotter it gets, the more people want to stay indoors and avoid the heat. Based on this chart alone, the recommendation would be to stock up for months with average temperatures in the 70°F to 89°F range.

Column Choices


Ice Cream Sales by Temperature (Avg)


However, we need to look at the data from different angles to get a true sense of the numbers, so we normalized the data by looking at average daily profit, which reveals that sales actually continue climbing through 90°F and 100°F+ heat. Total revenue only dipped in those ranges during the first analysis because there were far fewer extreme-heat days during the year. The normalized chart shown below reveals the truth.



Column Choices


Summary Insight & Conclusions

After our analysis, we advised stakeholders that to avoid stockouts, the store should maintain high baseline inventory throughout normal 70–89°F summer weather while ramping up stock ahead of forecasted 90°F+ heatwaves.


Below is the dashboard given to stakeholders along with our recommendations above, giving full insight into their sales for the year, when to stock, and what to stock based on additional data gathered after the initial temperature findings.


Dashboard

Note: Additional data was gathered after the initial temperature findings at the stakeholder's request to look into stock sold by flavour, which was then added to the dashboard. You'll often find that an analysis is rarely complete after the initial findings.