# Geiger TRNG randomness analysis

**Generated:** 2026-05-12T03:03:24Z (duration 9.93 s)
**Git SHA:** b04344411ad9f1fcb32870fd8c04b0339682ac1b  ·  **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 | 46746 |
| `metrics.tsv` rows | 262 |
| `health.csv` rows | 5084 |
| `battery_history.tsv` rows | 7 |

---

## 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 | 46,746 |
| mean Δt | 77010.4 µs |
| median Δt | 53156.6 µs |
| min Δt | 86.7 µs |
| max Δt | 889825 µs |
| estimated rate | 12.99 Hz (779 CPM) |

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

**Pile-up cluster** (Δt < 5000 µs, the GM tube + NE555 recovery floor):
3380 of 46,746
(7.23%).


![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 | 261,960 (49.965%) | 50% |
| bias | -0.00035 | 0 |
| bias 1σ (sampling) | ±0.00069 | – |
| Shannon entropy | 7.9970 bits/byte | 8.0 |
| χ² statistic | 270.96 | ~255 (df) |
| χ² percentile | 23.52% | 5–95% |

**Autocorrelation** at lag 1..32 —
maximum |ρ| = 0.0025 at lag 18.


![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.5621 (1.0 = perfectly flat):

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

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




---

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



262 samples over the trailing 24.0 h
(2026-05-11T03:04:33Z → 2026-05-12T02:59:53Z).

| Metric | mean | std | first | last | min | max |
|---|---|---|---|---|---|---|
| bias | -0.0005 | 0.0062 | 0.0117 | 0.0010 | -0.0154 | 0.0165 |
| ent_bpb | 7.8093 | 0.0171 | 7.8040 | 7.8052 | 7.7502 | 7.8661 |
| chi_pct | 51.1459 | 28.8331 | 33.6000 | 72.6400 | 0.0100 | 99.9900 |
| lag1_bits | -0.0012 | 0.0109 | 0.0201 | -0.0038 | -0.0338 | 0.0262 |
| mean_dt_ms | 77.7377 | 2.5174 | 78.3300 | 76.8100 | 71.2900 | 84.5300 |
| lag1_dt | -0.0007 | 0.0307 | -0.0443 | -0.0257 | -0.0835 | 0.0743 |
| pileup_pct | 8.1744 | 1.1322 | 8.1100 | 6.2500 | 5.3700 | 12.2100 |



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



5084 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 | 5083 | – |
| n pass | 5083 | – |
| n fail | 0 | – |
| count mean | 256.31 | 256.00 |
| count std | 11.17 | 11.31 |


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



**RCT failures logged:** 0



---

## E · Battery history (L3)



7 runs from 2026-05-07T22:45:52Z to 2026-05-12T02:00:31Z.
**7 pass / 0 fail.** Current pass-streak: **7**.

| Metric | Value |
|---|---|
| ent mean | 7.9970 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-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 |
| 2026-05-11T02:04:26Z | 7.9973 | 64.23 | 1 | 1 | 0 |
| 2026-05-12T02:00:31Z | 7.9969 | 15.79 | 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.
