# Segment similarity does not make detection events independent

**Result:** two segment comparisons can each match with probability 1/2 while
the chance that either matches is 1/2, 2/3, 3/4 or 1.
Marginal similarity alone does not determine the benefit of combining them.

This is an original finite mathematical example, not a SiLo implementation,
backup trace replay or measurement of deduplication throughput.

## Research context

[SiLo (ATC 2011), sections 2.2-2.3](https://www.usenix.org/legacy/events/atc11/tech/final_files/Xia.pdf)
uses a product of miss probabilities in its segmentation argument.
The construction below examines that step under a shared ideal random ordering.
It does not invalidate the paper's empirical results.

[Broder, Charikar, Frieze and Mitzenmacher, equation 5](https://www.cs.princeton.edu/courses/archive/spring05/cos598E/bib/broder98minwise.pdf)
establish the minwise collision identity: for nonempty sets A and B under a
uniform random permutation, equal minima occur with probability
|A intersection B| / |A union B|. This is a statement about one comparison.
It does not make different comparisons under the same permutation independent.

## What is counted

Each distinct letter represents a chunk identity, not a chunk occurrence or a
byte count. Choose one ordering uniformly from every permutation of the union
of all identities in a case. Both segment pairs use that same ordering.
For pair i, event E_i means that the lowest-ranked identity in its left set
equals the lowest-ranked identity in its right set.

Every case below has P(E_1) = P(E_2) = 1/2.
No pseudorandom generator, fitted parameter or Monte Carlo uncertainty is involved.

| Construction | Pair 1 (left ; right) | Pair 2 (left ; right) |
| --- | --- | --- |
| same-event | {a} ; {a,b} | {a} ; {a,b} |
| shared-minimum | {a} ; {a,b} | {a} ; {a,c} |
| disjoint-supports | {a} ; {a,b} | {c} ; {c,d} |
| complementary | {a} ; {a,b} | {b} ; {a,b} |

| Construction | Orderings | Either-hit count | Exact either-hit probability | Independence shortcut |
| --- | ---: | ---: | ---: | ---: |
| same-event | 2 | 1 | 1/2 | 3/4 |
| shared-minimum | 6 | 4 | 2/3 | 3/4 |
| disjoint-supports | 24 | 18 | 3/4 | 3/4 |
| complementary | 2 | 2 | 1/1 | 3/4 |

The denominator is the number of equally likely orderings, not the number of
files, chunks, bytes, backups or devices. Repeated identities can occur in
different segment positions; each individual set contains an identity once.

## Why the shortcut changes the answer

For two events the exact identity is:

P(E_1 or E_2) = P(E_1) + P(E_2) - P(E_1 and E_2).

The alternative 1 - (1 - P(E_1))(1 - P(E_2)) requires independent events.
With two marginals of 1/2 it always returns 3/4.

In same-event, both comparisons succeed only when a precedes b. Repeating the
comparison adds no detection opportunity. In shared-minimum, both fail exactly
when a ranks last among a,b,c, which occurs in two of the six orders.
In disjoint-supports, the relative orders within a,b and within c,d are
independent under the uniform permutation. In complementary, exactly one event
succeeds in each order.

Without dependence information, the general bounds for two events are:

max(P(E_1), P(E_2)) <= P(E_1 or E_2) <= min(1, P(E_1) + P(E_2)).

The first and last constructions attain these bounds. The shortcut can
overestimate or underestimate, so it is not a generally conservative estimate.

## Reproduce and challenge

Download [fixture.json](fixture.json), [model.mjs](model.mjs),
[model.test.mjs](model.test.mjs), [results.json](results.json) and [table.md](table.md)
into one directory. Node.js 22 or later is sufficient, without dependencies,
credentials or network requests.

```sh
node model.mjs --check
node --test model.test.mjs
```

To recompute outputs after editing the fixture:

```sh
node model.mjs --write
```

The JSON records exact numerators, denominators, marginal and joint counts, and
SHA-256 hashes of the model and fixture. The independent test oracle uses the
minimum of each union and its membership in the intersection. It checks all
2,401 ordered pairs of comparisons drawn from the seven nonempty subsets of a
three-identity universe. It also checks the marginal identity and union bounds.

The public function accepts exactly two comparisons and at most six distinct
identities. Empty sets, duplicate identities within a set and malformed inputs
are rejected. This bound prevents accidental factorial work on large inputs.

## Scope

The model omits chunking, candidate caches, block prefetch, full-fingerprint
verification, writes and restore. It uses ideal collision-free permutations,
not SHA-1 or a practical MinHash implementation. Event probability is not the
fraction of duplicate bytes eliminated, a failure probability or a forecast of
an application's speed. A real workload would need its own event-dependence
measurements and end-to-end accounting.

Source review and original model: Hesela, 2026-12-02.
SiLo authors: Wen Xia, Hong Jiang, Dan Feng and Yu Hua.
No upstream implementation, paper figures or historical traces are redistributed.

[SiLo definition](https://hesela.dev/terms/silo-deduplication/) /
[MinHash](https://hesela.dev/terms/minhash/) /
[Sparse indexing](https://hesela.dev/terms/sparse-indexing/).
