Stemplot Constructor
Run the Stemplot Constructor MicroSim Fullscreen
Edit the Stemplot Constructor MicroSim with the p5.js editor
About This MicroSim
Sylvia pops up from behind a pile of acorns: "Let's crack this nut! Stemplots are one of my favorite ways to organize data because they let you see the actual numbers while also showing the shape of the distribution. It's like having your acorns sorted AND counted at the same time!"
This interactive MicroSim helps you understand how a stemplot (also called a stem-and-leaf plot) is constructed. You will see exactly how each data value gets split into its stem (the leading digit) and leaf (the trailing digit), then watch as the leaf gets placed in the correct sorted position.
How to Use
- Enter Your Own Values: Type a two-digit number (0-99) in the input box and click "Add Value" to see it decompose and join the stemplot
- Step Through: Load a sample dataset and watch values being added one at a time - perfect for understanding the process
- Auto-Build: Watch the entire dataset animate automatically at your chosen speed
- Clear: Reset the stemplot to start fresh
- Dataset Dropdown: Choose from Quiz Scores, Ages, or Heights sample datasets
- Speed Slider: Adjust animation speed from 500ms (fast) to 2000ms (slow)
Decomposition Animation
When a value like 85 is added, you will see:
- The value 85 highlighted in yellow
- An arrow showing the split: 8 (stem) and 5 (leaf)
- The leaf 5 being placed in the row for stem 8, in sorted order
The key at the bottom reminds you: 8 | 5 means 85
Embedding This MicroSim
Place the following line in your website to include this in your course:
1 | |
Lesson Plan
Learning Objectives
By the end of this activity, students will be able to:
- Interpret how a two-digit data value decomposes into a stem and a leaf
- Explain why the leaf is the last digit and the stem contains the remaining leading digit(s)
- Predict where a new value will be placed in an existing stemplot
- Construct a stemplot from a small dataset by hand
Warm-Up (5 minutes)
Sylvia's tip: "Acorn for your thoughts? Before we dive in, try this: take the number 73 and split it into tens and ones. The tens digit becomes the stem, and the ones digit becomes the leaf. Now you're thinking like a statistician!"
- Ask students: "If I have the value 47, what would be the stem? What would be the leaf?"
- Have students practice splitting 3-4 values mentally before using the MicroSim
Guided Exploration (10 minutes)
- Load the "Quiz Scores" dataset
- Click "Step Through" and pause after each value to discuss:
- What stem row does this value belong to?
- Where in the row should the leaf go (sorted order)?
- After 5-6 values, have students predict where the next value will go
Independent Practice (10 minutes)
- Students clear the stemplot and enter their own values (5-10 values)
- Challenge: Can they create a stemplot that shows a symmetric distribution? A skewed distribution?
- Use "Auto-Build" with the speed slider to check understanding with a full dataset
Assessment Questions
- The value 62 is added to a stemplot. What is the stem? What is the leaf?
- In a stemplot, you see:
7 | 2 4 8. What three values does this represent? - Why do we sort the leaves in each row from smallest to largest?
- A stemplot has stems 4, 5, 6, 7. What range of values could be in this dataset?
Extension
"Now that's a data point worth collecting!" - Sylvia
For advanced students: Discuss what happens with three-digit values (like test scores out of 200). How would you modify the stem? What about decimal values?
Concepts Covered
- Stemplot (stem-and-leaf plot)
- Data decomposition
- Place value in statistics
- Ordered data visualization
- Distribution shape
References
- Chapter 3: Displaying Quantitative Data - Stemplots section
- Khan Academy: Stem and Leaf Plots
- OpenIntro Statistics: Graphical Summaries
Reminder: Please create a screenshot of this MicroSim named stemplot-constructor.png and place it in this folder for social media previews.