Menu Close

Multiple and partial correlation: UPSC Statistics Optional PYQ Solutions (1995–2024)

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

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

If X1, X2 and X3 are three variables, obtain the expression for the partial correlation coefficient between X1 and X2 eliminating the effect of X3, ρ12⋅3, in terms of simple correlation coefficients.

2024 · Paper I · Q5b(ii) · 5 marks

Solution

Definition. The partial correlation ρ12⋅3\rho_{12\cdot3} is the correlation between the parts of X1X_1 and X2X_2 that are not explained by X3X_3. Take all variables in standard form (mean 0, variance 1), so the covariances are the correlations ρij\rho_{ij}.

Residuals. The linear regression of X1X_1 on X3X_3 is ρ13X3\rho_{13}X_3, and that of X2X_2 on X3X_3 is ρ23X3\rho_{23}X_3. The residuals are X1⋅3=X1−ρ13X3,X2⋅3=X2−ρ23X3.X_{1\cdot3}=X_1-\rho_{13}X_3,\qquad X_{2\cdot3}=X_2-\rho_{23}X_3 .

Their variances and covariance. V(X1⋅3)=1−2ρ132+ρ132=1−ρ132,V(X2⋅3)=1−ρ232,V(X_{1\cdot3})=1-2\rho_{13}^2+\rho_{13}^2=1-\rho_{13}^2,\qquad V(X_{2\cdot3})=1-\rho_{23}^2, Cov(X1⋅3,X2⋅3)=ρ12−ρ13ρ23−ρ23ρ13+ρ13ρ23=ρ12−ρ13ρ23.\text{Cov}(X_{1\cdot3},X_{2\cdot3})=\rho_{12}-\rho_{13}\rho_{23}-\rho_{23}\rho_{13}+\rho_{13}\rho_{23}=\rho_{12}-\rho_{13}\rho_{23}.

Result. ρ12⋅3=Cov(X1⋅3,X2⋅3)V(X1⋅3)V(X2⋅3)=ρ12−ρ13ρ23(1−ρ132)(1−ρ232).\rho_{12\cdot3}=\frac{\text{Cov}(X_{1\cdot3},X_{2\cdot3})}{\sqrt{V(X_{1\cdot3})V(X_{2\cdot3})}}=\frac{\rho_{12}-\rho_{13}\rho_{23}}{\sqrt{(1-\rho_{13}^2)(1-\rho_{23}^2)}} .

