SECTION 1
Historical Context & Motivation
Humans have been building mathematical models for thousands of years — from ancient astronomers predicting eclipses to modern engineers designing bridges. However, every model ever created contains some degree of error, a gap between what the model predicts and what actually happens. Understanding where these errors come from is just as important as building the model itself, because unrecognized errors can lead to dangerously wrong conclusions.
Throughout history, breakthroughs in science and engineering have often come not from building better models, but from understanding the sources of error in existing ones. Let's trace some key moments when error analysis changed the course of knowledge.
~150 CE • Ptolemy's Geocentric Model
1809 • Gauss and Least Squares
1920s • Measurement Uncertainty in Physics
1986 • Challenger Disaster
2020s • Modern Data Science
The central question this lesson addresses is: Where do errors come from in mathematical models, and how do those errors affect the conclusions we draw? By the end, you'll be able to identify, classify, and reason about errors in any modeling context.
SECTION 2
Core Principles & Definitions
Before diving into specific examples, you need a clear vocabulary for talking about errors. In mathematics and science, "error" doesn't mean "mistake" — it refers to the unavoidable difference between a model's prediction and the real-world value. Every model simplifies reality, and those simplifications introduce gaps. Here are the foundational ideas you need.
Measurement Error
Systematic Error (Bias)
Random Error
Model Assumptions Error
Extrapolation Error
KEY TAKEAWAY
SECTION 3
Visual Explanation — How Errors Affect a Model
The diagram below shows a scatter plot of real data (dots) along with two different model fits. The linear model (straight line) captures the general trend but misses the curvature in the data — this is a model assumptions error. The quadratic model (curve) fits the data more closely, but notice how it diverges wildly in the extrapolation zone — illustrating extrapolation error. The vertical bars on each data point represent measurement uncertainty.
Notice how the linear model's residuals show a clear pattern — they are negative in the middle and positive at the ends. This pattern is a red flag that the model's structure is wrong, not just that the measurements are imprecise. When residuals show no pattern and scatter randomly, the model structure is likely appropriate and the remaining error is due to random measurement noise.
SECTION 4
Mathematical Framework — Quantifying Errors
To move beyond simply identifying errors, you need tools to measure how large they are. These formulas let you put a number on the error so you can compare models, assess reliability, and communicate how trustworthy a conclusion is.
ABSOLUTE ERROR
The absolute value bars ensure the error is always positive. This tells you how far off a single measurement is, regardless of direction.
PERCENT ERROR
Percent error puts the error in context. An error of 5 grams means very different things if the true value is 10 grams (50% error) versus 1000 grams (0.5% error).
RESIDUAL
A residual is the difference between an actual data point and the value the model predicts at the same x-value. Positive residuals mean the model underestimates; negative residuals mean it overestimates.
SUM OF SQUARED RESIDUALS (SSR)
Squaring each residual makes all values positive and penalizes larger errors more heavily. A smaller SSR indicates a better-fitting model. The regression line of best fit is the one that minimizes the SSR.
Why Square the Residuals?
SECTION 5
Classifying Error Sources — A Deeper Look
Now that you know the major categories of error, let's see how they compare in terms of their cause, their effect on your conclusions, and what you can do about them. The diagram below organizes the five main error sources into a visual flowchart, and the table that follows provides a detailed comparison.
| Error Type | Cause | Effect on Conclusions | How to Reduce |
|---|---|---|---|
| Random Error | Natural variation in measurements; unpredictable fluctuations | Reduces precision; widens confidence intervals; averages out with more data | Take more measurements; average repeated trials |
| Systematic Error | Flawed instrument calibration; consistent procedural bias | Shifts results in one direction; creates false conclusions even with large datasets | Calibrate instruments; compare with known standards; use controls |
| Model Assumption Error | Choosing the wrong type of function (e.g., linear for curved data) | Systematic pattern in residuals; consistently wrong predictions | Check residual plots; try alternative model types (quadratic, exponential) |
| Extrapolation Error | Predicting beyond the range of collected data | Error can grow rapidly; predictions may be wildly inaccurate | Collect data across a wider range; flag extrapolated results as uncertain |
| Human Error (Blunder) | Mistakes in reading, recording, or entering data | Creates outliers; can distort the model fit dramatically | Double-check data entry; use automated collection when possible |
Summary of error types, causes, effects, and remedies
SECTION 6
Worked Example — Identifying and Quantifying Error
A student collects data on the height of a bouncing ball versus the drop height. She uses a linear model to fit the data and wants to predict the bounce height for a drop height outside her data range. Let's walk through how to identify and quantify the errors in her work.
Ball Bounce Height — Error Analysis
- 1
Step 1 — Identify the Data and Model
The student drops a ball from heights of 50, 100, 150, 200, and 250 cm, measuring bounce heights. She fits a linear model: ŷ = 0.62x + 3.1, where x is drop height (cm) and ŷ is predicted bounce height (cm). The r² value is 0.97. - 2
Step 2 — Calculate a Residual
At x = 200 cm, the actual bounce height was 121 cm. The model predicts ŷ = 0.62(200) + 3.1 = 127.1 cm. The residual is: 121 − 127.1 = −6.1 cm. This means the model overestimated the bounce height by 6.1 cm at this point.Residual = −6.1 cm - 3
Step 3 — Calculate Percent Error at This Point
Percent Error = (|121 − 127.1| ÷ 121) × 100% = (6.1 ÷ 121) × 100% ≈ 5.04%. This is a moderate error — the model is within about 5% at this point.Percent Error ≈ 5.04% - 4
Step 4 — Check for Systematic Pattern in Residuals
Looking at all five residuals: +1.2, +0.5, −2.3, −6.1, −8.8. The residuals start positive and become increasingly negative. This curved pattern in the residuals suggests the relationship is not truly linear — there is a model assumptions error. A quadratic or square root model might fit better.Model assumptions error detected — patterned residuals indicate the wrong model type - 5
Step 5 — Assess Extrapolation Risk
The student wants to predict bounce height at x = 500 cm (double her largest value). Using the linear model: ŷ = 0.62(500) + 3.1 = 313.1 cm. But since the residuals already show increasing negative error, extrapolating this far is likely to produce an even larger overestimate. This prediction should be flagged as highly unreliable due to both model assumptions error and extrapolation error compounding together.Extrapolated prediction = 313.1 cm — unreliable due to compounding error sources
SECTION 7
Strengths & Limitations of Error Analysis
Understanding error sources is powerful, but error analysis itself has limitations. The table below compares what error analysis can and cannot do for you as a modeler.
| Strengths | Limitations |
|---|---|
| Helps you choose between competing models by comparing residuals and SSR values | Cannot tell you if you've missed a variable entirely — an unknown factor could be driving the data |
| Quantifies uncertainty so you know how confident to be in a prediction | Requires enough data to be meaningful; a handful of data points can give misleading error estimates |
| Residual plots reveal when a model type is inappropriate | A good-looking residual plot doesn't guarantee the model is correct — it only means no obvious structural problem was detected |
| Helps communicate reliability to others through margins of error and confidence intervals | People often misinterpret margins of error as guarantees rather than probabilistic ranges |
What error analysis can and cannot accomplish
KEY TAKEAWAY
SECTION 8
Connection to Advanced Methods
The error analysis concepts you've learned here form the foundation for more sophisticated techniques used in college statistics, data science, and scientific research. The table below previews how each concept you've learned connects to its advanced counterpart.
| What You Learned | Advanced Version | Where It's Used |
|---|---|---|
| Residuals and SSR | Coefficient of determination (R²), adjusted R², root mean square error (RMSE) | Statistics courses, data science, machine learning model evaluation |
| Percent error | Confidence intervals, standard error of the estimate | Scientific research, polling, clinical trials |
| Residual pattern analysis | Hypothesis testing on residuals, Durbin-Watson test, heteroscedasticity checks | Econometrics, regression analysis, quality control |
| Systematic vs. random error | Bias-variance tradeoff in machine learning | Artificial intelligence, predictive modeling, deep learning |
| Extrapolation caution | Cross-validation, train/test split, out-of-sample prediction | Data science, weather forecasting, financial modeling |
From high school concepts to advanced applications
You don't need to master these advanced tools right now, but recognizing that error analysis scales up is valuable. The habit of asking "Where could this model be wrong?" is the same whether you're fitting a line in Math 3 or training a neural network in a computer science lab. The logic stays the same — only the tools get more powerful.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
Every mathematical model contains error — the key skill is knowing where it comes from and how it affects your conclusions. Measurement error arises from the limited precision of tools and splits into random error (unpredictable scatter that averages out) and systematic error (consistent bias that does not average out). Model assumptions error occurs when you choose the wrong type of model for the data, and extrapolation error grows when you predict beyond the range of your data.
You can quantify errors using absolute error, percent error, and residuals. Examining the residual plot reveals whether errors are random (scattered) or patterned (indicating a structural problem). The sum of squared residuals (SSR) provides a single number to compare model fits, though a lower SSR alone doesn't guarantee a better model — you must also consider model complexity and real-world plausibility. Always ask: where could this model be wrong?