# Same pairwise latency distributions, different three-response tails

This is an exact constructed example, not measured storage performance,
a new probability theorem or an estimate of permanent data loss.

Three usable responses start together. Each takes 10 ms with probability
99% and 100 ms with probability 1%; the common deadline is 50 ms.
Every pair has the same full independent distribution in all three cases.
Nevertheless, the probability that even the first usable response arrives
too late ranges from 0% to 0.01%. Mutual independence gives 0.0001%.
The upper endpoint is 100 times that extra-assumption value.

See results.md for the generated table and results.json for all eight joint
state probabilities. publication.json supplies exact display strings for the
article. These bounds identify what is possible given exact constraints;
they are not confidence intervals for observations.

## Why a pair is insufficient

Let pA, pB, pC be the late probabilities and qAB, qAC, qBC the pair
intersections. The triple intersection t is the remaining degree of freedom.
The eight states, in binary order, have probabilities:

- 000: 1 - pA - pB - pC + qAB + qAC + qBC - t
- 001: pC - qAC - qBC + t
- 010: pB - qAB - qBC + t
- 011: qBC - t
- 100: pA - qAB - qAC + t
- 101: qAC - t
- 110: qAB - t
- 111: t

Their nonnegativity is necessary and sufficient for a valid joint
distribution. Here it permits every t from 0 to 1/10000. An any-one read
misses with probability t; an any-two read misses with qAB+qAC+qBC-2t;
an all-three read misses with pA+pB+pC-qAB-qAC-qBC+t.
Thus increasing t has opposite effects on different completion rules.

The general formula and independent modular constructions are in model.py
and test_model.py. All 6,435 allocations of eight equally weighted
observations among eight states are checked as a finite regression test,
alongside the algebraic derivation. They are not sampled storage requests.

## Storage interpretation

A response must satisfy the actual read contract: equivalent usable replicas,
or distinct validated fragments of one generation with adequate decoding
rank. Collection is not decoding or validation. Record aligned group outcomes
and timeouts, not just pair correlations. Cancellation can hide later
completion times and must be recorded as an observation limit.

The example excludes queueing, changing load, retries, cancellation costs and
temporal dependence. Real input probabilities would have sampling uncertainty.
It does not establish that these distributions occur in a deployed fleet.

## Primary evidence

- [Ramachandra and Natarajan, arXiv:2006.00516v6](https://arxiv.org/pdf/2006.00516v6),
  introduction and section 4.1: established bounds under pairwise independence.
- [Peled, Yadin and Yehudayoff, arXiv:0801.0059v3](https://arxiv.org/pdf/0801.0059v3),
  introduction: all-one events under k-wise independence.
- [EC-Cache, OSDI 2016](https://www.usenix.org/system/files/conference/osdi16/osdi16-rashmi.pdf),
  sections 4.3-4.4: fragment collection and decoding, not a replication of its benchmarks.
- [Nath et al., NSDI 2006](https://www.usenix.org/legacy/event/nsdi06/tech/full_papers/nath/nath_html/index.html),
  sections 2 and 4: storage event-size context. Historical reachability probes
  are not per-request latency or physical-drive failure observations.

sources.json records versions, locators, scope and limitations.
Only original code, calculations and paraphrases are included; no third-party
paper, figure or dataset is redistributed.

## Reproduce offline

Use Python 3.10 or later; no packages, network, seed or random generator.

```bash
python3 -B model.py --check
python3 -B test_model.py
python3 -B -O test_model.py
python3 -B package.py
python3 -B package.py --check
python3 -B test_package.py
sha256sum -c SHA256SUMS
```

The ZIP contains ten explicitly listed files. SHA256SUMS covers nine payload
files, excluding itself and the ZIP. Re-running package.py rebuilds a
byte-identical ZIP. A local checksum proves consistency, not independent
authenticity. Research calculation source: commit
80d76826bc59c710193a3966d6a9e7454da7e4fb; publication packaging is separate.
