← Teaching resources · cosminilie.com
Fit a straight line to real expansion data and read off the Hubble constant H₀. Click any point to leave it out of the fit (click again to put it back), and watch how much H₀ changes. That change is a first, honest estimate of the uncertainty.
Distance–velocity data. Hubble's law says v = H₀ d, a straight line through the origin, so H₀ is the slope. The fitter finds the slope that makes the squared vertical misses as small as possible (least squares). The "with an intercept" fit also lets the line miss the origin; if the intercept b comes out large compared with the scatter, something is off. The age scale 1/H₀ is converted with 1 Mpc = 3.086 × 10¹⁹ km and 1 year = 3.156 × 10⁷ s.
Supernova data. The distance modulus is μ = m − M = 5 log₁₀(D / 1 Mpc) + 25. Nearby, D = cz / H₀, so μ = 5 log₁₀(cz) + 25 − 5 log₁₀ H₀: a straight line of slope 5 against log₁₀(cz). With the slope fixed at 5, the fit finds the intercept b, and then H₀ = 10(25 − b)/5 km/s/Mpc. H₀ sits entirely in the intercept, and the intercept depends on the absolute magnitude M from the Cepheid calibration.
Data: E. Hubble 1929, PNAS 15, 168, Table 1 (distances in Mpc, velocities in km/s, not corrected for the Sun's motion). A. Riess et al. 1998, AJ 116, 1009, Table 10 for the nearby set and Tables 5, 7 and 9 as well for the full one (MLCS distance moduli; cz in the CMB frame). Built for the first-year seminar “Our Universe: 95% Unknown.” Free to use for teaching.