Options Ranking Probability

Software · Short case

Options Ranking Probability 期权考核期淘汰概率

Can two last places cost a market maker its seat? Billions of simulated seasons, audited by an independent combinatorial check, answered in 28 minutes. On a stylized contest: under 1%, even finishing dead last twice.

  • Designed and built from scratch by Shuo Huang
  • 39.5 billion simulated seasons
  • 25 million seasons a second
  • Answered in 28 min
  • An earlier analysis reproduced to 0.06 pp
  • 12 of 12 figures confirmed by an independent check

01System architecture

One compiled simulator, calibrated on an earlier analysis and audited by an exact count of the final month.

Two constraints shaped it. The probabilities are tiny, far below one in ten thousand in the mildest scenarios, so only billions of samples give three reliable digits. And it had to run on a standard office PC as it stood, so the engine is dependency-free C#, built with the compiler that ships with Windows.

The question

Ranks and scenarios

Monthly ranks so far, the ranks to test for the months left, the field and the cut.

Compiled C# · 24 threads

Monte Carlo engine

Draws every rival’s rank for all six months, 25 million seasons a second.

One file per scenario

Outcome histogram

Counts of rivals worse than the firm and tied with it, now and at the end.

Python

Probability tables

Three tie rules, every current rank, the full final-rank distribution.

An earlier internal analysis

Its tables

Two tables from an earlier analysis of the same kind of contest. The method behind them was only partly written down.

Calibration

Replication run

Finds the one reading that reproduces those tables: conditioned on the known rank, ties won.

Independent of the engine

Three checks

Full enumeration on small contests, an exact count of the last month, a persistence stress test.

Delivered

One-page answer

The verdict first, then the tables, with a summary ready to paste into chat.

Simplified: the checks do not read the main histogram. The enumeration runs the engine on three small contests and compares every cell with an exact count; the last-month count and the persistence model draw their own samples in Python and are compared with the engine’s tables.

Why one histogram instead of one answer?

A run records, for every simulated season, how many rivals finish strictly worse than the firm and how many tie, at the last known month and at the end. That four-number summary is enough to rebuild every table afterward: any tie rule, any assumed current rank, the whole final-rank distribution. One expensive run answers every follow-up on that scenario for free.

Why reproduce the earlier numbers first?

Any new figure would be read next to the earlier analysis. A fresh model without that analysis’s implicit conditioning disagreed with its tables by up to 26.6 percentage points. Matching them to 0.06 first meant the new answer spoke the same language, and the page could then show what changes under other conventions.1

Why compiled C#?

Two billion six-month seasons per scenario is out of reach for plain Python in minutes. The engine is a single 157-line C# source file with its own random generator and no dependency at all, built with the compiler that ships with Windows.

02The story

Can two last places cost a seat? 17 billion simulated seasons, answered in 28 minutes.

Picture a league of market makers in one product, ranked every month: the monthly ranks are added up over six months and the bottom of the table loses its seat.2 A colleague brought Shuo a question about a rule of exactly this kind: could two last places cost a market maker its seat? Shuo designed and built a simulator that plays the rest of the season billions of times, checked it against exact counts, and delivered a forwardable answer in 28 minutes.3 This page works the method on a stylized contest, where even finishing last in both remaining months leaves only a 0.08% chance of losing the seat, about 1 in 1,200.4,5

  1. 01

    The problem

    A market maker is a firm the exchange appoints to quote buy and sell prices all day, so that anyone else can always trade. The appointment is per product, and it can be defended like a place in a league with relegation: the makers are ranked every month, the monthly ranks are added up over the assessment period, and the largest totals lose their market-maker status in that product.2

    A colleague asked how robust a seat is under a rule of this kind: could two last places cost a market maker its seat? This page works the question on a stylized contest: 20 makers, six months, the bottom five out, and a maker that ranked 8, 2, 10 and 5 and is then tested at 19th or 20th in each of the last two months.5

    • The exact answer is out of reach: the other 19 firms’ ranks over six months can fall about 3 × 10¹⁰² ways
    • The risk is small: a million simulated seasons would see only about 21 eliminations in the mildest case, far too few to split by tie rule or current standing
    • An earlier internal analysis of the same kind of contest existed, and any new number had to be consistent with it
  2. 02

    What he built

    Shuo designed and built, from scratch, a compiled, multithreaded Monte Carlo engine that plays out a six-month contest 25 million times a second,6 and ran each of the four scenarios in the question two billion times. Every run is seeded, so every number can be regenerated.

    Before answering, he made the engine reproduce the tables of an earlier internal analysis. They matched to 0.06 percentage points only under two conventions that analysis had left implicit, so the new numbers start from exactly the established method.1

    Then he audited himself. An independent program computes the final month exactly, over every way the other firms can rank in it, using a counting technique from combinatorics. All twelve headline figures agreed, 12 of 12.7

    Days later came the reverse question: if the final month is a last place, what rank is needed in the month before it? The same engine answered in 20 minutes.

  3. 03

    What changed

    The colleague had a forwardable answer the same afternoon. On this page’s stylized contest: even last in both remaining months, the chance of losing the seat is 0.08%, about 1 in 1,200, and below 1% under every tie rule; second to last in both months, it is 0.002%.4

    The answer page also explains why, with one piece of arithmetic. On the stylized contest: every month’s ranks add up to 210, so the field’s average six-month total is fixed at 63, and a total of 63 to 65 is close to it. To land in the bottom five, 15 of the 19 rivals would all have to beat a near-average score at once.

    For the reverse question the answer is a target rank rather than a single probability. In the stylized case: rank 6th or better in month 5 for a 95% chance of staying; 11th is a coin flip.8 And one finding went past the question: if strong firms tend to stay strong, the odds are better still, so every headline number is the cautious end.9

