Study Vault Search notes, aliases and full text
Graph
ConceptProbability and Statistics used inMSIAI-written · not yet proofread

Correlation

Also Correlation Coefficient · Uncorrelated · Korrelation · Korrelationskoeffizient · Unkorreliert

The correlation ρ(Y, Z) = σ(Y, Z) / (σ_Y σ_Z) is the unitless covariance of two random variables; it lies in [−1, 1], and the variables are uncorrelated if it is zero.

Know these firstCovarianceVariance

Properties#

  • Unitless and bounded: ρ(Y,Z)∈[−1,1]\rho(Y, Z) \in [-1, 1].
  • Extreme values: ∣ρ∣=1|\rho| = 1 iff ZZ is an affine function of YY (with probability one); the sign is the sign of the slope.
  • Independence ⇒ uncorrelated, not conversely: independent variables have σ(Y,Z)=0\sigma(Y, Z) = 0, hence ρ=0\rho = 0. Uncorrelated variables can still be dependent (example below). Correlation only measures linear dependence.

Example#

Intuition#

prob correlation scale
Correlation is covariance with the scale removed. Multiplying ZZ by b>0b > 0 (e.g. switching from meters to centimeters) multiplies every offset product (y−μY)(z−μZ)(y - \mu_Y)(z - \mu_Z), and with it σ(Y,Z)\sigma(Y, Z), by bb (top row). The standard deviation σZ\sigma_Z grows by the same factor bb, so dividing by σYσZ\sigma_Y\sigma_Z cancels the scaling exactly. Equivalently, ρ(Y,Z)=E{Y−μYσY⋅Z−μZσZ}\rho(Y, Z) = \mathbb{E}\big\{\frac{Y - \mu_Y}{\sigma_Y} \cdot \frac{Z - \mu_Z}{\sigma_Z}\big\} is the covariance of the standardized variables: rescale each axis to spread 1, then weight the quadrants as for the covariance (bottom row, three times the same cloud).

prob correlation ceiling
σYσZ\sigma_Y\sigma_Z is also the ceiling of the covariance: ∣σ(Y,Z)∣≤σYσZ|\sigma(Y, Z)| \le \sigma_Y\sigma_Z, with equality only if the points lie exactly on a line (Z=cYZ = cY gives σ(Y,Z)=c σY2=σYσZ\sigma(Y, Z) = c\,\sigma_Y^2 = \sigma_Y\sigma_Z). So ρ\rho is the share of the ceiling that the covariance reaches (bars below the panels). Adding independent noise NN to Z=2Y+NZ = 2Y + N leaves the covariance at 2σY22\sigma_Y^2, but widens σZ=4σY2+σN2\sigma_Z = \sqrt{4\sigma_Y^2 + \sigma_N^2}, so ρ\rho falls. On a line ρ=±1\rho = \pm 1 whatever the slope: the slope is in the covariance, not in ρ\rho.

prob correlation line vs dependence
ρ\rho measures how well the best straight line fits the cloud, not how strongly ZZ depends on YY. In all three panels ZZ is fully determined by Y∼N(0,1)Y \sim \mathcal{N}(0, 1) (Normal Distribution), yet ρ\rho falls from the line (ρ=1\rho = 1) over the monotone curve Z=Y3Z = Y^3 (ρ=3/15≈0.77\rho = 3/\sqrt{15} \approx 0.77, from E{Y4}=3\mathbb{E}\{Y^4\} = 3, E{Y6}=15\mathbb{E}\{Y^6\} = 15) to the symmetric parabola Z=Y2Z = Y^2 (ρ=0\rho = 0, uncorrelated but dependent).

Sources#

  • MSI script p. 16 (§2.2.4), MSI Slides 02 > 2.2.4 Covariance and Correlation (not published)

Search

Type In
↑ ↓ move ↵ open ⇥ next section Ctrl↵ results page Prefix # to search text only