# Geiger TRNG randomness analysis

**Generated:** 2026-05-08T03:42:16Z (duration 4.26 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 | 45231 |
| `metrics.tsv` rows | 63 |
| `health.csv` rows | 1140 |
| `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 | 45,231 |
| mean Δt | 79590.3 µs |
| median Δt | 55134.8 µs |
| min Δt | 100.1 µs |
| max Δt | 1042296 µs |
| estimated rate | 12.56 Hz (754 CPM) |

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

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


<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,172 (50.005%) | 50% |
| bias | +0.00005 | 0 |
| bias 1σ (sampling) | ±0.00069 | – |
| Shannon entropy | 7.9967 bits/byte | 8.0 |
| χ² statistic | 302.35 | ~255 (df) |
| χ² percentile | 2.23% | 5–95% |

**Autocorrelation** at lag 1..32 —
maximum |ρ| = 0.0026 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.5610 (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)



63 samples over the trailing 24.0 h
(2026-05-07T22:04:23Z → 2026-05-08T03:38:31Z).

| Metric | mean | std | first | last | min | max |
|---|---|---|---|---|---|---|
| bias | 0.0019 | 0.0043 | 0.0006 | 0.0044 | -0.0078 | 0.0137 |
| ent_bpb | 7.8091 | 0.0223 | 7.8281 | 7.7898 | 7.7617 | 7.8521 |
| chi_pct | 48.6244 | 32.8139 | 79.7700 | 5.5400 | 0.6500 | 99.1800 |
| lag1_bits | -0.0034 | 0.0124 | -0.0116 | -0.0019 | -0.0360 | 0.0204 |
| mean_dt_ms | 80.2152 | 2.5136 | 82.9800 | 79.7800 | 75.0100 | 86.2200 |
| lag1_dt | 0.0018 | 0.0355 | 0.0111 | -0.0474 | -0.0810 | 0.0906 |
| pileup_pct | 6.1443 | 0.7574 | 5.5700 | 7.8100 | 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)



1140 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 | 1139 | – |
| n pass | 1139 | – |
| n fail | 0 | – |
| count mean | 256.55 | 256.00 |
| count std | 11.21 | 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.
