# Geiger TRNG randomness analysis

**Generated:** 2026-05-08T03:01:27Z (duration 2.69 s)
**Git SHA:** ea84cc01b85a354fcb18d7cc6546e35fd74a505e  ·  **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 | 44685 |
| `metrics.tsv` rows | 56 |
| `health.csv` rows | 1112 |
| `battery_history.tsv` rows | 3 |

---

## 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,685 |
| mean Δt | 80561.8 µs |
| median Δt | 55891.6 µs |
| min Δt | 176.8 µs |
| max Δt | 1042296 µs |
| estimated rate | 12.41 Hz (745 CPM) |

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

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


<iframe src="plots/interarrival_loglog.html" style="width:100%;height:520px;border:0"></iframe>



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:

<iframe src="plots/pileup_cluster.html" style="width:100%;height:520px;border:0"></iframe>




---

## 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,102 (49.992%) | 50% |
| bias | -0.00008 | 0 |
| bias 1σ (sampling) | ±0.00069 | – |
| Shannon entropy | 7.9966 bits/byte | 8.0 |
| χ² statistic | 311.45 | ~255 (df) |
| χ² percentile | 0.90% | 5–95% |

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


<iframe src="plots/bit_acf.html" style="width:100%;height:420px;border:0"></iframe>



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

<iframe src="plots/byte_histogram.html" style="width:100%;height:420px;border:0"></iframe>



**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):

<iframe src="plots/fft_power.html" style="width:100%;height:420px;border:0"></iframe>




---

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



56 samples over the trailing 24.0 h
(2026-05-07T22:04:23Z → 2026-05-08T03:00:52Z).

| Metric | mean | std | first | last | min | max |
|---|---|---|---|---|---|---|
| bias | 0.0015 | 0.0043 | 0.0006 | -0.0024 | -0.0078 | 0.0137 |
| ent_bpb | 7.8102 | 0.0218 | 7.8281 | 7.8465 | 7.7617 | 7.8473 |
| chi_pct | 51.2323 | 31.7736 | 79.7700 | 98.5000 | 0.6500 | 98.9200 |
| lag1_bits | -0.0034 | 0.0132 | -0.0116 | -0.0062 | -0.0360 | 0.0204 |
| mean_dt_ms | 80.2748 | 2.5496 | 82.9800 | 80.5800 | 75.0100 | 86.2200 |
| lag1_dt | 0.0019 | 0.0356 | 0.0111 | 0.0556 | -0.0810 | 0.0906 |
| pileup_pct | 6.1434 | 0.7495 | 5.5700 | 7.5200 | 4.4900 | 8.5900 |



<iframe src="plots/bias_timeline.html" style="width:100%;height:380px;border:0"></iframe>


<iframe src="plots/entropy_timeline.html" style="width:100%;height:380px;border:0"></iframe>


<iframe src="plots/chi_timeline.html" style="width:100%;height:380px;border:0"></iframe>


<iframe src="plots/pileup_timeline.html" style="width:100%;height:380px;border:0"></iframe>




---

## D · Health-test history (L1)



1112 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 | 1111 | – |
| n pass | 1111 | – |
| n fail | 0 | – |
| count mean | 256.60 | 256.00 |
| count std | 11.25 | 11.31 |


<iframe src="plots/apt_distribution.html" style="width:100%;height:420px;border:0"></iframe>



**RCT failures logged:** 0



---

## E · Battery history (L3)



3 runs from 2026-05-07T22:45:52Z to 2026-05-08T02:03:56Z.
**3 pass / 0 fail.** Current pass-streak: **3**.

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


<iframe src="plots/battery_history.html" style="width:100%;height:420px;border:0"></iframe>


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




---

## Notes

- Plotly charts are standalone HTML files in `plots/`; PNG fallbacks alongside.
- 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.
