# Megafund simulator

Canonical: https://udgamlabs.com/tools/megafund · Updated: 2026-11-22

Tool · Simulator

A cancer megafund finances many drug projects at once with bonds and equity. Pick a fund, a set of success rates and how much failures cluster. The simulator runs here, in your browser. The [lab note](https://udgamlabs.com/blog/open-megafund) explains the result.

Fund

Success rates

2012 megafund inputsP1→P2 72.3% · P2→P3 45.2% · P3→approval about 56%2019 paid data (Wong, Siah and Lo)P1→P2 57.6% · P2→P3 32.7% · P3→approval 35.5%Public data (ours)P1→P2 77.9% · P2→P3 42.8% · P3→approval 54.9%Public data, approvals correctedP1→P2 77.9% · P2→P3 42.8% · P3→approval 41.5%

How much failures cluster

Correlation between drugs0.00

Our estimate has a wide interval, 0 to 0.48, and is an exploration. Values above it are what-ifs.

Result · 0 simulated funds

Mean yearly return to equity

…

Chance equity loses money

…

over the fund’s life

Senior bond defaults

…

chance over the fund’s life

Junior bond defaults

…

chance over the fund’s life

The lab note’s 10,000-run figure for this setting: **9.4%** a year, equity loss 14%, junior bond default 0.25%.

## What you are looking at

- **Each run is one fund’s whole life,** in half-year steps. Drugs move through the trial phases by chance, and sales pay the fund’s costs, the bond interest and repayments. Whatever is left at the end goes to the equity holders.
- **Fund A** sells a drug once it reaches phase 2; **fund B** holds drugs to approval. Both use the 2012 paper’s own costs, durations, drug values and bond structure.
- **Success rates** change only the phase 1, 2 and 3 steps. The 2012 approval-review step stays.
- **The correlation** makes drugs in the same fund pass or fail their phases together. At 0 they move independently, as in the 2012 model.
- **Runs per click.** Each change runs 1,000 funds, so the page answers quickly, even on a phone. The lab note used 10,000; press “Add 1,000 more runs” to get there. The ± range shrinks as runs grow. The same settings always give the same numbers.

## Limits

- **Our public-data rates do not replicate the 2019 paid-data study** (Wong, Siah and Lo). Only one of four rates passed our own test against it. The “approvals corrected” set is a sensitivity we added after the label check, not a pass.
- **The correlation is an exploration.** Our estimate of 0.26 has an interval of 0 to 0.48 and is probably on the high side: drugs that share a mechanism also share sponsors and eras.
- Costs, durations and drug values are the 2012 inputs, not re-estimated.
- This is a research model, not investment or financing advice.

## How it was checked

The simulator is a direct translation of our Python version of the 2012 megafund code, which reproduces the paper’s own test values. Fed the same random numbers, the browser version gives the same result as the Python one, fund by fund, for every setting in the note. On its own random numbers, its 10,000-run results agree with the note’s within the expected Monte Carlo error.

Read the full method and results in the [lab note](https://udgamlabs.com/blog/open-megafund). The data behind it, the trial labels, drug paths and checks, is open on Hugging Face as [Open Cancer Drug Paths](https://huggingface.co/datasets/udgamlabs/open-cancer-drug-paths).

## Source and licence

The simulator is ported from [RBOMatlab](https://github.com/dfagnan/RBOMatlab) (Fagnan, Gromatzky, Fernandez, Stein and Lo). Its engine, its inputs and this interactive part are free software under the GNU GPL, version 3 or later: [sim.ts](https://udgamlabs.com/tools/megafund/source/sim.ts.txt), [MegafundSimulator.tsx](https://udgamlabs.com/tools/megafund/source/MegafundSimulator.tsx.txt), [params.json](https://udgamlabs.com/tools/megafund/source/params.json) and the [licence text](https://udgamlabs.com/tools/megafund/source/LICENSE.txt). The rest of this site is not covered by that licence.

The Python version, with the test that reproduces the 2012 paper and the script that rebuilds the success rates from the open data, is on GitHub as [open-megafund](https://github.com/udgamlabs/open-megafund) (GPL, version 3 or later).

---

## About Udgam Labs

Udgam Labs is an independent AI research lab. We work from first principles: before we build, we understand why things work, whether we are training a model, fine-tuning one or applying AI to a new problem. Today that means open models such as Gargi, a 384M-parameter language model that comes within 2 points of Qwen2.5-0.5B on three reasoning benchmarks with about 1,000× less training data. Next come products, custom models for businesses, and AI in the physical world. Udgam (उद्गम) is Sanskrit for origin.

Udgam Labs · AI research from first principles · https://udgamlabs.com
