aidoesscience
aidoessciencefindings › Buffon's needle
ValidatingOracle-validated

Buffon's needle measures π NON-CIRCULARLY

Can pure randomness measure a constant of pure geometry — π — without circularity? Drop a needle on a ruled floor, count how often it crosses a line, and recover π from nothing but that tally; and does the estimate obey the universal Monte-Carlo error law?

Known value
3.1415927

Units: dimensionless (π, a constant of pure geometry; the crossing probability 2L/(πd) is the only place π appears in the physics, and the recovery is arranged so it appears nowhere in the sampling)

▶ Run this simulationRead how it works

The finding

Buffon's needle measures π NON-CIRCULARLY: dropping needles of length L on a floor ruled every d, the crossing probability is P = 2L/(πd), so π̂ = 2L/(d·P̂) — recovered as 3.140715 over 24M drops (rel |Δ| = 2.8e-4), and 3.14072 ± 0.0037 across 24 seeds — with π NEVER used to generate the drops. The honesty hinge: the needle's orientation is drawn by REJECTION-SAMPLING a uniform direction in the unit disk (|sinθ| = |b|/√(a²+b²)), so the sampler uses only +,−,·,÷,√ — no Math.PI, no trig; sampling the angle the naive way θ = U·(π/2) would smuggle π into the very experiment meant to recover it. The estimator's RMS error falls as N^(−1/2) (fitted log-log slope −0.531, the universal Monte-Carlo rate: halving the error costs 4× the drops), the seed-to-seed spread matches the CLT prediction √((1−P)/(P·N))·π to 4%, and the recovered π is geometry-independent (same value at L/d = 0.3…0.9). Decisive control: drawing the needle's PROJECTION uniform on [0,1] instead of its ANGLE uniformly makes the IDENTICAL estimator recover 4.000, not π — so π is selected by the uniform-angle crossing statistics, not baked into the formula (Buffon 1777).

Method

Drop a short needle (length L = 0.7d ≤ d) with uniform centre position and uniform orientation on a floor ruled with parallel lines spaced d apart. Integrating the crossing condition over the uniform centre-distance and uniform angle gives the crossing probability P = 2L/(πd), so π is recoverable as π̂ = 2L/(d·P̂) with P̂ = crossings/N. Crucially, the orientation is sampled WITHOUT π: a uniform direction is drawn by rejection-sampling a point in the unit disk (draw (a,b) uniform in [−1,1]², reject if a²+b² > 1) and the perpendicular projection is |sinθ| = |b|/√(a²+b²); the crossing test is t ≤ (L/2)|sinθ| with t uniform on [0, d/2]. π is loaded from the reference ONLY to score. Five checks: (A) 24 seeds × 1e6 drops → pooled and mean π̂; (B) unbiasedness — |mean−π| in units of the standard error of the mean — and the CLT spread — empirical seed-to-seed sd vs √((1−P)/(P·N))·π; (C) Monte-Carlo rate — least-squares log-log slope of the RMS error over N = 32…8192 (400 trials each), predicted −1/2; (D) geometry-independence at L/d = 0.3,0.5,0.7,0.9; (E) a falsification control — draw the projection uniform on [0,1] instead of the angle uniformly, which makes the same estimator recover 4.

The law it recovers

Buffon short-needle crossing probability P = 2L/(πd) for L ≤ d with uniform position and uniform orientation; π̂ = 2L/(d·P̂), P̂ = crossings/N

Measurements, controls & cross-checks

Recovered pi pooled

3.140715

Recovered pi pooled rel error

0.000279

Recovered pi mean 24seeds

3.140719

Recovered pi sd 24seeds

0.00366

Se of mean

0.00075

Unbiasedness

Mean minus pi in SE units
1.17
Note
|mean − π| = 1.17·SE_mean — the estimator is unbiased; the mean sits within ~1 standard error of π

Clt spread

Empirical sd
0.00366
Theory se
0.0035
Ratio
1.04
Note
the seed-to-seed spread matches √((1−P)/(P·N))·π — the standard error the central limit theorem gives a Bernoulli(P) crossing count

Monte carlo rate

Fitted loglog slope
-0.5312
Expected
-0.5
Rms error N32
0.8206
Rms error N8192
0.0406
Note
RMS error ∝ N^(−1/2): the universal Monte-Carlo convergence rate — halving the error costs 4× the drops, the same √N law that makes Monte-Carlo integration slow but dimension-blind

Geometry independence

L over dPi recovered
0.33.1398
0.53.1409
0.73.1427
0.93.1421

Geometry spread

0.0029

Control

