Where is statistics hiding in Scratch graphing scores?
Show high scores, averages and improvement over several attempts.
Quick answer
In Scratch, statistics like high scores, averages, and improvement are hidden in graphing scores by using variables, loops, and visual displays to track and show data.
Learning outcome
By the end of this page, you will be able to use Scratch to track your scores in a game, create a graph to show your progress, and understand what your data tells you about your performance.
- You can create a variable to store your score
- You can make a graph that shows your score over time
- You can find your highest score and average score
- You can see how your scores improve or change
Why this matters
Statistics help us understand information. When you play games or do activities, you collect data – like your scores. In Scratch, you can make your data come alive by showing it in a graph. This helps you see if you're getting better, how your scores compare, and what your best performance was. This is useful not just in games, but in school, sports, cooking, and even tracking your pet's growth!
How it works
When you play a game in Scratch, you can record your score each time you play. Then, you can use a variable to store that score. You can make a graph to show how your score changes over time. You can also find your highest score and your average score. These are all ways to understand your data better.
- Make a variable called "score"
- Record your score each time you play
- Use a graph to show your scores
- Find your highest and average scores
- See how your scores improve over time
Examples you can see
Imagine you're playing a game in Scratch where you collect coins. Each time you play, you get a score. Let's say you play 5 times and get these scores:
| Game | Score |
|---|---|
| 1st game | 15 coins |
| 2nd game | 20 coins |
| 3rd game | 10 coins |
| 4th game | 25 coins |
| 5th game | 30 coins |
Now, let's find your highest score. That's 30 coins!
Next, we'll find your average score. To do this, we add all the scores together and divide by the number of games:
15 + 20 + 10 + 25 + 30 = 100 coins
100 ÷ 5 = 20 coins
Your average score is 20 coins.
In Scratch, you can make a bar graph to show these scores. Each bar can represent one game, and the height of the bar shows how many coins you scored.
Try it as a mini adventure
Adventure: The Score Tracker Quest
You are a detective in a magical world where you need to find out how good you are at different games. You have a magical notebook in Scratch that records your scores. Your mission is to track your scores in 5 games, make a graph, and find your best and average scores.
Step 1: Create a new Scratch project and make a variable called "score".
Step 2: For each game, record your score in the variable.
Step 3: Draw a bar graph to show your scores.
Step 4: Find your highest score and your average score.
Step 5: Look at your graph and tell a story about your progress.
Common mistakes
- Mistake: Forgetting to reset the score variable each time you play.
Why it happens: Kids might think the score will automatically change.
Fix: Always set the score variable to 0 at the start of each game. - Mistake: Mixing up the average and the highest score.
Why it happens: Both are about numbers, so it's easy to confuse them.
Fix: Remember that average is the total divided by the number of games, and highest is just the biggest number. - Mistake: Not using a loop to record scores.
Why it happens: Kids might think they have to type everything manually.
Fix: Use a loop to repeat the score recording process.
Parent and carer guide
Help your child by:
- Playing a simple game with them and recording scores together
- Encouraging them to explain what their graph shows
- Asking questions like, "What was your best score?" or "Did you get better over time?"
- Using real-world examples like tracking how many steps they take each day
- Letting them use their own game ideas to practice
Don't worry if they make mistakes – they're learning! Ask them to explain their thinking and help them fix errors gently.
Practice questions
- What is the average of 10, 15, 20, 25, 30?
- If your highest score is 45 and you played 5 games, what is your total score if the average is 30?
- What is the difference between your highest score and your average score in a set of 5 games with scores 10, 20, 30, 40, 50?
- How many times do you need to add 5 to get 30?
- If you have 3 games with scores 12, 18, and 24, what is your average score?
- Answers:
- 20
- 150
- 20
- 6
- 18
FAQ
What is a variable in Scratch?
A variable is like a box where you can store a number. In Scratch, you can make a variable called "score" to store how many points you get in a game.
Why do we need to find the average?
The average helps us understand what a typical score is. It gives a good idea of how well you usually do, not just your best or worst.
Can I use this in real life?
Yes! You can track your reading time, how many books you read, or even how many times you practice piano. Statistics help you see your progress.
How can I make a graph in Scratch?
You can make a graph by drawing bars or lines that show your scores. Use the "pen" tools or create a series of sprites to show your data visually.
What if I don't have a game to track?
You can make up a game or use a simple activity like jumping rope or doing push-ups and track your performance over time.