Descriptive statistics review
📖 Scenario: You work as a data analyst for a small retail store. You have collected daily sales data for a week. Your manager wants you to summarize this data to understand the sales performance.
🎯 Goal: You will create a list of daily sales, set a threshold for high sales, filter the sales above this threshold, and then calculate basic descriptive statistics like mean and median for these high sales.
📋 What You'll Learn
Create a list called
daily_sales with exact values for 7 daysCreate a variable called
high_sales_threshold with the value 200Use a list comprehension to create a list called
high_sales containing sales greater than high_sales_thresholdCalculate the mean and median of
high_sales using the statistics modulePrint the mean and median values exactly as shown
💡 Why This Matters
🌍 Real World
Retail stores and many businesses collect daily sales data. Summarizing this data helps managers understand performance and make decisions.
💼 Career
Data analysts often need to clean, filter, and summarize data using descriptive statistics to provide insights to stakeholders.
Progress0 / 4 steps