<1%

chance of losing the seat on this page’s stylized contest, even ranking last in both remaining months4

39.5B

six-month seasons simulated across the two studies10

0.06pp

largest gap when reproducing the tables of an earlier internal analysis1

12/12

headline figures confirmed by an independent check that computes the final month exactly and shares no code with the simulator7

28min

from the question to a finished answer page a colleague could forward3

20min

for the follow-up: the inverse question, the rank needed to keep a seat3

03Evidence

The two answers, on a stylized contest

Last twice, and still mid-table

Study 1, on the stylized contest: where the market maker finishes the season if it comes 20th in both remaining months.

Final rank after 20th in months 5 and 6

Even last in both remaining months, the market maker most likely finishes 12th of 20; only 0.08% of seasons end in the bottom five.

Show the dataHide the data
Data: Final rank after 20th in months 5 and 6
Final rank of 20 (1 is best)Share of simulated seasons (%)
80.68%
94.33%
1014.65%
1127.42%
1228.94%
1317.22%
145.65%
150.97%
160.08%
170.00%
180.00%
190.00%
200.00%
Synthetic data. Illustrative rank history, generated to show the effect: ranks 8, 2, 10 and 5 through month 4, then 20th in both remaining months; 20 firms, bottom five out; rivals’ monthly ranks random and independent; ties broken at random; re-simulated for this page (240,000 draws, final month computed exactly). Ranks 1 to 7 together: about 0.054% of seasons. The method is as built; the original inputs are confidential.4

The rank needed in month 5 to keep the seat

Study 2, on the stylized contest: the chance of staying in the top 15 for every possible month-5 rank, with month 6 assumed 20th and, dashed, 19th. The gridline marks 95%.

Chance of staying, by month-5 rank

Sixth or better in month 5 gives a 95% chance of staying and eleventh is a coin flip; one place better in month 6 buys one place in month 5.

Show the dataHide the data
Data: Chance of staying, by month-5 rank
Month-5 rank (1 is best)Month 6: 20thMonth 6: 19th
1100%100%
2100%100%
3100%100%
4100%100%
599%100%
697%99%
792%97%
885%92%
975%85%
1062%75%
1148%62%
1235%48%
1324%35%
1415%24%
159%15%
165%9%
172%5%
181%2%
191%1%
200%1%
Synthetic data. Illustrative rank history, generated to show the effect: ranks 12, 5, 16 and 9 through month 4; top 15 of 20 retained; rivals’ monthly ranks random and independent; ties broken at random; 48,000 draws per point with one month computed exactly. With ties counted in the firm’s favor, 6th gives 98.0%. The method is as built; the original inputs are confidential.8

04Functions

From a colleague’s question to an answer he can forward

A

State the contest on one strip

The page opens with the whole problem in one picture: six months, one bar for each rank earned, and the total that decides everything.

  • Known months are solid, the months still to come are hatched
  • The six-month total is the only number the model ranks on
  • The verdict sits directly under the strip, before any table
