1. The question
In 1929 Edwin Hubble published two tables and one number. The tables held 24 objects with individually estimated distances and 22 more nebulae with velocities only; the number was K = 465 km/s/Mpc, the constant of the velocity–distance relation. Today's value is about 70. Textbooks often quote 500.
That gap is the reason this study exists. But "is 465 right?" is not a question a replication can answer, so the study asks three questions that it can, and keeps them apart on three separate tracks:
- Reproduction. Does the number come back out of the table the paper printed — target by target, each with a tolerance registered before the run?
- Estimation. Setting the published targets aside, what do those objects actually estimate, with what interval, and how much does the answer depend on which variable is called the response?
- Simulation. At this sample size, with this much scatter, does the interval machinery the estimate track uses actually cover the truth?
The decision each answer changes. If a printed constant cannot be recomputed from the printed data, then citing it is citing a provenance chain, not a measurement — and anyone planning to reproduce a historical result should budget for that. If an interval built on this many points does not cover, then every interval in the findings is decoration, and the study says so instead of quoting it.
The phrase "we replicated Hubble" appears nowhere in this study. A replication reports target by target, and says "replicated" only if every target reproduced within its tolerance. One of five did.
What makes this study unusual to read
The analyst had already read every row of the block that would later be sealed. The seal is therefore declared as what it is — a prospective analysis lock: the statistic, the columns it may touch, the constant it takes and the tolerance were written into the contract and hashed before any cell ran, and the access was spent exactly once. That is not the same as blindness, it is not called blindness anywhere, and section 6 explains why the tempting repair — resampling a "fresh block" out of rows already seen — was rejected before the contract rather than after the result.
2. The method taught
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.
2.1 A line through a cloud of points is not one line
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.
2.2 Regression dilution: the direction of the bias
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.
2.3 Hubble's actual model had four parameters, not two
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.
2.4 The distance modulus, used twice
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.
2.5 The interval, and auditing it
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.
3. The data story
Two CSVs, 46 rows between them, transcribed from a 1929 paper that is in the public domain. Small enough to read by eye, which is exactly why the data gate mattered: on a table this size every judgement call is visible, and one of them decides the whole study.
3.1 Provenance before anything else
The publisher's site and its mirror both blocked automated fetching, so the tables were transcribed from two independent sources — a digitised scan of the journal pages and a separate manual retyping — and diffed cell by cell across every row. Zero substantive discrepancies. The only divergence was OCR sign-loss on several absolute magnitudes, resolved in favour of the clean transcription and confirmed by the paper's own printed column means.
A candidate second source was rejected: a widely used R package ships a
dataset called hubble, and its own documentation shows it is a modern
HST Key Project sample — different galaxies, different century. Using it would
have been a data-identity error that no downstream check would ever have caught.
3.2 The check that decided the study
Table 2 has a distance column. It looks exactly like what a replication wants: 22 more galaxies with distances and velocities, an independent check on the constant. It is not a measurement. The data gate tested the suspicion with arithmetic rather than asserting it, and found that
holds to floating-point exactness on all but one of the rows where both columns are printed, and misses on that one by exactly one unit in the paper's last printed decimal — the signature of a computed, rounded column. So Table 2's distances are Hubble's own adopted constant applied to his velocities. Comparing this study's constant against them would have returned the ratio of two constants: a tautology wearing the costume of a test.
Consequence, enforced in code rather than in prose: three columns of the sealed block — the derived distance, the corrected velocity tied to it by that identity, and the printed answer itself — are dropped by the single function every cell must call to reach data. The sealed statistic uses only the two columns Table 2 actually measured, and the contract names both the allowed and the forbidden list so a reader can check that it did.
3.3 The partition is not a draw
Nothing here is split at random. The partition is the paper's own structure: Table 1 is the development block, Table 2 is sealed. That has a mechanical consequence worth understanding, because it is the study's most visible rough edge:
data.split.kind: nonemeans the engine cannot realise partitions from the contract, so no fingerprints were frozen at the gate and every run printsnote: partition not verified. Silence is not a pass — so the two block digests were published on the data card instead, and a stranger recomputes them from the contract plus the bytes with one command.
3.4 The go / no-go call
GO-WITH-CAUTIONS, with four cautions carried into the findings and none of them waved away: the derived columns (mechanised, above); the sample size, which is measured rather than assumed by the simulation track; the unregisterable partition fingerprints (published by hand instead); and informative missingness that no cell reads. Both mechanised leakage audits ran clean — in index mode, which is how a study with no row partition still gets its contamination row checked by machine rather than waived.
Row 4 of the audit, the no-information control, had to be done by hand because the auditor has no partition to score. Permuting the velocities against the distances two thousand times gives a constant near zero with none of the permutations reaching the real value. Breaking the pairing destroys the relation, so the evaluation path carries no answer of its own.
4. The experiment journey
Thirteen cells, three tracks, five phases, zero crashes. Every track is
registered, which changes what a run means: a cell does not climb a frontier,
it measures a pre-registered quantity, and its disposition is
measured or crash — never "keep". There is no incumbent
to beat and no headroom to audit, so the trajectory below is a programme being
executed, not a search converging.
4.1 The programme, phase by phase
adaptive-1 — anchor first, and only then anything else. The identity anchor recomputes the paper's published column sums and both row counts, with a hard STOP on mismatch. It reproduced with a maximum absolute deviation of 0.000000. This ran before every other candidate on the slate — not because it scored highest (three candidates tied) but because it is the only one whose failure invalidates the rest: if the bytes are not Hubble's, every later cell is a confidently wrong measurement of the wrong table.
Two measurement sweeps also belong to this phase and spend no experiment
budget: the Monte-Carlo resolution of the estimate track's deciding key, and the
coverage floor over five simulation seed blocks, which produced the measured
minimum_delta of 0.0060663.
adaptive-2 — reproduction, one published target per cell. The two-parameter fits against 465; the printed absolute magnitudes; the four-parameter solar-motion solution; the nine-group solution. The order was deliberate: the two cells that could still surprise the machinery ran before the two expected to document a gap, so that a broken distance modulus would be discovered while the seal was still unspent.
adaptive-3 — what the objects actually estimate. The bootstrap interval, the inverse-versus-forward comparison on common random numbers, and the jackknife influence of every object. A fourth candidate — an errors-in-variables fit — was declined and recorded as declined: it needs the ratio of velocity to distance variance, which the paper does not print, so its estimate would have been a function of a number this study invented.
adaptive-4 — audit the interval before leaning on it. Coverage of the bootstrap interval and of the analytic interval under the declared truth. Two cells rather than one, because one coverage number is a fact and two are a diagnosis.
confirmation — three seals, one per track. Each was preceded by the mandatory rehearsal. What "sealed" means differs by track kind, and the study uses each definition rather than inventing a fourth: the original's reported value compared once (Table 2), an external reference value compared once (the modern constant), and a fresh seed block never used in development.
4.2 The rehearsals earned their keep twice, in two different ways
This is the part of the journey worth copying. Both sealed dry-runs caught a real defect, and the second is the instructive one:
- The first rehearsal failed loudly. The sealed cell's own guard fired: the library dropped the forbidden columns by the block it served rather than the block requested, so the rehearsal handed the cell a frame of a different shape than the real run would. A rehearsal that exercises a different code path is not a rehearsal. Fixed; the seal was untouched.
- The second rehearsal passed — and was still wrong. Exit code 0, a well-formed printed block, a pinned table — and an inverted distance rescale that would have recorded a prediction as refuted on a value of 2680.495911, spending the estimate track's only access on a prediction that was never actually tested. Nothing but reading the rehearsal's numbers would have caught it.
4.3 The ledger
Tracks: reproduction — targets_outside_tolerance (lower is better) · estimate — k_kms_per_mpc (lower is better) · simulate — coverage (higher is better)
| Exp | Track | Kind | Metric | Status | Description |
|---|---|---|---|---|---|
| E0001 | reproduction | development | 0 | measured | identity anchor: Table 1's published sums (21.873 Mpc, 8955 km/s) and both row counts (24, 22) recomputed from the bundled bytes; hard-STOP on mismatch; registered cell measured |
| E0002 | reproduction | development | 1 | measured | two-parameter fits of Table 1 (through the origin, and free-intercept) against Hubble's published K = 465 +/- 10; registered cell measured |
| E0003 | reproduction | development | 1 | measured | reproduce Table 1's printed absolute magnitudes from its own m_t and r_mpc via M = m - 5log10(r) - 25, tolerance 0.06 mag per object; rehearsal of the sealed cell's machinery; registered cell measured |
| E0004 | reproduction | development | 1 | measured | four-parameter solar-motion refit against 465 +/- 50: audit whether the model's per-object coordinate inputs are obtainable from the tables, the article text, or an offline catalogue; registered cell measured |
| E0005 | reproduction | development | 1 | measured | nine-group solution against 513 +/- 60: audit whether the paper's grouping can be reconstructed from what it prints, and record where the textbook 500 actually comes from; registered cell measured |
| E0006 | estimate | development | 454.158441 | measured | bootstrap interval for K: 2000 case resamples of the 24 (r,v) pairs, seed block A, percentile 95%, for both two-parameter estimators; registered cell measured |
| E0007 | estimate | development | 728.366015 | measured | inverse regression (r on v, inverted) versus forward (v on r), paired on 2000 common resamples from seed block A, in units of the paired bootstrap SE; registered cell measured |
| E0008 | estimate | development | 454.337124 | measured | jackknife influence: leave-one-out K for each of the 24 objects, plus the joint influence of the four Virgo-cluster rows that share one assigned distance; registered cell measured |
| E0009 | simulate | development | 0.911 | measured | coverage of the 95% percentile-bootstrap interval for K under the declared DGP at Table 1's 24 design points, 1000 replicates x 500 resamples, development seed block B; registered cell measured |
| E0010 | simulate | development | 0.938 | measured | coverage of the analytic normal-theory interval for K under the same declared DGP and seed block B, 1000 replicates — the diagnostic comparison against E0009's bootstrap coverage; registered cell measured |
| E0011 | reproduction | final_test | 0 | measured | sealed confirmation on Table 2: the implied mean absolute magnitude under this study's own K (E0002 free-intercept) against Hubble's printed -15.3 +/- 0.3, using only v_kms and m_t; registered cell measured |
| E0012 | estimate | final_test | 454.158441 | measured | sealed confirmation on the estimate track: the once-only comparison of the locked bootstrap interval against the external reference H0 = 70, and the single-factor distance rescale; registered cell measured |
| E0013 | simulate | final_test | 0.925 | measured | sealed confirmation on the simulate track: coverage of the 95% percentile-bootstrap interval on fresh seed block C, 1000 replicates x 500 resamples; registered cell measured |
Every one of the ten development cells was then re-executed in a detached worktree at its own candidate commit. All ten reproduced with difference exactly 0 — not "within tolerance". Getting there took twenty-five records, of which fifteen are failures, and none was deleted: the environment refused to load freshly built libraries and the ledger says so, because the rule is that every attempt leaves a record.
5. Findings & insights
5.1 The reproduction verdict: one target of five
Neither two-parameter fit returns the published constant. Through the origin gives 423.937323; with a free intercept, 454.158441. The nearer of the two is 10.841559 away from 465, against a tolerance of 10 registered before the run. That is a supported prediction, not a discovered flaw — the method card said in advance that 465 came from a four-parameter model, and it did.
The two remaining targets could not be attempted at all, and this is the study's
most transferable result. The four-parameter solar-motion refit needs each object's sky
coordinates: 0 of 24 are obtainable from the tables,
from the article text, or from any offline catalogue. The nine-group solution needs the
grouping: 0 of 9 groups are reconstructible, because
the paper states the criterion but never lists the membership. Neither cell
invented an input. Both enumerated what the method needs, recorded where each
input is and is not available, pinned the enumeration as evidence, and let a registered
inconclusive_if decide the verdict by arithmetic on a measured
availability count.
The fifth target — the paper's own printed absolute magnitudes — was refuted, with a maximum deviation of 0.071213 against a registered 0.06 and 3 objects outside. Diagnosed rather than shrugged off: most of the printed values are exact round-to-nearest of the distance modulus, and the exceptions are truncations toward zero. The formula is right; the paper's rounding is not uniform. The registered tolerance was not widened afterwards to make it pass.
5.2 What the objects actually support
The estimate is 454.158441 with a 95 % percentile-bootstrap interval of 316.648582 to 603.704762, a width of 287.056180. Two things follow, and they pull in opposite directions:
- Hubble's 465 is inside that interval. "No fit returns 465" and "465 is not excluded" are different statements. The first is about arithmetic; the second is about resolution at this sample size. A replication owes its reader both.
- His stated uncertainty reproduces almost exactly. The analytic probable error of the free-intercept slope is 50.747428 against the 50 he quotes — from a fit he did not run. The likely mechanism is that the probable error is dominated by the residual scatter about the line, 232.910670 km/s, which is a property of the data rather than of the model form. That reading stays exploratory: confirming it needs the four-parameter fit, which is exactly what is unobtainable.
So a reader comparing this study's full modern interval against a bare "±50" will conclude that 1929 was overconfident. It was not. What separates the eras is the distance ladder, not the error bar — and applying one common rescale factor of 6.056247 to every distance carries both fits to within 4.990073 of the modern 70.
5.3 The two choices that move the constant more than the data does
Which variable is the response. Inverse regression returns 728.366015 against the forward 454.158441 — a factor of 1.603771, with Hubble's own value sitting between them. On a paired bootstrap the difference is 282.639496 with a standard error of 115.484712, i.e. 2.447419 standard errors. This was the method card's most exposed prior and it held.
Four galaxies that share one assigned distance. Hubble gave the whole Virgo cluster a single distance from its mean luminosity. Those are the largest distances in the table, so they carry the longest lever: dropping all four moves the constant to 531.347267, a shift of 77.188826, which exceeds the analytic standard error of 75.237105. Hubble himself attributed the gap between his two published solutions largely to those nebulae — the one part of his uncertainty discussion that does reproduce, from his own numbers.
5.4 Does the interval cover? Measured, not assumed
Under the declared generating process at the paper's own design points, the percentile interval covers 0.925 of the time on the sealed seed block — above the registered bar of 0.9, below the nominal 0.95. The analytic interval covers 0.938 on the development block against the bootstrap's 0.911. Both fall short, and the bootstrap falls short by more: some of the shortfall is the sample size, and the gap between them is the method's own contribution. The estimator is essentially unbiased under both, so this is an interval problem, not an estimation problem.
Every claim about these numbers carries its scope: measured in a known-truth lab where the relation is exactly linear with Gaussian scatter at Hubble's design points. It describes the behaviour of the interval machinery, not the behaviour of the universe.
5.5 The sealed comparison
Hubble's argument for Table 2 was an internal cross-check: turn the nebulae's velocities into distances with the constant, and their absolute magnitudes should look like the first table's. The sealed cell re-ran that check with this study's constant in place of his, using only the two columns Table 2 measured. The implied mean absolute magnitude is -15.524998, within 0.224998 of his printed -15.3 and inside the registered tolerance. His internal consistency survives the substitution.
5.6 The surprise that is really a discipline finding
The Phase-0 floor was optimistic about its own quantity. Five blocks put coverage
between 0.925 and 0.932 and produced a
minimum_delta of 0.0060663; the development block then
measured 0.911 — below every floor block. A five-block spread of
a Monte-Carlo proportion can easily come in below that proportion's own
binomial standard error, and the recipe's guard did not save it. A floor for a
proportion should be sized against the binomial standard error as well as against the
observed spread.
Worse, and disclosed the day it happened rather than at synthesis: measuring that floor partly spent the prediction it was measured for. There is no way to size the resolution of a coverage estimate without learning roughly what the coverage is. The study registered the foreseeability when it was created, kept the refutation branch live, and took the verdict on a seed block the floor never touched — but the honest summary is that the prediction was no longer a surprise by the time it was adjudicated.
5.7 What the records say
The block below is not written by hand: the builder copies it out of
claims.lock and study_state.json at build time — the claim
ledger with its classes and strengths, any errata, the lock’s git head, the
referee’s verdict and independence, and the finalization label. Records are read,
never retyped.
- claims
18locked inclaims.lock- by strength
- confirmed
9· exploratory9 - by class
- empirical-description
9· known-dgp-teaching1· mechanism-interpretation2· research-discipline6 - errata
0of18claims tagged ·0erratum record(s) in the lock- locked at
5b521ac2d0da· klein2.0.0- label
- confirmed
- referee
- PASS-WITH-NOTES —
klein-referee (Claude Code subagent, model: Opus 5 / claude-opus-5[1m])· independent of the experimenter: no
6. Method coding advice
Six things this study would tell you to do differently, each paid for by something that actually happened in it.
6.1 Ask what every column was computed from, and enforce the answer in code
The single most transferable lesson. A column is evidence about a quantity only if it was measured independently of it. Table 2's distances were computed from the velocities with the very constant under test; using them would have produced a confident, well-formatted tautology.
The fix is not a comment. Put the exclusion at the one door every cell must pass through, and then have the consumer assert it independently:
TABLE2_FORBIDDEN_COLUMNS = ("r_mpc", "vs_kms", "M_t")
def load_block(name, *, echo=True):
...
# Drop by what was REQUESTED, not by what was served: under a dry run the
# rows come from the development block, but the cell being rehearsed is the
# sealed one and its column contract must be rehearsed too.
if name == BLOCK_TABLE2:
block = block.drop(columns=[c for c in TABLE2_FORBIDDEN_COLUMNS
if c in block.columns])
# ...and in the cell, an independent assertion that the door did its job:
leaked = [c for c in TABLE2_FORBIDDEN_COLUMNS if c in block.columns]
if leaked:
raise RuntimeError(f"forbidden columns reached the sealed cell: {leaked}")
Both guards were needed. The first rehearsal failed precisely because the library dropped by the served block while the cell asserted on the requested one — a check at the door and a check at the consumer is what turned a silent shape mismatch into a loud, cheap failure.
6.2 Read the rehearsal's numbers, not its exit code
The mandatory sealed dry-run saved this study twice. The second time it passed: exit 0, a well-formed block, a pinned table — carrying an inverted rescale that would have recorded a refutation on 2680.495911 and spent the track's only access. The bug was one character of direction:
# WRONG - sends the fits to ~2570 instead of ~70
r_rescaled = r / factor
# RIGHT - Hubble's distances were too SMALL, so correcting the ladder MULTIPLIES
# them, which divides the slope: v = K r = (K/f)(f r)
r_rescaled = r * factor
A sealed run can be wrong without crashing. Budget a minute to read what the rehearsal printed and check it against what you expected before you spend the access.
6.3 When the predictor is the noisy variable, report both regressions
One number from v ~ r is a lower bound, not an estimate. Reporting the
inverse fit beside it costs one function and, here, changes the headline by a factor of
1.603771. Pair them on common random numbers or the
difference carries independent noise and looks less decisive than it is:
def paired_bootstrap_k(r, v, *, n_boot, seed, estimators):
"""Several estimators on the SAME resamples - common random numbers.
Drawing twice would add independent noise to the difference and inflate
its standard error.
"""
rng = np.random.default_rng(seed)
draws = rng.integers(0, r.size, size=(int(n_boot), r.size))
R, V = r[draws], v[draws]
return {name: k_of_batch(R, V, name) for name in estimators}
If the error ratio is known, use an errors-in-variables fit. If it is not — as here, where the paper prints neither error — say so and give the bracket rather than inventing the ratio. This study declined a Deming fit for exactly that reason and recorded the refusal.
6.4 A floor for a proportion needs more than its observed spread
Five seed blocks put coverage in a band of 0.007 and produced a
minimum_delta of 0.0060663; the next block landed at
0.911, outside every one of them. A small-k spread of a Monte-Carlo
proportion is a lower bound on that proportion's variability. Size the floor
against the binomial standard error too, or accept that the floor is optimistic and say
so where the number is used.
6.5 Make a pinned table deterministic on purpose
Ten of ten cells reproduced with difference exactly 0, which is not luck. One writer, fixed column order, fixed float formatting, LF endings, no index — and it does not write at all under the smoke flag, so the sanctioned pre-run check leaves the tree clean for the notary:
def write_table(relative_path, columns, rows, *, float_format="%.6f"):
path = study_dir() / relative_path
frame = pd.DataFrame(list(rows), columns=list(columns))
text = frame.to_csv(index=False, sep="\t",
float_format=float_format, lineterminator="\n")
if os.environ.get("KLEIN_SMOKE") == "1":
return path # a smoke run writes no sidecars
path.parent.mkdir(parents=True, exist_ok=True)
path.write_text(text, encoding="utf-8", newline="")
return path
6.6 A prospective lock is a lock — and the tempting repair is not
The analyst had read every sealed row before the contract existed. The instinct is to recover a "fresh" holdout by bootstrapping a block out of the rows already seen. Reject it. Resampling rows an analyst has seen creates no new information: every resample is a function of the same bytes, so the "holdout" is a rearrangement of the training set wearing holdout vocabulary.
What protects a sealed comparison is not the analyst's ignorance — which cannot be restored — but that the analysis was fixed before the comparison ran and the comparison was made once. Write the statistic, the columns, the constant it takes and the tolerance into the contract, let the gate hash them, spend the access once. Then say "locked before", not "blind".
6.7 The sealed cell, in full
Below is the actual entrypoint that spent this study's reproduction seal, included
as it was at its candidate commit 34107cee. On a registered track the
mutable surface is restored after every run, so what ran lives in the candidate commits
rather than in the working tree; the builder reads the bytes from that commit itself,
and the provenance line above the listing names the run, the commit and the hash
(git show 34107cee:studies/10-hubble-1929-replication/analyze.py reproduces
it). Note the three things it does before it computes anything: it reads its constant
from a pinned table rather than refitting, it goes through the single data
door, and it re-asserts the column exclusion itself.
analyze.py · executed by E0011 (final_test, track reproduction) at commit 34107cee958b · sha256 1d24ad29b47d…
"""CELL E0011 — SEALED (track `reproduction`, tests P8). Table 2, one access.
Confirmation phase. This is the study's prospective analysis lock being spent.
Everything below was fixed in `study.yaml:sealed_lock` and hashed at the CONSULT
gate, before any cell ran:
block table2 (22 nebulae)
columns v_kms, m_t -- and ONLY those
forbidden r_mpc, vs_kms, M_t
statistic mean over rows with v_kms > 0 of M = m_t - 5*log10(v_kms/K) - 25
K k_free from E0002's pinned tables/two_parameter_fits.tsv
target -15.3 tolerance 0.3
**What it is a test of.** Hubble's own argument for Table 2 was an internal
cross-check: if you turn the 22 nebulae's velocities into distances with the
constant, the absolute magnitudes you get should look like Table 1's — "the two
mean magnitudes, -15.3 and -15.5 ... are closely similar" (`ref:hubble1929`).
This cell re-runs that check with THIS study's constant in place of his. It asks
whether the paper's internal consistency survives the substitution.
**Why r_mpc is not used, and could not be.** Table 2's distance column is not an
independent measurement: the DATA gate showed `r = (v - vs)/500` holds to
floating-point exactness on 20 of the 21 rows where both are printed and rounds
on the 21st. It is Hubble's adopted K applied to the velocity. Comparing our K
against it would return, up to rounding, the ratio of our K to his — a tautology
dressed as a test. `load_block` drops it, along with `vs_kms` and the printed
`M_t`, before this cell ever sees the frame.
**The one deviation from Hubble's procedure, stated rather than hidden.** He
removed the solar motion from each velocity before dividing by K; that needs the
per-object coordinates E0004 audited as unobtainable. This cell therefore uses
the raw `v_kms`, which is the only velocity the sealed columns carry. The
registration said so from the start (`sealed_lock.statistic`), and findings will
report the difference as a limitation of the comparison, not as a result.
`K_LANE` below is transcribed from the E0002 artifact by the cell at run time,
not hardcoded: the number's home is that pinned table.
"""
from __future__ import annotations
import os
import sys
import time
from pathlib import Path
import numpy as np
import pandas as pd
sys.path.insert(0, str(Path(__file__).resolve().parent))
from kleinlib.eval import evaluate_table # noqa: E402
from lib.hubble import ( # noqa: E402
BLOCK_TABLE2,
TABLE2_FORBIDDEN_COLUMNS,
TABLE2_MEAN_ABS_MAG,
absolute_magnitude,
block_fingerprint,
load_block,
sealed_lock,
study_dir,
write_table,
)
SMOKE = os.environ.get("KLEIN_SMOKE") == "1"
EXPERIMENT_ID = os.environ.get("KLEIN_EXPERIMENT_ID") or ("SMOKE" if SMOKE else None)
TRACK = os.environ.get("KLEIN_TRACK") or ("reproduction" if SMOKE else None)
def k_from_e0002() -> float:
"""The lane's K, read from E0002's pinned table — never recomputed here.
`study.yaml:sealed_lock.k_lane_source` names this table and this row. Reading
it rather than refitting is what makes the sealed statistic a function of an
already-notarized number instead of a fresh choice made at sealing time.
"""
table = pd.read_csv(study_dir() / "tables" / "two_parameter_fits.tsv", sep="\t")
row = table[table["fit"] == "free_intercept"]
if len(row) != 1:
raise RuntimeError("tables/two_parameter_fits.tsv has no unique free_intercept row")
return float(row["k_kms_per_mpc"].iloc[0])
def main() -> None:
t0 = time.time()
evaluation_kind = os.environ.get("KLEIN_EVALUATION_KIND")
if SMOKE:
evaluation_kind = evaluation_kind or "development"
missing = [
name
for name, value in (
("KLEIN_EVALUATION_KIND", evaluation_kind),
("KLEIN_EXPERIMENT_ID", EXPERIMENT_ID),
("KLEIN_TRACK", TRACK),
)
if value is None
]
if missing:
raise RuntimeError(
"analyze.py must be invoked through `klein run-one`. For a pre-run "
"syntax/shape check use `KLEIN_SMOKE=1 python analyze.py`. "
"Missing: " + ", ".join(missing)
)
lock = sealed_lock()
target = float(lock["target"])
tolerance = float(lock["tolerance"])
k_lane = k_from_e0002()
# THE seal. Refuses outside --final-test; serves Table 1 and prints
# `sealed_dryrun: 1` under KLEIN_SEALED_DRYRUN=1; drops the forbidden columns.
block = load_block(BLOCK_TABLE2, echo=False)
leaked = [c for c in TABLE2_FORBIDDEN_COLUMNS if c in block.columns]
if leaked:
raise RuntimeError(f"forbidden columns reached the sealed cell: {leaked}")
v = block["v_kms"].to_numpy(dtype=float)
m = block["m_t"].to_numpy(dtype=float)
names = [str(x) for x in block["object"]]
usable = v > 0.0
r_implied = v[usable] / k_lane
magnitudes = absolute_magnitude(m[usable], r_implied)
mean_abs_mag = float(np.mean(magnitudes))
deviation = abs(mean_abs_mag - target)
rows = [
{
"object": name,
"v_kms": float(vi),
"m_t": float(mi),
"r_implied_mpc": float(ri),
"M_implied": float(Mi),
}
for name, vi, mi, ri, Mi in zip(
[n for n, u in zip(names, usable, strict=True) if u],
v[usable],
m[usable],
r_implied,
magnitudes,
strict=True,
)
]
artifact = write_table(
"tables/sealed_table2_magnitudes.tsv",
("object", "v_kms", "m_t", "r_implied_mpc", "M_implied"),
rows,
)
outside = 0 if deviation <= tolerance else 1
evaluate_table(
artifact,
outside,
exp_id=EXPERIMENT_ID,
study_dir=".",
t0=t0,
metric_name="targets_outside_tolerance",
metric_goal="lower",
split_fingerprint=block_fingerprint(block),
extra={
"mean_abs_mag": mean_abs_mag,
"target_mean_abs_mag": target,
"abs_deviation": deviation,
"tolerance": tolerance,
"k_lane": k_lane,
"n_used": float(int(usable.sum())),
"n_excluded_nonpositive_v": float(int((~usable).sum())),
"n_block_rows": float(len(block)),
"sd_abs_mag": float(np.std(magnitudes, ddof=1)),
"min_abs_mag": float(np.min(magnitudes)),
"max_abs_mag": float(np.max(magnitudes)),
"printed_table2_mean": TABLE2_MEAN_ABS_MAG,
},
)
if __name__ == "__main__":
main()
7. Next steps & references
7.1 What a follow-up should run, in priority order
- Bundle a coordinate catalogue and finish the four-parameter fit. This study declined at design time because hand-transcribing that many sky positions at an epoch the paper never states is a fabrication risk, not a replication. A follow-up that bundles a documented catalogue as a dataset — with its own README, licence and two-source diff, exactly as this study's data was built — converts the gap into a measurement, and would settle whether the four-parameter model really is what separates 423.937323 from 465.
- Split the generator so two interval methods share replicates. Here they could not: the bootstrap consumes random draws, so the two methods diverge after the first replicate at the same seed. Common random numbers would turn the 0.911-versus-0.938 comparison from two independent estimates into a paired one, and sharpen a diagnosis that currently rests on a difference of about two standard errors.
- Vary the declared truth. Sweep the scatter; swap the Gaussian error law for a heavy-tailed one. Both were declined here as questions about a different truth than the one the data gate hashed — changing the declared DGP mid-study to explore is how a simulation lane starts answering questions nobody registered. A study that registers them up front can ask whether the under-coverage is about the sample size or about the error law.
- Register the errors-in-variables fit that was declined. A Deming fit needs the ratio of velocity to distance variance, which Hubble does not print. A follow-up could register a range of plausible ratios and report the resulting range of the constant — the honest version of the number the forward fit under-states.
7.2 Verified references
Every entry was checked against its publisher, arXiv or archive landing page on 2026-09-03. Two of them stand behind confirmed claims; the rest sit behind exploratory claims or appear in the literature discussion only. No unverified reference stands behind anything.
| Reference | Where | Why this study cites it |
|---|---|---|
| Hubble, E. (1929). A relation between distance and radial velocity among extra-galactic nebulae. | PNAS 15(3):168–173 · doi:10.1073/pnas.15.3.168 | The object of study. Its text settled that the article prints no per-object coordinates and never lists the nine groups — which is what turned two failures into documented gaps. |
| Lemaître, G. (1927). Un Univers homogène de masse constante et de rayon croissant… | Ann. Soc. Sci. Bruxelles A47:49–59 · English republication doi:10.1007/s10714-013-1548-3 | The same relation, derived two years earlier from overlapping data. A caution about what "Hubble's constant" names. |
| Sandage, A. R. (1958). Current Problems in the Extragalactic Distance Scale. | ApJ 127:513–526 · doi:10.1086/146483 | The recalibration that moved the constant by correcting the distance ladder, not the velocities. The frame for this study's single-factor rescale. |
| Planck Collaboration (2020). Planck 2018 results. VI. Cosmological parameters. | A&A 641:A6 · arXiv:1807.06209 | One of the two modern determinations that bracket the round reference value this study compares against. |
| Riess, A. G. et al. (2022). A Comprehensive Measurement of the Local Value of the Hubble Constant… | ApJL 934(1):L7 · doi:10.3847/2041-8213/ac5c5b | The other bracket. Their mutual disagreement is far smaller than the gap under study, which is why a round figure is adequate here and would not be in a cosmology paper. |
| Efron, B. (1979). Bootstrap Methods: Another Look at the Jackknife. | Ann. Statist. 7(1):1–26 · doi:10.1214/aos/1176344552 | The two uncertainty methods this study runs side by side. |
| DiCiccio, T. J. & Efron, B. (1996). Bootstrap confidence intervals. | Statist. Sci. 11(3):189–228 · doi:10.1214/ss/1032280214 | Why the percentile interval was expected to under-cover at this sample size — a prior the simulation track measured rather than assumed. |
| Frost, C. & Thompson, S. G. (2000). Correcting for regression dilution bias… | JRSS-A 163(2):173–189 · doi:10.1111/1467-985X.00164 | The direction of the least-squares bias when the predictor is noisy. The method card's most exposed prior, and it held. |
7.3 How to check any number on this page
Every headline value here is a copy of a value pinned in claims.lock,
which names the artifact it lives in and its sha256. Nothing was retyped from memory,
and the study's own verifier scans this page for numerals that trace nowhere. To
re-check the whole thing from a clone:
uv run --locked klein verify --study studies/10-hubble-1929-replication --numbers --evidence-use
uv run --locked klein claims verify --study studies/10-hubble-1929-replication --numbers
uv run --locked python studies/10-hubble-1929-replication/figures/make_figures.py \
--study studies/10-hubble-1929-replication --out /tmp/refigs
The discarded drafts of this study's claims lock — thrown away during
synthesis and disclosed in the lab notebook — are preserved at the annotated tag
discarded/10-claims-lock-draft, so a stranger can read what was removed
rather than taking the disclosure on trust.