π§ “Design a Smart Lemonade Stand Using Data Science”
π‘ Scenario:
You run a small lemonade stand in your neighborhood. You want to use data science to boost your sales, plan better, and understand your customers.
Your mission? Make smarter decisions using simple data science tools.
π§© Step-by-Step Tasks (Concept-by-Concept)
π’ Step 1: Collect the Data (Data Collection & Entry)
Manually create a small dataset with:
-
Date
-
Weather (sunny/cloudy/rainy)
-
Temperature
-
Number of cups sold
-
Price per cup
-
Special events (holiday/sports day)
π Tool: Google Sheets or a CSV file
π§Ό Step 2: Clean the Data (Data Cleaning)
-
Fix any typos (e.g., “sunyy” → “sunny”)
-
Fill in missing values
-
Convert text to lowercase
π Tool: Python with pandas
π Concept: .fillna()
, .lower()
, .dropna()
π Step 3: Explore the Data (EDA – Exploratory Data Analysis)
-
Plot sales over time
-
Group by weather to see average sales
-
Create a bar chart for average sales by temperature range
π Tool: matplotlib or seaborn
π Concept: groupby()
, plot()
, mean()
π Step 4: Find Patterns (Basic Statistics)
-
When do you sell the most?
-
Does sunny weather increase sales?
-
Is price affecting your sales?
π Concepts: Mean, median, mode, correlation
π Tool: pandas, corr()
, describe()
π€ Step 5: Predict Sales (Intro to Modeling)
Use a simple linear regression model to predict:
“How many cups will I sell tomorrow based on the weather and temperature?”
π Tool: scikit-learn (LinearRegression
)
π Concepts: Features, targets, training/testing split
π¨ Step 6: Tell the Story (Data Communication)
-
Create a small report (slides or notebook)
-
Use graphs to explain findings to a friend who doesn't know data science
π Tool: Jupyter Notebook or Google Slides
π Concept: Data storytelling
π‘ Bonus Challenge:
Use your model to decide:
“Should I make 20, 50, or 100 cups tomorrow?”
Column | Description |
---|---|
date |
Day of the lemonade stand |
weather |
Weather condition (sunny, cloudy, rainy) |
temperature |
Daily temperature (°C) |
price_per_cup |
Price of a single lemonade cup |
event |
Local event (none, holiday, sports day) |
cups_sold |
Number of cups sold that day |
No comments:
Post a Comment