English redraw on a stylized contest. Six columns of twenty slots, one per month. Months 1 to 4 have one bar each at ranks 8, 2, 10 and 5. Months 5 and 6 each have two hatched bars at ranks 19 and 20. At the right, the six-month rank total: 63 to 65. Below: a 0.08% chance of losing the seat at 20th in both months. Enlarge
Synthetic data. English redraw of the answer page’s opening graphic, drawn for a stylized contest. Each column is a month and each column has twenty slots, best rank at the top. Read it left to right: four known ranks, two still to come, and on the right the six-month rank total the model ranks on.
  1. Marker 1: Month 1: rank 8. One column per month, twenty slots, best at the top; the bar is the rank earned.
  2. Marker 2: Month 3: rank 10. The weakest of the four known months, and still mid-table.
  3. Marker 3: Month 5: 19 or 20. Hatched bars mark the months still to come; both ranks are tested.
  4. Marker 4: Month 6: 19 or 20. Four combinations in all; 19 then 20 and 20 then 19 are the same two ranks in a different order, so the same odds.
  5. Marker 5: Six-month rank total: 63 to 65. 25 from the known months plus 38 to 40. The field’s average is 63.

B

Match the earlier analysis before changing anything

The engine first reruns an earlier internal analysis of the same kind of contest and finds the one set of conventions under which its tables come out.

  • All its tabulated results reproduced to within 0.06 percentage points1
  • Two implicit conventions pinned down: the simulation is conditioned on the known cumulative rank, and ties count in the firm’s favor
  • Without the conditioning the same model is off by up to 26.6 points

Six readings of the earlier method, scored against its table

Only one reading of the method reproduces the table, to within 0.06 percentage points; every other reading misses by 4 to 27 points.

Data: Six readings of the earlier method, scored against its table
Reading of the methodLargest gap from the earlier table (percentage points)
Known rank, ties won at both steps0.06
Known rank, ties random, then won4.09
Known rank, ties random at both steps6.62
Known rank, ties lost, then won7.34
Known rank, ties random, then lost17.28
No known rank, ties won26.62
“Known rank”: the simulation is conditioned on the known cumulative rank before the final month; the tie rule is given for that step, then for the final ranking. Largest absolute difference from every tabulated value of table A, at 4 × 10⁸ simulated seasons per value; table B ranks the readings in the same order (0.05 for the match, 3.71 to 18.04 for the others). These gaps measure the engine against the earlier tables, which are not shown.1

C

Price every scenario, under every tie rule

The tie-break depends on quantities that cannot be observed for rivals, so each answer is given three ways: ties won, ties random, ties lost.

  • On the stylized contest: 19th twice 0.002%, about 1 in 48,000; 20th twice 0.08%, about 1 in 1,2004
  • On the stylized contest, the worst cell in any table, last twice with every tie lost while currently ranked 1st, is 0.345%
  • On the stylized contest, the most likely finish at 20th twice is 12th of 20; 88.2% of outcomes land between 10th and 13th

D

Turn the question around: what rank is needed?

For the reverse question the engine sweeps every possible rank in the second-to-last month and returns the chance of staying for each one.

  • Stylized case: 6th or better gives at least 95%; 5th gives 98.78%; 11th gives 48.0%8
  • One place better in month 6 buys one place in month 5, to within 0.2 percentage points
  • The requirement barely moves with the current standing: within one place of 6th for any current rank from 8th to 13th
English redraw on a stylized contest. Six columns of twenty slots for months 1 to 6. Months 1 to 4 have bars at ranks 12, 5, 16 and 9. Month 5 is an empty dashed column with a question mark. Month 6 has a hatched bar at rank 20. At the right, the six-month rank total: 62 plus the unknown month-5 rank. Below: 6th or better in month 5 keeps the seat with at least 95% probability. Enlarge
Synthetic data. The same strip for the reverse question, again a redraw on the stylized contest. This time one month is the unknown: the dashed month-5 column is the rank to solve for, given a last place assumed in month 6.
  1. Marker 1: Month 2: rank 5. The best of four mixed months: 12, 5, 16, 9.
  2. Marker 2: Month 4: rank 9. The four known months total 42, level with the field average of 42.
  3. Marker 3: Month 5: the unknown. The dashed column is the question: every rank from 1 to 20 is evaluated.
  4. Marker 4: Month 6: rank 20 assumed. The planning case: last place in the final month.
  5. Marker 5: Total: 62 plus month 5. 42 from the known months, 20 for month 6. A total of 68, 6th in month 5, is the 95% line.

