r/mathteachers • u/West_Shape_4780 • 2h ago
Linear regression/trendline class game.
Hi all, I’m the creator (and a high school teacher) of a small free game called Fit the Line and I wanted to share my game.
Students see a scatter plot, drag two handles to place a trendline, then lock it in. Then the actual least-squares line appears, with the gap between their line and the true one shaded, and they get a score out of 100.
Class mode: you click Launch a class and get a 4-letter code. Students go to the site, type the code and their name (or turn on “fun names” and everyone gets a random animal name like Sassy Squirrel). Up to 30 students. You choose Easy, Medium or Hard and 5, 10 or 15 rounds. Everyone gets the same data each round. When you press Reveal, your screen shows every student’s line on top of the real one, which is a nice discussion moment: you can see the whole class’s guesses cluster around the least-squares line.
Hard mode adds a couple of outliers, so students see how much they pull the least-squares line. Solo mode also shows residuals and SSE for your line vs. the best fit, if you want to get into why least squares is “least.”
No accounts, no ads, nothing to install. It works on Chromebooks and phones.
Link: fittheline.com
I’d really like feedback from people who teach this. What would make it more useful in your class?