Extreme Value Theory, Explained with a Story: Counting Crashes That Haven't Happened Yet

Estimate crashes from near-misses with extreme value theory, step by step.

To know how dangerous an intersection is, we usually wait for crashes and count them. That takes years, and every crash we count is someone hurt. This post follows one intersection, the same two engineers from the Empirical Bayes story, and a method called extreme value theory (EVT) that estimates crashes from near-misses instead.

The problem: no crashes to count

Arjun: Meera, the city wants to know whether the Station Road and Mill Street intersection is dangerous. It opened two years ago with new signals, so there's almost no crash history.

Meera: Then we can't count crashes. What can we count?

Arjun: Near-misses? I could film it for a day.

Meera: Good. But a near-miss isn't a crash. If we film for 8 hours and see zero crashes, how do we get from "zero on camera" to "how many per year"?

Arjun: I have no idea.

Meera: That's exactly the question extreme value theory answers.

Step 1: Measure how close each pair came to colliding

The paper looks at right-angle crashes: a car going straight hits another car crossing from the side. For each pair of crossing cars it measures the post-encroachment time (PET).

Meera: Picture the spot where the two paths cross. The first car leaves that spot. A moment later the second car arrives. The gap between those two moments is the PET.

  • PET of 5 seconds: a comfortable gap.
  • PET of 1 second: a scary near-miss.
  • PET of 0 or less: both cars are in the spot at the same time. That's a crash.
Two cars crossing paths and the time gap between them
Post-encroachment time: the gap between car A leaving the conflict spot and car B arriving.

Arjun: So every crossing gives one number on a single scale, from "safe" all the way down to "crash".

Meera: Yes, and that's the key. A crash isn't a separate kind of event. It's the far end of the same scale as the near-misses we can film. The paper calls a measure like this a crash proximity measure, and it needs a clear line where crashes begin: here, PET = 0.

Step 2: Keep only the worst moment in each 15 minutes

Arjun: I filmed 8 hours and measured hundreds of crossings. Do we use them all?

Meera: No. Ordinary gaps of 6 or 8 seconds tell us nothing about crashes. We care about the extremes: the closest calls.

So we cut the 8 hours into 15-minute blocks, which gives 32 blocks, and keep the smallest PET in each block.

Calculation
Block   smallest PET
1       2.6 s
2       1.9 s
3       1.4 s
4       2.2 s
5       0.9 s   ← the closest call of the day
6       3.0 s
...     (32 blocks in all)
Eight hours of crossings with the closest call in each block highlighted
Eight hours of crossings (simulated for this story). Grey dots are every crossing; orange dots are the closest call in each 15-minute block, the only values the method keeps.

Meera: One trick: the theory is written for the largest values, like the highest flood each year. So we flip the sign and use the negated PET. A PET of 1.4 s becomes −1.4. Now the closest call in each block is its largest value, and a crash is any value at 0 or above.

Step 3: Fit the extreme value curve

Arjun: Now I have 32 "worst moments". None of them is a crash.

Meera: Here's the central result of the theory. Under fairly general conditions, whatever the everyday pattern of gaps looks like, the worst value per block tends to follow one family of curves: the generalised extreme value (GEV) distribution. Hydrologists use it to estimate the 100-year flood from a few decades of river records.

The curve has three settings, and the computer finds the values that fit our 32 worst moments best (by maximum likelihood):

  • Location (μ): where the typical worst moment sits.
  • Scale (σ): how spread out they are.
  • Shape (ξ): how the far tail behaves. This one matters most for crashes.

For Station Road, suppose the fit gives:

Calculation
location μ = −2.0 s
scale    σ =  0.5 s
shape    ξ = −0.2

Arjun: So a typical block's closest call is about 1.8 seconds?

Meera: Right, the middle of this curve is around −1.8 on the negated scale. And with this shape, the tail runs up to +0.5 before it ends. It crosses 0, so the curve says crashes are possible, just rare.

Step 4: Read the crash risk from the tail

Meera: The crash risk in one block is the chance that the block's worst moment lands at 0 or beyond. That's the area under the curve's tail past 0.

Calculation
risk per block = 1 − G(0)

G(z) = exp{ −[1 + ξ(z − μ)/σ]^(−1/ξ) }

1 + ξ(0 − μ)/σ = 1 + (−0.2)(0 + 2.0)/0.5 = 0.2
0.2^(−1/−0.2) = 0.2^5 = 0.00032

risk = 1 − exp(−0.00032) ≈ 0.00032 per 15-minute block
     ≈ 1 crash in every 3,100 blocks
The fitted curve and its tail past the crash line
Left: the 32 closest calls and the fitted curve. Right: the far tail, zoomed in. The orange sliver past 0 is the crash risk per block.

Arjun: That's tiny. No wonder we saw nothing in 32 blocks.

Meera: Exactly. Zero crashes on camera was the expected result. The tail of the curve tells us what 8 hours couldn't show.

Step 5: Scale up to years

Because the risk is so small, it can be read directly as the expected number of crashes per block. Add it up over every block in the period you care about.

The paper's video was all daytime, so the estimate covers daytime only. It uses about 12.09 hours of daylight a day in Indiana:

Calculation
daytime blocks in 4 years = 12.09 h × 4 blocks/h × 365 × 4
                          ≈ 17,651 blocks

crashes in 4 years = 17,651 × 0.00032
                   ≈ 5.6 daytime right-angle crashes
                   ≈ 1.4 per year
Risk per block times number of blocks equals expected crashes
Scaling up: a tiny risk per block, repeated over every daytime block in 4 years.

Arjun: From one day of video and no crashes, we got about 1.4 crashes a year.

Step 6: Let busy times be riskier

Arjun: But rush hour can't have the same risk as mid-afternoon.

Meera: It doesn't, and the paper handles that. It lets the curve's location move with how busy each block is. The most useful predictor was the number of crossings with PET under 4.5 seconds in that block. It improved the fit at all 12 sites they modelled. More close crossings shift the curve toward the crash zone.

Suppose a busy block shifts the location from −2.0 to −1.8, and a quiet block shifts it to −2.4:

Calculation
busy block  (μ = −1.8):  risk ≈ 0.0017      (5.4 times the average block)
quiet block (μ = −2.4):  risk ≈ 0.0000001

With 8 busy blocks and 24 average blocks in our 8 hours:
crashes in 4 years = (17,651 / 32) × (8 × 0.0017 + 24 × 0.00032)
                   ≈ 11.8
Three curves for quiet, average and busy blocks
A busier block shifts the whole curve toward the crash line, and the tail past 0 grows about fivefold.

Arjun: So averaging away the rush hours would have cut our estimate in half.

Meera: Yes. Nearly all the risk lives in a few busy blocks, so they have to be modelled, not averaged away.

Did it work? What the paper found

Songchitruksa and Tarko filmed 18 signalized intersections in Lafayette, Indiana, for 8 hours each in summer 2003, and measured every PET frame by frame. They then compared their estimates with real crash records from 1997–2000. To match the daytime, good-weather video, they kept only non-winter, weekday, daytime crashes: 30 of 131.

  • At the 12 sites they modelled, the estimate fell inside the 95% range of the real crash counts at 7 sites. At the 99% level it was 8 of 12.
  • One site failed badly. It had frequent queue backups at peak hours. The backed-up traffic produced many short PETs that likely don't carry the same crash risk as normal crossings, and the model estimated about 387 crashes in 4 years against 7 observed.
  • The ranges were very wide. Eight hours is simply too little. A simulation showed it would take roughly 30–50 days of observation (8 hours a day) to match the precision of 4 years of crash data.

Arjun: So it's promising, but one day of video isn't enough.

Meera: Right. The paper is honest about that: it shows the idea works, not that it's ready to replace crash data from one day of filming.

Why block maxima and not "every close call"?

There's a second way to pick extremes: keep every PET below a cutoff, say 1.5 seconds. That's called peak over threshold. The paper chose 15-minute blocks instead, for three reasons:

  • Clusters: close calls bunch together in time, and blocks handle that automatically.
  • Untangling clusters is subjective: the fix needed for peak over threshold (declustering) involves judgement calls.
  • No perfect cutoff: choosing the threshold is somewhat arbitrary, even with the usual diagnostic plots.

What came after

The 2006 paper started a whole line of research. A few landmarks:

  • Tarko (2012) turned the idea into a general framework built on the peak-over-threshold (Pareto) approach and applied it to other crash types, such as road departures.
  • Zheng, Ismail and Meng (2014) fitted both approaches to the same freeway lane-change data and compared them. Many later studies prefer peak over threshold because it uses more of the near-miss data.
  • Automated measurement, which the 2006 paper called for, makes observing for weeks instead of hours practical. That targets the paper's biggest problem: observation periods that were too short.

Why EVT matters for road safety

  • It doesn't wait for crashes. You can judge a new design or a site with no crash history.
  • It's proactive. No crash data is used to fit the model; it comes entirely from traffic behaviour.
  • It's built for rare events. Its whole purpose is to reach past what we observed, toward events too rare to see in a short sample.
  • It needs care. The near-miss measure must truly lead to crashes, and unusual traffic (like queue spillback) can fool it.

The method on one card

  1. Pick a crash proximity measure with a clear crash line (PET ≤ 0).
  2. Cut the recording into blocks and keep the worst value in each (negated, so worse = larger).
  3. Fit the GEV curve, letting its location move with how busy each block is.
  4. Risk per block = the area of the tail past the crash line, 1 − G(0).
  5. Add up the risk over all blocks in the period you want.

Arjun: We counted crashes that never happened on camera.

Meera: That's extreme value theory.

Further reading:

  • Songchitruksa, P., & Tarko, A. P. (2006). The extreme value theory approach to safety estimation. Accident Analysis & Prevention, 38(4), 811–822. https://doi.org/10.1016/j.aap.2006.02.003
  • Coles, S. (2001). An Introduction to Statistical Modeling of Extreme Values. Springer. The standard textbook the paper's method follows.
  • Tarko, A. P. (2012). Use of crash surrogates and exceedance statistics to estimate road safety. Accident Analysis & Prevention, 45, 230–240.
  • Zheng, L., Ismail, K., & Meng, X. (2014). Freeway safety estimation using extreme value theory approaches: A comparative study. Accident Analysis & Prevention, 62, 32–41.