E

Stress the one assumption that matters

The base model treats every rival’s rank as a fresh lottery each month; in practice rankings persist, so the engine measures what persistence does to the answer.

  • Study 1, stylized contest: 0.08% falls to 0.058%, 0.028% and 0.0074% as persistence rises9
  • Study 2, stylized contest: 8th in month 5 goes from 85.0% to 96.0% with moderate persistence
  • So the random model is the conservative end, and the page says so in plain words

Chance of staying as rank persistence rises, study 2

If rankings persist from month to month, the odds only get better: 11th in month 5 rises from a coin flip to 80% at moderate persistence.

Data: Chance of staying as rank persistence rises, study 2
Rank persistence (month-to-month rank correlation)8th in month 511th in month 5
None (0)85.03%48.01%
Moderate (0.12)95.99%79.56%
Strong (0.30)99.13%94.46%
Synthetic data. Illustrative rank history, generated to show the effect; month 6 assumed 20th, ties broken at random. Each rival gets a fixed strength drawn from N(0, s²) plus monthly noise: moderate is s = 0.4, strong s = 0.7. First column: the base model with one month computed exactly; the others: 480,000 simulated seasons each. In study 1 the same two steps cut the 0.08% risk to 0.028% and 0.0074%. The method is as built; the original inputs are confidential.9

F

Deliver one page a colleague can forward

The verdict comes first, the tables after, and a short summary is written to be pasted straight into chat.

  • Every number on the answer page is read from the engine’s output files, never typed
  • Every run is seeded and scripted: two scripts regenerate every scenario file
  • Question to forwardable answer in 28 minutes3

05All screens

Two views of the program.

06Under the hood

The model, the estimators, the exact check and worked results

Under the hoodModel, estimators, variance, exact rook-polynomial check, pseudo-code and worked results

For a quant or a statistician: this is rare-event estimation on a constrained combinatorial object. Each month the firms’ ranks form a permutation; one firm’s entry is fixed by scenario; the event is that too few of the other firms’ six-month sums are worse than its own (before tie-breaks). The sections give the model, why the estimator is crude Monte Carlo at 2 × 10⁹, how one histogram yields every conditional table with a delta-method standard error, the calibration against prior results, a Rao–Blackwellized check with an exact final month that shares no code with the simulator, pseudo-code of the three core routines, and worked results on a stylized contest of 20 firms with the bottom five out.2,5

Model and event

Take n firms, of which c lose the seat (n=20 and c=5 in the worked results). Index the firm in question 0 and its rivals 1 to n−1. In month m the firm’s rank r0,m is given (observed, or set by the scenario) and the rivals’ ranks are a uniformly random permutation of the n−1 places the firm leaves free, independent across months. Lower totals are better. Let W be the number of rivals that end strictly worse than the firm and E the number tied. The firm is out when fewer than c rivals finish below it.

The tie-break depends on quantities that are not observable for rivals, so three conventions are reported everywhere:

  • Ties won (the earlier analysis’s convention): out when W+E≤c−1
  • Ties lost (worst case): out when W≤c−1
  • Ties random: each ordering of the tied group equally likely, giving the formula below

The same quantities are also recorded after the last observed month, which gives the conditional answer for every possible current standing.

Si=∑m=16ri,m, W=#{j:Sj>S0}, E=#{j:Sj=S0}, P(out∣W,E)=min(E,c−1−W)+1E+1 for W≤c−1
Six-month rank total, the two counts every run records, and the elimination probability under random tie-breaks (zero when W ≥ c).

Why crude Monte Carlo, and why two billion

The joint state space is ((n−1)!)6, about 3 × 10¹⁰² assignments for 20 firms, so enumeration is impossible beyond one month. On the stylized contest the target probabilities run from below 10⁻⁵ to about 10⁻³. At 10⁶ samples the mildest scenario would rest on about 21 events; splitting by current rank and tie rule leaves nothing. At 2 × 10⁹ the standard error on the smallest headline figure is about 5.5 × 10⁻⁸, and the largest among the twelve headline figures is 0.0001 percentage points.

