Risk Runners Presents · Health

Torque per Capita: Research Agenda Model

An interactive implementation of the six research steps in The Last Will Be First and the First Will Be Last. Everything runs in your browser. Nothing is uploaded.

The paper behind this model: The Last Will Be First and the First Will Be LastThe paper behind this modelRead the paper (PDF)HTML

What this does

Each tab implements one step of the research agenda (§11 of the paper) and uses the paper's equation numbers.

StepPaperWhat you can do here
1 · Instrument a queueEq. 4, Little's LawSimulate (or paste) timestamps for one workflow, such as prior authorization. Estimate λ, μ, ρ and work in progress, and check Little's Law.
2 · Fit the diffusionEq. 5Fit a reflected diffusion on the first half of the data, then compare it with the held-out second half and with a plain discrete-event simulation.
3 · Make coupling visibleEq. 6Edit a dependency matrix W. Compute the coupled cost of delay and the probability that its spectral radius reaches 1 as coupling grows.
4 · Estimate TPCEqs. 10–11Set staff, per-person rates and technology multipliers by stage. See the constraint and test where investment raises system throughput.
5 · Simulate governanceEq. 9Compare three coverage designs on the full outcome distribution, including recovery after a shock. Placeholder parameters.
6 · Test the narrative layerEq. 12Measure cosine similarity between statements and find where framings overlap.
LimitsGovernance results in step 5 depend entirely on assumed parameters. Step 6 uses a simple word-count method, not language-model embeddings. Nothing here is medical, legal, actuarial or investment advice, and no step uses real personal data.

Files: js/core.js holds all of the math and can be run in Node for testing. js/ui.js draws the charts. There are no external libraries.

1 · Instrument one queue

Pick one workflow (for example, prior authorization at a self-funded employer). Capture when each item arrives, when work starts, and when it ends. From those timestamps you can estimate the four measures in the paper.

Use your own timestamps instead

One item per line: arrival,start,end, all in hours from the start of observation. Lines that are not numbers are ignored. When this box has at least 20 valid lines, it replaces the simulation. Set "People at the stage" above to match.

2 · Fit the diffusion and validate it

Parameters are estimated from the first half of the data in step 1. The model then predicts the number of items in the system over the second half. Three predictions are compared with what was observed:

3 · Make coupling visible

Equation 6: CCoD = (I − W)⁻¹ d. Entry W[i][j] is the share of node j's delay cost that lands on node i. Coupling grows with program time as downstream steps harden their assumptions. Edge weights are noisy, so the spectral radius of W is a random quantity, and the question is the probability that it reaches 1.

Dependency matrix W and direct delay costs d

4 · Estimate torque per capita

Equation 10: TPCk = μk(Tk) / nk, the output per person at stage k. Equation 11: system throughput is the minimum of demand and every stage's capacity. Change the technology multiplier at a stage and watch whether system throughput moves.

5 · Simulate governance designs

Equation 9: dp = θ(p* − p)dt + σ√(p(1−p)) dB, where p is the share of the covered group in cooperative, health-supporting behavior. Governance changes θ and p*. Claims cost depends on p, plus rare large claims with a heavy tail. Stop-loss caps each large claim at an attachment point, for a premium.

PlaceholdersEvery parameter below is an assumption chosen to show how the method works. They are not estimates. Participation is voluntary in the model: it scales how much of a design's effect applies.

6 · Test the narrative layer

Each statement becomes a vector of weighted word counts (TF-IDF). Cosine similarity near 0 means two statements are orthogonal: they use different vocabulary and do not point at the same ideas. Edit the statements below, one per line as Label: statement. The defaults are invented examples, not real quotes.

Limit: word overlap is a crude proxy for meaning. Two statements can disagree using the same words, or agree using different ones. A real study would use sentence embeddings.