(The same formula holds for the sample coefficients r12⋅3r_{12\cdot3}, 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 −σ¹²/√(σ¹¹σ²²).

↑ Back to the question list

Let 𝐗=(X1X2X3)′ be distributed as N3(𝛍,Σ), where 𝛍=(2−13)′ and Σ=(410121013). Find (i) the conditional distribution of (X1X2)′ given X3=2. (ii) partial correlation coefficient ρ12.3 and multiple correlation coefficient R1.23.

2023 · Paper I · Q6a · 15 marks

Solution

Partition. Take X(1)=(X1,X2)′X^{(1)}=(X_1,X_2)' and X(2)=X3X^{(2)}=X_3: μ(1)=(2−1),μ(2)=3,Σ11=(4112),Σ12=(01),Σ22=3.\mu^{(1)}=\begin{pmatrix}2\\-1\end{pmatrix},\ \mu^{(2)}=3,\qquad\Sigma_{11}=\begin{pmatrix}4&1\\1&2\end{pmatrix},\ \Sigma_{12}=\begin{pmatrix}0\\1\end{pmatrix},\ \Sigma_{22}=3 .

(i) Conditional distribution. For the multivariate normal, X(1)∣X(2)=x(2)∼N2(μ(1)+Σ12Σ22−1(x(2)−μ(2)),Σ11−Σ12Σ22−1Σ21).X^{(1)}\mid X^{(2)}=x^{(2)}\ \sim\ N_2\Big(\mu^{(1)}+\Sigma_{12}\Sigma_{22}^{-1}(x^{(2)}-\mu^{(2)}),\ \Sigma_{11}-\Sigma_{12}\Sigma_{22}^{-1}\Sigma_{21}\Big). With x3=2x_3=2: mean=(2−1)+(01)2−33=(2−4/3),\text{mean}=\begin{pmatrix}2\\-1\end{pmatrix}+\begin{pmatrix}0\\1\end{pmatrix}\frac{2-3}{3}=\begin{pmatrix}2\\-4/3\end{pmatrix}, Σ11⋅2=(4112)−13(0001)=(4115/3).\Sigma_{11\cdot2}=\begin{pmatrix}4&1\\1&2\end{pmatrix}-\frac13\begin{pmatrix}0&0\\0&1\end{pmatrix}=\begin{pmatrix}4&1\\1&5/3\end{pmatrix}. So (X1X2)|X3=2∼N2((2−4/3),(4115/3)).\begin{pmatrix}X_1\\X_2\end{pmatrix}\Big|\,X_3=2\ \sim\ N_2\left(\begin{pmatrix}2\\-4/3\end{pmatrix},\begin{pmatrix}4&1\\1&5/3\end{pmatrix}\right).

(ii) Partial correlation. It is the correlation in the conditional covariance matrix: ρ12⋅3=14×5/3=320=0.387.\rho_{12\cdot3}=\frac{1}{\sqrt{4\times5/3}}=\sqrt{\frac3{20}}=0.387 .

Multiple correlation. With σ(1)=(σ12,σ13)=(1,0)\sigma_{(1)}=(\sigma_{12},\sigma_{13})=(1,0) and Σ(23)=(2113)\Sigma_{(23)}=\begin{pmatrix}2&1\\1&3\end{pmatrix}, whose inverse is 15(3−1−12)\frac15\begin{pmatrix}3&-1\\-1&2\end{pmatrix}: R1⋅232=σ(1)Σ(23)−1σ(1)′σ11=15(1,0)(3−1−12)(10)4=3/54=0.15,R_{1\cdot23}^2=\frac{\sigma_{(1)}\Sigma_{(23)}^{-1}\sigma_{(1)}'}{\sigma_{11}}=\frac{\frac15(1,0)\begin{pmatrix}3&-1\\-1&2\end{pmatrix}\begin{pmatrix}1\\0\end{pmatrix}}{4}=\frac{3/5}{4}=0.15, R1⋅23=0.15=0.387.R_{1\cdot23}=\sqrt{0.15}=0.387 .

(The two values are equal here only by coincidence: X1X_1 is uncorrelated with X3X_3.)

✓ 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).

↑ Back to the question list

(i) If X1=Y1+Y2,X2=Y2+Y3,X3=Y3+Y1, where Y1,Y2 and Y3 are uncorrelated random variables and each of which has zero mean and unit standard deviation, find the multiple correlation coefficient between X3 and X1,X2. (ii) Let 𝐗 be a 3-dimensional random vector with dispersion matrix Σ=(933393339). Determine the first principal component and the proportion of the total variability that it explains.

2022 · Paper I · Q6c · 15 marks

Solution

(i) Covariances. Since the YiY_i are uncorrelated with variance 1, V(Xi)=1+1=2,Cov(X1,X2)=V(Y2)=1,Cov(X2,X3)=V(Y3)=1,Cov(X3,X1)=V(Y1)=1.V(X_i)=1+1=2,\qquad\text{Cov}(X_1,X_2)=V(Y_2)=1,\quad\text{Cov}(X_2,X_3)=V(Y_3)=1,\quad\text{Cov}(X_3,X_1)=V(Y_1)=1 . So every correlation is r=1/2r=1/2: ρ12=ρ13=ρ23=12.\rho_{12}=\rho_{13}=\rho_{23}=\tfrac12 .

Multiple correlation of X3X_3 on X1,X2X_1,X_2. R3⋅122=ρ312+ρ322−2ρ31ρ32ρ121−ρ122=14+14−2⋅181−14=1/43/4=13,R_{3\cdot12}^2=\frac{\rho_{31}^2+\rho_{32}^2-2\rho_{31}\rho_{32}\rho_{12}}{1-\rho_{12}^2}=\frac{\frac14+\frac14-2\cdot\frac18}{1-\frac14}=\frac{1/4}{3/4}=\frac13, R3⋅12=13=0.577.R_{3\cdot12}=\frac1{\sqrt3}=0.577 .

(ii) First principal component. The eigenvalues of Σ\Sigma solve |Σ−λI|=0|\Sigma-\lambda I|=0. Write Σ=6I+3J\Sigma=6I+3J, where JJ is the matrix of ones. JJ has eigenvalues 3,0,03,0,0, so Σ\Sigma has eigenvalues λ1=6+3⋅3=15,λ2=λ3=6.\lambda_1=6+3\cdot3=15,\qquad\lambda_2=\lambda_3=6 . The eigenvector for λ1=15\lambda_1=15 is proportional to (1,1,1)′(1,1,1)'; normalised, e1=13(1,1,1)′e_1=\frac1{\sqrt3}(1,1,1)'. So Y1=X1+X2+X33,V(Y1)=15.Y_1=\frac{X_1+X_2+X_3}{\sqrt3},\qquad V(Y_1)=15 .

Proportion of total variability. tr(Σ)=27\text{tr}(\Sigma)=27, so λ1λ1+λ2+λ3=1527=0.556(55.6%).\frac{\lambda_1}{\lambda_1+\lambda_2+\lambda_3}=\frac{15}{27}=0.556\ (55.6\%).

✓ 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%.

↑ Back to the question list

For a multiple linear regression model with three covariates X1,X2 and X3, let rij denote the correlation coefficient between Xi and Xj. For a data, it was found r12=0.77,r23=0.52,r13=0.72. (i) Check the consistency of the above data. (ii) If r13 is unknown, obtain the limits within which r13 lies given the above values for r12 and r23.

2021 · Paper I · Q6a · 20 marks

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 [−1,1][-1,1] and |R|=1−r122−r132−r232+2r12r13r23≥0.|R|=1-r_{12}^2-r_{13}^2-r_{23}^2+2r_{12}r_{13}r_{23}\ \ge0 . (Equivalently, every partial correlation lies in [−1,1][-1,1].)

Here |R|=1−0.5929−0.5184−0.2704+2(0.77)(0.72)(0.52)=1−1.3817+0.5766=0.1949>0.|R|=1-0.5929-0.5184-0.2704+2(0.77)(0.72)(0.52)=1-1.3817+0.5766=0.1949>0 . The data are consistent. (Check: r13⋅2=0.72−0.77×0.52(1−0.5929)(1−0.2704)=0.31960.5450=0.586r_{13\cdot2}=\dfrac{0.72-0.77\times0.52}{\sqrt{(1-0.5929)(1-0.2704)}}=\dfrac{0.3196}{0.5450}=0.586, inside [−1,1][-1,1].)

(ii) Limits for r13r_{13}. Treat |R|≥0|R|\ge0 as a quadratic in r13r_{13}: r132−2r12r23r13−(1−r122−r232)≤0.r_{13}^2-2r_{12}r_{23}\,r_{13}-(1-r_{12}^2-r_{23}^2)\le0 . Its roots are r13=r12r23±(1−r122)(1−r232).r_{13}=r_{12}r_{23}\pm\sqrt{(1-r_{12}^2)(1-r_{23}^2)} . Here r12r23=0.4004r_{12}r_{23}=0.4004 and (0.4071)(0.7296)=0.29702=0.5450\sqrt{(0.4071)(0.7296)}=\sqrt{0.29702}=0.5450. So −0.145≤r13≤0.945.-0.145\ \le\ r_{13}\ \le\ 0.945 . The given value r13=0.72r_{13}=0.72 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.

↑ Back to the question list

Let 𝐗∼N3((123),(11−62−610−42−46)) Z1=X2−X3Z2=X2+X3Z3∣Z1,Z2∼N(Z1+Z2,10) Derive: (i) The joint distribution of Z1, Z2 and Z3 (ii) The conditional mean of X3 given X1 and X2 (iii) ρ3⋅122

2019 · Paper I · Q7a · 20 marks

Solution

(i) Joint distribution of Z1,Z2,Z3Z_1,Z_2,Z_3.

Z1=X2−X3Z_1=X_2-X_3 and Z2=X2+X3Z_2=X_2+X_3 are linear in XX, so they are jointly normal: E(Z1)=2−3=−1,E(Z2)=2+3=5,E(Z_1)=2-3=-1,\qquad E(Z_2)=2+3=5, V(Z1)=10+6−2(−4)=24,V(Z2)=10+6+2(−4)=8,Cov(Z1,Z2)=V(X2)−V(X3)=10−6=4.V(Z_1)=10+6-2(-4)=24,\quad V(Z_2)=10+6+2(-4)=8,\quad\text{Cov}(Z_1,Z_2)=V(X_2)-V(X_3)=10-6=4 .

Given Z1,Z2Z_1,Z_2, Z3∼N(Z1+Z2,10)Z_3\sim N(Z_1+Z_2,10). So we can write Z3=Z1+Z2+εZ_3=Z_1+Z_2+\varepsilon, with ε∼N(0,10)\varepsilon\sim N(0,10) independent of (Z1,Z2)(Z_1,Z_2). Then (Z1,Z2,Z3)(Z_1,Z_2,Z_3) is trivariate normal with E(Z3)=−1+5=4,V(Z3)=24+8+2(4)+10=50,E(Z_3)=-1+5=4,\qquad V(Z_3)=24+8+2(4)+10=50, Cov(Z1,Z3)=24+4=28,Cov(Z2,Z3)=4+8=12.\text{Cov}(Z_1,Z_3)=24+4=28,\qquad\text{Cov}(Z_2,Z_3)=4+8=12 . (Z1Z2Z3)∼N3((−154),(244284812281250)).\begin{pmatrix}Z_1\\Z_2\\Z_3\end{pmatrix}\sim N_3\left(\begin{pmatrix}-1\\5\\4\end{pmatrix},\begin{pmatrix}24&4&28\\4&8&12\\28&12&50\end{pmatrix}\right).

(ii) E(X3∣X1,X2)E(X_3\mid X_1,X_2). E(X3∣x1,x2)=μ3+Σ3,(12)Σ(12)−1(x1−1x2−2),E(X_3\mid x_1,x_2)=\mu_3+\Sigma_{3,(12)}\Sigma_{(12)}^{-1}\begin{pmatrix}x_1-1\\x_2-2\end{pmatrix}, with Σ3,(12)=(2,−4)\Sigma_{3,(12)}=(2,-4) and Σ(12)=(11−6−610)\Sigma_{(12)}=\begin{pmatrix}11&-6\\-6&10\end{pmatrix}, |Σ(12)|=110−36=74|\Sigma_{(12)}|=110-36=74: Σ(12)−1=174(106611),(2,−4)Σ(12)−1=174(20−24,12−44)=(−237,−1637).\Sigma_{(12)}^{-1}=\frac1{74}\begin{pmatrix}10&6\\6&11\end{pmatrix},\qquad(2,-4)\Sigma_{(12)}^{-1}=\frac1{74}(20-24,\ 12-44)=\Big(-\frac2{37},-\frac{16}{37}\Big). E(X3∣x1,x2)=3−237(x1−1)−1637(x2−2)=145−2x1−16x237.E(X_3\mid x_1,x_2)=3-\frac2{37}(x_1-1)-\frac{16}{37}(x_2-2)=\frac{145-2x_1-16x_2}{37}.

(iii) ρ3⋅122\rho^2_{3\cdot12} (the squared multiple correlation of X3X_3 on X1,X2X_1,X_2): ρ3⋅122=Σ3,(12)Σ(12)−1Σ(12),3σ33=(−237)(2)+(−1637)(−4)6=60/376=1037=0.270.\rho^2_{3\cdot12}=\frac{\Sigma_{3,(12)}\Sigma_{(12)}^{-1}\Sigma_{(12),3}}{\sigma_{33}}=\frac{\big(-\frac2{37}\big)(2)+\big(-\frac{16}{37}\big)(-4)}{6}=\frac{60/37}{6}=\frac{10}{37}=0.270 .

(The conditional variance is 6−60/37=162/37=4.386-60/37=162/37=4.38.)

✓ 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.

↑ Back to the question list

For a random sample of size n from N4(μ,Σ), we obtain μ̂=(18,15,18,14) and Σ̂=[9.55.25.46.95.110.04.63.55.64.5]. (i) Find the estimates of the parameters of the conditional distribution of (X3,X4) given (X1,X2). (ii) Find the partial correlation r34⋅12.

2018 · Paper I · Q7a · 20 marks

Solution

Partition with X(1)=(X3,X4)′X^{(1)}=(X_3,X_4)' (the variables we condition) and X(2)=(X1,X2)′X^{(2)}=(X_1,X_2)'. The full symmetric matrix is Σ̂=(9.55.26.94.65.25.45.13.56.95.110.05.64.63.55.64.5),\hat\Sigma=\begin{pmatrix}9.5&5.2&6.9&4.6\\5.2&5.4&5.1&3.5\\6.9&5.1&10.0&5.6\\4.6&3.5&5.6&4.5\end{pmatrix}, so S22=(9.55.25.25.4),S12=(6.95.14.63.5),S11=(10.05.65.64.5).S_{22}=\begin{pmatrix}9.5&5.2\\5.2&5.4\end{pmatrix},\quad S_{12}=\begin{pmatrix}6.9&5.1\\4.6&3.5\end{pmatrix},\quad S_{11}=\begin{pmatrix}10.0&5.6\\5.6&4.5\end{pmatrix}.

(i) Parameters of the conditional distribution. |S22|=51.30−27.04=24.26|S_{22}|=51.30-27.04=24.26, and S22−1=124.26(5.4−5.2−5.29.5).S_{22}^{-1}=\frac1{24.26}\begin{pmatrix}5.4&-5.2\\-5.2&9.5\end{pmatrix}. Regression matrix: B̂=S12S22−1=(0.44270.51810.27370.3846).\hat B=S_{12}S_{22}^{-1}=\begin{pmatrix}0.4427&0.5181\\0.2737&0.3846\end{pmatrix}. Intercepts μ̂(1)−B̂μ̂(2)\hat\mu^{(1)}-\hat B\hat\mu^{(2)}: (1814)−B̂(1815)=(2.2593.305).\begin{pmatrix}18\\14\end{pmatrix}-\hat B\begin{pmatrix}18\\15\end{pmatrix}=\begin{pmatrix}2.259\\3.305\end{pmatrix}. So the estimated conditional means are Ê(X3∣x1,x2)=2.259+0.443x1+0.518x2,Ê(X4∣x1,x2)=3.305+0.274x1+0.385x2.\hat E(X_3\mid x_1,x_2)=2.259+0.443x_1+0.518x_2,\qquad\hat E(X_4\mid x_1,x_2)=3.305+0.274x_1+0.385x_2 . Estimated conditional covariance matrix: Σ̂11⋅2=S11−S12S22−1S21=(4.3031.7501.7501.895).\hat\Sigma_{11\cdot2}=S_{11}-S_{12}S_{22}^{-1}S_{21}=\begin{pmatrix}4.303&1.750\\1.750&1.895\end{pmatrix}.

(ii) Partial correlation. r34⋅12=1.7504.303×1.895=1.7502.855=0.613.r_{34\cdot12}=\frac{1.750}{\sqrt{4.303\times1.895}}=\frac{1.750}{2.855}=0.613 .

✓ Checked by computer We re-did the matrix algebra in Python: regression matrix, intercepts and conditional covariance as shown, and r₃₄·₁₂ = 0.613.

↑ Back to the question list

If X1=Y1+Y2, X2=Y2+Y3, X3=Y3+Y1, where Y1, Y2 and Y3 are uncorrelated random variables and each of which has zero mean and unit standard deviation, find the multiple correlation coefficient between X1 and X2, X3.

2016 · Paper I · Q5a · 10 marks

Solution

Variances and covariances. The YiY_i are uncorrelated with mean 0 and variance 1, so V(X1)=V(Y1)+V(Y2)=2,V(X2)=V(X3)=2,V(X_1)=V(Y_1)+V(Y_2)=2,\qquad V(X_2)=V(X_3)=2, Cov(X1,X2)=Cov(Y1+Y2,Y2+Y3)=V(Y2)=1,\text{Cov}(X_1,X_2)=\text{Cov}(Y_1+Y_2,\,Y_2+Y_3)=V(Y_2)=1, and similarly Cov(X1,X3)=V(Y1)=1\text{Cov}(X_1,X_3)=V(Y_1)=1 and Cov(X2,X3)=V(Y3)=1\text{Cov}(X_2,X_3)=V(Y_3)=1.

So ρ12=ρ13=ρ23=12⋅2=12\rho_{12}=\rho_{13}=\rho_{23}=\dfrac1{\sqrt{2\cdot2}}=\dfrac12.

Multiple correlation. R1⋅232=ρ122+ρ132−2ρ12ρ13ρ231−ρ232=14+14−1434=13,R_{1\cdot23}^2=\frac{\rho_{12}^2+\rho_{13}^2-2\rho_{12}\rho_{13}\rho_{23}}{1-\rho_{23}^2}=\frac{\frac14+\frac14-\frac14}{\frac34}=\frac13, R1⋅23=13≈0.577.R_{1\cdot23}=\frac1{\sqrt3}\approx0.577 .

✓ Checked by computer We checked in Python that every correlation is 1/2 and that R₁·₂₃ = 1/√3 = 0.577.

↑ Back to the question list

Let X=(X1,X2…Xp)′ be a p-dimensional random vector with E(X)=0, V(X)=Σ. Define partial correlation coefficient ρ12.(3…p) between X1, X2. Show that ρ12.(3…p)2=(σ12)2σ11σ22 where σij is the (i,j)th element of Σ−1.

2015 · Paper I · Q5b · 10 marks

Solution

Definition. Partition X=(X1,X2,X(3))X=(X_1,X_2,X^{(3)}) with X(3)=(X3,…,Xp)′X^{(3)}=(X_3,\dots,X_p)'. Let X1⋅3…pX_{1\cdot3\ldots p} and X2⋅3…pX_{2\cdot3\ldots p} be the residuals of X1X_1 and X2X_2 after their best linear prediction from X(3)X^{(3)}. The partial correlation is ρ12⋅(3…p)=Corr(X1⋅3…p,X2⋅3…p).\rho_{12\cdot(3\ldots p)}=\text{Corr}\big(X_{1\cdot3\ldots p},\,X_{2\cdot3\ldots p}\big). Equivalently, it is the correlation in the conditional covariance matrix of (X1,X2)(X_1,X_2) given X(3)X^{(3)}: Σ11⋅2=Σ11−Σ12Σ22−1Σ21,\Sigma_{11\cdot2}=\Sigma_{11}-\Sigma_{12}\Sigma_{22}^{-1}\Sigma_{21}, where now Σ11\Sigma_{11} is the 2×22\times2 block for (X1,X2)(X_1,X_2) and Σ22\Sigma_{22} the block for X(3)X^{(3)}.

Proof of the formula. By the formula for the inverse of a partitioned matrix, the leading 2×22\times2 block of Σ−1\Sigma^{-1} is (σ11σ12σ21σ22)=(Σ11−Σ12Σ22−1Σ21)−1=Σ11⋅2−1.\begin{pmatrix}\sigma^{11}&\sigma^{12}\\\sigma^{21}&\sigma^{22}\end{pmatrix}=\big(\Sigma_{11}-\Sigma_{12}\Sigma_{22}^{-1}\Sigma_{21}\big)^{-1}=\Sigma_{11\cdot2}^{-1}. Write Σ11⋅2=(accb)\Sigma_{11\cdot2}=\begin{pmatrix}a&c\\c&b\end{pmatrix}, so ρ12⋅(3…p)=c/ab\rho_{12\cdot(3\ldots p)}=c/\sqrt{ab}. Its inverse is Σ11⋅2−1=1ab−c2(b−c−ca),\Sigma_{11\cdot2}^{-1}=\frac1{ab-c^2}\begin{pmatrix}b&-c\\-c&a\end{pmatrix}, so σ11=bab−c2,σ22=aab−c2,σ12=−cab−c2.\sigma^{11}=\frac b{ab-c^2},\qquad\sigma^{22}=\frac a{ab-c^2},\qquad\sigma^{12}=\frac{-c}{ab-c^2}. Then (σ12)2σ11σ22=c2ab=ρ12⋅(3…p)2.\frac{(\sigma^{12})^2}{\sigma^{11}\sigma^{22}}=\frac{c^2}{ab}=\rho_{12\cdot(3\ldots p)}^2 . Taking signs into account, ρ12⋅(3…p)=−σ12σ11σ22\rho_{12\cdot(3\ldots p)}=-\dfrac{\sigma^{12}}{\sqrt{\sigma^{11}\sigma^{22}}}. ◼\blacksquare

✓ Proof checked step by step We checked the proof, and checked numerically for random 4 × 4 covariance matrices that the residual partial correlation equals −σ¹²/√(σ¹¹σ²²).

↑ Back to the question list

Define multiple correlation coefficient ρ1.23…p between X1 and X2,X3,…Xp and show that 1−ρ1.2…p2=(σ11σ11)−1 where σ11 and σ11 are (1,1)th elements of the dispersion matrix Σ and Σ−1 respectively.

2013 · Paper I · Q5e · 10 marks

Solution

Definition. The multiple correlation coefficient ρ1⋅23…p\rho_{1\cdot23\ldots p} is the largest correlation between X1X_1 and any linear function β′X(2)\beta'X^{(2)} of X(2)=(X2,…,Xp)′X^{(2)}=(X_2,\dots,X_p)'. The maximum is reached by the best linear predictor β=Σ22−1σ21\beta=\Sigma_{22}^{-1}\sigma_{21}, and ρ1⋅23…p2=σ12Σ22−1σ21σ11,\rho_{1\cdot23\ldots p}^2=\frac{\sigma_{12}\Sigma_{22}^{-1}\sigma_{21}}{\sigma_{11}}, where Σ=(σ11σ12σ21Σ22)\Sigma=\begin{pmatrix}\sigma_{11}&\sigma_{12}\\\sigma_{21}&\Sigma_{22}\end{pmatrix} with σ12\sigma_{12} a 1×(p−1)1\times(p-1) row.

(Why: for any β\beta, by Cauchy–Schwarz in the Σ22\Sigma_{22} inner product, Corr2(X1,β′X(2))=(σ12β)2σ11β′Σ22β≤σ12Σ22−1σ21σ11\text{Corr}^2(X_1,\beta'X^{(2)})=\dfrac{(\sigma_{12}\beta)^2}{\sigma_{11}\,\beta'\Sigma_{22}\beta}\le\dfrac{\sigma_{12}\Sigma_{22}^{-1}\sigma_{21}}{\sigma_{11}}, with equality at β∝Σ22−1σ21\beta\propto\Sigma_{22}^{-1}\sigma_{21}.)

Proof of the identity. The (1,1)(1,1) element of the inverse of a partitioned matrix is σ11=(σ11−σ12Σ22−1σ21)−1=1σ11⋅2…p,\sigma^{11}=\big(\sigma_{11}-\sigma_{12}\Sigma_{22}^{-1}\sigma_{21}\big)^{-1}=\frac1{\sigma_{11\cdot2\ldots p}}, the reciprocal of the residual variance of X1X_1 given the others. Hence σ11σ11=σ11σ11−σ12Σ22−1σ21=11−ρ1⋅2…p2,\sigma_{11}\sigma^{11}=\frac{\sigma_{11}}{\sigma_{11}-\sigma_{12}\Sigma_{22}^{-1}\sigma_{21}}=\frac1{1-\rho_{1\cdot2\ldots p}^2}, that is, 1−ρ1⋅2…p2=(σ11σ11)−1.◼1-\rho^2_{1\cdot2\ldots p}=(\sigma_{11}\sigma^{11})^{-1}. \qquad\blacksquare

Equivalently, 1−ρ1⋅2…p2=|Σ|/(σ11|Σ22|)1-\rho^2_{1\cdot2\ldots p}=|\Sigma|/(\sigma_{11}|\Sigma_{22}|), 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/(σ₁₁σ¹¹).

↑ Back to the question list

If r12, r13 and r23 are the simple correlation coefficients between X1 and X2; X1 and X3; X2 and X3 respectively then show that r12.3=r12−r13r23(1−r132)(1−r232). Also examine the validity of the statement “the range of the partial regression coefficient is −∞ to +∞.”

2012 · Paper I · Q5c · 12 marks

Solution

Derivation. Work with standardised variables. The least squares residuals of X1X_1 and X2X_2 on X3X_3 are e1⋅3=x1−r13x3,e2⋅3=x2−r23x3e_{1\cdot3}=x_1-r_{13}x_3,\qquad e_{2\cdot3}=x_2-r_{23}x_3 (in standard units). Their sample variances and covariance are s1⋅32=1−r132,s2⋅32=1−r232,s^2_{1\cdot3}=1-r_{13}^2,\qquad s^2_{2\cdot3}=1-r_{23}^2, cov(e1⋅3,e2⋅3)=r12−r13r23−r23r13+r13r23=r12−r13r23.\text{cov}(e_{1\cdot3},e_{2\cdot3})=r_{12}-r_{13}r_{23}-r_{23}r_{13}+r_{13}r_{23}=r_{12}-r_{13}r_{23}. The partial correlation r12⋅3r_{12\cdot3} is the correlation between these residuals: r12⋅3=r12−r13r23(1−r132)(1−r232).◼r_{12\cdot3}=\frac{r_{12}-r_{13}r_{23}}{\sqrt{(1-r_{13}^2)(1-r_{23}^2)}}. \qquad\blacksquare

The statement about the partial regression coefficient. The statement is true.

  • A partial correlation coefficient always lies in [−1,1][-1,1], because it is an ordinary correlation between two residual series.
  • A partial regression coefficient is a slope, not a correlation: b12⋅3=r12⋅3s1⋅3s2⋅3=r12−r13r231−r232⋅s1s2.b_{12\cdot3}=r_{12\cdot3}\,\frac{s_{1\cdot3}}{s_{2\cdot3}}=\frac{r_{12}-r_{13}r_{23}}{1-r_{23}^2}\cdot\frac{s_1}{s_2}. It depends on the units of measurement through s1/s2s_1/s_2, which can be any positive number. So b12⋅3b_{12\cdot3} can be made as large or small as we like by rescaling X1X_1 or X2X_2: its range is (−∞,∞)(-\infty,\infty). For example, with r12⋅3=0.9r_{12\cdot3}=0.9 and s1⋅3/s2⋅3=10s_{1\cdot3}/s_{2\cdot3}=10, b12⋅3=9b_{12\cdot3}=9.
  • Only its sign is restricted: b12⋅3b_{12\cdot3} has the same sign as r12⋅3r_{12\cdot3} (and as b21⋅3b_{21\cdot3}), and b12⋅3b21⋅3=r12⋅32≤1b_{12\cdot3}b_{21\cdot3}=r_{12\cdot3}^2\le1.

✓ 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).