The obvious alternatives, and why they lose here:

  • Importance sampling or splitting. It would cut variance for one event, but the deliverable is a whole family of events (three tie rules × every current rank × a full final-rank distribution) read from one histogram, and a sampler tilted toward one of them raises the variance of the others. At about 25 million seasons a second, brute force costs 75 to 90 seconds per two-billion-season scenario and stays unbiased for all of them.
  • A normal approximation to the rank sums. The rivals’ sums are negatively dependent (each month’s ranks sum to a constant), and the event lives in the far tail of an order statistic, exactly where a Gaussian shortcut fails.
  • An exact computation of all six months. Given the rivals’ five-month partial sums, one month can be counted exactly (the check below); two or more months cannot be enumerated.
  • Plain Python. Two billion seasons would take hours. It is used only for the independent checks, at 6 × 10⁴ to 4 × 10⁵ draws.
SE(p^)=p(1−p)N≈5.9×10−62×109≈5.5×10−8
Binomial standard error for the smallest headline probability of the stylized contest (19th in both months, ties won) at N = 2 × 10⁹.

The engine

One 157-line C# file with no dependency, built with the compiler that ships with Windows. Parallel.For runs one worker per thread; each owns a xoshiro256** generator seeded through SplitMix64 from the run seed and the thread index, and a private histogram that is merged under a lock at the end, so the hot loop shares no state. A month is one in-place Fisher–Yates shuffle of the free places; shuffling the previous month’s arrangement is still uniform, so nothing is reallocated. Bounded integers come from the high 32 bits by multiply-shift, with negligible bias (at most range/2³², below 2⁻²⁷ for any field up to 20 firms). The run exits with an error if the merged counts do not add up to the requested sample size. Scenario, sample size and seed are command-line arguments, and each thread draws a fixed share of the samples from its own seeded stream, so a rerun with the same thread count reproduces every count.

The output is the sufficient statistic, not a probability: a count for every combination of (rivals worse, rivals tied) at the conditioning month and at the end. Every table on the answer page is a different sum over that array.

Pseudo-code
def worker(seasons, seed):
    rng = generator(seed)                      # one seeded stream per thread
    hist = empty_histogram()                   # private; merged at the end
    for _ in range(seasons):
        totals = zeros(rivals)
        for month in months:
            shuffle_in_place(free_places[month], rng)    # Fisher-Yates
            totals += free_places[month]
            if month == last_known_month:
                worse_now, tied_now = compare(totals, firm_total_so_far)
        worse_end, tied_end = compare(totals, firm_total)
        hist[worse_now, tied_now, worse_end, tied_end] += 1
    return hist
Pseudo-code. The per-thread inner loop, simplified: one season per pass, one histogram cell per season.

One histogram, every table: the conditional estimator

A scenario’s histogram has cells c=(Wc,Ec,W,E): rivals worse and tied after the last known month, and at the end. The unconditional answer weights every cell equally. The answer given that the firm is currently k-th weights each cell by the probability that its history has current rank k under the chosen tie rule, which makes it a ratio estimator. Its standard error comes from the delta method on the cell counts, so no second simulation is needed for any conditional table.

Conditioning thins the sample, and the run report says by how much: every conditional row prints the effective number of seasons behind it, and ranks the model never reaches print n/a.

The same function answers any question about the final rank by swapping the predicate: the bottom of the table, the retained places, or one bar of the final-rank distribution.

p^k=∑cncωk(c)f(c)∑cncωk(c), SE(p^k)=∑cnc[ωk(c)(f(c)−p^k)]2/Nω¯N
n is the count in cell c, ω the probability that the cell’s history has current rank k, f the probability of the event given the cell’s final counts, N the number of seasons and ω̄ the mean weight.
Pseudo-code
def conditional_probability(histogram, event, current_rank):
    num = den = 0
    terms = []
    for cell, count in histogram:
        w = weight(cell, current_rank)     # P(this history has that rank)
        f = prob(event, cell)              # P(event | final counts), tie rule applied
        num += count * w * f
        den += count * w
        terms.append((count, w, f))
    p = num / den                          # ratio estimator
    spread = sum(count * (w * (f - p)) ** 2 for count, w, f in terms)
    se = sqrt(spread / n) / (mean_weight * sqrt(n))    # delta method
    return p, se, den                      # den: effective sample size
Pseudo-code. The conditional ratio estimator and its delta-method standard error, simplified.

Calibration: recovering an implicit method from its outputs

