What this does
Each tab implements one step of the research agenda (§11 of the paper) and uses the paper's equation numbers.
| Step | Paper | What you can do here |
|---|---|---|
| 1 · Instrument a queue | Eq. 4, Little's Law | Simulate (or paste) timestamps for one workflow, such as prior authorization. Estimate λ, μ, ρ and work in progress, and check Little's Law. |
| 2 · Fit the diffusion | Eq. 5 | Fit 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 visible | Eq. 6 | Edit a dependency matrix W. Compute the coupled cost of delay and the probability that its spectral radius reaches 1 as coupling grows. |
| 4 · Estimate TPC | Eqs. 10–11 | Set staff, per-person rates and technology multipliers by stage. See the constraint and test where investment raises system throughput. |
| 5 · Simulate governance | Eq. 9 | Compare three coverage designs on the full outcome distribution, including recovery after a shock. Placeholder parameters. |
| 6 · Test the narrative layer | Eq. 12 | Measure cosine similarity between statements and find where framings overlap. |
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:
- Eq. 5 as written: constant drift λ − cμ, reflected at zero.
- State-dependent drift: λ − μ·min(Q, c). The drift weakens when some staff are idle. This is an extension, not in the paper's text.
- Discrete-event baseline: a plain M/M/c simulation with the fitted λ and μ.
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.
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.