All 48 questions UPSC has asked on linear models and least squares in the Statistics Optional (Paper I, Linear Inference and Multivariate Analysis) from 1996 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Linear Inference and Multivariate Analysis topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
- ✓ Proof checked step by step for “prove that” and “examine whether” questions, every step was checked against the definitions and the standard theorems.
- ✓ Derivation checked step by step for derivations and approximations, every step was checked, and the result was also tested numerically.
- ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2026 · 5a 2026 · 5c 2026 · 6a 2025 · 5c 2025 · 6c 2024 · 5a 2023 · 6b(ii) 2022 · 5a 2022 · 8a 2020 · 5d 2020 · 6b 2019 · 5a 2019 · 5b 2018 · 5a 2018 · 8c 2017 · 5a 2017 · 6b 2017 · 7c 2016 · 5b 2016 · 6c 2015 · 5c 2015 · 6c 2014 · 5a 2014 · 8c 2013 · 5a 2013 · 5b 2012 · 5b 2012 · 5e 2011 · 5b 2007 · 6a 2007 · 6c 2006 · 4a 2005 · 6a 2004 · 5b 2004 · 6a 2003 · 5a 2001 · 5c 2000 · 5a 2000 · 5b 2000 · 6a 1999 · 9a 1999 · 9b 1998 · 9a 1998 · 10b 1997 · 9a 1997 · 9b 1996 · 9a 1996 · 9b
Let be independent observations from a population with mean and variance . Obtain the best linear unbiased estimator of and an unbiased quadratic estimator for .
Solution
BLUE of . Consider linear estimators .
- Unbiasedness: for all requires .
- Variance: .
Minimise subject to . With a Lagrange multiplier, , so all are equal: . (Directly: , with equality only when .) Hence
Unbiased quadratic estimator of . Consider . Using and : So is an unbiased quadratic estimator of . In matrix form , and .
✓ Proof checked step by step Every step was checked: minimising Σaᵢ² subject to Σaᵢ = 1 gives aᵢ = 1/n, and E Σ(Yᵢ − Ȳ)² = (n − 1)σ².
Discussing Gauss-Markov linear model with and = variance and covariance matrix of , show that
Solution
Gauss–Markov linear model. , where is an vector of observations, a known matrix of rank , a vector of unknown parameters and a vector of errors with So and : the observations are uncorrelated with a common variance. No distribution is assumed. The least squares estimator is , and the residual sum of squares is with .
Result. Let .
- is symmetric, and since .
- .
- So , and .
- .
- .
Hence So is an unbiased estimator of .
✓ Proof checked step by step Every step was checked: (I − H) is symmetric and idempotent with (I − H)X = 0, and its trace is n − p.
Let be any estimable linear function of parameters . Then prove that– (i) there exists a unique linear function of random variables such that and , where is the vector space generated by row vectors of and ; (ii) variance of is less than the variance of any other linear unbiased estimator.
Solution
Set-up. , , with of order . , the space spanned by the rows of , is the column space of , a subspace of . is estimable, so there is at least one with for all , i.e. .
(i) Existence. Let be the orthogonal projector onto , and put . Then , and since and is symmetric, so .
Uniqueness. Suppose both satisfy . Then , so is orthogonal to every column of , i.e. to . But . A vector orthogonal to itself is zero, so .
(ii) Minimum variance. Let be any linear unbiased estimator of , so . Write with as above. Then , so , and in particular . Hence with equality if and only if . So has smaller variance than any other linear unbiased estimator of : it is the unique BLUE.
(The BLUE equals for any solution of the normal equations .)
✓ Proof checked step by step Every step was checked: the projection of any unbiased coefficient vector onto the column space of A, its uniqueness, and the Pythagorean split of the variance.
If is a random sample from a standard normal population, then using quadratic forms show that the sample mean and sample variance are stochastically independent.
Solution
Quadratic-form result. If , a linear form and a quadratic form ( symmetric) are independent if and only if .
Proof of sufficiency. is symmetric, so over its non-zero eigenvalues, with orthonormal . If then , so for each . The normal variables and have covariance , so they are independent; and is a function of the only. Hence is independent of .
Application. Let be the vector of ones and . Now So and are stochastically independent.
By-products. is idempotent () with rank , so ; and with (Craig’s theorem gives the same independence).
✓ Proof checked step by step Every step was checked: X̄ = b′X with b = 1/n, (n − 1)S² = X′AX with A = I − J/n, and Ab = 0, which gives independence for normal X.
Consider the model: where is an vector of unobservable random variables such that and , unknown, is a positive definite matrix of known constants and . Then (i) Derive least square estimator of and (ii) Derive an unbiased estimator of
Solution
Note. Since is not a multiple of , the appropriate least squares estimator is the generalised least squares (Aitken) estimator, which minimises the weighted sum of squares .
(i) Estimator of . is positive definite, so there is a non-singular with (for example ), and . Transform: with and . This is an ordinary Gauss–Markov model, and has rank . Ordinary least squares on it minimises and the normal equations become . Hence It is unbiased, , with and by the Gauss–Markov theorem applied to the transformed model it is the BLUE of .
(ii) Unbiased estimator of . In the transformed model the residual sum of squares is and , where has trace . So is unbiased for .
✓ Derivation checked step by step Every step was checked: the transformation by Ω^(−1/2), the generalised least squares estimator (X′Ω⁻¹X)⁻¹X′Ω⁻¹Y and the unbiased estimator of σ² on n − k df.
How will you justify the usage of the principle of least squares in estimating the parameters of a linear regression model? With usual notations, for the regression model , show that the least square estimator of is
Solution
Why least squares?
- Optimality without a distribution. By the Gauss–Markov theorem, if and , the least squares estimator is the best linear unbiased estimator: no other linear unbiased estimator has smaller variance. Only the first two moments of the errors are needed.
- Maximum likelihood under normality. If , maximising the likelihood in is the same as minimising , so the LS estimator is also the MLE and is then efficient (minimum variance among all unbiased estimators).
- Geometry. is the orthogonal projection of onto the column space of : the closest point to the data among all possible mean vectors.
- Convenience. The criterion is differentiable, gives a closed-form solution, and leads directly to the distribution theory of and tests and to the analysis of variance.
Derivation. Minimise Using and for symmetric : If has full column rank , is non-singular and It is a minimum: the Hessian is positive definite, and directly, for any , because the cross term vanishes by the normal equations.
✓ Derivation checked step by step Every step was checked: the justifications (BLUE, ML under normality, projection) and the matrix derivation of the normal equations with the second-order condition.
Let three mutually independent variables and having common variance and be given. Show that the linear parametric function is estimable if and only if , clearly stating the assumptions used, if any.
Solution
Assumptions. are uncorrelated (here independent) with and common variance ; the parameters are unrestricted. A parametric function is (linearly) estimable if there is a linear function with for all , i.e. : must lie in the row space of .
Design matrix.
Condition. . For this to equal for all we need Adding the last two gives , so the equations are consistent if and only if
- Necessity: if is estimable, the equations hold, and then .
- Sufficiency: if , take and any with (for example ); then .
For example, and are estimable, but , and separately are not.
✓ Proof checked step by step Every step was checked: the row space of the design matrix is spanned by (1, 1, 0) and (1, 0, 1), and p lies in it exactly when p₁ = p₂ + p₃.
Define general linear model with usual assumptions. If where are mutually independent random variables with mean zero and variance , then find the least square estimators of and .
Solution
General linear model. , where () is observed, () is a known design matrix, () is unknown, and the errors satisfy (uncorrelated, equal variance; normal if tests are needed). usually has full column rank, and then .
Here. Normal equations: With : Their variances are each, and . The residual SS is on 1 df.
✓ Checked by computer We checked in Python: X′X = [[2, −1], [−1, 2]], β̂₁ = (2y₁ − y₂ − y₃)/3, β̂₂ = (y₁ + y₂ − 2y₃)/3, and the residual SS (y₁ + y₂ + y₃)²/3.
(i) What are orthogonal polynomials? How do you fit an orthogonal polynomial of degree ‘’? (ii) For the model , where is a matrix of rank , find out the value of
Solution
(This question is also listed under 3.3 Regression analysis. The worked solution is repeated here so that this page is complete.)
(i) Orthogonal polynomials. These are polynomials , with of degree , that are orthogonal over the observed values:
Fitting a polynomial of degree .
- Construct the by the recurrence (or take them from tables when is equally spaced).
- Fit . Since the columns are orthogonal,
- The SS due to the -th term is on 1 df, and the residual SS is on df. Each term can be tested with an ratio, and the degree is raised until the added terms become non-significant.
- If needed, expand the to write the fitted curve in powers of .
(ii) Expected residual sum of squares. Let and . Then is symmetric and idempotent (), and .
Since , Using : Hence So , the residual mean square, is an unbiased estimator of . (No normality is needed for this.)
✓ Derivation checked step by step Every step was checked: the construction and use of orthogonal polynomials, and E[Y′(I − H)Y] = (n − k)σ² from the trace of an idempotent matrix.
Define Gauss-Markov linear model. State and prove necessary and sufficient condition for the linear function of the parameters to be linearly estimable.
Solution
Gauss–Markov linear model. : is an vector of observations with where is a known matrix of rank and an unknown parameter vector. The observations are uncorrelated with equal variance; no distribution is assumed.
Definition. is linearly estimable if there is a vector such that for all .
Theorem. is linearly estimable if and only if belongs to the row space of (the column space of ), i.e.
Proof.
- Necessity. If for all , then (taking to be each unit vector in turn) , i.e. . So is a linear combination of the columns of , and appending to does not raise its rank.
- Sufficiency. If , then for some . Then for every , so is a linear unbiased estimator of .
Equivalent forms. Because , the condition is also: the equations are consistent; or for a generalised inverse . In particular, if every is estimable, and if only linearly independent functions are. When is estimable, its BLUE is for any solution of the normal equations.
✓ Proof checked step by step Every step was checked: unbiasedness requires X′c = l, so l must lie in the row space of X, and the rank and g-inverse forms of the condition.
Let be uncorrelated variables with common variance such that Compute residual mean square.
Solution
Model. is diagonal, so
Residual sum of squares. Expanding, (Check: is orthogonal to both columns of , so has mean zero and is the only error function.)
Residual mean square. The error df are , so which is an unbiased estimator of , since .
✓ Checked by computer We checked in Python: X′X = diag(6, 2), β̂₁ = (y₁ + 2y₂ + y₃)/6, β̂₂ = (y₁ − y₃)/2, and the residual SS (y₁ − y₂ + y₃)²/3 on 1 df.
In order to estimate two parameters and , a number of independent measurements are taken, each having errors with mean zero and variance . Suppose there are (i) observations with mean , (ii) observations with mean , and (iii) observations with mean . Set up this in the form of a standard linear model. What are the least square estimates of and ? Find , and .
Solution
Linear model. Call the three groups of observations ( values, mean ), ( values, mean ) and ( values, mean ), with totals and means . Then
Normal equations. , and
Least squares estimates. (This makes sense: estimates , and estimates .)
Variances. , so (Directly: has variance .) Also .
✓ Checked by computer We checked in Python and by hand: X′X = [[n + 2m, −2m], [−2m, 2m]], θ̂ = ȳ_A, φ̂ = ȳ_A + (ȳ_C − ȳ_B)/2, and the variances and covariance.
Consider a standard linear model with design matrix and unknown coefficients and . Which linear combinations have largest and smallest variance subject to ?
Solution
Variance of a combination. , so For , this quadratic form is largest at the eigenvector of with the largest eigenvalue, and smallest at the eigenvector with the smallest eigenvalue.
. Column 1 is and column 2 is : Its eigenvalues are : with eigenvector , and with eigenvector . has the same eigenvectors with eigenvalues and .
Answer.
- Largest variance: , , with .
- Smallest variance: , , with .
(The first five rows have , so they carry a lot of information about ; only the last two rows tell apart from .)
✓ Checked by computer We checked in Python: X′X = [[12, 8], [8, 12]], whose inverse has eigenvalues 1/20 and 1/4 with eigenvectors (1, 1)/√2 and (1, −1)/√2.
The period of oscillation, of a pendulum is where is the length of the pendulum and is the gravitational constant. The periods observed are () and lengths () of the pendulum, in an experiment. Assuming the errors of observations to be uncorrelated with zero means and variances , show that the best linear estimator of is
Solution
Model. Since , writing and gives a regression through the origin:
Least squares. Minimise Hence By the Gauss–Markov theorem (the model is linear in with uncorrelated, equal-variance errors), this least squares estimator is the best linear unbiased estimator of .
Variance. with . The are uncorrelated with variance , so
(An estimate of then follows as .)
✓ Proof checked step by step Every step was checked: the model tᵢⱼ = β√lᵢ + eᵢⱼ, the least squares normal equation, and V(β̂) = σ²/Σnᵢlᵢ.
For a model where , , , find BLUE’s of , . Suppose the model is not correct and the true model is Find the bias of the BLUE’s obtained.
Solution
BLUEs under the straight-line model. with and . By the Gauss–Markov theorem these are the BLUEs.
Bias under the true quadratic model. Now , with : In matrix form, the bias is with , the “alias matrix” of the omitted term. stays unbiased because the ’s are symmetric about 0, so the omitted column is orthogonal to the column.
✓ Checked by computer We checked in Python: X′X = diag(3, 2), β̂₀ = ȳ and β̂₁ = (y₃ − y₁)/2; under the quadratic model the biases are 2β₂/3 and 0.
are four independent variables with , and (for ). Verify whether and are estimable. If so, obtain their BLUEs. Also obtain the variances of the BLUEs.
Solution
Design. The distinct rows of (parameters ) are so the rank is 2. A function is estimable if and only if for some .
, . We would need (third element) and (fourth element), which is impossible. So is not estimable.
, . Take , : . ✓ So it is estimable:
BLUE. The best estimates of the two row functions are the means of the observations that estimate them: So Its coefficient vector is (column of ) (column of ), so it lies in the column space of , and this is the BLUE.
Variance.
✓ Checked by computer We checked: θ₁ + θ₃ is not in the row space of X, θ₂ + θ₃ + θ₄ = row₁ − row₂, so its BLUE is (Y₁ + Y₃ − Y₂ − Y₄)/2 with variance σ².
Show that in the model subject to , the estimator of is where . Note here that is , is , is and is of rank .
Solution
Problem. Minimise subject to , where is non-singular and () has rank .
Lagrangian. with a vector of multipliers.
Finding . The constraint gives is , positive definite (since is positive definite and has full row rank), and therefore invertible:
Result.
Check that it is the minimum. For any with , so we must minimise over the subspace , a positive definite quadratic: the stationary point above is the unique minimum. The increase in the residual SS due to the restriction is which is the numerator of the test of .
✓ Proof checked step by step Every step was checked: the Lagrangian, the solution for the multiplier and the resulting restricted estimator, which satisfies Cβ̂_C = 0.
Let , and , where , and are iid . Obtain best linear unbiased estimator (BLUE) of . Is this linear parametric function testable?
Solution
Model. is square and non-singular, so every parametric function is estimable and the least squares estimate solves exactly:
BLUE of . Its variance is (It is the only linear unbiased estimator: forces .)
Is it testable? The function is estimable, so a hypothesis such as is a testable linear hypothesis in principle. But here and , so the error degrees of freedom are : the residuals are identically zero and there is no estimate of . So it cannot be tested with a or test from these data. Only if is known can it be tested, with under . With more observations (error df ) the usual test would apply.
✓ Checked by computer We checked in Python: X is non-singular, β̂ = ((y₁ + y₃)/2, (y₃ − y₁)/2, y₂), the BLUE of 2β₁ − β₂ is (3y₁ + y₃)/2 with variance 2.5σ², and there are 0 error degrees of freedom.
If and be two estimates of the estimable function , and and are the projections of and respectively on (the column space of coefficient matrix ), then show that .
Solution
Set-up. , , and is the column space of (the estimation space). and are both unbiased for the estimable function .
Proof. Unbiasedness means, for all , Hence for all , so : the vector is orthogonal to every column of , i.e. .
Let be the orthogonal projector onto . Then , so
Meaning. Every unbiased estimator of has the same projection on the estimation space. That common projection is itself unbiased (since ), and it is the BLUE: . The part lies in the error space and only adds variance.
✓ Proof checked step by step Every step was checked: unbiasedness gives (l − m)′A = 0, so l − m is orthogonal to V_s and the two projections coincide.
Consider four random variables and with means and variances as follows: Determine the condition of estimability of the parametric function
Solution
Design matrix (parameters ):
Condition. is estimable if and only if lies in the row space of , i.e. for some . Then , and . So
Directly: , and the coefficient of is always the sum of the other two.
BLUE when estimable. , so its BLUE is For example is estimable (by ), but , , individually are not.
✓ Proof checked step by step Every step was checked: the row space is spanned by (1, 1, 0) and (1, 0, 1), giving the condition l₁ = l₂ + l₃.
Consider three independent random variables , and having common variance and , , . Determine the condition of estimability of the linear parametric function . Obtain a solution of the normal equation and the S.S. due to error.
Solution
Design.
Estimability. is estimable if and only if , i.e.
Normal equations : The first equation is the sum of the other two, so there are infinitely many solutions. Setting : (Any solution gives the same value of an estimable ; for example and .)
SS due to error. on df. So is unbiased for .
✓ Checked by computer We checked in Python: the estimability condition l₁ = l₂ + l₃, the solution β̂ = (0, y₂, (y₁ + y₃)/2) of the normal equations and the error SS (y₁ − y₃)²/2 on 1 df.
For the Gauss Markov Model , the estimator is the best linear unbiased estimator (BLUE) for iff is uncorrelated with all unbiased estimators of zero.
Solution
Definitions. In , is an unbiased estimator of zero if for all , i.e. . The linear unbiased estimators of are exactly with .
Theorem. is the BLUE of if and only if for every with .
Proof of “only if”. Let be the BLUE and an unbiased estimator of zero. For any real , is unbiased for , so So for all . If , choosing makes this , a contradiction. Hence .
Proof of “if”. Suppose is uncorrelated with every unbiased estimator of zero. Any other linear unbiased estimator of is , where is an unbiased estimator of zero. Then So has the minimum variance: it is the BLUE.
Remark. Here , so the condition is for all , i.e. : the BLUE’s coefficient vector lies in the estimation space, as in Q3.
✓ Proof checked step by step Every step was checked: both directions of the theorem, using the variance of t′Y + λa′Y for an unbiased estimator a′Y of zero.
Let be three independent observations having expectations Obtain least square estimates of , and . Can you obtain unbiased estimate of ? Justify your claim.
Solution
Model. The columns are mutually orthogonal (, , ), so
Least squares estimates. with variances , and , and zero covariances.
Unbiased estimate of ? No. Here and , so is square and non-singular. The fitted values reproduce the data exactly, , and the residual SS is identically zero, with error df. More generally, an unbiased quadratic estimator would need for all , i.e. ; since is invertible this forces , and then . So no unbiased estimator of exists from these three observations. Repeated observations (more data than parameters) are needed.
✓ Checked by computer We checked in Python: the columns of X are orthogonal, X′X = diag(3, 2, 6), and with n = rank = 3 the residuals are identically zero.
In the Gauss-Markov set up a least square estimate is given by a solution of the system: (i) Justify the above statement. (ii) Establish that the above system of equations is always consistent.
Solution
(i) Justification. Let be any solution of . For any , The last term is zero because . The middle term is . Hence so every solution of the normal equations is a least squares estimate. Conversely, at a minimum the gradient must vanish, so every least squares estimate solves the normal equations. (When is not of full rank there are many solutions, but , the residual SS and for estimable are the same for all of them.)
(ii) Consistency. The system is consistent if lies in the column space of . We show :
- , since .
- If , then , so , so , so . Hence , i.e. .
So (equivalently ). Since for any , it lies in , and the normal equations are always consistent, whatever is and whatever the rank of . A solution is for any generalised inverse.
✓ Proof checked step by step Every step was checked: the decomposition of S(β) that shows any solution of the normal equations minimises it, and consistency from C(X′X) = C(X′).
Consider the following linear model: where and are parameters, . ’s are all independently distributed. Derive normal equations and obtain the BLUE of . Also find the variance of the BLUE.
Solution
Design matrix. Reading the coefficients of : The columns are orthogonal and each has squared length 4, so .
Normal equations : Each is of the corresponding contrast, with and zero covariances.
BLUE of . Adding the four estimates: This is natural, since exactly. By the Gauss–Markov theorem it is the BLUE.
Variance. (There are no error df here: equals the number of parameters.)
✓ Checked by computer We checked in Python: X is a 4 × 4 Hadamard matrix, X′X = 4I, and the BLUE of θ₁ + θ₂ + θ₃ + θ₄ is y₁ with variance σ².
Consider a model , ’s are i.i.d. . Obtain least squares solutions of and . When is a linear parametric function of ’s (only) estimable? Derive a test statistic for testing .
Solution
Note on the question. The sum in runs over the treatments: .
Least squares. Minimise . The normal equations are The first equation is the sum of the others, so the rank is with parameters: one restriction is needed for a unique solution. With : The residual SS is on df, and .
Estimability of . , so the estimable functions are the linear combinations . A function of the only must have zero coefficient of , so is estimable if and only if , i.e. it is a contrast. Its BLUE is which does not depend on the restriction used.
Test of (). Under normality, , independent of SSE. So and we reject at level if . Equivalently, where the numerator is the single-df sum of squares due to the contrast.
✓ Derivation checked step by step Every step was checked: the normal equations of the one-way model, their solution under Σαᵢ = 0, the contrast condition for estimability, and the t test.
and are independent stochastic variables with common variance and and (i) Examine whether is estimable. (ii) Find the best unbiased estimator of . (iii) Obtain the variance of the best unbiased estimator of .
Solution
Design. With parameters , the distinct rows of are (for ) and (for ); the rank is 2. A function is estimable iff .
(i) Is estimable? needs , and : impossible. So is not estimable. (Any ; to get we need , and the total zero, a contradiction.)
(ii) Best unbiased estimator of . : , , . ✓ Estimable, since . The BLUE is (Its coefficient vector is constant within the two groups, so it lies in the estimation space; by Gauss–Markov it is the best linear unbiased estimator.)
(iii) Variance.
✓ Checked by computer We checked: α₁ is not in the row space spanned by (1, 1, 0) and (1, 0, 1), α₁ − α₂ is, and its BLUE (Y₁ + Y₂ − Y₃ − Y₄)/2 has variance σ².
Derive the normal equations for estimating the parameters of a linear regression model by the method of least squares.
Solution
Model. , , with , and uncorrelated errors. In matrix form , with .
Least squares. Choose to minimise the sum of squared errors Setting each partial derivative to zero:
Normal equations. There are equations in unknowns. In matrix form, and give The Hessian is positive (semi-)definite, so the solution is a minimum. For simple regression () these reduce to and .
✓ Derivation checked step by step Every step was checked: the sum of squares criterion, its partial derivatives and the matrix form X′Xβ = X′y.
Assuming the model where , and are the errors, obtain least square estimates of and .
Solution
Assumptions. All errors are uncorrelated with mean zero and a common variance .
Least squares. Minimise Dividing by :
Solution.
Check. . ✓ The variances are , smaller than for alone, because carries extra information about (and ).
✓ Checked by computer Every step was checked: the normal equations 2m₁ + m₂ = x̄ + z̄ and m₁ + 2m₂ = ȳ + z̄ and their solution.
Let be a random vector distributed as Derive necessary and sufficient conditions for the quadratic form to be distributed as .
Solution
Result. Let and a symmetric matrix. Then
Spectral form. Write with orthogonal and . Put . Then , the are iid , and
Sufficiency. If , then , so each is 0 or 1. If of them equal 1, is a sum of independent squared standard normals, i.e. , with .
Necessity. The mgf of is for near 0. If this is , then , so Both sides are polynomials in ; by unique factorisation, the roots of the left side (for ) must all equal the root of the right, with multiplicity . So each non-zero equals 1 and exactly of them are non-zero. Hence , so .
Remarks. If , the same condition gives a non-central . For a general , the condition is (equivalently idempotent). Examples: , and .
✓ Proof checked step by step Every step was checked: the spectral decomposition, the mgf of Y′AY/σ², and the argument that the mgf is chi-square only when every eigenvalue is 0 or 1.
In a Gauss-Markoff set-up, define an estimable parametric function. Show that if , then every parametric function is estimable where we consider the set-up
Solution
Definition. In the Gauss–Markov set-up , a parametric function is estimable if it has a linear unbiased estimator, i.e. there exists () with equivalently : belongs to the column space of (the row space of ).
Proof that every function is estimable when . The row space of is a subspace of of dimension , so it is the whole of . Hence every lies in it, and has a solution: every is estimable.
Explicitly. If , () has rank and is non-singular. For any , take Then So is a linear unbiased estimator of .
Since , it is in fact the BLUE, with . In particular each is estimable. (Conversely, if every is estimable then each unit vector lies in the row space, so .)
✓ Proof checked step by step Every step was checked: with r(X) = p the row space of X is all of Rᵖ, so every l lies in it, and l′β̂ is the BLUE.
Discuss least squares method of estimation and the relation between least squares estimators and best linear unbiased estimators.
Solution
Least squares method. In the linear model , with and , the method of least squares estimates by the value that minimises the sum of squared deviations of the observations from their expectations: Differentiating gives the normal equations ; if has full rank, . Geometrically, is the orthogonal projection of onto the column space of . Least squares needs no distributional assumption. The residual SS , divided by , is an unbiased estimator of .
Relation with BLUEs (Gauss–Markov theorem). For any estimable , the least squares estimator is the best linear unbiased estimator.
Proof (full rank case). with ; it is linear and unbiased. Any other linear unbiased estimator satisfies . Then and so with equality only if .
Points to note.
- The equivalence is between least squares estimators and best linear unbiased estimators. It holds under the assumptions and ; normality is not needed.
- If with , ordinary least squares is still unbiased but no longer best; the BLUE is then the generalised least squares estimator .
- Under normality, the least squares estimators are also maximum likelihood estimators and have minimum variance among all unbiased estimators, linear or not.
- Non-linear or biased estimators (ridge regression, for example) can have smaller mean squared error than least squares.
✓ Answer checked step by step Every step was checked: the least squares principle, the normal equations and the Gauss–Markov argument that least squares estimators are BLUEs.
Consider the model with the usual assumptions. Determine so that the BLUE’s of and are uncorrelated.
Solution
Condition. In the model , , the BLUEs are with For two parameters, is diagonal exactly when is diagonal. So are uncorrelated if and only if the two columns of are orthogonal.
Here.
With . , and with and .
✓ Checked by computer We checked in Python: the off-diagonal element of X′X is 1 + α, so α = −1 makes X′X = diag(6, 3) and the BLUEs uncorrelated.
Show that a linear function of observations belongs to the error space if and only if its coefficient vector is orthogonal to the columns of the matrix X in the usual linear model .
Solution
Definitions. In , , , a linear function belongs to the error space (is an error function, or a linear zero function) if The estimation space is the column space , and the error space is its orthogonal complement.
Theorem. belongs to the error space if and only if is orthogonal to every column of , i.e. .
Proof. .
- If , then for every , so has zero expectation identically: it is an error function.
- Only if: suppose for all . Taking (the -th unit vector) gives , where is the -th column of . So is orthogonal to every column of , i.e. .
Consequences. The error space has dimension , where . Every error function is uncorrelated with every BLUE, since when and . If is an orthonormal basis of error functions, then and .
✓ Proof checked step by step Every step was checked: E(c′Y) = c′Xβ vanishes for all β exactly when X′c = 0.
For the model show that is estimable if and only if .
Solution
Design. with , .
Proof. is estimable iff there is with for all , i.e.
- Necessity. Adding the last two equations gives , and so .
- Sufficiency. If , then satisfies all three equations: .
So is estimable if and only if .
BLUE. For such a function, , so the BLUE is
✓ Proof checked step by step We checked: the row space of X is spanned by (1, 1, 0) and (1, 0, 1), so λ′β is estimable exactly when λ₁ = λ₂ + λ₃.
If is a general linear hypothesis model of full rank. Find the estimate of the unknown parameter using appropriate method when the distribution of e is unspecified.
Solution
Setting. , with of order and rank (full rank), , . The distribution of is not specified, so maximum likelihood cannot be used. The appropriate method is least squares, which needs only the first two moments.
Estimation. Minimise : is non-singular (full rank), so The Hessian is positive definite, so this is the minimum.
Properties.
- Unbiased: .
- Dispersion: .
- Gauss–Markov: for every , is the BLUE of , i.e. it has the smallest variance among all linear unbiased estimators.
- is estimated without bias by .
If, later, normality is assumed, the same is the maximum likelihood estimator, and allows exact and tests.
✓ Derivation checked step by step Every step was checked: the least squares estimator for the full-rank model, its unbiasedness and dispersion, and its BLUE property without any distributional assumption.
Fill up the blanks in parts (i), (ii) and (iii) and answer (iv). (i) The arithmetic mean of a positive valued statistical variable is than the reciprocal of the arithmetic mean of the reciprocal of the variable. (ii) If one observation is missing in a Randomized Block Design with v treatments and b blocks, in the Analysis of Variance Table, the number of degrees of freedom for treatments will be and that for error will be (iii) The Gauss-Markov Theorem requires the error components to have mean values, variance and all pair-wise covariance’s to be (iv) Write down the structure of the Analysis of Variance Table for a Latin Square Design of order m.
Solution
(i) The arithmetic mean of a positive valued variable is greater than (or equal to) the reciprocal of the arithmetic mean of the reciprocals of the variable. (The latter is the harmonic mean, and AM HM, with equality only when all values are equal.)
(ii) With one observation missing in an RBD with treatments and blocks, the treatment degrees of freedom are (unchanged), and the error degrees of freedom are (one less than usual, because one value has been estimated). The total df also fall by one, to .
(iii) The Gauss–Markov theorem requires the error components to have zero mean values, equal (constant) variance , and all pair-wise covariances to be zero (uncorrelated errors).
(iv) ANOVA table for an Latin square design:
| Source | df | SS | MS | F |
|---|---|---|---|---|
| Rows | SSR/ | MSR/MSE | ||
| Columns | SSC/ | MSC/MSE | ||
| Treatments | SST/ | MST/MSE | ||
| Error | by subtraction | MSE | ||
| Total |
Here is the grand total and , , are the row, column and treatment totals. The treatment effect is tested with on df.
✓ Answer checked step by step We checked each answer: AM ≥ HM, the degrees of freedom with one missing value, the Gauss–Markov error conditions and the Latin square ANOVA layout.
In connection with the Gauss-Markov linear models, what do you mean by Design matrix and Normal equations? Discuss the least squares principle and use it to derive the normal equations.
Solution
Gauss–Markov linear model. :
Design matrix. is the known matrix whose element is the coefficient of the parameter in . Its rows describe the conditions (the levels of factors or values of regressors) under which each observation is taken, which is why it is called the design matrix. For example, in , , the rows are and . In regression its columns are the values of the regressors; in experimental designs they are 0–1 indicators of treatments and blocks.
Least squares principle. Estimate by the value that makes the observed as close as possible to its expectation , measured by the sum of squared deviations: It requires no distributional assumption, and for the Gauss–Markov model it gives BLUEs of all estimable functions.
Normal equations. so These linear equations are the normal equations: they say that the residual vector is normal (orthogonal) to every column of . They are always consistent. If , the solution is unique, ; otherwise there are many solutions, , but they give the same fitted values and the same estimates of estimable functions.
✓ Derivation checked step by step Every step was checked: the definition of the design matrix, the least squares criterion and the derivation of X′Xβ = X′Y.
Identify, giving reasons, which of the following models are linear? Wherever possible, suggest a transformation that will result in a linear model for : (i) (ii)
Solution
Linear model. A model is linear if is a linear function of the parameters (not necessarily of ), and the error enters additively with mean zero: , .
(i) . Linear. It is linear in ; the regressor is simply . No transformation of is needed: take and regress it on .
(ii) . It is linear in , but it is not a linear model in the standard form, because the error term is non-negative and has non-zero mean, (if ). So : the intercept cannot be separated from , and the error is skewed (under normal , ). No transformation turns it into a model in with zero-mean errors. It can be rewritten as a linear model in with errors of variance (under normality). Least squares then estimates and without bias, but is not identifiable unless is known, and normal-theory tests do not apply.
(For contrast, a model such as is non-linear but becomes linear under : .)
✓ Answer checked step by step We checked each model for linearity in the parameters and the behaviour of the error term.
Consider the following linear model Where ’s are i.i.d. variables (i) Show that is estimable if and only if and . (ii) Obtain the BLUe of and
Solution
Note on the question. With the model as printed, the design matrix has rank 4, not 3, so only the first condition, , is needed for estimability. The second condition, , is not necessary: for example alone is estimable although . Part (ii) is unaffected, because both functions asked about satisfy both conditions. (The sign of does not matter, since has the same mean and variance.)
Design matrix (columns ): and . The null space of is spanned by : check .
(i) Estimability. is estimable iff lies in the row space of , which is the orthogonal complement of the null space. So This is necessary and sufficient as the model is printed.
(ii) BLUEs. Both functions satisfy , so both are estimable. The BLUE of is with , the unique unbiased coefficient vector in the column space of .
, : (Check: the coefficient of is , of , of , of , of .)
, : (Check: : ; : ; the others give 0.)
Error SS. There is error df. The error function is (its coefficient vector is orthogonal to every column of ), so
✓ Checked by computer We checked in Python: the design matrix has rank 4 with null vector (−1, 1, 0, 1, 0), the two BLUEs have coefficients (−4, 15, −1, 3, 19)/18 and (−20, 21, −5, −21, 41)/36 with variances 17σ²/9 and 83σ²/36, and the error SS is (4y₁ + 3y₂ + y₃ − 3y₄ − y₅)²/36.
State and prove Gauss-Markoff theorem.
Solution
Gauss–Markov theorem. In the linear model with () known, the least squares estimator of any estimable function is the best linear unbiased estimator (BLUE): it has the smallest variance among all linear unbiased estimators of . Here is any solution of .
Proof (full rank, so ; the general case uses a generalised inverse in the same way).
Step 1: linear and unbiased. with , and
Step 2: any other linear unbiased estimator. Let be unbiased for : for all , so . Write . Then .
Step 3: orthogonality.
Step 4: compare variances. with equality if and only if , i.e. .
So is the unique BLUE, with . In matrix terms, for any linear unbiased estimator of , is non-negative definite.
Remarks. The theorem needs only zero-mean, uncorrelated, equal-variance errors, not normality. It says nothing about non-linear or biased estimators. If , the BLUE is the generalised least squares estimator (Aitken’s theorem).
✓ Proof checked step by step Every step was checked: unbiasedness of l′β̂, the decomposition of any other unbiased coefficient vector, and the variance inequality.
and are uncorrelated observations with a common variance and expectations (i) Show that is estimable if and only if . (ii) Find an unbiased estimate of .
Solution
Design. , :
(i) Estimability. . Equating this to for all : These are consistent if and only if (add the last two). If , then works. So is estimable iff .
(ii) Unbiased estimate of . The error space has dimension . The vector is orthogonal to every column of , so is an error function: and . Hence so is an unbiased estimate of (on 1 df). The same value follows from with any solution of the normal equations, e.g. .
✓ Checked by computer We checked: the row space of X is spanned by (1, 1, 0) and (1, 0, 1), giving l₁ = l₂ + l₃, and the error SS is (y₁ − y₃)²/2 on 1 df.
Discuss least square estimate and show that least-square estimates are the same as the best linear estimates in linear estimation.
Solution
Least squares estimate. In the linear model , , , a least squares estimate of is any that minimises equivalently any solution of the normal equations . The least squares estimate of an estimable function is , which is the same for every solution . Geometrically, is the orthogonal projection of onto the estimation space , and the residual lies in the error space.
Least squares estimates are best linear unbiased estimates. Let be estimable, so for some .
- Linear and unbiased. Let ; it lies in , and . Since for estimable , .
- Any other linear unbiased estimator has , so satisfies : is orthogonal to , and in particular to .
- Variance. So the least squares estimate has the minimum variance among all linear unbiased estimators, and it is the only one that attains it.
Conclusion. In linear estimation, the least squares estimate of every estimable parametric function coincides with its best linear unbiased estimate. This is the Gauss–Markov theorem; it holds without any distributional assumption, but requires uncorrelated errors with equal variance. (With unequal variances or correlations, the best estimates are weighted or generalised least squares estimates.)
✓ Answer checked step by step Every step was checked: the least squares principle and the Gauss–Markov proof that least squares estimates of estimable functions are the best linear unbiased estimates.
For the model , we have , , then test statistic for , where , , , find the distribution of F and state its properties.
Solution
Note. Assume , of order and rank .
Rewriting . With , so Also with , and (since ).
Distributions.
- , so . Under , .
- , since is idempotent of rank .
- is a function of and a function of ; these are jointly normal and uncorrelated (), so they are independent. (Equivalently, .)
Hence, under , We reject at level if .
Properties.
- Non-null distribution. In general, is non-central with non-centrality , so has the non-central distribution. Its power increases with , and exactly when .
- Mean. for , which equals under .
- Likelihood ratio. is equivalent to the likelihood ratio test of : .
- Confidence region. is the confidence ellipsoid for , .
- Invariance. does not change if the scale of or the parametrisation of is changed (non-singular transformation of the columns), and it is free of .
- For , with .
✓ Derivation checked step by step Every step was checked: Q₂(β₀) = (β̂ − β₀)′X′X(β̂ − β₀), the chi-square distributions of Q₁ and Q₂, their independence and the non-central F under H₁.
In connection with the problem of linear estimation, explain the terms ‘estimable parametric function’, ‘error function’ and ‘best linear unbiased estimator (BLUE)’.
Solution
Set-up. The linear model : , , with () of rank .
Estimable parametric function. A linear parametric function is estimable if it has at least one linear unbiased estimator, i.e. there is with So is estimable iff lies in the row space of , equivalently . If , every is estimable. Example: in , , the function is estimable but is not.
Error function. A linear function is an error function (a linear zero function) if Its coefficient vector is orthogonal to the columns of ; the error functions form the error space of dimension . They carry information only about : the residual SS is the sum of squares of orthonormal error functions, and . Example: if , then is an error function.
Best linear unbiased estimator (BLUE). A linear function is the BLUE of an estimable if
- it is unbiased, for all ; and
- for every other linear unbiased estimator of .
By the Gauss–Markov theorem the BLUE exists, is unique, equals for any solution of the normal equations , has coefficient vector in the column space of , is uncorrelated with every error function, and has variance .
✓ Answer checked step by step Every step was checked: the three definitions, the condition l ∈ C(X′) for estimability, the condition X′c = 0 for an error function, and the Gauss–Markov form of the BLUE.
Consider three independent random variables , and having common variance and Show that and are estimable. Find their best linear unbiased estimates.
Solution
Note on the question. The second expectation is printed as ; it should read .
Estimability. so , the number of parameters. Hence the row space of is all of , and every linear function of , in particular and themselves, is estimable. (For example .)
Normal equations.
BLUEs. (Check: .)
Variances. From : The variances are large because the rows of are nearly collinear. The error SS is on 1 df.
✓ Checked by computer We checked in Python: X′X = [[29, 38], [38, 50]] with determinant 6, μ̂₁ = (−7y₁ − y₂ + 5y₃)/3, μ̂₂ = (11y₁ + 2y₂ − 7y₃)/6, with variances 25σ²/3 and 29σ²/6.
With the usual Gauss-Markov linear model, define the estimation space and the error space. Obtain expressions for the SS due to error and the SS due to all possible BLUEs of parametric functions. Find the expectation of the former.
Solution
Model. , with of order and rank . Let be the orthogonal projector onto , .
Estimation space. The set of all BLUEs of estimable functions, or equivalently the space of their coefficient vectors, is the column space of : (The BLUE of has its coefficient vector in .)
Error space. The set of all linear functions with zero expectation, for all , i.e. : The two spaces are orthogonal complements in , so every linear function of splits uniquely into a BLUE plus an error function, and BLUEs are uncorrelated with error functions.
SS due to error. Take an orthonormal basis of the error space. Then where is any solution of the normal equations.
SS due to all BLUEs (the SS due to the parameters, or regression SS). With an orthonormal basis of the estimation space, So .
Expectation of SSE. Each error function has and , so and (Equivalently, .) Hence is unbiased for . Also .
✓ Derivation checked step by step Every step was checked: the definitions of the two spaces, SSE = Y′(I − P)Y, the SS due to BLUEs = Y′PY = β̂′X′Y, and E(SSE) = (n − r)σ².
Let and be the LS estimators of two estimable functions and respectively. Obtain the variances and covariances of the estimators.
Solution
Set-up. , with a solution of the normal equations (any generalised inverse; in the full-rank case). and are estimable, so for some , and hence
The estimators as linear functions of .
Covariance. Using and choosing a symmetric generalised inverse:
Variances (put ):
Invariance. For estimable , the value of does not depend on which generalised inverse is used: writing , , and the projector is unique. In the full-rank case these reduce to , and , the corresponding elements of . They are estimated by replacing with .
✓ Derivation checked step by step Every step was checked: l′β̂ = c′Y with c = X(X′X)⁻l, the variance and covariance formulas, and their invariance to the choice of generalised inverse.
More on Linear Inference and Multivariate Analysis
- All Statistics PYQ solutions, topic by topic
- Linear Inference and Multivariate Analysis topic-wise PYQs (questions only, for practice)
- Statistics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Statistics booklist
Questions: UPSC Civil Services (Main) Examination, Statistics Paper I, 1996–2026. Solutions: Optional Province. Found an error? Tell us.

