Nothing here is exotic. The whole study is least squares, a bootstrap and a jackknife, written from scratch on numpy normal equations. What makes it interesting is that four ordinary choices — which line, which response variable, which uncertainty, which column counts as evidence — each move the answer more than the data does.
Hubble had two numbers per galaxy: how fast it recedes (from a spectrum — cheap, accurate) and how far away it is (from a brightness argument — expensive, model-dependent, wrong by factors). The relation he argued for has no intercept: zero distance means zero recession. That is the one-parameter fit,
Freeing the intercept lets the data say whether the line really passes through the origin. With the two-parameter fit solves the normal equations
Both are written out longhand in lib/hubble.py rather than called from
a library, because a study about what a fit does should show what the fit does.
Least squares of on minimises vertical distances and treats the distances as exact. Least squares of on , inverted, treats the velocities as exact. When the x-variable carries the larger error, the first is dragged toward zero. Hubble's distances are far noisier than his velocities, so the ordinary fit is a lower bound on the slope, not a best estimate. This study registered that as a prediction and measured it; the two fits differ by a factor of 1.603771.
He did not simply regress velocity on distance. The Sun is moving, which adds a direction-dependent term to every observed velocity, so he solved for the constant and the three components of the solar motion at once. In his own notation:
Four unknowns, one equation per object. This equation is the whole reason reproduction fails: it needs each object's equatorial coordinates , and the paper prints none. His two published solutions are 465 with a probable error of 50 (objects individually) and 513 with a probable error of 60 (nine groups); the textbook 500 is neither — it is the intermediate value he adopted after attributing the difference between them largely to four galaxies.
With in megaparsecs,
This is the only photometric equation in the study, and it appears in exactly two places: once on the development block against the paper's own printed absolute magnitudes, and once inside the sealed cell with . Sharing one function is what makes the development cell a genuine rehearsal of the sealed one — and it is why the development cell ran first, while the seal was still unspent.
Resample the pairs with replacement, refit, and take empirical quantiles:
Case resampling — pairs, not residuals — is the honest choice: the galaxies are a sample of objects, not a designed grid, so what varies between hypothetical repetitions is which galaxies you got. But a percentile interval on this few points is exactly where the method is known to be optimistic, so the study does not assert its coverage — it measures it under a declared truth. That is what the third track is for, and section 5 reports what it found.