Module 7: Basic Statistical Analysis (Ages 13+)
๐ What Will You Learn?
By the end of this module, you will be able to:
- Explain what "spread" means and why it matters.
- Find the range and understand standard deviation (in simple terms).
- Understand what a sample is and why samples can be tricky.
- Explain what a hypothesis is and how to test one.
- Compare two groups of data to see if one is really "better."
๐ Lesson 1: Why "Spread" Matters
In Module 4, you learned about the average, median, and
mode. Those tell you where the "center" of your data is. But they don't tell
you the whole story!
๐ Think of it like this: Two basketball players both average 15 points per
game. But Player A scores 15 every single game (boring!), while Player B scores 30 one game
and 0 the next (wild!). Same average โ very different players. The difference is
called spread.
What Is Spread?
Spread tells you how spread out (or bunched up) the numbers are.
| Dataset |
Average |
Spread |
| 14, 15, 15, 15, 16 |
15 |
Small โ all values are close to 15 |
| 5, 10, 15, 20, 25 |
15 |
Big โ values stretch far from 15 |
Both have the same average, but very different spreads!
๐ก Key Idea: The average tells you the "center," but the spread tells you
whether the data is tightly bunched or wildly scattered. You need both to understand a
dataset!
๐ Lesson 2: Measuring Spread โ Range and Standard Deviation
1. Range โ The Simplest Measure ๐
The range is the biggest value minus the smallest value.
Range = Biggest value โ Smallest value
Example: Test scores: 70, 78, 85, 92, 95
Range = 95 โ 70 = 25
The range is easy to calculate, but it has a problem: one single extreme value can make it huge.
โ ๏ธ Watch Out! Scores: 70, 78, 85, 92, 95 โ range = 25.
But scores: 70, 78, 85, 92, 150 โ range = 80. One weird number completely
changes the range!
2. Standard Deviation โ The "Average Distance from the Average" ๐
The standard deviation tells you, on average, how far each value is from the
average. It's a much better measure than range because it uses all the data,
not just the biggest and smallest.
Small standard deviation โ numbers are close to the average.
Big standard deviation โ numbers are spread out.
You don't need to memorize the exact formula โ here's the idea:
Step 1: Find the average.
Step 2: See how far each number is from the average.
Step 3: Square those distances (to remove negatives).
Step 4: Average those squares.
Step 5: Take the square root.
๐ก You Don't Have to Do This by Hand! In a spreadsheet, use
=STDEV( ). In Python, use data.std(). It's okay to understand the
idea without doing the math yourself โ that's what computers are for!
Comparing the Two
| Measure |
Easy to Calculate? |
Uses All Data? |
Best For |
| Range |
โ
Yes |
โ No (just the two extremes) |
Quick rough estimate |
| Standard Deviation |
๐ Harder by hand |
โ
Yes |
Real, accurate measure of spread |
๐ฏ Think of it like a dartboard: If all your darts land close to the
bullseye, that's a small standard deviation. If they're scattered all over the
board, that's a big standard deviation. Same average target โ very different
throwers!
๐ฒ Lesson 3: Samples โ Why They Matter (and Why They Can Fool You)
A sample is a small piece of a bigger group. The bigger group is called the
population.
๐ฒ Think of it like this: When you taste a spoonful of soup to see if it's
salty enough, you're taking a sample. The whole pot is the
population. If you stir the soup well, one spoonful tells you about the whole
pot. But if you don't stir it, one spoonful might be a terrible sample!
Why Do We Use Samples?
- It's impossible to ask every person in the world their opinion.
- Samples are faster and cheaper.
- If the sample is random and big enough, it can represent the whole population.
What Makes a Sample Bad?
| Problem |
Example |
Why It's Bad |
| Too small |
Asking 2 people their favorite food |
Not enough data to be representative |
| Biased |
Asking only your best friends about your favorite music |
Your friends may think like you โ not like everyone else |
| Convenience sampling |
Surveying people who happen to be near you |
They might not represent the population |
โ ๏ธ Famous Fail! In 1936, a magazine did a huge survey about the US
presidential election. They called it correctly โ except they predicted the wrong
winner. Why? They only surveyed people with phones and cars (who were richer than average).
Their sample was biased! Today, good surveys are careful to get a
random sample.
๐ฅฃ Think of it like this: If you scoop your soup from the top without
stirring, you might just get oil. But if you stir first (random sample), you get a fair
spoonful. Stir your data before you sample!
๐ฌ Lesson 4: Hypotheses โ Testing Your Ideas
A hypothesis is an idea you want to test. In data analytics, we use data to
decide whether a hypothesis is probably true or probably false.
How Hypothesis Testing Works (Simple Version)
- Ask a question: "Do students who eat breakfast get better test scores?"
- Make a hypothesis: "Eating breakfast improves test scores."
- Collect data: Test scores of students who eat breakfast vs. those who don't.
- Compare the groups: Is the difference big enough to be real, or could it just be luck?
- Decide: "The data supports the hypothesis" or "The data doesn't support it."
โ๏ธ Think of it like a trial: A hypothesis is like a suspect โ we assume it's
"innocent" (not true) until there's enough evidence to prove otherwise. If our data shows
strong evidence, we say "the hypothesis is supported." If not, we say "we don't have enough
evidence."
Comparing Two Groups ๐
A very common statistical task: is Group A really different from Group B?
| Group A (eat breakfast) |
Group B (skip breakfast) |
| Average score: 82 |
Average score: 76 |
| Standard deviation: 6 |
Standard deviation: 5 |
Group A's average is higher โ but is that difference real or just luck?
๐ก Rule of Thumb: If the difference between the averages is much
bigger than the standard deviations, it's probably real. If it's smaller, it could
just be random chance. Real statisticians use formulas for this (like the t-test),
but this quick rule gives you the idea!
The "Luck" Factor ๐ฒ
Imagine flipping a coin 10 times. You might get 6 heads and 4 tails โ but that doesn't mean
the coin is unfair. It could just be luck. The same idea applies to data: small differences
can happen by chance!
โ ๏ธ Important: Statistics never says "100% true." It says "probably true" or
"unlikely to be just luck." Real statisticians use a number called a
p-value to measure this โ but you don't need to learn it yet. Just remember:
random chance can fool you, so bigger data and careful samples are your
friends.
๐ช Think of it like this: If you flip a coin 10 times, getting 7 heads isn't
that weird. But if you flip it 1,000 times and get 700 heads โ that's not luck, something's
wrong with the coin! More data = harder to be fooled by luck.
๐ฏ Fun Activity: Test a Hypothesis!
Your Mission: Test a hypothesis with real data from your class!
Step 1: Ask a Question
Here's one idea: "Do students who play sports get more sleep?"
Or make up your own! Other ideas:
- Do students who eat breakfast get better test scores?
- Do people with bigger hands score better at basketball?
- Do people who listen to music while studying get better grades?
Step 2: Collect Data
Ask 10โ15 people. For each person, record TWO things:
- Their answer to the "question" (e.g., how many hours they sleep)
- The "result" (e.g., whether they play sports or not)
Step 3: Calculate
For each group:
- Find the average (mean).
- Find the range (biggest โ smallest).
- If you have a spreadsheet, find the standard deviation with
=STDEV( ).
Step 4: Compare
Write a few sentences:
- Is one group's average higher? By how much?
- Is the difference bigger or smaller than the spread (range or standard deviation)?
- Do you think the difference is real, or could it be luck?
- What would make your test more reliable? (Hint: bigger sample! Better sampling!)
Submit: Your data, your calculations, and your conclusion โ 3โ5 sentences.
๐ Quick Quiz
- What does "spread" mean, and why does it matter?
- How do you calculate the range?
- What's the difference between a small and large standard deviation?
- What is a sample? What is a population?
- What makes a sample bad? Name two things.
- What is a hypothesis?
- Why might a difference between two groups not be real?
๐ Key Words to Remember
- Spread โ how spread out the data is (how far numbers are from each other).
- Range โ biggest value minus smallest value.
- Standard deviation โ the "average distance from the average"; a good measure of spread.
- Population โ the whole group you're studying.
- Sample โ a smaller piece of the population.
- Bias โ a sample that doesn't fairly represent the population.
- Hypothesis โ an idea you want to test with data.
- p-value โ a number that measures how likely a result is due to chance (advanced!).
- t-test โ a common statistical test for comparing two groups (advanced!).
๐ Want to Learn More?
- Try the free "Intro to Statistics" course on Khan Academy.
- Try the free "Intro to Machine Learning" lesson on Kaggle Learn.
- Practice calculating ranges and averages with your own data (grades, screen time, sports stats).
- Look at the "stats" page on sports apps โ can you find standard deviations?
- Ask a parent or teacher about "confidence intervals" โ that's what real statisticians use!
๐ Big Idea: Statistics is the science of making good guesses from messy
information. You don't need to be perfect โ you just need to be honest, careful,
and willing to admit when the data doesn't support your idea. That's what real
statisticians do!