↑ Back to the question list

Suppose that X∼ follow the p variate normal distribution with co-variance matrix Σ=[σ2ρσ2ρσ2…ρσ2ρσ2σ2ρσ2…ρσ2ρσ2ρσ2σ2…ρσ2……………ρσ2ρσ2ρσ2…σ2] Obtain the expression for the multiple correlation coefficient R1.23…p.

2012 · Paper I · Q6a · 20 marks

Solution

Set-up. The variance σ2\sigma^2 cancels from correlations, so work with the correlation matrix: 1 on the diagonal and ρ\rho elsewhere. Partition with X1X_1 first: σ11=1,σ12=ρ𝟏′p−1,Σ22=(1−ρ)Ip−1+ρJp−1.\sigma_{11}=1,\qquad\sigma_{12}=\rho\,\mathbf 1'_{p-1},\qquad\Sigma_{22}=(1-\rho)I_{p-1}+\rho J_{p-1}.

Inverse of Σ22\Sigma_{22} applied to 𝟏\mathbf 1. Since J𝟏=(p−1)𝟏J\mathbf 1=(p-1)\mathbf 1, Σ22𝟏=(1−ρ)𝟏+ρ(p−1)𝟏={1+(p−2)ρ}𝟏,\Sigma_{22}\mathbf 1=(1-\rho)\mathbf 1+\rho(p-1)\mathbf 1=\{1+(p-2)\rho\}\mathbf 1, so 𝟏\mathbf 1 is an eigenvector and Σ22−1𝟏=𝟏1+(p−2)ρ.\Sigma_{22}^{-1}\mathbf 1=\frac{\mathbf 1}{1+(p-2)\rho}.

