From Pattern to Prediction: Modeling Ice Cream Sales

Students help Leo, an ice cream truck owner, analyze sales data by creating and using a linear model. Using sliders to adjust slope and intercept, they minimize model error, find the best-fit line, and predict sales for new temperatures—discovering how data models are built and used in the real world.

In this interactive 8th-grade statistics lab, students explore how math can be used to model and predict real-world data. Leo, an ice cream truck owner, wants to understand how temperature affects his daily sales. Students use a scatter plot of his data to create a linear model by adjusting the slope (m) and y-intercept (b) with sliders. As they fine-tune the line, the model error updates dynamically, helping them find the best-fit line with an error below 12.


Once they’ve created their model, students use their equation, y = mx + b, to make predictions for new temperatures, learning how a mathematical model can represent data and estimate unknown values.


🧭 In this lab, students will:

  • Analyze a real-world dataset showing temperature vs. ice cream sales
  • Use interactive sliders to adjust the slope and y-intercept of a line
  • Observe how the model error changes as the line fits better
  • Identify when the model has a strong fit (error below 12)
  • Write the equation of their line of best fit (y = mx + b)
  • Substitute new x-values (temperatures) to predict sales for unknown data points
  • Reflect on how mathematical models help in data analysis and forecasting



Aligned with CCSS 8.SP.A.2 and 8.SP.A.3, this hands-on, visual lab helps students understand how linear models summarize data trends and support data-driven predictions—just like real data analysts, scientists, and business owners do every day. Perfect for classroom, blended, or independent learning, this activity turns abstract math into an engaging, real-world experience.

Learning Objective

Students will learn how to build and apply a linear model to represent and predict relationships between two quantitative variables. By creating a line of best fit from scatter-plot data and using it to estimate unknown values, students will understand how mathematical models can describe real-world patterns and support data-driven predictions.

From Pattern to Prediction: Modeling Ice Cream Sales preview
Preview
Grade level
8
Type
Mini Lab (real-world worksheet)
Duration
20 minutes
Auto-graded
Yes
Common Core standards
8.SP.A.38.SP.A.2
Topics
StatisticsRandom SamplesProbability ModelsScatter PlotsBivariate Data AnalysisInterpreting Data
Tags
Real World

Related grade 8 activities

More interactive, auto-graded activities on the same standards and topics.

LabGrade 8· 180 min

Snack Stand: Pricing with Scatter Plots and Linear Models

Snack Stand Showdown is a Grade 8 statistics lab where students run a Field Day snack stand and use real data to decide what to charge and how much to buy. They build scatter plots, fit lines of best fit, price from profit curves, place a budgeted vendor order, and read two-way tables. A connected, auto-graded arc covering the full 8.SP standard cluster.

Mini LabMiddle School· 20 min

Black Friday Demand Curve & Profit Maximization

Students build a linear model from a price–demand scatterplot, then use it to predict demand, revenue, and profit at different price points. They analyze curves and determine the price that maximizes profit. A perfect real-world 8th-grade activity for scatterplots, linear modeling, and financial reasoning.

Mini LabGrade 8· 20 min

Interpreting Linear Models from Real-World Data

Students analyze real-world scatterplots and linear models to interpret bivariate data. They write equations using given slopes and y-intercepts, explain what these values mean in context, make predictions, and evaluate model limitations. Aligned to CCSS 8.SP.A.3 and ideal for statistics practice or assessment.

Mini LabGrade 8· 20 min

Leo’s Ice Cream Sales: Building a Scatter Plot (Part 1)

Help Leo, an ice cream truck owner, uncover how weather affects his sales! Students plot real data points to create a scatter plot, identify trends, and spot outliers. This engaging, hands-on activity builds understanding of correlation, trend lines, and data interpretation using a fun, real-world scenario.

Mini LabGrade 8· 15 min

Modeling Ice Cream Sales: Creating Linear Model (Part 2)

Students help Leo, an ice cream truck owner, build a linear model to predict sales! Using interactive sliders to adjust slope and intercept, they create the best-fit line, minimize model error, and discover how straight lines can model real-world data relationships.

Skill PracticeGrades 6, 7, 8· 20 min

Back to School: Know Your Classroom

Students collect and summarize data from a live classroom survey on topics like pets, siblings, and school routines. As they enter values, interactive charts update in real time. Students then analyze the graphs and answer summary questions. A fun way to learn data collection and interpretation!