An earlier internal analysis of a contest of the same kind gives two tables of the probability of staying, lists its starting conditions, and says only that the tables come from a random simulation with ties left out. Six readings of that method were scored against both tables, on simulations of 4 × 10⁸ seasons per table row. Exactly one reproduces them: condition on the known cumulative rank before the final month, and count ties in the firm’s favor both at the conditioning step and at the end.

This is ordinary model identification, and it changed the deliverable: every table reports that tie convention beside ties-random and ties-lost, and the current standing is conditioned the same way, so new numbers and old ones can sit on one page without contradiction.

Largest absolute difference from the tabulated values of each table: a measure of the engine against the earlier analysis, whose tables are not shown.
VariantMax gap, table AMax gap, table B
No conditioning, ties won26.62 pp18.04 pp
Conditioned on known rank, ties won throughout0.06 pp0.05 pp
Conditioned (ties random), final ties won4.09 pp3.71 pp
Conditioned (ties lost), final ties won7.34 pp6.97 pp
Conditioned (ties random), final ties random6.62 pp6.44 pp
Conditioned (ties random), final ties lost17.28 pp16.42 pp

The exact check: a rook-polynomial count of the last month

A second program shares no code with the engine. It simulates months 1 to 5 in Python, then computes the final month exactly. Given the partial sums, rival i ends worse than the firm if its last rank exceeds a threshold ti and ties if it equals it. Assigning last-month ranks to rivals is placing n−1 non-attacking rooks on a square board (19 × 19 in the stylized contest); the question is how many placements put exactly W rooks on “worse” cells and E on “tie” cells.

Because the “worse” sets are nested (a larger threshold allows fewer ranks), the board is a Ferrers board, and its bivariate rook numbers rk,l (ways to place k rooks on worse cells and l on tie cells) follow from one dynamic-programming pass over the rivals sorted by threshold. Inclusion–exclusion turns rook numbers into exact hit counts over all 19! ≈ 1.2 × 10¹⁷ assignments. Averaging the exact conditional probability over the simulated first five months is a Rao–Blackwellized estimator. On the stylized contest, 240,000 draws give a standard error of 0.0006 percentage points on the 0.08% figure; crude sampling at the same number of draws would carry 0.0059: about 110 times the information per draw.

The three tie conventions are then plain sums over the exact hit counts, with the same formula as in the first section.

The rook routine is itself tested against brute-force enumeration on 300 random boards, and the engine against complete enumeration of three small contests (5 to 6 firms, 3 to 4 months), cell by cell with a χ² test.

N(W,E)=∑l≥E(−1)l−EC(l,E)∑k≥W(−1)k−WC(k,W)rk,l(n−1−k−l)!
Number of final-month assignments with exactly W rivals worse and E tied, from the bivariate rook numbers of the board.
Pseudo-code
def rook_numbers(thresholds, free_ranks):
    # ways[k, l, tie]: k rooks on "worse" cells, l on "tie" cells, non-attacking;
    # tie says whether the current group's tie column is already taken
    ways = {(0, 0, FREE): 1}
    for group in rivals_grouped_by_threshold(thresholds, largest_first=True):
        release_tie_column(ways)           # it now lies inside the worse set
        for rival in group:
            for (k, l, tie), count in snapshot(ways):
                open_cells = worse_cells(rival, free_ranks) - rooks_inside(k, l, tie)
                if open_cells > 0:
                    ways[k + 1, l, tie] += count * open_cells
                if has_tie_cell(rival, free_ranks) and tie == FREE:
                    ways[k, l + 1, TAKEN] += count
    return sum_over_tie_state(ways)        # r[k][l]
Pseudo-code. The bivariate rook numbers of the last-month board in one dynamic-programming pass, simplified.
Synthetic data. One of the four scenarios of the stylized contest, re-run for this page with both estimators. All twelve figures agree within 0.9 combined standard errors.
20th in both monthsCrude Monte Carlo, 4.8 × 10⁶ seasonsExact last month, 2.4 × 10⁵ draws
Ties won0.0341% ± 0.00080.0340% ± 0.0003
Ties random0.0845% ± 0.00110.0839% ± 0.0006
Ties lost0.1620% ± 0.00180.1610% ± 0.0010

Results, study 1: four scenarios

Stylized contest: ranks 8, 2, 10, 5 through month 4; 20 firms; bottom 5 eliminated. The months are interchangeable in the model, so 19 then 20 equals 20 then 19 to sampling error.