Multiple correlation. R1⋅23…p2=σ12Σ22−1σ21σ11=ρ2𝟏′Σ22−1𝟏=ρ2(p−1)1+(p−2)ρ.R^2_{1\cdot23\ldots p}=\frac{\sigma_{12}\Sigma_{22}^{-1}\sigma_{21}}{\sigma_{11}}=\rho^2\,\mathbf 1'\Sigma_{22}^{-1}\mathbf 1=\frac{\rho^2(p-1)}{1+(p-2)\rho}. R1⋅23…p=|ρ|p−11+(p−2)ρ.R_{1\cdot23\ldots p}=|\rho|\sqrt{\frac{p-1}{1+(p-2)\rho}} .

(For Σ\Sigma to be positive definite we need −1p−1<ρ<1-\frac1{p-1}<\rho<1, which keeps the denominator positive. For p=3p=3 this gives R2=2ρ2/(1+ρ)R^2=2\rho^2/(1+\rho), 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)ρ}.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Suppose, with usual notation r12=0⋅36, r13=0⋅29, r14=−0⋅62, r23=0⋅41, r24=−0⋅24, r34=−0⋅52. For predicting x1, the variable x4 has already been included in the regression equation. Which one of x2 and x3 is worth including in the regression equation in addition to x4?

2011 · Paper I · Q5e · 12 marks

