TransitAI Core

Exploration · governance

Two taps are a fingerprint.

How re-identifiable is a fare card, and how small can a published count safely be? Measured on 1.7 million taps from 173,000 cards over nineteen days. The answer sets the minimum group size the design left open.

Two tests. The first follows a published method: take a card, pick a few of its taps at random, and count how many other cards made the same taps. If none did, those few sightings identify the card. The second takes the counts the region would publish, cells such as "taps at this stop in this hour on this day", and asks how many cells hold fewer than k cards.

The card serial was replaced by a throwaway number the moment the file loaded, and nothing per card was written anywhere. Every figure here is a distribution.

The pattern is consistent. Time of day helps a little. Place is what identifies. Moving from stop to route cuts the hidden share by two orders of magnitude at the same time grain, and pooling days into a weekday or weekend profile helps too.

Recommend
Suppress any cell with fewer than 10 distinct cards
Default grain
Date × 3-hour band × route, transfer operator allowed. 0.13% hidden, 2.1% with the operator
Finer option
Date × hour × route. 0.6% hidden, 6.7% with the operator
Stops
Only as date × stop (5.2% hidden) or pooled weekday/weekend profiles
Never
Stop × hour × day leaves the agency, with or without extra fields. Nor pseudonymised rows: a stable code plus two taps is a name
In practice
Drop or roll up the cell, never publish a zero. Count cards, not taps. Recompute every release

Why ten and not five. A cell of five leaves four other people to hide among, one small cross-reference from a name. Small-cell rules in Canadian statistical and health practice sit between five and eleven, with the higher end for location data. Twenty buys little at the recommended grain and starts erasing whole small operators from the transfer counts.

Caveats. Nineteen days, one agency. The location is the boarding tap; a tap-off system would be more identifying. The last day is partial. A longer window raises unicity for frequent riders and grows the pooled cells. Reproduce with python3 explorations/privacy-threshold/analyze.py; the write-up is in that folder.

↑ ↓ to move · ↵ to open · esc to close