TestPapersFreeTHE EDUCATION COLLECTION
SINGAPORE EXAMINATION PAPERS
Primary · Secondary · Junior College
Browse schools

THE SCHOOL DIRECTORY

Primary schools 35
Secondary schools 123
Junior College schools 23
Levels, subjects & past years

Primary

Secondary

Junior College

Explore Singapore school collections, subjects and past years.

EDUCATION / ARTICLE

H2 Maths Residuals: What a Zero Sum of Squares Actually Proves

TestPapersFree · 2026-11-16 08:08:39

A student in a public H2 Mathematics discussion asked what should be deduced when the sum of squared residuals is zero. Their concern was whether a conclusion about data lying on a line needed an additional accusation about how the experiment was conducted. The mathematical part has a precise answer. Claims about the origin of data require separate evidence.

The 2026 SEAB H2 Mathematics syllabus 9758 includes linear regression and least squares. The examples here explain that idea using original, deliberately small datasets. They do not reproduce the older examination question or verify its official mark scheme.

Read a residual as an observed-minus-fitted value

For a regression of y on x with fitted line y = a + bx, the residual at a data point is its observed y value minus a + bx at the same x. On a scatter diagram, this is the signed vertical difference from the line. A point above the line has a positive residual; a point below it has a negative residual.

Squaring changes what can happen when those differences are added. Every squared residual is non-negative. Therefore, if their sum is exactly zero, every individual squared residual must be zero. Every residual is consequently zero, and every observed point lies on the fitted line. A positive contribution could not be cancelled by a negative square because no squared residual is negative.

Test the distinction with a tiny example

Take the original data points (1, 3), (2, 5) and (3, 7). The fitted line is y = 1 + 2x. Its fitted values are 3, 5 and 7, so all three residuals are zero. Their squares sum to zero. For these listed data, “every point lies on the fitted line” is a complete mathematical consequence.

Now change only the middle observation to 6. The data become (1, 3), (2, 6) and (3, 7). Refitting gives y = 4/3 + 2x. The residuals are −1/3, 2/3 and −1/3. They add to zero, but their squared sum is 1/9 + 4/9 + 1/9 = 2/3. The ordinary sum being zero does not mean a perfect fit. Positive and negative residuals have cancelled.

This is why a question's word “squares” matters. Even the simpler residual pair +1 and −1 has sum zero and squared sum two. Before interpreting a statistic, copy its definition or notation carefully. Confusing these two sums changes the conclusion even when all the arithmetic is correct.

A perfect fit does not establish how data were collected

The first example was constructed by choosing y = 1 + 2x. Its exact fit is unsurprising because the construction was declared. A real question might instead provide rounded observations, calculated quantities or physical measurements. Whether an exact line is surprising depends on that context. The algebra alone cannot identify dishonesty, nor can it establish that the same relationship will hold for future observations.

Answer in layers. First state the consequence that must follow from the statistic: all the listed points lie on the fitted line. If asked to comment on the experiment, use the information supplied about measurement, rounding or the model. Distinguish a concern requiring investigation from a conclusion the given data actually prove. Avoid adding a dramatic explanation merely because it sounds more evaluative.

Check apparent zeros on a calculator

A displayed zero can also be a presentation issue. A very small positive quantity may round to zero at a chosen precision. If the question states that the exact squared sum is zero, use that premise. If you have calculated it yourself, inspect stored precision and the residuals before declaring an exact fit. Check the paired data entries too: changing one value or misaligning a row changes the fitted line.

Use relevant questions from the JC prelim collection to practise writing one sentence of mathematical deduction and one separate sentence of contextual interpretation. Keep the variables and units in both sentences. You can then see whether the context sentence follows from evidence or merely repeats a claim you have heard about experiments.

← More articles

Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

ONE COLLECTION. EVERY STAGE.

Find your next practice paper.

PRIMARY

Strong foundations.

Explore Primary school papers →

SECONDARY

The next step.

Explore Secondary school papers →

JUNIOR COLLEGE

A wider horizon.

Explore Junior College school papers →