Solution

Criterion. Once x4x_4 is in the equation, the extra contribution of a new variable xkx_k is measured by the partial correlation r1k⋅4r_{1k\cdot4}: 1−R1⋅k42=(1−r142)(1−r1k⋅42).1-R^2_{1\cdot k4}=(1-r_{14}^2)(1-r^2_{1k\cdot4}). So we add the variable with the larger |r1k⋅4||r_{1k\cdot4}|.

Partial correlations. r12⋅4=r12−r14r24(1−r142)(1−r242)=0.36−(−0.62)(−0.24)(1−0.3844)(1−0.0576)=0.21120.7617=0.277,r_{12\cdot4}=\frac{r_{12}-r_{14}r_{24}}{\sqrt{(1-r_{14}^2)(1-r_{24}^2)}}=\frac{0.36-(-0.62)(-0.24)}{\sqrt{(1-0.3844)(1-0.0576)}}=\frac{0.2112}{0.7617}=0.277, r13⋅4=r13−r14r34(1−r142)(1−r342)=0.29−(−0.62)(−0.52)(0.6156)(1−0.2704)=−0.03240.6702=−0.048.r_{13\cdot4}=\frac{r_{13}-r_{14}r_{34}}{\sqrt{(1-r_{14}^2)(1-r_{34}^2)}}=\frac{0.29-(-0.62)(-0.52)}{\sqrt{(0.6156)(1-0.2704)}}=\frac{-0.0324}{0.6702}=-0.048 .

Effect on R2R^2. With x4x_4 alone, R2=r142=0.384R^2=r_{14}^2=0.384.

  • Adding x2x_2: R1⋅242=1−0.6156(1−0.0769)=0.432R^2_{1\cdot24}=1-0.6156(1-0.0769)=0.432.
  • Adding x3x_3: R1⋅342=1−0.6156(1−0.0023)=0.386R^2_{1\cdot34}=1-0.6156(1-0.0023)=0.386.

Conclusion. x2x_2 is worth including: it explains a further 7.7% of the variation in x1x_1 that x4x_4 leaves unexplained. x3x_3 adds almost nothing (0.2%), because most of its correlation with x1x_1 is already carried by x4x_4 (note r34=−0.52r_{34}=-0.52).

✓ 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.

↑ Back to the question list

Does the observed correlation between two variables X1 and X2 always imply causal relationship between them? Give an example. Define partial correlation coefficient r12⋅3 between X1 and X2 eliminating from each the effect of X3. Why is r12⋅3 more suitable for throwing light on the net correlation between X1 and X2? Based on the observed data set xij, i=1,2,3 and j=1(1)n, derive the expression for r12⋅3.

2011 · Paper I · Q8a · 20 marks

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 r12⋅3r_{12\cdot3} is the correlation between X1X_1 and X2X_2 after the linear effect of X3X_3 has been removed from each. It is the correlation between the residuals X1⋅3=X1−b13X3X_{1\cdot3}=X_1-b_{13}X_3 and X2⋅3=X2−b23X3X_{2\cdot3}=X_2-b_{23}X_3.

Why it is more suitable. The simple correlation r12r_{12} mixes the direct association of X1X_1 and X2X_2 with the indirect association that comes through X3X_3. Removing X3X_3 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 X3X_3 could be held constant.

Derivation from data xijx_{ij}, i=1,2,3i=1,2,3, j=1,…,nj=1,\dots,n. Take deviations from the means, Xij=xij−x‾iX_{ij}=x_{ij}-\bar x_i, so that ∑jXij=0\sum_jX_{ij}=0, and write si2=1n∑Xij2s_i^2=\frac1n\sum X_{ij}^2 and rik=∑XijXkjnsiskr_{ik}=\frac{\sum X_{ij}X_{kj}}{ns_is_k}.

The least squares regression of X1X_1 on X3X_3 has slope b13=r13s1/s3b_{13}=r_{13}s_1/s_3, so the residual is e1j=X1j−r13s1s3X3j,and similarlye2j=X2j−r23s2s3X3j.e_{1j}=X_{1j}-r_{13}\frac{s_1}{s_3}X_{3j},\qquad\text{and similarly}\qquad e_{2j}=X_{2j}-r_{23}\frac{s_2}{s_3}X_{3j}. Then 1n∑e1j2=s12−2r13s1s3r13s1s3+r132s12=s12(1−r132),\frac1n\sum e_{1j}^2=s_1^2-2r_{13}\frac{s_1}{s_3}r_{13}s_1s_3+r_{13}^2s_1^2=s_1^2(1-r_{13}^2), 1n∑e2j2=s22(1−r232),\frac1n\sum e_{2j}^2=s_2^2(1-r_{23}^2), 1n∑e1je2j=r12s1s2−r23s2s3r13s1s3−r13s1s3r23s2s3+r13r23s1s2=s1s2(r12−r13r23).\frac1n\sum e_{1j}e_{2j}=r_{12}s_1s_2-r_{23}\frac{s_2}{s_3}r_{13}s_1s_3-r_{13}\frac{s_1}{s_3}r_{23}s_2s_3+r_{13}r_{23}s_1s_2=s_1s_2(r_{12}-r_{13}r_{23}). So r12⋅3=∑e1je2j∑e1j2∑e2j2=r12−r13r23(1−r132)(1−r232).r_{12\cdot3}=\frac{\sum e_{1j}e_{2j}}{\sqrt{\sum e_{1j}^2\sum e_{2j}^2}}=\frac{r_{12}-r_{13}r_{23}}{\sqrt{(1-r_{13}^2)(1-r_{23}^2)}}.

✓ 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.

↑ Back to the question list

Consider the mean vector for X=[X1X2] to be μx=[3−2] and for Y to be μy=4. The covariance matrices for X1, X2 and Y are Σxx=[2111],σYY=9 and ΣXY=[31] Fit the equation Y=b0+b1X1+b2X2 and calculate multiple correlation coefficient.

2010 · Paper I · Q5d · 12 marks

Solution

Regression coefficients. The population least squares coefficients are (b1b2)=ΣXX−1ΣXY=12−1(1−1−12)(31)=(2−1).\begin{pmatrix}b_1\\b_2\end{pmatrix}=\Sigma_{XX}^{-1}\Sigma_{XY}=\frac1{2-1}\begin{pmatrix}1&-1\\-1&2\end{pmatrix}\begin{pmatrix}3\\1\end{pmatrix}=\begin{pmatrix}2\\-1\end{pmatrix}.

