All 23 questions UPSC has asked on multiple and partial correlation in the Statistics Optional (Paper I, Linear Inference and Multivariate Analysis) from 1995 to 2024, 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):
2024 · 5b(ii) 2023 · 6a 2022 · 6c 2021 · 6a 2019 · 7a 2018 · 7a 2016 · 5a 2015 · 5b 2013 · 5e 2012 · 5c 2012 · 6a 2011 · 5e 2011 · 8a 2010 · 5d 2009 · 5b 2006 · 5a 2002 · 5b 2001 · 7iv 2001 · 8iii 2001 · 8iv 1999 · 10a 1998 · 11c 1995 · 11c
If , and are three variables, obtain the expression for the partial correlation coefficient between and eliminating the effect of , , in terms of simple correlation coefficients.
Solution
Definition. The partial correlation is the correlation between the parts of and that are not explained by . Take all variables in standard form (mean 0, variance 1), so the covariances are the correlations .
Residuals. The linear regression of on is , and that of on is . The residuals are
Their variances and covariance.
Result.
(The same formula holds for the sample coefficients , using least squares residuals.)
✓ Derivation checked step by step Every step was checked: the residual covariances after regressing on X₃ and the resulting formula, which agrees with the inverse-matrix formula −σ¹²/√(σ¹¹σ²²).
Let be distributed as , where and Find (i) the conditional distribution of given . (ii) partial correlation coefficient and multiple correlation coefficient .
Solution
Partition. Take and :
(i) Conditional distribution. For the multivariate normal, With : So
(ii) Partial correlation. It is the correlation in the conditional covariance matrix:
Multiple correlation. With and , whose inverse is :
(The two values are equal here only by coincidence: is uncorrelated with .)
✓ Checked by computer We checked in Python: the conditional mean (2, −4/3), the conditional covariance matrix, ρ₁₂·₃ = 0.387 and R₁·₂₃ = 0.387 (R² = 0.15).
(i) If , where and are uncorrelated random variables and each of which has zero mean and unit standard deviation, find the multiple correlation coefficient between and . (ii) Let be a 3-dimensional random vector with dispersion matrix Determine the first principal component and the proportion of the total variability that it explains.
Solution
(i) Covariances. Since the are uncorrelated with variance 1, So every correlation is :
Multiple correlation of on .
(ii) First principal component. The eigenvalues of solve . Write , where is the matrix of ones. has eigenvalues , so has eigenvalues The eigenvector for is proportional to ; normalised, . So
Proportion of total variability. , so
✓ Checked by computer We checked in Python: the covariance matrix of X has 2 on the diagonal and 1 elsewhere, R₃·₁₂ = 1/√3 = 0.577, and the largest eigenvalue of the second matrix is 15, explaining 15/27 = 55.6%.
For a multiple linear regression model with three covariates and , let denote the correlation coefficient between and . For a data, it was found . (i) Check the consistency of the above data. (ii) If is unknown, obtain the limits within which lies given the above values for and .
Solution
(i) Consistency. A set of correlations is consistent only if the correlation matrix is positive semi-definite. For three variables this means every correlation lies in and (Equivalently, every partial correlation lies in .)
Here The data are consistent. (Check: , inside .)
(ii) Limits for . Treat as a quadratic in : Its roots are Here and . So The given value lies within these limits, as (i) showed.
✓ Checked by computer We checked in Python: the determinant of the correlation matrix is 0.195 > 0, and the limits for r₁₃ are −0.145 and 0.945.
Let Derive: (i) The joint distribution of , and (ii) The conditional mean of given and (iii)
Solution
(i) Joint distribution of .
and are linear in , so they are jointly normal:
Given , . So we can write , with independent of . Then is trivariate normal with
(ii) . with and , :
(iii) (the squared multiple correlation of on ):
(The conditional variance is .)
✓ Checked by computer We checked with SymPy: the joint distribution of Z₁, Z₂, Z₃, the regression E(X₃ | X₁, X₂) = (145 − 2x₁ − 16x₂)/37, and ρ²₃·₁₂ = 10/37.
For a random sample of size from , we obtain and (i) Find the estimates of the parameters of the conditional distribution of given . (ii) Find the partial correlation .
Solution
Partition with (the variables we condition) and . The full symmetric matrix is so
(i) Parameters of the conditional distribution. , and Regression matrix: Intercepts : So the estimated conditional means are Estimated conditional covariance matrix:
(ii) Partial correlation.
✓ Checked by computer We re-did the matrix algebra in Python: regression matrix, intercepts and conditional covariance as shown, and r₃₄·₁₂ = 0.613.
If , , , where , and are uncorrelated random variables and each of which has zero mean and unit standard deviation, find the multiple correlation coefficient between and , .
Solution
Variances and covariances. The are uncorrelated with mean 0 and variance 1, so and similarly and .
So .
Multiple correlation.
✓ Checked by computer We checked in Python that every correlation is 1/2 and that R₁·₂₃ = 1/√3 = 0.577.
Let be a p-dimensional random vector with , . Define partial correlation coefficient between , . Show that where is the element of .
Solution
Definition. Partition with . Let and be the residuals of and after their best linear prediction from . The partial correlation is Equivalently, it is the correlation in the conditional covariance matrix of given : where now is the block for and the block for .
Proof of the formula. By the formula for the inverse of a partitioned matrix, the leading block of is Write , so . Its inverse is so Then Taking signs into account, .
✓ Proof checked step by step We checked the proof, and checked numerically for random 4 × 4 covariance matrices that the residual partial correlation equals −σ¹²/√(σ¹¹σ²²).
Define multiple correlation coefficient between and and show that where and are elements of the dispersion matrix and respectively.
Solution
Definition. The multiple correlation coefficient is the largest correlation between and any linear function of . The maximum is reached by the best linear predictor , and where with a row.
(Why: for any , by Cauchy–Schwarz in the inner product, , with equality at .)
Proof of the identity. The element of the inverse of a partitioned matrix is the reciprocal of the residual variance of given the others. Hence that is,
Equivalently, , the familiar ratio of determinants.
✓ Proof checked step by step We checked the proof, and checked numerically for random covariance matrices that 1 − R² equals 1/(σ₁₁σ¹¹).
If , and are the simple correlation coefficients between and ; and ; and respectively then show that Also examine the validity of the statement “the range of the partial regression coefficient is to .”
Solution
Derivation. Work with standardised variables. The least squares residuals of and on are (in standard units). Their sample variances and covariance are The partial correlation is the correlation between these residuals:
The statement about the partial regression coefficient. The statement is true.
- A partial correlation coefficient always lies in , because it is an ordinary correlation between two residual series.
- A partial regression coefficient is a slope, not a correlation: It depends on the units of measurement through , which can be any positive number. So can be made as large or small as we like by rescaling or : its range is . For example, with and , .
- Only its sign is restricted: has the same sign as (and as ), and .
✓ Proof checked step by step We checked the derivation, and checked that the partial regression coefficient b₁₂·₃ = r₁₂·₃ s₁·₃/s₂·₃ can take any real value (for example with r₁₂·₃ = 0.9 and s₁·₃/s₂·₃ = 10 it is 9).
Suppose that follow the variate normal distribution with co-variance matrix Obtain the expression for the multiple correlation coefficient .
Solution
Set-up. The variance cancels from correlations, so work with the correlation matrix: 1 on the diagonal and elsewhere. Partition with first:
Inverse of applied to . Since , so is an eigenvector and
Multiple correlation.
(For to be positive definite we need , which keeps the denominator positive. For this gives , consistent with Q21.)
✓ Derivation checked step by step We checked with SymPy for p = 5 that R² = 4ρ²/(1 + 3ρ), which matches the general formula (p − 1)ρ²/{1 + (p − 2)ρ}.
Suppose, with usual notation , , , , , . For predicting , the variable has already been included in the regression equation. Which one of and is worth including in the regression equation in addition to ?
Solution
Criterion. Once is in the equation, the extra contribution of a new variable is measured by the partial correlation : So we add the variable with the larger .
Partial correlations.
Effect on . With alone, .
- Adding : .
- Adding : .
Conclusion. is worth including: it explains a further 7.7% of the variation in that leaves unexplained. adds almost nothing (0.2%), because most of its correlation with is already carried by (note ).
✓ Checked by computer We checked in Python: r₁₂·₄ = 0.277 and r₁₃·₄ = −0.048; adding x₂ raises R² from 0.384 to 0.432, adding x₃ only to 0.386.
Does the observed correlation between two variables and always imply causal relationship between them? Give an example. Define partial correlation coefficient between and eliminating from each the effect of . Why is more suitable for throwing light on the net correlation between and ? Based on the observed data set , and , derive the expression for .
Solution
Correlation and causation. No. A correlation only says that two variables tend to move together. It does not show that one causes the other. The association may be due to:
- a third variable that affects both (a confounder),
- chance, especially in small samples,
- common trends over time,
- or causation in the opposite direction.
Example. Across Indian towns, the number of schools and the number of police stations are highly correlated. Neither causes the other: both depend on the size of the population. Similarly, ice-cream sales and drowning deaths rise together in summer because both depend on temperature.
Partial correlation. The partial correlation is the correlation between and after the linear effect of has been removed from each. It is the correlation between the residuals and .
Why it is more suitable. The simple correlation mixes the direct association of and with the indirect association that comes through . Removing from both leaves only the net association. In the example, the partial correlation between schools and police stations, with population held fixed, is close to zero, which is the correct conclusion. It is, roughly, the correlation we would see if could be held constant.
Derivation from data , , . Take deviations from the means, , so that , and write and .
The least squares regression of on has slope , so the residual is Then So
✓ Answer checked step by step Every step was checked: the residual-based derivation of r₁₂·₃ from the observed data and the reasons it measures net association.
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
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.
Examine, after deducing necessary result, if the following set of correlation coefficients are internally consistent: , and .
Solution
The necessary result. For any three variables the correlation matrix is positive semi-definite, because is the variance of , which cannot be negative. So its determinant is non-negative: Equivalently, the partial correlation must lie in , since
Check.
Conclusion. The determinant is negative, so the coefficients are not internally consistent: no set of three variables can have these correlations. Directly, which is impossible for a correlation.
Intuitively, is fairly strongly positively correlated with both and , so and cannot be negatively correlated as strongly as .
✓ Checked by computer We checked in Python: the determinant of the correlation matrix is −0.150 < 0, so the set is inconsistent; r₂₃·₁ also comes out below −1.
Describing briefly the concept of multiple regression, define multiple and partial correlations and obtain their formulae.
Solution
Multiple regression. Often a variable depends on several others, (for example, crop yield on rainfall, temperature and fertiliser). The multiple linear regression of on them is the linear function (variables measured from their means) that minimises the residual sum of squares . The coefficients are partial regression coefficients: each gives the change in per unit change in that variable when the others are held fixed. They satisfy the normal equations , so .
Multiple correlation. is the simple correlation between and its regression estimate . It measures how well is explained jointly by , and it is the largest correlation can have with any linear combination of them.
Formula. Since , where is the determinant of the full correlation matrix and is the cofactor of its (1,1) element. For three variables:
Partial correlation. is the correlation between and after the linear effect of has been removed from both, that is, the correlation between the residuals and .
Formula. In terms of cofactors of the correlation matrix, For three variables: and higher orders follow by the recursion
Links. , and .
✓ Derivation checked step by step Every step was checked: the normal equations of multiple regression, the multiple correlation as the correlation between X₁ and its fitted value, and the residual-based partial correlation.
Establish the range of a multiple correlation coefficient.
Solution
Claim. .
Proof. Let be the least squares regression estimate of from , and the residual (all variables measured from their means). The normal equations make uncorrelated with every , , and hence with . So
By definition , so and Hence .
Interpretation.
- when : is an exact linear function of .
- when , that is, when is uncorrelated with every .
- Unlike a simple correlation, is never negative. Also for every , since it is the maximum correlation of with linear combinations of the others.
✓ Proof checked step by step We checked the proof: R is the correlation between X₁ and its fitted value, and that correlation cannot be negative.
Show that the correlation matrix is at least positive semi-definite.
Solution
Claim. The correlation matrix of random variables (with positive variances) is positive semi-definite.
Proof. Let be the standardised variables, so and is the covariance matrix of . For any real vector , because a variance is never negative. So is (at least) positive semi-definite.
The same argument works for a sample correlation matrix, with sample variances in place of variances.
When is it positive definite? for some exactly when is constant (here, zero) with probability one, that is, when the variables are linearly dependent. So is positive definite unless one variable is an exact linear function of the others. In that case .
Consequences. All principal minors of are non-negative; for example gives , and for three variables gives the consistency condition used in Q4 and Q15.
✓ Proof checked step by step We checked the proof: a′Ra is the variance of a linear combination of standardised variables, so it cannot be negative.
If and are the regression lines of x on y and y on x respectively, find the value of the 4 correlation coefficient between x and y.
Solution
Note on the question. “the value of the 4 correlation coefficient” has a stray “4”; we find the correlation coefficient between and .
Regression coefficients. The regression line of on is , so . The regression line of on is , so .
Correlation. Since : Both regression coefficients are positive, and has the same sign as them, so
Check. holds, so the two lines are consistent with the stated roles. (If the roles were swapped, the product would be , which is impossible.)
✓ Checked by computer We checked: the slopes are 4 and 1/16, so r² = 1/4 and r = 0.5, and the product of the slopes is less than 1 as required.
In standard notations, given that and . calculate
Solution
Formula.
Substitution.
So and together account for about 34% of the variation in . (As always, exceeds both and .)
✓ Checked by computer We checked in Python: R²₁·₂₃ = 0.34375, so R₁·₂₃ = 0.586.
If all correlations of order zero in a set of p variables are equal to , show that (i) every partial correlation of order s is and (ii) , symbols having usual meanings.
Solution
(i) Partial correlations of order . We use induction on .
Order 1. For any three distinct variables, This is with .
Induction step. Suppose every partial correlation of order equals . By the symmetry of the set-up, all of them are equal. The recursion formula gives, for order , Now So every partial correlation of order is .
(ii) Multiple correlation. Use Here and, by (i), . So
(Equivalently , the case of Q11.)
✓ Proof checked step by step We checked with SymPy that with all correlations equal to ρ, every partial correlation of order 1, 2 and 3 simplifies to ρ/(1 + sρ), and that 1 − R²₁·₂₃ = (1 − ρ)(1 + 2ρ)/(1 + ρ).
Define partial correlation coefficients in multivariate analysis. Show that
Solution
Partial correlation in multivariate analysis. Partition as with and components, and The conditional distribution of given is normal with covariance matrix which does not depend on . The partial correlation between and () given is the correlation in this matrix: Equivalently, it is the correlation between the residuals and after linear regression on .
Why has this form. Let and . Then so under normality is independent of , and Since , the conditional covariance of given is .
The estimate. From a sample of size , let with , partitioned in the same way. The likelihood of can be reparametrised one-to-one as the parameters of the marginal distribution of , , together with those of the conditional distribution, . By the invariance property of maximum likelihood estimators, the MLE of the function is the same function of the MLEs:
The same result follows directly from least squares. Regress each component of on in the sample: the coefficient matrix is , and the matrix of residual sums of squares and products is Dividing by gives .
So the sample partial correlation is
✓ Derivation checked step by step Every step was checked: the residual covariance after regressing the first set on the second, and its sample estimate, which is also the maximum likelihood estimate of the conditional covariance.
Let the covariance matrix of a four-dimensional normal random vector be given by Find the partial correlation coefficient between and components of X when the component is held fixed.
Solution
Note on the question. As printed the matrix is not symmetric: the (1,4) entry is but the (4,1) entry is , and the (2,4) and (1,3) patterns also clash with the pattern . The intended matrix is clearly the first-order autoregressive (Markov) form and “-th” should read “-th”. We find the partial correlation between and when is fixed ().
Calculation. The three variables have correlations So
Interpretation. Given the middle component, the two neighbours are uncorrelated, and (being jointly normal) independent. This is the Markov property of the autoregressive scheme: once the present is known, the past carries no further information about the future . It is also why for this matrix is tridiagonal.
✓ Checked by computer We checked with SymPy: for the intended matrix Σᵢⱼ = σ²ρ^|i−j|, the partial correlation between neighbours on either side of a fixed component is exactly 0.
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–2024. Solutions: Optional Province. Found an error? Tell us.