Name
uniform-projection (biased orientation)
Recovered
3.9998
Expected
4
Gap from pi
0.858
Note
drawing the needle's perpendicular projection uniform on [0,1] instead of its angle uniformly makes the IDENTICAL estimator recover 4 EXACTLY (P = (L/d)·½ ⇒ π̂ = 2L/(d·P̂) = 4), independent of L and d — so π is not baked into 2L/(d·P̂); it is the uniform-angle crossing statistics that select it

Non circular

true

Screen reconciliation

Url
?world=buffon&seed=7
Hud pi hat
3.1315847
Hud crossings
223529
Hud n
500000
Hud rel error
0.00319
Z in 24seed screen ensemble
-1.61
Se clt 500k
0.00496
Rng stream note
the HUD tally shares ONE mulberry32(seed) stream with the cosmetic needle pool (440 spawns × 3 draws at init, 4 × 3 draws per step interleaved with the counted drops), so the displayed number is a different realisation than any clean-stream generator at the same seed — the oracle reproduces the module's draw order verbatim, gates the HUD value a-priori (|Δ| ≤ 4·SE_CLT), holds it inside its own 24-seed module-protocol ensemble (|z| < 3, sd/SE_CLT = 1.07), and pins it bit-exact (crossings strict-integer, π̂ rel 1e-12, the 4-dp HUD string itself); the live browser HUD at seed 7 was read back headlessly and matches the pins verbatim (crossings 223,529, π̂ 3.1316)
Module systematics
Chart slope screen
-0.5237
Chart slope ensemble
-0.5229 ± 0.0187 (sd over 16 seeds; SE of mean 0.0047)
Note
the on-screen convergence chart (own stream seed^0x9e3779b9, 200 trials/N vs the oracle's 400) draws a −1/2 guide, but its fitted slope ensemble-means −0.523: a small (−0.023, ≈5 SE of the mean) DISCLOSED steepening from ratio-estimator inflation of the RMS at small N (π̂ = 2L/(d·P̂) has a heavy tail when N·P̂ is small, lifting E(32) above the CLT prediction) — the same effect visible in oracle gate C's −0.531 at 400 trials; the chart's error is scored against Math.PI for display only, never used in sampling; the cosmetic needle pool's angle/colouring uses π and trig but is display-only and never enters the tally

Note

recovered π = 2L/(d·P̂) from the crossing tally of a π-free sampler; π is loaded from the reference only to score, and a scoring self-test confirms a deliberately-wrong reference (π×1.05) makes the oracle FAIL while the recovered value is unchanged. All 15 derisk gates pass (9 physics + 6 on-screen reconciliation), tamper ⇒ exit 1 in both directions (known_value and screen pins).

What it reduces to

Buffon's needle (Comte de Buffon, 1777): a short needle (L ≤ d) dropped with uniform centre position t ∈ [0, d/2] and uniform orientation θ crosses a nearest line iff t ≤ (L/2)sin θ; integrating over the uniform (t, θ) gives the crossing probability P = 2L/(πd), so π = 2L/(d·P). This world VALIDATES, not derives: it assumes only the geometry of the drop and recovers π as a pure number from a Bernoulli crossing count, and it is arranged to be NON-CIRCULAR — the orientation is sampled by rejection in the unit disk so the estimator never touches Math.PI or a trig function (sampling θ = U·(π/2) directly would smuggle π into a measurement of π). It is the lab's cleanest instance of geometric probability and Monte-Carlo integration: the estimate is not deterministic but statistical, with RMS error falling as the universal N^(−1/2) rate (the central limit theorem applied to the crossing count), a seed-to-seed spread matching √((1−P)/(P·N))·π, and a recovered value independent of the needle/gap ratio. The uniform-projection control isolates the assumption under test: the same estimator returns 4 when the orientation law is changed, so π is a property of the uniform-angle crossing statistics, not of the formula. It is DISTINCT from ?world=galton (which builds a Gaussian from a binomial cascade) and ?world=polya (recurrence of a random walk): those are limit theorems of a sum; Buffon is a geometric-probability integral evaluated by sampling. Its N^(−1/2) rate is the same law that governs every Monte-Carlo estimator in the lab. The lab's first geometric-probability world.

Confidence & reproduction

Confidence
high
Validation
derisk-pass
Re-run the check
npm run derisk -- buffon (scripts/buffon-derisk.mjs)
Oracle
scripts/oracles/buffon.reference.json

Sources

G.-L. Leclerc, Comte de Buffon, 'Essai d'arithmétique morale', Supplément à l'Histoire Naturelle, vol. 4 (1777) — the needle problem and P = 2L/(πd). P.-S. Laplace, 'Théorie analytique des probabilités' (1812) — generalization and the use of the needle to estimate π. The N^(−1/2) error is the central limit theorem applied to the Bernoulli(P) crossing count. Reference value: π = 3.14159265358979.

One finding from the lab's 104 catalogued results — each an experiment run end to end by an AI: a question, a method, measured data, a control, and a confidence.