Intercept. b0=μY−b1μX1−b2μX2=4−2(3)−(−1)(−2)=4−6−2=−4.b_0=\mu_Y-b_1\mu_{X_1}-b_2\mu_{X_2}=4-2(3)-(-1)(-2)=4-6-2=-4 .

Fitted equation. Ŷ=−4+2X1−X2.\hat Y=-4+2X_1-X_2 .

Multiple correlation coefficient. R2=ΣYXΣXX−1ΣXYσYY=(3,1)(2−1)9=6−19=59,R^2=\frac{\Sigma_{YX}\Sigma_{XX}^{-1}\Sigma_{XY}}{\sigma_{YY}}=\frac{(3,1)\begin{pmatrix}2\\-1\end{pmatrix}}9=\frac{6-1}{9}=\frac59, R=5/9=0.745.R=\sqrt{5/9}=0.745 . So the regression explains 55.6% of the variance of YY; the residual variance is 9−5=49-5=4.

✓ Checked by computer We checked in Python: b = (2, −1), b₀ = −4 and R² = 5/9, so R = 0.745.

↑ Back to the question list

Examine, after deducing necessary result, if the following set of correlation coefficients are internally consistent: r12=0⋅62, r13=0⋅55 and r23=−0⋅42.

2009 · Paper I · Q5b · 12 marks

Solution

The necessary result. For any three variables the correlation matrix R=(1r12r13r121r23r13r231)R=\begin{pmatrix}1&r_{12}&r_{13}\\r_{12}&1&r_{23}\\r_{13}&r_{23}&1\end{pmatrix} is positive semi-definite, because a′Raa'Ra is the variance of ∑aiXi/si\sum a_iX_i/s_i, which cannot be negative. So its determinant is non-negative: |R|=1−r122−r132−r232+2r12r13r23≥0.|R|=1-r_{12}^2-r_{13}^2-r_{23}^2+2r_{12}r_{13}r_{23}\ \ge0 . Equivalently, the partial correlation r23⋅1r_{23\cdot1} must lie in [−1,1][-1,1], since 1−r23⋅12=|R|(1−r122)(1−r132).1-r^2_{23\cdot1}=\frac{|R|}{(1-r_{12}^2)(1-r_{13}^2)}.

Check. |R|=1−0.3844−0.3025−0.1764+2(0.62)(0.55)(−0.42)=0.1367−0.2864=−0.1497<0.|R|=1-0.3844-0.3025-0.1764+2(0.62)(0.55)(-0.42)=0.1367-0.2864=-0.1497<0 .

Conclusion. The determinant is negative, so the coefficients are not internally consistent: no set of three variables can have these correlations. Directly, r23⋅1=−0.42−(0.62)(0.55)(1−0.3844)(1−0.3025)=−0.7610.6553=−1.16,r_{23\cdot1}=\frac{-0.42-(0.62)(0.55)}{\sqrt{(1-0.3844)(1-0.3025)}}=\frac{-0.761}{0.6553}=-1.16, which is impossible for a correlation.

Intuitively, X1X_1 is fairly strongly positively correlated with both X2X_2 and X3X_3, so X2X_2 and X3X_3 cannot be negatively correlated as strongly as −0.42-0.42.

✓ 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.

↑ Back to the question list

Describing briefly the concept of multiple regression, define multiple and partial correlations and obtain their formulae.

2006 · Paper I · Q5a · 12 marks

Solution

Multiple regression. Often a variable X1X_1 depends on several others, X2,…,XpX_2,\dots,X_p (for example, crop yield on rainfall, temperature and fertiliser). The multiple linear regression of X1X_1 on them is the linear function X̂1=b12⋅3…pX2+b13⋅2…pX3+…+b1p⋅23…Xp\hat X_1=b_{12\cdot3\ldots p}X_2+b_{13\cdot2\ldots p}X_3+\dots+b_{1p\cdot23\ldots}X_p (variables measured from their means) that minimises the residual sum of squares ∑(X1−X̂1)2\sum(X_1-\hat X_1)^2. The coefficients are partial regression coefficients: each gives the change in X1X_1 per unit change in that variable when the others are held fixed. They satisfy the normal equations S22b=s21S_{22}b=s_{21}, so b=S22−1s21b=S_{22}^{-1}s_{21}.

Multiple correlation. R1⋅23…pR_{1\cdot23\ldots p} is the simple correlation between X1X_1 and its regression estimate X̂1\hat X_1. It measures how well X1X_1 is explained jointly by X2,…,XpX_2,\dots,X_p, and it is the largest correlation X1X_1 can have with any linear combination of them.

Formula. Since Cov(X1,X̂1)=V(X̂1)\text{Cov}(X_1,\hat X_1)=V(\hat X_1), R1⋅23…p2=V(X̂1)V(X1)=1−σ1⋅23…p2σ12=1−|R|R11,R^2_{1\cdot23\ldots p}=\frac{V(\hat X_1)}{V(X_1)}=1-\frac{\sigma^2_{1\cdot23\ldots p}}{\sigma_1^2}=1-\frac{|R|}{R_{11}}, where |R||R| is the determinant of the full correlation matrix and R11R_{11} is the cofactor of its (1,1) element. For three variables: R1⋅232=r122+r132−2r12r13r231−r232.R^2_{1\cdot23}=\frac{r_{12}^2+r_{13}^2-2r_{12}r_{13}r_{23}}{1-r_{23}^2}.

Partial correlation. r12⋅3…pr_{12\cdot3\ldots p} is the correlation between X1X_1 and X2X_2 after the linear effect of X3,…,XpX_3,\dots,X_p has been removed from both, that is, the correlation between the residuals X1⋅3…pX_{1\cdot3\ldots p} and X2⋅3…pX_{2\cdot3\ldots p}.

Formula. In terms of cofactors RijR_{ij} of the correlation matrix, r12⋅3…p=−R12R11R22.r_{12\cdot3\ldots p}=\frac{-R_{12}}{\sqrt{R_{11}R_{22}}}. For three variables: r12⋅3=r12−r13r23(1−r132)(1−r232),r_{12\cdot3}=\frac{r_{12}-r_{13}r_{23}}{\sqrt{(1-r_{13}^2)(1-r_{23}^2)}}, and higher orders follow by the recursion r12⋅34=r12⋅3−r14⋅3r24⋅3(1−r14⋅32)(1−r24⋅32).r_{12\cdot34}=\frac{r_{12\cdot3}-r_{14\cdot3}r_{24\cdot3}}{\sqrt{(1-r^2_{14\cdot3})(1-r^2_{24\cdot3})}}.

Links. 1−R1⋅232=(1−r122)(1−r13⋅22)1-R^2_{1\cdot23}=(1-r_{12}^2)(1-r^2_{13\cdot2}), and b12⋅3=r12⋅3σ1⋅3/σ2⋅3b_{12\cdot3}=r_{12\cdot3}\,\sigma_{1\cdot3}/\sigma_{2\cdot3}.

✓ 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.

↑ Back to the question list

Establish the range of a multiple correlation coefficient.

2002 · Paper I · Q5b · 12 marks

Solution

Claim. 0≤R1⋅23…p≤10\le R_{1\cdot23\ldots p}\le1.

Proof. Let X̂1\hat X_1 be the least squares regression estimate of X1X_1 from X2,…,XpX_2,\dots,X_p, and e=X1−X̂1e=X_1-\hat X_1 the residual (all variables measured from their means). The normal equations make ee uncorrelated with every XjX_j, j≥2j\ge2, and hence with X̂1\hat X_1. So Cov(X1,X̂1)=Cov(X̂1+e,X̂1)=V(X̂1),V(X1)=V(X̂1)+V(e).\text{Cov}(X_1,\hat X_1)=\text{Cov}(\hat X_1+e,\hat X_1)=V(\hat X_1),\qquad V(X_1)=V(\hat X_1)+V(e).

