Class 7 · Unit 2: Domains of AI · Lesson 2.1 · 40 min
Data science — from numbers to a decision
Snow for three days. "Half the class stayed home again!" Did they really? The answer is already sitting in the register.
Today you will: Clean a register with a mistake in it · Compare snow days with clear days · Turn a chart into a decision — and its limit
Story
It is the first week of January. Snow has been falling on Rahat's village for three days.
Rahat: “Half the class stayed home again. Sir is thinking of starting school at 11 o'clock instead of 10.”
Hiba, who likes to be sure, asks: "Is half the class really missing? Or does it just feel like that? Is it worse on snowy days, or on Mondays? We have the register. The answer is already in the numbers."
Can a list of numbers help a school make a better decision?
Watch
What is Data Science? — — scan code 7.2.1 in the printed book.
Learn it
AI is a big field with three main domains, three kinds of job it does: Data Science (finding patterns in numbers and tables), Computer Vision (understanding images) and Natural Language Processing (understanding language). This unit visits all three. Today is Data Science: turning a list of numbers, like a class register, into a decision people can trust.
Words to know
- Domain of AI one main area of AI. The three domains are Data Science, Computer Vision and Natural Language Processing (NLP).
- Data Science finding useful patterns in data so that people, or machines, can decide and predict.
- Collect gather the data, like the attendance register.
- Clean fix mistakes and mark gaps, so the data is honest.
- Analyse work things out from the data, such as an average.
- Visualise draw the data as a chart so people can see the pattern.
- Decide people use what the data shows to choose what to do.
- Average add the numbers up and divide by how many there are.
Step by step: the five steps on a small register
A class of 30 recorded six days:
| Day | Snow? | Present |
|---|---|---|
| Mon | Yes | 18 |
| Tue | No | 28 |
| Wed | Yes | 20 |
| Thu | No | 290 |
| Fri | No | 27 |
| Sat | Yes | (empty) |
- Collect: the register above.
- Clean: a class of 30 cannot have 290 present, so that is a typing mistake for 29. The empty Saturday is marked "?" and left out. Never guess a missing number.
- Analyse: snow days average (18 + 20) ÷ 2 = 19; clear days (28 + 29 + 27) ÷ 3 = 28.
- Visualise: two bars, 19 and 28. The gap is easy to see.
- Decide: about 9 fewer children come on snow days, so perhaps start later when it snows. But first ask why: roads, cold, or no warm clothes?
In Calc, =AVERAGEIF() finds the snow-day and clear-day averages for you.
Careful: data shows what happened, not why. And one uncleaned mistake (290 instead of 29) would have made clear days look enormous. Data does not decide by itself; people decide, and data helps them decide well.
On the laptop
You need: LibreOffice Calc · attendance-winter.ods — 20 January days for a class of 40, made up for teaching: date · day · snow? · present
Mission 1: Clean (pairs, 3 min)
- ☐1
Look down column D. One row says
400and one cell is empty. - ☐2
A class of 40 can't have 400 present — it's a typing mistake. Change it to
40. - ☐3
For the empty cell, write
?in column E (Notes) and leave it out. Guessing would make the data dishonest.
Mission 2: Analyse (pairs, 5 min)
- ☐4
Predict: on snow days, will about 10 fewer children come, 20 fewer, or none fewer? Write it in G1.
- ☐5
G2
Average on snow days, H2=AVERAGEIF(C2:C21;"Yes";D2:D21). G3Average on clear days, H3=AVERAGEIF(C2:C21;"No";D2:D21). How close was your guess?
Mission 3: Visualise and decide (pairs, 8 min)
- ☐6
Select columns A and D, Insert → Chart → Column. Colour the snow-day bars differently (right-click a bar → Format Data Point).
- ☐7
In G5: "The data suggests the school should…" In G6: one thing the data can't tell us — like why children stayed home.
No laptop today?
Copy the 20 rows from the printed table into your notebook. Circle the snow days. Work out the average present on snow days and on clear days, draw a bar for each, and write your decision underneath.
Debate it
The data shows that attendance drops on snow days. One person says: "Just mark the absent children as late and move on." Another says: "Start school later on snow days." A third says: "Ask the families what the real problem is: roads, cold, or no warm clothes?"
Which idea uses data best? What other data would you want to collect?
Check yourself — practice, not a test
1. Which is not one of the three domains of AI?
- ○ Data Science
- ○ Computer Vision
- ○ Natural Language Processing
- ○ Spreadsheet Typing
2. Put the steps of a data science project in order:
- 1. **Collect
- 2. Visualise
- 3. Decide**
- 4. Clean
- 5. Analyse
3. If a number in a dataset looks wrong, it is fine to guess a new one so the sums work.
- ○ True
- ○ False
4. Data science finds ______ in data to help people make decisions.
Remember
Data Science turns numbers into decisions, but people make the decision.
Typing practice
Skill: number row, 1 to 5 (7 min)
- On typing.com, open the lesson on the top-row numbers 1–5.
- Keep your fingers on the home row and reach up for each number, then come back home.
- Today you typed attendance numbers, so the number row matters.
- Goal: your own best accuracy, 90% or more.