Conditioning on the current cumulative rank k after month 4 gives a counterintuitive result. The rivals’ totals are simulated, so the firm’s current standing is itself a distribution (most likely 2nd here), and the risk is highest when it is currently 1st: if nobody’s four-month total is below the firm’s, the field is bunched just behind it and more of it can overtake. At 20th twice the risk given 1st is 0.075% / 0.182% / 0.345% across the tie rules, the largest cell of the study and still under 1%.

Final rank at 20th twice, ties random: 9th 4.33%, 10th 14.65%, 11th 27.42%, 12th 28.94%, 13th 17.22%, 14th 5.65%, and 0.08% in the bottom five.

Synthetic data. Probability of losing the seat on the stylized contest, re-simulated for this page: 240,000 draws per row with the final month computed exactly; standard errors at most 0.0010 percentage points.
Month 5 / month 6Rank totalTies wonTies randomTies lost
19 / 19630.0006%0.0021% (1 in 48,000)0.0047%
19 / 20640.0051%0.0150% (1 in 6,700)0.0313%
20 / 19640.0051%0.0150%0.0314%
20 / 20650.0340%0.0839% (1 in 1,200)0.1610%

Results, study 2: the inverse problem

The reverse question on the stylized contest: ranks 12, 5, 16, 9 through month 4, month 6 assumed 20th, top 15 of 20 retained. The sweep covers every month-5 rank from 1 to 20, then again with month 6 at 19th. With ties counted in the firm’s favor, 6th gives 98.0% and 7th 94.8%. Month 6 at 19th with month 5 at rank r + 1 has the same total as month 6 at 20th with month 5 at r, and the two agree within 0.2 percentage points at every rank, so one better place in month 6 buys one place in month 5.8

Synthetic data. Chance of staying in the top 15 of 20 by month-5 rank, stylized contest: 48,000 draws per column with one month computed exactly.
Month-5 rank5678910111213141516
P(stay), ties random98.78%96.65%92.32%85.03%74.62%61.80%48.01%34.84%23.59%14.89%8.77%4.82%

Sensitivity: rank persistence

The independence assumption is the model’s weakest and most consequential. A one-parameter alternative gives each rival a persistent strength; each month the rivals are ordered by strength plus noise into the places the firm leaves free. Setting s=0 recovers the base model. Persistence spreads the rivals’ totals apart, which makes it harder for most of them to land on the same side of an average score. Risk falls monotonically in study 1 and survival rises sharply in study 2, where it moves the answer far more than the current standing does. The recommendation that followed: rank histories of the whole field are the most valuable missing input.9

xi,m=μi+εi,m, μi∼N(0,s2), εi,m∼N(0,1)
Monthly score of rival i; rivals are ranked by score into the free places. s sets how persistent rankings are.
Synthetic data. Ties random; stylized contest. Rows s > 0: 2.4 × 10⁶ simulated seasons per setting in study 1 and 4.8 × 10⁵ in study 2. Row s = 0: the base model with one month computed exactly (the persistence simulator at s = 0 gives 0.086%). n/a = not run.
Persistence sMonth-to-month rank correlationStudy 1: P(out), 20th twiceStudy 2: P(stay), 8th in month 5Study 2: P(stay), 11th in month 5
0 (random)≈ 00.084%85.03%48.01%
0.2≈ 0.030.058%n/an/a
0.4≈ 0.120.028%95.99%79.56%
0.7≈ 0.300.0074%99.13%94.46%

Failure modes engineered out

  • A wrong simulator. Checked three ways that share no code: full enumeration on small contests, the exact last-month count, and a plain-Python Monte Carlo at s=0.
  • A right simulator answering a different question. The calibration run fixes the conventions to the earlier analysis’s before any new number is produced.
  • Hand-copied numbers. The page builders read only the engine’s output files; no figure is typed.
  • A mispaired comparison. In study 2 the comparison column must pair a final month one place better and the month before at r + 1 with a last-place final month and the month before at r (same total). The page builder first paired them the other way; the mistake was caught and fixed before the page went out.
  • A buried answer. On the rendered study-2 page the “rank needed for 95%” column fell off the right edge at desktop width; it was moved to the front.
  • A conditional figure resting on nothing. The run report prints every conditional row with the effective sample count behind it, and an unreachable rank prints n/a, never 0.
  • Silent sample loss across threads. The merged histogram must sum to the requested sample count or the run exits with an error.
  • An unverified rule. The answer page states that the sum-of-ranks rule is the question’s premise and that a score-based aggregation would need a rerun.2