By definition R=Corr(X1,X̂1)R=\text{Corr}(X_1,\hat X_1), so R=V(X̂1)V(X1)V(X̂1)=V(X̂1)V(X1)≥0,R=\frac{V(\hat X_1)}{\sqrt{V(X_1)V(\hat X_1)}}=\sqrt{\frac{V(\hat X_1)}{V(X_1)}}\ \ge0, and R2=V(X̂1)V(X1)=1−V(e)V(X1)≤1.R^2=\frac{V(\hat X_1)}{V(X_1)}=1-\frac{V(e)}{V(X_1)}\ \le1 . Hence 0≤R≤10\le R\le1. ◼\blacksquare

Interpretation.

  • R=1R=1 when V(e)=0V(e)=0: X1X_1 is an exact linear function of X2,…,XpX_2,\dots,X_p.
  • R=0R=0 when X̂1≡0\hat X_1\equiv0, that is, when X1X_1 is uncorrelated with every XjX_j.
  • Unlike a simple correlation, RR is never negative. Also R1⋅23…p≥|r1j|R_{1\cdot23\ldots p}\ge|r_{1j}| for every jj, since it is the maximum correlation of X1X_1 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.

↑ Back to the question list

Show that the correlation matrix is at least positive semi-definite.

2001 · Paper I · Q7iv · 15 marks

Solution

Claim. The correlation matrix R=(ρij)R=(\rho_{ij}) of random variables X1,…,XpX_1,\dots,X_p (with positive variances) is positive semi-definite.

Proof. Let Zi=(Xi−μi)/σiZ_i=(X_i-\mu_i)/\sigma_i be the standardised variables, so Cov(Zi,Zj)=ρij\text{Cov}(Z_i,Z_j)=\rho_{ij} and RR is the covariance matrix of Z=(Z1,…,Zp)′Z=(Z_1,\dots,Z_p)'. For any real vector a=(a1,…,ap)′a=(a_1,\dots,a_p)', a′Ra=∑i∑jaiajρij=∑i∑jaiajCov(Zi,Zj)=V(∑iaiZi)≥0,a'Ra=\sum_i\sum_ja_ia_j\rho_{ij}=\sum_i\sum_ja_ia_j\text{Cov}(Z_i,Z_j)=V\Big(\sum_ia_iZ_i\Big)\ \ge0, because a variance is never negative. So RR is (at least) positive semi-definite. ◼\blacksquare

The same argument works for a sample correlation matrix, with sample variances in place of variances.

When is it positive definite? a′Ra=0a'Ra=0 for some a≠0a\ne0 exactly when ∑aiZi\sum a_iZ_i is constant (here, zero) with probability one, that is, when the variables are linearly dependent. So RR is positive definite unless one variable is an exact linear function of the others. In that case |R|=0|R|=0.

Consequences. All principal minors of RR are non-negative; for example 1−ρ122≥01-\rho_{12}^2\ge0 gives |ρ12|≤1|\rho_{12}|\le1, and for three variables |R|≥0|R|\ge0 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.

↑ Back to the question list

If x=4y+5 and y=(1/16)x+4 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.

2001 · Paper I · Q8iii · 15 marks

Solution

Note on the question. “the value of the 4 correlation coefficient” has a stray “4”; we find the correlation coefficient between xx and yy.

Regression coefficients. The regression line of xx on yy is x=4y+5x=4y+5, so bxy=4b_{xy}=4. The regression line of yy on xx is y=116x+4y=\frac1{16}x+4, so byx=116b_{yx}=\frac1{16}.

Correlation. Since bxybyx=r2b_{xy}b_{yx}=r^2: r2=4×116=14,r=±12.r^2=4\times\frac1{16}=\frac14,\qquad r=\pm\frac12 . Both regression coefficients are positive, and rr has the same sign as them, so r=0.5.r=0.5 .

