All labs

Conditioning, Collinearity, and Unstable Coefficients

Watch the condition number of a design matrix explode and see exactly which quantities become unidentifiable — and which do not.

Ch 3 3.5
Diagnostic
Mathematical Core
20 mindifficulty 3/5

Controls

0.950

Pushes the design matrix toward singularity.

1.500
120
200

Independent datasets, each refit from scratch.

Solver
Random seed

Every result on this page is a deterministic function of the seed and the controls.

Design geometry

Each point is one row of the design matrix.

-3-2-1012-3-2-1012x₁x₂

As ρ → 1 the cloud collapses onto a line: the columns nearly coincide, so the data cannot distinguish β₁ from β₂.

Sampling distributions of the coefficients

200 independent datasets, refit each time. True β₁ = 1.5, β₂ = −1.

00.200.400.600.801-2-1012[-2.49, -2.28) n=0[-2.28, -2.08) n=0[-2.08, -1.87) n=0[-1.87, -1.67) n=0[-1.67, -1.46) n=0[-1.46, -1.25) n=0[-1.25, -1.05) n=0[-1.05, -0.84) n=0[-0.84, -0.63) n=0[-0.63, -0.43) n=0[-0.43, -0.22) n=0[-0.22, -0.01) n=0[-0.01, 0.19) n=0[0.19, 0.40) n=0[0.40, 0.60) n=4[0.60, 0.81) n=11[0.81, 1.02) n=10[1.02, 1.22) n=23[1.22, 1.43) n=37[1.43, 1.64) n=38[1.64, 1.84) n=33[1.84, 2.05) n=17[2.05, 2.26) n=17[2.26, 2.46) n=7[2.46, 2.67) n=3[2.67, 2.87) n=0[-2.49, -2.28) n=0[-2.28, -2.08) n=1[-2.08, -1.87) n=1[-1.87, -1.67) n=12[-1.67, -1.46) n=17[-1.46, -1.25) n=20[-1.25, -1.05) n=40[-1.05, -0.84) n=43[-0.84, -0.63) n=33[-0.63, -0.43) n=18[-0.43, -0.22) n=7[-0.22, -0.01) n=7[-0.01, 0.19) n=1[0.19, 0.40) n=0[0.40, 0.60) n=0[0.60, 0.81) n=0[0.81, 1.02) n=0[1.02, 1.22) n=0[1.22, 1.43) n=0[1.43, 1.64) n=0[1.64, 1.84) n=0[1.84, 2.05) n=0[2.05, 2.26) n=0[2.26, 2.46) n=0[2.46, 2.67) n=0[2.67, 2.87) n=0β₁β₂coefficient estimatedensity
β̂₁ across refitsβ̂₂ across refits
Condition number κ(X)
6
σ_max / σ_min
VIF
10.26
1/(1−ρ²)
β̂₁ (this dataset)
1.716
true 1.5
β̂₂ (this dataset)
-1.181
true −1
SD of β̂₁ across refits
0.437
SD of β̂₁ + β̂₂
0.148
the sum stays stable
0.205
unharmed by collinearity
Residual SE
1.573
true σ = 1.50