Mathematics · Algebra

Linear Equations in the Real World

Real data is noisy — but a straight line can reveal the pattern hidden inside it. Toggle between the raw data and the best-fit line to see how.

Real estate

House prices vs. size

Square footage → sale price ($k)

Education

Study hours vs. exam score

Hours studied → test score (out of 100)

Commerce

Temperature vs. ice cream sales

Daily high temp (°F) → units sold

House prices

Larger homes tend to cost more, but location, age, and condition all add noise. The slope tells you the average extra cost per square foot.

Study hours

More study time generally means higher scores — but not perfectly. The scatter reflects differences in study quality, prior knowledge, and test-day performance.

Ice cream sales

A classic example that also opens a discussion on correlation vs. causation: does temperature cause sales, or is something else going on?

Discussion questions: What does the slope mean in plain English for each graph? Which dataset has the most scatter — why might that be? Could you use the line to make a prediction? When would that prediction break down?
Going deeper
Now let's look at real data
The examples above used carefully constructed datasets. Real-world data is messier — and sometimes the pattern it reveals is surprising. Explore 40 measurements from an actual outdoor sensor and see how linear regression uncovers a hidden physical effect.
Explore the sensor data