Check. r2≤1r^2\le1 holds, so the two lines are consistent with the stated roles. (If the roles were swapped, the product would be 14⋅16=4>1\frac14\cdot16=4>1, 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.

↑ Back to the question list

In standard notations, given that r12=0.5,r13=0.4 and r23=0.2. calculate R1.23

2001 · Paper I · Q8iv · 15 marks

Solution

Formula. R1⋅232=r122+r132−2r12r13r231−r232.R^2_{1\cdot23}=\frac{r_{12}^2+r_{13}^2-2r_{12}r_{13}r_{23}}{1-r_{23}^2}.

Substitution. R1⋅232=0.25+0.16−2(0.5)(0.4)(0.2)1−0.04=0.41−0.080.96=0.330.96=0.34375.R^2_{1\cdot23}=\frac{0.25+0.16-2(0.5)(0.4)(0.2)}{1-0.04}=\frac{0.41-0.08}{0.96}=\frac{0.33}{0.96}=0.34375 . R1⋅23=0.34375=0.586.R_{1\cdot23}=\sqrt{0.34375}=0.586 .

So X2X_2 and X3X_3 together account for about 34% of the variation in X1X_1. (As always, R1⋅23=0.586R_{1\cdot23}=0.586 exceeds both |r12|=0.5|r_{12}|=0.5 and |r13|=0.4|r_{13}|=0.4.)

✓ Checked by computer We checked in Python: R²₁·₂₃ = 0.34375, so R₁·₂₃ = 0.586.

↑ Back to the question list

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 ρ1+sρ and (ii) 1−R1.232=(1−ρ)(1+2ρ)1+ρ, symbols having usual meanings.

1999 · Paper I · Q10a · 30 marks

Solution

(i) Partial correlations of order ss. We use induction on ss.

Order 1. For any three distinct variables, r12⋅3=ρ−ρ⋅ρ(1−ρ2)(1−ρ2)=ρ(1−ρ)1−ρ2=ρ1+ρ.r_{12\cdot3}=\frac{\rho-\rho\cdot\rho}{\sqrt{(1-\rho^2)(1-\rho^2)}}=\frac{\rho(1-\rho)}{1-\rho^2}=\frac{\rho}{1+\rho}. This is ρ/(1+sρ)\rho/(1+s\rho) with s=1s=1.

Induction step. Suppose every partial correlation of order s−1s-1 equals ρs−1=ρ1+(s−1)ρ\rho_{s-1}=\dfrac{\rho}{1+(s-1)\rho}. By the symmetry of the set-up, all of them are equal. The recursion formula gives, for order ss, r12⋅3…(s+2)=ρs−1−ρs−121−ρs−12=ρs−11+ρs−1.r_{12\cdot3\ldots(s+2)}=\frac{\rho_{s-1}-\rho_{s-1}^2}{1-\rho_{s-1}^2}=\frac{\rho_{s-1}}{1+\rho_{s-1}}. Now ρs−11+ρs−1=ρ/{1+(s−1)ρ}{1+(s−1)ρ+ρ}/{1+(s−1)ρ}=ρ1+sρ.\frac{\rho_{s-1}}{1+\rho_{s-1}}=\frac{\rho/\{1+(s-1)\rho\}}{\{1+(s-1)\rho+\rho\}/\{1+(s-1)\rho\}}=\frac{\rho}{1+s\rho}. So every partial correlation of order ss is ρ1+sρ\dfrac{\rho}{1+s\rho}. ◼\blacksquare

(ii) Multiple correlation. Use 1−R1⋅232=(1−r122)(1−r13⋅22).1-R^2_{1\cdot23}=(1-r_{12}^2)(1-r^2_{13\cdot2}). Here r12=ρr_{12}=\rho and, by (i), r13⋅2=ρ/(1+ρ)r_{13\cdot2}=\rho/(1+\rho). So 1−R1⋅232=(1−ρ2){1−ρ2(1+ρ)2}=(1−ρ)(1+ρ)⋅(1+ρ)2−ρ2(1+ρ)2=(1−ρ)(1+2ρ)1+ρ.◼1-R^2_{1\cdot23}=(1-\rho^2)\Big\{1-\frac{\rho^2}{(1+\rho)^2}\Big\}=(1-\rho)(1+\rho)\cdot\frac{(1+\rho)^2-\rho^2}{(1+\rho)^2}=\frac{(1-\rho)(1+2\rho)}{1+\rho}. \qquad\blacksquare

(Equivalently R1⋅232=2ρ2/(1+ρ)R^2_{1\cdot23}=2\rho^2/(1+\rho), the p=3p=3 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 + ρ).

↑ Back to the question list

Define partial correlation coefficients in multivariate analysis. Show that Σ̂11.2=Σ̂11−Σ̂12Σ̂22−1Σ̂21

1998 · Paper I · Q11c · 20 marks

Solution

Partial correlation in multivariate analysis. Partition X∼Np(μ,Σ)X\sim N_p(\mu,\Sigma) as X=(X(1)′,X(2)′)′X=(X^{(1)\prime},X^{(2)\prime})' with qq and p−qp-q components, and Σ=(Σ11Σ12Σ21Σ22).\Sigma=\begin{pmatrix}\Sigma_{11}&\Sigma_{12}\\\Sigma_{21}&\Sigma_{22}\end{pmatrix}. The conditional distribution of X(1)X^{(1)} given X(2)=x(2)X^{(2)}=x^{(2)} is normal with covariance matrix Σ11⋅2=Σ11−Σ12Σ22−1Σ21=(σij⋅q+1,…,p),\Sigma_{11\cdot2}=\Sigma_{11}-\Sigma_{12}\Sigma_{22}^{-1}\Sigma_{21}=(\sigma_{ij\cdot q+1,\ldots,p}), which does not depend on x(2)x^{(2)}. The partial correlation between XiX_i and XjX_j (i,j≤qi,j\le q) given X(2)X^{(2)} is the correlation in this matrix: ρij⋅q+1,…,p=σij⋅q+1,…,pσii⋅q+1,…,pσjj⋅q+1,…,p.\rho_{ij\cdot q+1,\ldots,p}=\frac{\sigma_{ij\cdot q+1,\ldots,p}}{\sqrt{\sigma_{ii\cdot q+1,\ldots,p}\,\sigma_{jj\cdot q+1,\ldots,p}}}. Equivalently, it is the correlation between the residuals Xi−βi′X(2)X_i-\beta_i'X^{(2)} and Xj−βj′X(2)X_j-\beta_j'X^{(2)} after linear regression on X(2)X^{(2)}.

Why Σ11⋅2\Sigma_{11\cdot2} has this form. Let B=Σ12Σ22−1B=\Sigma_{12}\Sigma_{22}^{-1} and U=X(1)−BX(2)U=X^{(1)}-BX^{(2)}. Then Cov(U,X(2))=Σ12−BΣ22=0,\text{Cov}(U,X^{(2)})=\Sigma_{12}-B\Sigma_{22}=0, so under normality UU is independent of X(2)X^{(2)}, and V(U)=Σ11−BΣ21−Σ12B′+BΣ22B′=Σ11−Σ12Σ22−1Σ21.V(U)=\Sigma_{11}-B\Sigma_{21}-\Sigma_{12}B'+B\Sigma_{22}B'=\Sigma_{11}-\Sigma_{12}\Sigma_{22}^{-1}\Sigma_{21}. Since X(1)=U+BX(2)X^{(1)}=U+BX^{(2)}, the conditional covariance of X(1)X^{(1)} given X(2)X^{(2)} is V(U)=Σ11⋅2V(U)=\Sigma_{11\cdot2}.

The estimate. From a sample of size NN, let Σ̂=A/N\hat\Sigma=A/N with A=∑(xα−x‾)(xα−x‾)′A=\sum(x_\alpha-\bar x)(x_\alpha-\bar x)', partitioned in the same way. The likelihood of (μ,Σ)(\mu,\Sigma) can be reparametrised one-to-one as the parameters of the marginal distribution of X(2)X^{(2)}, (μ(2),Σ22)(\mu^{(2)},\Sigma_{22}), together with those of the conditional distribution, (B,μ(1)−Bμ(2),Σ11⋅2)(B,\ \mu^{(1)}-B\mu^{(2)},\ \Sigma_{11\cdot2}). By the invariance property of maximum likelihood estimators, the MLE of the function Σ11⋅2=Σ11−Σ12Σ22−1Σ21\Sigma_{11\cdot2}=\Sigma_{11}-\Sigma_{12}\Sigma_{22}^{-1}\Sigma_{21} is the same function of the MLEs: Σ̂11⋅2=Σ̂11−Σ̂12Σ̂22−1Σ̂21.\hat\Sigma_{11\cdot2}=\hat\Sigma_{11}-\hat\Sigma_{12}\hat\Sigma_{22}^{-1}\hat\Sigma_{21}.

The same result follows directly from least squares. Regress each component of X(1)X^{(1)} on X(2)X^{(2)} in the sample: the coefficient matrix is B̂=A12A22−1\hat B=A_{12}A_{22}^{-1}, and the matrix of residual sums of squares and products is ∑(xα(1)−x‾(1)−B̂(xα(2)−x‾(2)))(⋯)′=A11−A12A22−1A21.\sum(x^{(1)}_\alpha-\bar x^{(1)}-\hat B(x^{(2)}_\alpha-\bar x^{(2)}))(\cdots)'=A_{11}-A_{12}A_{22}^{-1}A_{21}. Dividing by NN gives Σ̂11⋅2\hat\Sigma_{11\cdot2}.

So the sample partial correlation is rij⋅q+1,…,p=σ̂ij⋅q+1,…,pσ̂ii⋅…σ̂jj⋅….r_{ij\cdot q+1,\ldots,p}=\frac{\hat\sigma_{ij\cdot q+1,\ldots,p}}{\sqrt{\hat\sigma_{ii\cdot\ldots}\hat\sigma_{jj\cdot\ldots}}}.

✓ 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.

↑ Back to the question list

Let the covariance matrix of a four-dimensional normal random vector X=(X1,X2,X3,X4)′ be given by Σ=σ2(1ρρ2ρ2ρ1ρρ2ρ2ρ1ρ2ρ3ρ2ρ1) Find the partial correlation coefficient between (i−1)th and (i+i)th components of X when the ith component is held fixed.

1995 · Paper I · Q11c · 15 marks

Solution

Note on the question. As printed the matrix is not symmetric: the (1,4) entry is ρ2\rho^2 but the (4,1) entry is ρ3\rho^3, and the (2,4) and (1,3) patterns also clash with the pattern ρ|i−j|\rho^{|i-j|}. The intended matrix is clearly the first-order autoregressive (Markov) form Σ=σ2(ρ|i−j|)=σ2(1ρρ2ρ3ρ1ρρ2ρ2ρ1ρρ3ρ2ρ1),\Sigma=\sigma^2\big(\rho^{|i-j|}\big)=\sigma^2\begin{pmatrix}1&\rho&\rho^2&\rho^3\\\rho&1&\rho&\rho^2\\\rho^2&\rho&1&\rho\\\rho^3&\rho^2&\rho&1\end{pmatrix}, and “(i+i)(i+i)-th” should read “(i+1)(i+1)-th”. We find the partial correlation between Xi−1X_{i-1} and Xi+1X_{i+1} when XiX_i is fixed (i=2,3i=2,3).

Calculation. The three variables Xi−1,Xi,Xi+1X_{i-1},X_i,X_{i+1} have correlations ρi−1,i=ρ,ρi,i+1=ρ,ρi−1,i+1=ρ2.\rho_{i-1,i}=\rho,\qquad\rho_{i,i+1}=\rho,\qquad\rho_{i-1,i+1}=\rho^2 . So ρi−1,i+1⋅i=ρi−1,i+1−ρi−1,iρi,i+1(1−ρi−1,i2)(1−ρi,i+12)=ρ2−ρ⋅ρ1−ρ2=0.\rho_{i-1,i+1\cdot i}=\frac{\rho_{i-1,i+1}-\rho_{i-1,i}\,\rho_{i,i+1}}{\sqrt{(1-\rho_{i-1,i}^2)(1-\rho_{i,i+1}^2)}}=\frac{\rho^2-\rho\cdot\rho}{1-\rho^2}=0 .

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 XiX_i is known, the past Xi−1X_{i-1} carries no further information about the future Xi+1X_{i+1}. It is also why Σ−1\Sigma^{-1} 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.

↑ Back to the question list

More on Linear Inference and Multivariate Analysis

Questions: UPSC Civil Services (Main) Examination, Statistics Paper I, 1995–2024. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted