Math 2.0

Statistics Definition

Partial correlation

Builds on Correlation coefficientCovarianceCovariance matrixInvertible matrix

Definition

Let XX and YY be real random variables and let ZZ be a random vector in ℝk\R^k, all with finite second moments. Assume that the covariance matrix ΣZZ\Sigma_{ZZ} of ZZ is invertible. Write ΣXZ\Sigma_{XZ} for the row vector of covariances Cov⁡(X,Zj)\operatorname{Cov}(X, Z_j), and similarly ΣYZ\Sigma_{YZ}. The residuals of the best linear predictions of XX and YY from ZZ are eX=X−𝔼X−ΣXZΣZZ−1(Z−𝔼Z),eY=Y−𝔼Y−ΣYZΣZZ−1(Z−𝔼Z).e_X = X - \mathbb{E}X - \Sigma_{XZ} \Sigma_{ZZ}^{-1} (Z - \mathbb{E}Z), \qquad e_Y = Y - \mathbb{E}Y - \Sigma_{YZ} \Sigma_{ZZ}^{-1} (Z - \mathbb{E}Z). If Var⁡(eX)>0\operatorname{Var}(e_X) > 0 and Var⁡(eY)>0\operatorname{Var}(e_Y) > 0, the partial correlation of XX and YY given ZZ is the correlation coefficient ρXY⋅Z=Corr⁡(eX,eY).\rho_{XY \cdot Z} = \operatorname{Corr}(e_X, e_Y).

Remarks

Example: let Z,U,VZ, U, V be uncorrelated with variance 11 and mean 00, and let X=Z+UX = Z + U, Y=Z+VY = Z + V. Then ΣXZ=ΣYZ=1\Sigma_{XZ} = \Sigma_{YZ} = 1 and ΣZZ=1\Sigma_{ZZ} = 1, so eX=Ue_X = U and eY=Ve_Y = V, and ρXY⋅Z=0\rho_{XY \cdot Z} = 0. Yet Corr⁡(X,Y)=1/2\operatorname{Corr}(X, Y) = 1/2. Non-example: if X=ZX = Z, then eX=0e_X = 0, so Var⁡(eX)=0\operatorname{Var}(e_X) = 0 and the partial correlation is not defined.

For a single control variable ZZ, with ρXY\rho_{XY}, ρXZ\rho_{XZ}, ρYZ\rho_{YZ} the pairwise correlations, ρXY⋅Z=ρXY−ρXZρYZ(1−ρXZ2)(1−ρYZ2).\rho_{XY \cdot Z} = \frac{\rho_{XY} - \rho_{XZ} \rho_{YZ}}{\sqrt{(1 - \rho_{XZ}^2)(1 - \rho_{YZ}^2)}}. If P=(pij)P = (p_{ij}) is the inverse of the covariance matrix of (X,Y,Z)(X, Y, Z), then ρXY⋅Z=−p12/p11p22\rho_{XY \cdot Z} = -p_{12} / \sqrt{p_{11} p_{22}}. The sample partial correlation uses the sample covariances, or equivalently the residuals of least squares fits on the data.

Reading path

To understand this page from the ground up, read these 5 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Correlation coefficient concept
  2. Covariance concept
  3. Covariance matrix concept
  4. Invertible matrix concept
  5. Partial correlation definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Partial_correlation
About this page
TagRVVRYKVGXK
URIm2://RVVRYKVGXK
Kinddefinition
WritingW0 stub
MSC62H20
DefinesPartial correlation
UsesCorrelation coefficient, Covariance, Covariance matrix, Invertible matrix

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.