# Geiger TRNG randomness analysis

**Generated:** 2026-05-09T03:04:30Z (duration 9.47 s)
**Git SHA:** 8bbeb1f31f0c54ea02863127094451048edc5215  ·  **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 | 45377 |
| `metrics.tsv` rows | 263 |
| `health.csv` rows | 2104 |
| `battery_history.tsv` rows | 4 |

---

## 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 | 45,377 |
| mean Δt | 79333.9 µs |
| median Δt | 54723.1 µs |
| min Δt | 167.4 µs |
| max Δt | 866109 µs |
| estimated rate | 12.60 Hz (756 CPM) |

**Goodness-of-fit (Kolmogorov-Smirnov vs exponential):**
KS statistic = 0.0070,
p-value = 0.0233 →
**departs_from_poisson**

**Pile-up cluster** (Δt < 5000 µs, the GM tube + NE555 recovery floor):
3046 of 45,377
(6.71%).


![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,003 (49.973%) | 50% |
| bias | -0.00027 | 0 |
| bias 1σ (sampling) | ±0.00069 | – |
| Shannon entropy | 7.9977 bits/byte | 8.0 |
| χ² statistic | 208.18 | ~255 (df) |
| χ² percentile | 98.56% | 5–95% |

**Autocorrelation** at lag 1..32 —
maximum |ρ| = 0.0030 at lag 31.


![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.5604 (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-08T03:06:02Z → 2026-05-09T03:04:27Z).

| Metric | mean | std | first | last | min | max |
|---|---|---|---|---|---|---|
| bias | -0.0002 | 0.0053 | 0.0023 | -0.0011 | -0.0176 | 0.0153 |
| ent_bpb | 7.8081 | 0.0176 | 7.8521 | 7.7936 | 7.7664 | 7.8600 |
| chi_pct | 47.9162 | 30.1118 | 99.1800 | 14.4500 | 0.5800 | 99.9400 |
| lag1_bits | -0.0001 | 0.0114 | -0.0055 | 0.0001 | -0.0339 | 0.0270 |
| mean_dt_ms | 78.5588 | 2.5894 | 82.1700 | 84.2900 | 71.7000 | 85.1500 |
| lag1_dt | -0.0008 | 0.0311 | 0.0561 | -0.0272 | -0.0778 | 0.0827 |
| pileup_pct | 7.8449 | 1.8059 | 5.5700 | 6.5400 | 4.5900 | 15.8200 |



![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)



2104 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 | 2103 | – |
| n pass | 2103 | – |
| n fail | 0 | – |
| count mean | 256.38 | 256.00 |
| count std | 11.03 | 11.31 |


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



**RCT failures logged:** 0



---

## E · Battery history (L3)



4 runs from 2026-05-07T22:45:52Z to 2026-05-09T02:04:26Z.
**4 pass / 0 fail.** Current pass-streak: **4**.

| 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 |




---

## 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.
