Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Basics of Data Analysis ยท Lesson 8 of 9

Module Seven

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
8
Module 7: Basic Statistical Analysis (Ages 13+)

๐Ÿ“Š Module 7: Basic Statistical Analysis

Basics of Data Analytics

Made for 13-year-olds โ€” learn the math behind the magic!

โฐ Time Needed: About 1 week (3โ€“4 short lessons)

๐ŸŽฏ Big Goal: Learn how to measure "spread," compare groups, and test ideas with data

๐Ÿงฐ What You Need: A notebook, pencil, calculator (or Python!), and a spreadsheet app

๐ŸŒŸ 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)

  1. Ask a question: "Do students who eat breakfast get better test scores?"
  2. Make a hypothesis: "Eating breakfast improves test scores."
  3. Collect data: Test scores of students who eat breakfast vs. those who don't.
  4. Compare the groups: Is the difference big enough to be real, or could it just be luck?
  5. 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:

  1. Find the average (mean).
  2. Find the range (biggest โˆ’ smallest).
  3. 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

  1. What does "spread" mean, and why does it matter?
  2. How do you calculate the range?
  3. What's the difference between a small and large standard deviation?
  4. What is a sample? What is a population?
  5. What makes a sample bad? Name two things.
  6. What is a hypothesis?
  7. 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!

© 2026 Basics of Data Analytics โ€” Module 7 (Ages 13+)

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’