Simulate Against Honest Priors, Not Convenient Ones
A simulation with a flattering input is a forecast that was told the answer.
Confidence: hypothesis. The failure modes below are drawn from published regulatory guidance and widely reported industry patterns, not firsthand deployment. The buildable pattern at the end is unbuilt: I have not shipped it. Argue with it.
You've seen this pattern even if you've never touched a clinical trial. A team wants to ship a feature. Someone runs a simulation (a load test, a Monte Carlo forecast, a backtest) and it comes back green. The feature ships. Three months later it falls over under real traffic, and the postmortem finds the load test used traffic patterns from a quiet holiday week because that's the dataset that happened to be lying around. Nobody lied. Nobody meant to mislead anyone. The simulation was honest about its own math and dishonest about the world.
Now raise the stakes to the point where a wrong simulation doesn't cost a bad sprint. It costs years and the ability to ever ask the question again. That's what happens when a clinical trial is designed against a simulation whose assumptions were never checked against reality.
The clinical why
Before a sponsor (the company running a trial) commits patients, sites, and years to a study, it can run the design as a digital twin: simulate thousands of virtual patients against candidate designs to estimate statistical power, likely dropout, and how the trial behaves under different enrollment mixes. This is standard practice, and it is a genuine gift: it lets a team stress-test a design's failure modes before anyone signs a protocol.
This pattern is one piece of a longer treatment. The full essay is issue 1 of Stage × AI, a series walking the entire clinical-trial lifecycle stage by stage — what each stage really does, where AI helps, where it must not go, and one buildable pattern per stage:
full essayEvidence in, evidence out. Corrections welcome.