Module 4: Exploratory Data Analysis (Ages 13+)
๐ What Will You Learn?
By the end of this module, you will be able to:
- Explain what "exploratory data analysis" (EDA) means.
- Find the average, middle value, and most common value in a dataset.
- Spot patterns and trends in data.
- Understand the difference between correlation and causation.
- Ask good questions about data and find answers using simple statistics.
๐ต๏ธ Lesson 1: What Is Exploratory Data Analysis?
Exploratory Data Analysis (EDA) means exploring your data like a detective
solving a mystery. You look at it from different angles, find clues, and ask questions
before you jump to conclusions.
๐ต๏ธ Think of it like being a detective: You have a case file (the data), and
you need to figure out what story it's telling. You look for patterns, odd details, and
connections โ just like a detective looking for clues!
Why Do EDA?
- To understand what your data looks like.
- To spot weird values or mistakes you missed during cleaning.
- To find patterns and trends.
- To ask better questions before doing deeper analysis.
๐ก Key Idea: EDA is like looking at the puzzle pieces before you start
putting the puzzle together. You need to know what you're working with!
๐ Lesson 2: Three Magic Numbers โ Average, Median, and Mode
These three numbers help you understand a dataset quickly. They're called measures of center.
1. Average (Mean) ๐งฎ
Add up all the numbers, then divide by how many numbers there are.
Example: Ages: 12, 13, 13, 14, 13
12 + 13 + 13 + 14 + 13 = 65 โ 65 รท 5 = 13
2. Median (Middle Value) ๐
Put the numbers in order from smallest to biggest. The middle number is the median.
Example: 12, 13, 13, 13, 14 โ the middle is 13
If there are two middle numbers, add them and divide by 2.
3. Mode (Most Common) ๐
The number that appears most often.
Example: 12, 13, 13, 13, 14 โ 13 appears three times, so it's the mode.
| Number |
What It Tells You |
When to Use It |
| Average |
The overall "balance point" |
When data doesn't have extreme values |
| Median |
The true middle |
When there are extreme values (outliers) |
| Mode |
The most popular value |
When you want to know what's most common |
โ ๏ธ Watch Out! If you have an outlier, the average can be misleading.
Example: Ages: 12, 13, 13, 14, 100 โ the average is 30.4,
but the median is 13. The median gives a better picture!
โ๏ธ Think of it like a seesaw: The average is where the seesaw balances. But
if one person is really heavy (an outlier), the balance point moves way over โ even
though most people are on the other side. That's why the median is sometimes more useful!
๐ Lesson 3: Finding Patterns and Trends
Once you know the basic numbers, look for patterns. Here are some questions to ask:
Questions to Ask Your Data ๐
- What's the biggest value? The smallest?
- Is there a value that appears way more often than others?
- Do the numbers go up or down over time?
- Are there groups of similar values?
- Are there any surprises or weird values?
Types of Patterns
| Pattern |
What It Looks Like |
Example |
| Trend |
Values go up or down over time |
Your math grades improving each term |
| Cluster |
Values bunch together |
Most of your friends are 13 years old |
| Gap |
A big jump between values |
Test scores: most are 70โ80, but a few are 95+ |
| Outlier |
A value far from the rest |
One person in your class is 17 (everyone else is 13) |
๐ก Pro Tip: Sort your data from smallest to biggest. Patterns and outliers
become much easier to spot!
๐ต Think of it like listening to a song: A trend is like the song getting
louder over time. A cluster is like a repeated chorus. An outlier is like one really weird
note that doesn't fit. Your ears (or eyes) notice these things naturally!
๐ Lesson 4: Correlation vs. Causation
This is one of the most important ideas in data analysis โ and one of the most misunderstood!
Correlation ๐ค
When two things seem to change together. When one goes up, the other goes up (or down).
Example: The more hours you study, the higher your test scores tend to be.
Causation ๐ฅ
When one thing actually causes the other to change.
Example: Studying causes better test scores.
โ ๏ธ The Golden Rule: Correlation does NOT equal causation!
Just because two things happen together doesn't mean one causes the other.
Funny (But Real) Examples
- ๐ฆ Ice cream sales and drowning rates both go up in summer. Does ice cream cause drowning? No! The real cause is hot weather.
- ๐ Shoe size and reading ability go up together in kids. Do big shoes make you a better reader? No! Both increase as kids grow older.
- ๐ฆ More storks are seen in areas with more babies. Do storks deliver babies? No! It's just a coincidence.
๐ก Remember: Before you say "X causes Y," ask: Could something else be
causing both? That "something else" is called a confounding variable.
๐ Think of it like umbrellas: When it rains, more people carry umbrellas.
Does carrying an umbrella cause rain? Of course not! The rain causes both. That's
correlation without causation!
๐ฏ Fun Activity: Be a Data Detective
Your Mission: Explore this dataset like a detective and find the clues!
Here's data from a survey of 15 students about their weekly screen time (in hours):
| Student | Screen Time (hrs/week) |
| Alex | 14 |
| Jordan | 20 |
| Sam | 12 |
| Riley | 18 |
| Taylor | 15 |
| Casey | 22 |
| Morgan | 16 |
| Quinn | 14 |
| Drew | 19 |
| Jamie | 17 |
| Kai | 13 |
| Blake | 21 |
| Roan | 15 |
| Skyler | 16 |
| Emery | 45 |
Your detective tasks:
- Find the average, median, and mode of the screen time.
- Is there an outlier? If so, who is it?
- Does the outlier change the average a lot? Try calculating the average with and without the outlier.
- What pattern do you notice? (Cluster? Trend? Gap?)
- Write 2โ3 sentences about what you think the data is telling you. Do you think the outlier is real or a mistake?
Submit: Your calculations + your detective notes + a short paragraph with your conclusions.
๐ Quick Quiz
- What does "exploratory data analysis" mean in your own words?
- What's the difference between the average and the median?
- Why is the median sometimes better than the average?
- What's an outlier? Give one example.
- Explain the difference between correlation and causation in your own words.
- Give one funny example of correlation that is not causation.
๐ Key Words to Remember
- EDA (Exploratory Data Analysis) โ exploring data to find patterns and understand it.
- Average / Mean โ the sum of all values divided by how many there are.
- Median โ the middle value when data is sorted.
- Mode โ the value that appears most often.
- Outlier โ a value that's very different from the rest.
- Trend โ a pattern where values go up or down over time.
- Cluster โ a group of values that are close together.
- Correlation โ when two things seem to change together.
- Causation โ when one thing actually causes another to change.
- Confounding variable โ a hidden thing that affects both variables.
๐ Want to Learn More?
- Ask a parent or teacher to help you explore a free dataset on Kaggle.
- Try the free "Intro to Data Analysis" lesson on Kaggle Learn.
- Practice finding averages and medians with your own grades, screen time, or sleep hours.
- Watch out for news headlines that confuse correlation with causation โ you'll spot them now!
๐ Big Idea: EDA is like being a detective โ you look for clues, ask questions,
and follow the evidence. The best detectives don't jump to conclusions โ they explore first!