# Geiger TRNG randomness analysis

**Generated:** 2026-05-10T03:02:28Z (duration 9.9 s)
**Git SHA:** 5ed9e1d52ead4b9ddb254ad11bc370376013d093  ·  **Analysis version:** 1.0.0  ·  **Python:** 3.13.5

## Parameters

| Knob | Value |
|---|---|
| bits window | 65536 bytes (524,288 bits) |
| events window | 60.0 min |
| metrics window | 24.0 h |
| pile-up cutoff | 5000 µs |
| ACF max lag | 32 |

## Inputs

| Source | Loaded |
|---|---|
| `bits_stream.bin` (last N) | 65536 bytes |
| `events.csv` deltas | 44651 |
| `metrics.tsv` rows | 263 |
| `health.csv` rows | 3094 |
| `battery_history.tsv` rows | 5 |

---

## A · Source physics — inter-arrival distribution



The Geiger source is a Poisson process: the probability of an event in any
infinitesimal interval is constant. Inter-arrival times of a Poisson process
are exponentially distributed.

**Observed:**

| Statistic | Value |
|---|---|
| n deltas | 44,651 |
| mean Δt | 80624.7 µs |
| median Δt | 55867.0 µs |
| min Δt | 11.4 µs |
| max Δt | 779875 µs |
| estimated rate | 12.40 Hz (744 CPM) |

**Goodness-of-fit (Kolmogorov-Smirnov vs exponential):**
KS statistic = 0.0052,
p-value = 0.1795 →
**consistent_with_poisson**

**Pile-up cluster** (Δt < 5000 µs, the GM tube + NE555 recovery floor):
2877 of 44,651
(6.44%).


![Inter-arrival log-log histogram](plots/interarrival_loglog.png)

*([interactive HTML](plots/interarrival_loglog.html))*



The pile-up cluster shows up as the spike below the cutoff line: events that
arrived faster than the recovery dynamics. These come from genuine random
arrivals binned by the dead-time floor:

![Pile-up cluster histogram](plots/pileup_cluster.png)

*([interactive HTML](plots/pileup_cluster.html))*




---

## B · Bit-level statistics



The Δt₁ vs Δt₂ disjoint-pair extractor emits 1 if Δt₁ > Δt₂, 0 otherwise.
With independent samples and constant dead time, the symmetry argument gives
unbiased output. With non-constant dead time (which we have — see Section A)
we filter by `--reject-us`.

| Statistic | Value | Target |
|---|---|---|
| n bits | 524,288 | – |
| ones | 262,114 (49.994%) | 50% |
| bias | -0.00006 | 0 |
| bias 1σ (sampling) | ±0.00069 | – |
| Shannon entropy | 7.9970 bits/byte | 8.0 |
| χ² statistic | 268.25 | ~255 (df) |
| χ² percentile | 27.22% | 5–95% |

**Autocorrelation** at lag 1..32 —
maximum |ρ| = 0.0034 at lag 8.


![Bit-stream autocorrelation](plots/bit_acf.png)

*([interactive HTML](plots/bit_acf.html))*



**Byte distribution** (0..255):

![Byte-value histogram](plots/byte_histogram.png)

*([interactive HTML](plots/byte_histogram.html))*



**Frequency-domain check.** A truly uniform bit stream has a flat power
spectrum (white noise). Any structural bias shows up as a peak.
Spectral flatness = 0.5610 (1.0 = perfectly flat):

![FFT power spectrum](plots/fft_power.png)

*([interactive HTML](plots/fft_power.html))*




---

## C · Drift over time (L2 rolling stats)



263 samples over the trailing 24.0 h
(2026-05-09T02:59:22Z → 2026-05-10T02:59:22Z).

| Metric | mean | std | first | last | min | max |
|---|---|---|---|---|---|---|
| bias | 0.0000 | 0.0057 | -0.0031 | 0.0013 | -0.0129 | 0.0153 |
| ent_bpb | 7.8087 | 0.0183 | 7.8018 | 7.7934 | 7.7575 | 7.8547 |
| chi_pct | 49.2559 | 29.2190 | 31.2700 | 15.9200 | 0.6500 | 99.6100 |
| lag1_bits | 0.0005 | 0.0109 | -0.0058 | -0.0001 | -0.0346 | 0.0246 |
| mean_dt_ms | 79.7081 | 2.3689 | 77.7700 | 81.6100 | 74.4900 | 86.9400 |
| lag1_dt | -0.0019 | 0.0315 | 0.0166 | -0.0158 | -0.0847 | 0.0992 |
| pileup_pct | 6.5786 | 0.7224 | 6.7400 | 6.7400 | 4.5900 | 8.9800 |



![Bias timeline](plots/bias_timeline.png)


![Entropy timeline](plots/entropy_timeline.png)


![χ² percentile timeline](plots/chi_timeline.png)


![Pile-up % timeline](plots/pileup_timeline.png)




---

## D · Health-test history (L1)



3094 rows in `health.csv`.


**Adaptive Proportion Test** — counts of bits matching the first bit of each
W=512 window. NIST cutoff: 310.

| | Observed | Theoretical |
|---|---|---|
| n verdicts | 3093 | – |
| n pass | 3093 | – |
| n fail | 0 | – |
| count mean | 256.35 | 256.00 |
| count std | 11.04 | 11.31 |


![APT count distribution vs Bin(W, 0.5)](plots/apt_distribution.png)



**RCT failures logged:** 0



---

## E · Battery history (L3)



5 runs from 2026-05-07T22:45:52Z to 2026-05-10T02:03:30Z.
**5 pass / 0 fail.** Current pass-streak: **5**.

| Metric | Value |
|---|---|
| ent mean | 7.9969 bits/byte |
| ent range | 7.9965 – 7.9977 |
| Rabbit pass-rate | 100.00% |
| Alphabit pass-rate | 100.00% |


![Daily battery history](plots/battery_history.png)


**Recent runs:**

| ts | ent | chi% | rabbit | alphabit | failures |
|---|---|---|---|---|---|
| 2026-05-07T22:45:52Z | 7.9965 | 6.38 | 1 | 1 | 0 |
| 2026-05-07T22:47:18Z | 7.9965 | 6.33 | 1 | 1 | 0 |
| 2026-05-08T02:03:56Z | 7.9967 | 3.99 | 1 | 1 | 0 |
| 2026-05-09T02:04:26Z | 7.9977 | 99.11 | 1 | 1 | 0 |
| 2026-05-10T02:03:30Z | 7.9971 | 31.76 | 1 | 1 | 0 |




---

## Notes

- Static PNGs in `plots/` (rendered inline above) are produced via matplotlib.
- Interactive Plotly charts live alongside as `plots/*.html` (linked under
  Section A/B; for Section C/D/E open them directly from a clone).
- Source data slices used for this run are in `raw/` (if `keep_raw=True`).
- Numeric values are also available machine-readable in `stats.json`.
- This report is generated by `analysis/runner.py` v1.0.0.