Built with

  • C#
  • .NET multithreading · Parallel.For
  • Monte Carlo simulation
  • Rare-event estimation
  • Rao–Blackwellization
  • Ratio estimator · delta-method SE
  • Combinatorics · rook polynomials
  • Inclusion–exclusion
  • Dynamic programming
  • Python
  • Model calibration
  • Sensitivity analysis
  • χ² goodness-of-fit
  • Reproducible seeded runs
  • xoshiro256** PRNG

07Releases

Shipped in versions, like a product.

  1. Study 1 · odds of losing a seatEngine built, an earlier analysis’s tables reproduced, four scenarios at 2 × 10⁹ seasons each plus an 18-scenario grid, exact cross-check, persistence stress test. Delivered 28 minutes after the question.
  2. Study 2 · rank needed to keep a seatThe inverse question: a full sweep of ranks for the second-to-last month. Delivered in 20 minutes.
  1. 1Largest absolute difference between the two tables of an earlier internal analysis and the simulation conditioned on the known cumulative rank with ties counted in the firm’s favor (0.06 and 0.05 percentage points), at 4 × 10⁸ samples per row. Without the conditioning the same model differs by up to 26.6 points.
  2. 2The rule and the model are the question’s premise: firms ranked by the sum of six monthly ranks (lower is better), the largest totals losing the seat, a tie-break that cannot be observed for rivals, and rivals’ monthly ranks taken as random and independent, as in an earlier internal analysis. No exchange rule text was consulted; a score-based aggregation would need a rerun.
  3. 3By the timestamps of the question and the replies: 28 minutes from the question to the finished answer with a paste-ready summary. Second study: 20 minutes from question to answer, including about 15 minutes of engine time.
  4. 4Stylized contest, generated for this page under the sum-of-ranks model (rivals’ ranks random and independent each month): 20 firms, bottom five out, monthly ranks 8, 2, 10 and 5 so far and 20th in both remaining months: 0.034% with ties counted in the firm’s favor, 0.084% with ties broken at random, 0.161% with every tie lost, so below 1% under every tie rule. With 19th in both months: 0.0006% / 0.0021% / 0.0047%. The largest conditional cell (currently ranked 1st on cumulative total, every tie lost) is 0.345%.
  5. 5Charts, figure data and screenshots on this page are synthetic, illustrative or public market data. Methods and outcomes are described as they happened; the desk’s own figures are confidential and do not appear here. Here that means: the contest on this page is stylized. Its field (20 firms), its cut (bottom five), both rank histories and every probability on the page, in the text as well as in the charts, tables and strips, were generated for this page with the same model and methods. The sample counts, speed, calibration gaps, check results and turnaround times are those of the original studies and measure the software.
  6. 6Measured by the engine’s own clock over all production runs: 39.5 billion six-month seasons in 27 minutes on 24 threads of an office PC, 24.5 million a second on average (21 to 31 million per run). Each two-billion-season scenario took 75 to 90 seconds.
  7. 7Original studies: four scenarios × three tie conventions. Months 1 to 5 simulated (10⁵ draws), the final month computed exactly over every rank assignment; every figure within 0.6 standard errors of the main engine. In study 2 the same check was run at five ranks and agreed within about 2 standard errors.
  8. 8Stylized contest: ranks 12, 5, 16 and 9 through month 4, month 6 assumed 20th, top 15 of 20 retained. Ties broken at random: 5th 98.78%, 6th 96.7%, 11th 48.0%. With ties counted in the firm’s favor, 6th gives 98.0%.
  9. 9Persistence model: each rival has a fixed strength drawn from N(0, s²) plus independent N(0, 1) noise each month; s = 0.2, 0.4 and 0.7 correspond to month-to-month rank correlations of about 0.03, 0.12 and 0.30. Ties random. “Moderate” is s = 0.4.
  10. 10Original studies. Study 1: 4 scenarios × 2 × 10⁹ plus 18 grid scenarios × 5 × 10⁸ = 1.7 × 10¹⁰. Study 2: 2.25 × 10¹⁰ in all. Calibration and check runs are not counted.
Next
Next

Desk Reference Cards