top of page

ISS 2017 Statistics Paper-2 Solution: Question 19 (Estimate of Error Variance)

1 day ago
6 min read

This post continues our ongoing question-by-question walkthrough of the ISS Statistics Paper-2 previous year papers. Today we pick up right where the series left off and work through 2017 Paper-2, Question 19 — a short-looking question about the error variance estimator in a simple linear model that hides two classic examiner traps.


Quick Summary


  • Topic: Estimate of error variance (residual variance) in a two-variable linear regression model

  • Question reference: ISS 2017, Statistics Paper-2, Question 19

  • Correct answer: Option (a), e′e / (n − 2)


Here is the question exactly as it appears in the paper:


19. The estimate of error variance in two-variable linear model is


  • (a) e′e / (n − 2)

  • (b) ee′ / (n − 2)

  • (c) e′e / (2 − n)

  • (d) ee′ / (2 − n)

Step 1: What "Two-Variable Linear Model" Means Here

A "two-variable linear model" is simply the name given to ordinary simple linear regression — one response variable y and one explanatory variable x. Written out for observations i = 1, 2, …, n, the model is:


yi = α + βxi + εi


Don't let the name confuse you: "two-variable" refers to y and x together, but the model actually has two unknown parameters to estimate — the intercept α and the slope β. That count of two parameters is the entire key to this question, so hold onto it.

Step 2: Writing Down the Residual Vector

Once we fit the model by least squares, we get fitted values ŷi = α̂ + β̂xi, and the residual for the i-th observation is:


ei = yi − ŷi


Stack all n residuals into a column vector e = (e1, e2, …, en)′. This is an n × 1 column vector — n rows, 1 column. Keep this shape in mind; it is exactly what separates the right option from two of the wrong ones.

Step 3: e′e Is a Number, ee′ Is Not

Now look at what e′e and ee′ actually compute, treating e strictly as a matrix of size n × 1:


  • e′e is (1 × n) multiplied by (n × 1), which gives a 1 × 1 result — a single number. Written out, e′e = e1² + e2² + … + en², the familiar sum of squared residuals (also called the Residual Sum of Squares, RSS).

  • ee′ is (n × 1) multiplied by (1 × n), which gives an n × n matrix, full of cross-products eiej.


A variance is, by definition, a single number. So whatever the correct formula for error variance is, its numerator has to be e′e, never ee′. That alone eliminates options (b) and (d) without doing any further algebra.


Pro Tip: Whenever an MCQ gives you both e′e and ee′ as competing numerators, resist the urge to jump straight to the degrees-of-freedom part of the question. Settle the scalar-vs-matrix issue first — it costs ten seconds and instantly removes half the options. This is exactly the kind of two-second elimination habit that's usually drilled into students early at a place like Sunrise Classes, so that by exam day it happens almost automatically instead of under time pressure.

Step 4: Why the Denominator Must Be n − 2

We're left comparing (a) e′e / (n − 2) against (c) e′e / (2 − n). The difference is only the sign of the denominator, so we need to pin down the correct degrees of freedom from first principles.


The general rule for the unbiased estimator of error variance in a linear model Y = Xβ + ε is:


σ̂² = e′e / (n − p)


where n is the number of observations and p is the number of parameters estimated. We established in Step 1 that the two-variable model estimates exactly two parameters, α and β. So p = 2, which gives:


σ̂² = e′e / (n − 2)


To see why subtracting p makes sense, think of degrees of freedom as "how many residuals are free to vary." Once you fit a model with p parameters by least squares, the residual vector e must satisfy p independent linear constraints (coming from the normal equations X′e = 0). Out of n residuals, only n − p of them are genuinely free; the rest are determined by those constraints. So the sum of squares e′e is effectively built from only n − p independent pieces of information, and dividing by n − p (rather than by n) is what keeps the estimator unbiased for σ².


If you want the fully formal version: write e = (I − H)Y where H = X(X′X)−1X′ is the hat matrix. Since H is idempotent with trace(H) = p, and since E(e′e) = σ²·trace(I − H) = σ²(n − p), dividing e′e by (n − p) makes E(σ̂²) = σ² exactly — the defining property of an unbiased estimator.

Step 5: Why (2 − n) Cannot Be Right

Option (c) simply flips the sign of the denominator to (2 − n). For any realistic sample size, n is greater than 2, which makes (2 − n) a negative number. Since e′e is a sum of squares and can never be negative, dividing it by a negative quantity would produce a negative variance estimate — which is impossible, because variance is always zero or positive. This sign-flip is a pure examiner trap with no algebra behind it at all; spotting it is just a matter of pausing to ask "could this answer even be a valid variance?"

Final Answer

Putting Steps 3 and 4 together: the numerator must be the scalar e′e (ruling out b and d), and the denominator must be the positive quantity (n − 2) (ruling out c). That leaves:


σ̂² = e′e / (n − 2)— Option (a)


This matches the official ISS 2017 Paper-2 answer key, which also lists (a) as correct for Question 19.

Why This Question Matters

This question looks like a one-line recall item, but it's really testing whether you understand why the error variance formula has the shape it does, not just whether you've memorized it. The same n − p logic reappears constantly across the paper — in ANOVA residual degrees of freedom, in F-tests for overall regression significance, and in confidence intervals for regression coefficients. Students who take the time to actually derive this formula once, instead of just memorizing "n minus 2," tend to handle every later degrees-of-freedom question in the paper far more confidently, because they're recognizing the same underlying idea rather than pattern-matching a new one each time.

Frequently Asked Questions

Why is it specifically n − 2 and not n − 1 for this model?

The subtraction is always by the number of parameters estimated, not by a fixed constant. The two-variable (simple regression) model estimates two parameters, the intercept α and the slope β, so two degrees of freedom are used up in fitting the model, leaving n − 2 for estimating error variance.

What is the practical difference between e′e and ee′?

e′e is a scalar: the sum of the squared residuals, used directly as a measure of total unexplained variation. ee′ is an n × n matrix of all pairwise products of residuals; it has no meaning as a "variance" and is used only in a few specialized matrix derivations, never as a direct variance estimate.

Is e′e the same thing as the Residual Sum of Squares (RSS) from an ANOVA table?

Yes. Whether you call it e′e, RSS, or SSE, it refers to the same quantity: the sum of squared differences between observed and fitted values. Dividing it by the residual degrees of freedom gives the Mean Square Error (MSE), which is exactly the error variance estimate asked about here.

Could the answer ever be negative in some edge case?

No. e′e is a sum of squares, so it is always greater than or equal to zero, and for any valid regression n is strictly greater than 2, making (n − 2) strictly positive. The ratio of a non-negative number to a positive number can never be negative, which is precisely why option (c) is mathematically impossible.

Is this error variance estimator biased or unbiased?

It is unbiased. Dividing e′e by (n − 2) rather than by n is exactly what corrects for the two degrees of freedom used in estimating α and β, so that the expected value of the estimator equals the true error variance σ².

How does this generalize beyond the two-variable case?

For a general linear model with p estimated parameters (an intercept plus however many regressors), the unbiased error variance estimator is always e′e / (n − p). The two-variable model is just the special case where p = 2.


If anything here felt confusing, or if you worked through it and got a different option, drop a comment below — walking through where the derivation diverges is often the fastest way to fix the misunderstanding for good. And if a fellow ISS aspirant is stuck on the same question, feel free to pass this post along to them.

Recent Posts

See All

Comments


bottom of page