All 31 questions UPSC has asked on regression analysis in the Statistics Optional (Paper I, Linear Inference and Multivariate Analysis) from 1995 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 · 6c 2025 · 5a 2024 · 6c 2023 · 5c 2022 · 8a 2021 · 5a 2021 · 5c 2021 · 8b 2020 · 5a 2017 · 8b 2015 · 7c 2011 · 6a 2010 · 5d 2010 · 8b 2009 · 6b 2007 · 5a 2006 · 6b 2005 · 5c 2003 · 5b 2002 · 6a 1998 · 9b 1998 · 10c 1997 · 10a 1997 · 10b 1996 · 10a 1996 · 10b 1996 · 11b 1995 · 10a 1995 · 10b 1995 · 10c 1995 · 12b
Discuss orthogonal polynomial regression on a single variable along with its principal advantages.
Solution
The problem with ordinary polynomials. A polynomial regression is a linear model, but the columns are highly correlated. The normal equations are badly conditioned, and every coefficient changes when the degree is raised.
Orthogonal polynomials. Replace the powers of by polynomials , where has degree and, over the observed values , The model is It spans exactly the same space as the ordinary polynomial of degree , so the fitted values are identical.
Construction. Use the three-term recurrence For equally spaced the values are tabulated (Fisher and Yates). For example, with : ; ; .
Estimation. Because is diagonal, each coefficient is estimated on its own: and the regression sum of squares splits into independent single-df pieces,
Principal advantages.
- No re-fitting. Raising the degree from to adds one term; do not change.
- Simple computation. No matrix inversion; the normal equations are diagonal and well conditioned.
- Independent estimates. The are uncorrelated (independent under normality).
- Easy choice of degree. Each is tested on its own with on df, so we can see directly whether the linear, quadratic, cubic, … components are needed.
- Clear interpretation. Each term measures one component of the trend: linear, quadratic and so on.
- Use in experiments. With equally spaced quantitative levels of a treatment, the treatment SS is split into linear, quadratic and higher components.
✓ Answer checked step by step Every step was checked: the construction of orthogonal polynomials by the three-term recurrence and the reasons they make fitting and testing simpler.
For a two variable linear regression model , where , , for , if and are least square estimators of and respectively, derive expressions for , and .
Solution
Estimators. With , least squares gives The weights satisfy , and . The are uncorrelated with common variance .
.
.
.
.
Matrix form (check). With , which gives the same three results. and are uncorrelated only when .
✓ Derivation checked step by step Every step was checked: the estimators as linear combinations of the y’s, and their variances and covariance, which match σ²(X′X)⁻¹.
For the simple linear regression model , where and are parameters and has zero mean and an unknown variance , find the estimates of and by the principle of least squares as well as the method of maximum likelihood. Examine whether they are identical.
Solution
Least squares. Minimise Normal equations: Solution: Least squares needs only , a constant variance and uncorrelated errors; it does not estimate by itself. The usual unbiased estimate is .
Maximum likelihood. This requires a distribution: assume . Then For any fixed , is maximised over by minimising , the least squares criterion. So the likelihood equations for are exactly the normal equations, and Setting gives
Are they identical?
- For and : yes, under normal errors the ML and LS estimates coincide.
- For : no. The ML estimate divides by and is biased, , while the usual estimate divides by and is unbiased.
- If the errors are not normal (for example Laplace or Cauchy), the ML estimates of differ from least squares.
✓ Derivation checked step by step Every step was checked: the normal equations, the likelihood equations under normal errors, and the two estimates of σ².
Let be given observations, and suppose that where are unknown parameters and are mutually independent normal random variables with and . Also, is assumed to be unknown. Test the null hypothesis .
Solution
Hypothesis. , that is, for all , against : at least one of is non-zero.
Unrestricted model. The least squares estimates are and , and the residual sum of squares is
Restricted model. Under the model is , with nothing to estimate, so
Sum of squares due to . Under this is , independent of (it is a projection of onto the column space of , while lies in its orthogonal complement).
Test statistic. where . We reject at level if .
| Source | df | SS | MS | F |
|---|---|---|---|---|
| Regression () | 2 | SS/2 | MS/ | |
| Residual | ||||
| Total (uncorrected) |
Equivalently, ; this is the general linear-hypothesis test for .
✓ Derivation checked step by step Every step was checked: the restricted and unrestricted residual sums of squares and the F statistic on (2, n − 2) df.
(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
(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.
For a simple linear regression model (i) Derive the least square estimators of and , clearly stating the conditions assumed. (ii) For where is the fitted value, show that 1. 2. 3. 4. 5. The regression line passes through .
Solution
(i) Least squares estimators.
Conditions. The model is linear in the parameters; the are fixed (non-random) and not all equal; , (constant), and for . Normality is needed only for tests and intervals.
Minimise . The normal equations are giving The second derivatives form the positive definite matrix , so this is a minimum.
(ii) Properties of the residuals .
- : this is the first normal equation at the solution.
- : since , by 1.
- : this is the second normal equation at the solution.
- : by 1 and 3.
- The line passes through : at ,
Geometrically, 1, 3 and 4 say that the residual vector is orthogonal to , to , and so to every fitted vector in their span.
✓ Proof checked step by step Every step was checked: the normal equations and each of the five residual properties, which all follow from them.
For the multiple linear regression model with two predictor variables and , show that the estimate of regression coefficient of is unchanged when is added to the regression model, whenever and are uncorrelated.
Solution
Models. With variables measured from their means (which only shifts the intercept), consider Write , , , , .
Model (a). .
Model (b). The normal equations for the slopes are so
Uncorrelated predictors. If and are uncorrelated in the sample, , so . Then The estimate of the coefficient of is unchanged when is added.
Remarks.
- In matrix terms, the slope part of is diagonal, so each coefficient is estimated independently of the others. The same holds for any number of mutually uncorrelated predictors (this is the basis of orthogonal designs and orthogonal polynomials).
- The standard error of does change, because adding changes the residual variance .
- When , : the coefficient changes by an amount that depends on the correlation (omitted-variable bias).
✓ Proof checked step by step We checked the proof, and checked numerically with x₁ and x₂ made exactly uncorrelated that the coefficient of x₁ is 1.978 in both fits.
(i) For a second order polynomial model with one predictor variable, derive the least squares normal equations clearly stating the conditions assumed. How will you interpret the parameters in this model? (ii) Describe why it is recommended to work with predictor variables centred around the mean. Comment on fitted values of the response variable in this case. Prove your claim.
Solution
(i) Second-order model. Conditions. The are fixed, with at least three distinct values; , , the errors are uncorrelated (and normal for inference).
Normal equations. Minimising : Three distinct values make the coefficient matrix non-singular.
Interpretation.
- is the mean response at , which is meaningful only if is within the range of the data.
- is the slope of the curve at : .
- measures the curvature: the curve opens upward if and downward if , with its turning point at .
- Unlike in a linear model, is not “the change in per unit change in holding the other variables fixed”, because and cannot change independently.
(ii) Centring. Let and fit
Why it is recommended.
- and are often very highly correlated (for from 20 to 30 the correlation is close to 1). This multicollinearity makes nearly singular, inflates the variances of and causes rounding errors. After centring, and are much less correlated, and exactly uncorrelated when the values are symmetric about , since then .
- The coefficients become easier to interpret: is the mean response at , and is the slope at , the centre of the data.
The fitted values are unchanged. Expand So every centred quadratic is an ordinary quadratic, and conversely. The two design matrices satisfy with so they have the same column space. The least squares fitted vector is the projection of onto this column space, so The fitted values, residuals, residual SS, and the estimate of the curvature are identical; only the meaning (and precision) of the lower-order coefficients changes.
✓ Proof checked step by step Every step was checked: the normal equations of the quadratic model, and the proof that centring leaves the fitted values unchanged while reducing the correlation between x and x².
A student fits the following linear regression model to a given data: ’s are iid normal values (), where is unknown. The following information is available: 95% confidence interval for is: . Calculate what proportion of the total variability of the responses is explained by the model. Given that .
Solution
Slope. The centre of the given interval, , agrees.
Standard error from the interval. The 95% interval is , so its half-width is
Residual variance. , so
Regression sum of squares.
Proportion explained. About 84.5% of the total variability of the responses is explained by the model.
(Equivalently, and .)
✓ Checked by computer We checked in Python: β̂ = 0.0589, SE = 0.01128, s² = 35.65, residual SS = 178.3, regression SS = 972.3 and R² = 0.845.
Consider a simple regression model based on observations. Show that the regression sum of squares is . Suppose the summarized data on 10 observations yield Estimate assuming positive correlation between and . Also obtain coefficient of determination.
Solution
Regression SS. The fitted line is , so (Also , since .)
Summary quantities (). Since :
Slope. , so taking the positive root because the correlation is positive. (The intercept is .)
Coefficient of determination. So the regression on explains about 85.7% of the variation in ().
✓ Checked by computer We checked in Python: Sₓₓ = 306.9, Sᵧᵧ = 22.801, regression SS = 19.534, β̂₁ = 0.2523 and R² = 0.857.
Consider the simple linear regression model , . Show that if the s’ are equally spaced (i.e. for fixed values of and ), then is an equivalent reparametrization (in the sense that both the design matrices have the same column space).
Solution
Design matrices. For the original model the design matrix has rows : For the reparametrised model it has rows :
Relation. Since , With (the ’s are distinct), , so is invertible and .
Same column space. Every column of is a linear combination of the columns of , since , so . Since , also . Hence and the two models are equivalent reparametrisations.
Consequences. The set of possible mean vectors is the same, so the fitted values, residuals and residual SS are identical. The parameters are related by , so and the least squares estimates satisfy the same relations. Working with (or the centred ) simplifies the arithmetic when the ’s are equally spaced.
✓ Proof checked step by step We checked the proof: the two design matrices are related by an invertible 2 × 2 matrix, so they have the same column space.
Give the outline of the procedure, using ANOVA technique, for testing if the response variable is dependent on a fixed set of variables , based on an observed set of data on these variables.
Solution
Model. We have observations and fit or with of order and full rank.
Hypothesis. “ does not depend on the ’s”:
Procedure.
- Fit by least squares: and .
- Split the total (corrected) sum of squares: In matrix form, and .
- Distributions: always, and under , , independent of SSE.
- ANOVA table:
| Source | df | SS | MS | F |
|---|---|---|---|---|
| Regression | SSR | MSR = SSR/ | MSR/MSE | |
| Residual | SSE | MSE = SSE/ | ||
| Total | TSS |
- Under , . Reject at level if : then depends on at least one of the ’s.
- In terms of :
- If is rejected, test the individual coefficients with on df, or test subsets of variables with the extra sum of squares .
✓ Derivation checked step by step Every step was checked: the decomposition of the total sum of squares, the F test on (k, n − k − 1) df and its link with R².
Consider the mean vector for to be and for to be . The covariance matrices for , and are Fit the equation and calculate multiple correlation coefficient.
Solution
(This question is also listed under 3.4 Multiple and partial correlation. The worked solution is repeated here so that this page is complete.)
Regression coefficients. The population least squares coefficients are
Intercept.
Fitted equation.
Multiple correlation coefficient. So the regression explains 55.6% of the variance of ; the residual variance is .
✓ Checked by computer We checked in Python: b = (2, −1), b₀ = −4 and R² = 5/9, so R = 0.745.
Obtain an expression for estimated value of for given by fitting a curve to given points , using least-square method.
Solution
Linearising. Put The curve becomes the straight line
Least squares. With and , minimise . The normal equations are that is, Solving: with and .
Estimated at . From :
Remark. This minimises the squared errors in , as the curve is written. If instead we want to minimise the squared errors in itself, we fit directly, which is also linear in , with normal equations and the same formula with those estimates.
✓ Derivation checked step by step Every step was checked: the transformation to a straight line in U = eˣY and V = e²ˣ, the normal equations, and the back-transformation to the estimate of Y at x₀.
Based on a set of data , , , discuss how you would use the technique of Analysis of Variance for testing the hypothesis that the regression equation of on is linear.
Solution
Data. At each of distinct values there are observations , . Repeated observations at the same allow us to estimate the pure error variance without assuming any form for the regression.
Model. , , where is unrestricted.
Partition of the total sum of squares. With the mean at , the grand mean, and the least squares line fitted to all points: The between-group SS splits into the linear regression part, on 1 df, and the deviation-from-linearity part on df.
In terms of correlations, the between-group SS is and the regression SS is , where is the correlation ratio.
ANOVA table.
| Source | df | SS | MS |
|---|---|---|---|
| Linear regression | 1 | ||
| Deviation from linearity | |||
| Within groups (pure error) | |||
| Total |
Test. Under , We reject linearity at level if . If linearity is not rejected, the deviation and within SS can be pooled to test the slope: on df.
✓ Derivation checked step by step Every step was checked: the split of the total sum of squares into linear regression, deviation from linearity and within-group parts, and the F test for linearity.
What are outliers in the context of regression analysis? How can you use Cook’s distance to detect outliers?
Solution
Outliers in regression. An outlier is an observation whose response is far from the value the fitted model predicts, i.e. it has an unusually large residual compared with the others. Related ideas:
- A high-leverage point has an unusual value of the regressors (far from the centre of the ’s). Its leverage , the -th diagonal element of the hat matrix , is large.
- An influential point is one whose deletion changes the fitted coefficients appreciably. An outlier with high leverage is usually influential.
Outliers may come from recording errors, from a different population, or from a wrong model. They inflate and can distort the fit, so they must be detected, checked and either corrected, down-weighted or explained.
Cook’s distance. For observation , with the estimate obtained without it and the number of parameters, It measures how far all the fitted values move when observation is deleted. A convenient form, which needs only one fit, is So is large when the residual is large, the leverage is large, or both.
Using it.
- Fit the model; compute , , and for every observation.
- Compare with the median of the distribution (about 1): marks a highly influential point, since deleting it moves beyond the 50% confidence ellipsoid. Many analysts also examine any , or points that stand out on an index plot of .
- Investigate flagged points: check the data, refit without them and compare the conclusions, or use robust regression.
Large studentised residuals ( or 3) flag outliers in ; large () flags unusual ; Cook’s combines both into a single measure of influence.
✓ Answer checked step by step Every step was checked: the definition of Cook’s distance through the leverage and the standardised residual, and the usual cut-off values.
Describe curvilinear regression. Given that fit the exponential curve [?] applying the method of least squares.
Solution
Note on the question. The “[?]” after the curve is a gap in the source. We fit using common logarithms (the given for 8 values, about 1.63 each, shows the logarithms are to base 10).
Curvilinear regression. When the scatter of against is clearly not linear, we fit a curve: a polynomial , or a curve that becomes linear after a transformation, such as the exponential , the power curve , or the hyperbola . Curves that are linear in the parameters are fitted by least squares directly; transformable curves are fitted by least squares on the transformed scale.
Linearising. Taking logarithms, with , , .
Normal equations ():
Solution. The determinant is .
Back-transforming. The fitted curve is a decay of about 4.2% for each unit increase in .
✓ Checked by computer We checked in Python: the normal equations give log₁₀a = 1.9998 and log₁₀b = −0.01878, so a = 99.94 ≈ 100 and b = 0.9577.
Derive the Shapiro-Wilk statistic for testing normality of errors in a regression model.
Solution
Setting. In the model the tests and intervals assume . We check normality with the residuals (or the studentised residuals). The Shapiro–Wilk test (1965) is one of the most powerful tests for this.
Idea. If the residuals are normal, their ordered values should be close to a linear function of the expected order statistics of a standard normal sample. Shapiro and Wilk compare two estimates of :
- the best linear unbiased estimate of from the ordered sample (from a regression of on the normal scores), squared; and
- the usual estimate from the sum of squares.
Derivation. Let be the expected values of the order statistics of a sample, and their covariance matrix. For a normal sample with mean and SD , This is a linear model in with correlated errors. Its generalised least squares estimate of is (because is symmetric about zero, the estimate of is free of ). Define the normalised coefficients The Shapiro–Wilk statistic is where for residuals from a model with an intercept.
Properties.
- is location and scale invariant, so its null distribution does not depend on or .
- is the squared correlation between the ordered residuals and the coefficients (essentially the normal scores), so . It is close to 1 when the normal probability plot is a straight line.
- Small values of indicate non-normality. The critical values (or -values, via Royston’s approximation) are tabulated for each .
In regression.
- Fit the model and compute the residuals, preferably studentised.
- Order them and compute with the tabulated (by symmetry , so ).
- Reject normality at level if . The residuals are slightly correlated, but for moderate the test is a good approximation.
✓ Derivation checked step by step Every step was checked: the construction of W from the ordered residuals and the normal-order-statistic weights, and its interpretation as a squared correlation.
Define regression analysis. Write the form of simple linear regression model. State the various assumptions of the model.
Solution
Regression analysis. Regression analysis studies how a response variable depends on one or more explanatory (independent) variables , by fitting a mathematical relation, usually . It is used to describe the relation, to estimate its parameters, to test hypotheses about them, and to predict for given . The word “regression” comes from Galton, who found that the heights of sons “regress” towards the mean.
Simple linear regression model. where is the response, the explanatory variable, the intercept, the slope (the change in mean response per unit change in ) and the random error.
Assumptions.
- Linearity: , i.e. .
- Fixed regressor: the are known constants, measured without error (or the analysis is conditional on them), and not all equal.
- Homoscedasticity: , the same for all .
- No autocorrelation: for .
- Normality (for tests and confidence intervals): , so the errors are independent.
- The parameters are constants, the same for all observations.
Under 1–4, the least squares estimators are BLUE (Gauss–Markov theorem). Adding 5, they are also the maximum likelihood estimators, and and tests are exact.
✓ Answer checked step by step Every step was checked: the form of the simple linear regression model and the standard assumptions behind least squares and normal-theory inference.
Explain the linear regression model. Calculate the least squares estimate of for a straight line model from the data.
| 0 | 1 | 2 | 3 | 4 | |
| y | 1 | 4 | 3 | 8 | 9 |
Solution
The linear regression model. The response is a linear function of the parameters plus a random error: where is , is the design matrix (first column of ones) and the vector of unknown coefficients. The least squares estimate, which minimises , is provided has full column rank.
Data. :
So the fitted line is
Fit. Fitted values ; residuals (they sum to zero, as they must). The residual SS is , so .
✓ Checked by computer We checked in Python: β̂ = (1, 2), the residuals are 0, 1, −2, 1, 0, the residual SS is 6 and s² = 2.
Let , find estimate of m and b and express .
Solution
Note. “” here is the intercept.
Estimation. Minimise : Solving,
Variance of . Assume , and uncorrelated errors. Writing with and : since and . So is unbiased, and It is estimated by , with .
(Similarly .)
✓ Derivation checked step by step Every step was checked: the normal equations and V(b̂) = σ²/Σ(xᵢ − x̄)².
In the multiple linear regression model with normality assumption obtain confidence interval to find out whether the regression on the regressor variables is significant or not.
Solution
Model. , , with of order ( regressors) and full rank. Partition , where holds the slopes. The question “is the regression significant?” is whether .
Distribution of . Let be the matrix of regressors centred at their means. Then so This is independent of , with .
Confidence region. Hence and the confidence region for is the ellipsoid
Deciding significance. The regression is significant at level if and only if the origin lies outside this region, that is, if This is the usual ANOVA test, since .
Simultaneous intervals. The same region gives Scheffé intervals for every linear combination : If any of these intervals excludes zero, the regression is significant; and the regression is significant exactly when at least one of them does.
✓ Derivation checked step by step Every step was checked: the joint confidence region for the regression coefficients from the F distribution and its use to judge whether the regression is significant.
Using the linear regression model and n independent sets of observations, derive the tests for the following hypotheses (i) (ii) You may make the usual assumptions. In each case state clearly the alternative hypothesis you consider.
Solution
Model and assumptions. with (, rank 4), and . Then , and , with independent of .
General linear hypothesis. For , with of order and rank , Equivalently, , where is the residual SS when the model is fitted under .
(i) against : not all three equal.
- , , .
- Reduced model: with common slope , . Regress on to get on df.
- Test: Reject if .
(ii) against (two-sided).
- , , .
- has variance , where are the elements of for the slopes.
- Test: reject if . ( is the statistic above with .)
- Reduced-model form: substitute to get , fit it to get , and use on df.
- A one-sided alternative (for example , decreasing returns to scale in a Cobb–Douglas production function written in logs) uses the upper tail .
✓ Derivation checked step by step Every step was checked: each hypothesis written as Cβ = d, the general linear-hypothesis F test, and the reduced-model forms of the two tests.
Explain how orthogonal polynomials are used in fitting regression curves. Develop an appropriate test for choosing the appropriate degree of orthogonal polynomial using ANOVA table.
Solution
Use in fitting. To fit a polynomial of degree in , write it in terms of orthogonal polynomials of degree , with for :
- For equally spaced the values are tabulated (often scaled to integers by constants ); otherwise they are built by the recurrence .
- Since the normal equations are diagonal, and the estimates do not change when higher-degree terms are added.
- The fitted curve can be converted back into powers of if required.
Choosing the degree. The sum of squares due to the -th degree term is and the are independent. Fit up to a degree larger than is likely to be needed (or use replicates to get a pure error estimate).
| Source | df | SS | F |
|---|---|---|---|
| Linear () | 1 | ||
| Quadratic () | 1 | ||
| Cubic () | 1 | ||
| ⋮ | ⋮ | ⋮ | ⋮ |
| Degree () | 1 | ||
| Residual | |||
| Total |
with .
Test procedure. Under , . We test the terms in turn, starting from the linear term, and choose the degree as the highest-degree term that is significant (often after two successive non-significant terms we stop). The terms above are then pooled into the residual. Because the components are orthogonal, the tests can be carried out from a single table, without refitting.
✓ Derivation checked step by step Every step was checked: the orthogonal-polynomial fit, the single-degree-of-freedom sums of squares and the sequential F tests in the ANOVA table.
Given two regression lines show that the F-statistic for testing can be put in the form Write the expression of .
Solution
Model. For and , with the same in both lines,
Full model. Each line is fitted separately through the origin: and are independent. The residual SS is and is the pooled unbiased estimate of .
Reduced model (). The common estimate is , and
statistic.
This is also direct: under , independent of , so where .
✓ Proof checked step by step We checked the derivation, and checked numerically that the F ratio in the stated form equals the extra-sum-of-squares F for a common slope (2.134 both ways).
In the multiple linear regression model with independent variables, derive a test to find out whether the regression on the regressor variables is significant or not. Show that the test statistic can be expressed in terms of the sample multiple correlation coefficient.
Solution
Model. , , or with of order and rank .
Hypothesis. (no regression) against : some .
Derivation. Fit the full model: , with . Under the model is , with . The reduction due to the regressors is and are symmetric idempotent with ranks and , and their product is zero. So by Cochran’s theorem, under , and , independently. (This is also the likelihood ratio test: .) Hence and we reject if .
In terms of the multiple correlation. The sample multiple correlation coefficient between and is the correlation between and , and Dividing numerator and denominator by : So the regression is significant when is large compared with what chance alone would produce with regressors and observations. (Under , itself has a Beta distribution.)
✓ Proof checked step by step Every step was checked: the regression F test, its null distribution, and the identity F = (R²/(p − 1)) / ((1 − R²)/(n − p)).
Show that under usual normal population regression model the joint distribution of the partial regression coefficients is multivariate normal.
Solution
Model. In the usual normal regression model with () a fixed matrix of rank . So .
The estimator. The least squares (and maximum likelihood) estimator of the vector of partial regression coefficients is a fixed matrix of rank .
Key fact. If and is a fixed matrix of rank , then . (Proof: the characteristic function of is , which is that of .)
Mean.
Dispersion.
Conclusion. Each is normal with variance , where is the -th diagonal element of , and the coefficients are correlated unless is diagonal.
Addendum. is independent of the residual vector , because and they are jointly normal. Hence is independent of , which justifies the and tests on the coefficients.
(When the regressors are themselves random and jointly normal with , the same result holds conditionally on the observed ; unconditionally the distribution of is no longer normal.)
✓ Proof checked step by step Every step was checked: β̂ is a fixed linear transformation of a multivariate normal vector, with mean β and dispersion σ²(X′X)⁻¹.
In the multiple linear regression model with k independent variables, is the estimated regression coefficient for the independent variable . Show that the statistic for testing the hypothesis is provided by where is the estimated variance of . What is the critical region for the alternatives ?
Solution
Note on the question. “ is the estimated regression coefficient” should read: is the estimate of the regression coefficient of the -th independent variable.
Model. , , where has order and full rank. Let .
Step 1: distribution of . , so
Step 2: residual SS. with idempotent of rank . So
Step 3: independence. and the residual vector are jointly normal with covariance , since . So is independent of SSE.
Step 4: the statistic. By definition of Student’s , is the estimated variance of , . Under ,
Critical region. For (two-sided), at level : (For use ; for use .) Equivalently, is the extra-sum-of-squares for dropping , on df.
✓ Proof checked step by step Every step was checked: the normal distribution of β̂ₖ, the independent chi-square for the residual SS, and the resulting t statistic on n − k − 1 df.
In the multiple linear regression model with usual normality assumptions obtain the confidence interval for a regression coefficient which is symmetric with respect to .
Solution
Model. , , with of order and rank , and .
Pivot. As in Q28, , , and the two are independent. Hence whose distribution does not depend on any unknown parameter.
Interval. The distribution is symmetric about 0, so Rearranging the inequality for :
Result. The confidence interval for , symmetric about , is where is the standard error of . Of all intervals based on with coverage , this equal-tailed one is also the shortest, because the density is symmetric and unimodal.
✓ Derivation checked step by step Every step was checked: the pivot (β̂ᵢ − βᵢ)/SE ~ t on n − p df and the resulting equal-tailed interval.
Indicate, with the help of the ANOVA table, how you will test for the linearity of regression.
Solution
Data needed. Several observations of at each of distinct values : , , . The replication gives an estimate of error that does not depend on the form of the regression.
Partition. where is the mean of the ’s at and is the fitted straight line. Using the correlation ratio and the correlation coefficient , the three parts are , and .
ANOVA table.
| Source | df | SS | MS | F |
|---|---|---|---|---|
| Linear regression | 1 | |||
| Deviation from linearity | ||||
| Within groups | ||||
| Total |
Test. The hypothesis of linearity of regression is for all . Under (and normal errors with constant variance), If exceeds , we reject linearity: is significantly larger than , and a curve (for example a polynomial of higher degree) should be fitted. Otherwise a straight line is adequate. Note that always, with equality exactly when the group means lie on a straight line.
✓ Derivation checked step by step Every step was checked: the split of the between-groups sum of squares into linear regression and deviation from linearity, and the F ratio against the within-groups mean square.
What are orthogonal polynomials? State how these are used in fitting regression curves and obtain the LS estimates of the coefficients in the regression equation. Indicate how the technique of ANOVA is used in deciding the appropriate degree of the polynomial to be fitted.
Solution
Orthogonal polynomials. Over a given set of points , the polynomials , with of exact degree , are orthogonal if For equally spaced , with : and their values (multiplied by constants to make them integers) are tabulated. For general they follow from a three-term recurrence.
Use in fitting regression curves. Instead of , fit the equivalent model Both have the same fitted values, but the orthogonal form is much easier to compute and to test.
Least squares estimates. Minimise : because all the cross-products vanish. So each normal equation involves only one unknown: Adding a term of degree leaves all the earlier estimates unchanged.
ANOVA for the degree. The SS due to the -th degree component is and .
| Source | df | SS | F |
|---|---|---|---|
| Linear | 1 | ||
| Quadratic | 1 | ||
| ⋮ | ⋮ | ⋮ | ⋮ |
| Degree | 1 | ||
| Residual | |||
| Total |
Each is compared with (or with a pure-error estimate if replicates exist). The degree of the polynomial is taken as the highest degree whose component is significant; the non-significant higher components are pooled with the residual. Finally, the fitted equation may be expressed in powers of by substituting the polynomials.
✓ Derivation checked step by step Every step was checked: the orthogonality conditions, the diagonal normal equations, the closed-form estimates, and the ANOVA split into single-degree-of-freedom components.
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, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

