Shelf: the economics of shelved and cross-border drug assets
A personal research project where data science meets economics. Drug development is a capital allocation problem: firms decide, under uncertainty and at their own cost of capital, which drugs to fund and which to shelve. Does who owns a drug (their cost of capital, size and strategy) leave economically viable drugs on the shelf? And when a drug's rights move across firms or borders, how does the market price it?
What I built
- A data warehouse from primary public sources only. 141,672 industry trials from ClinicalTrials.gov, with monthly history since 2017; FDA approvals, rejections (complete response letters), advisory committees and orphan designations; SEC filings and XBRL financials; Open Targets and ChEMBL for drug identity and mechanism; US Treasury yields; Damodaran's equity risk premium.
- Entity resolution and lineage. 16,636 trial sponsors resolved into companies, with cited acquisition chains (for example Portola → Alexion → AstraZeneca); 33,320 drugs; a deterministic state machine that labels each drug active, dormant, discontinued, out-licensed or approved. 7,473 drugs are shelved.
- Auditable by design. Every row stores its source URL, fetch time and content hash. Every rule and threshold lives in a config file whose hash is stored with the output. Anything uncertain goes to a review queue rather than being guessed. No language-model calls in the pipeline: classification is rule-based.
The economics
- Cost of capital. CAPM-based WACC for 4,042 SEC-registered companies, point in time at each year-end 2012–2025: betas from weekly returns, synthetic credit ratings for the cost of debt, market weights. Big pharma comes out at 6.3–7.7%; small listed drug developers at 9.4–11.6% (25th–75th percentile). The write-up compares these with the rates companies disclose and explains why the betas look low. Method
- Business case at two costs of capital. Risk-adjusted NPV of restarting a shelved drug, at the owner's WACC and at a small buyer's, from cited market-sizing ranges, with breakeven probability of success and breakeven peak sales instead of a made-up probability. Method
- Business or science? A firm saying "strategic reprioritisation" is cheap talk. The verdict uses evidence the firm doesn't control: takeovers, restructurings, cash runway, portfolio culls, against failed readouts and safety signals. Method · Acquired, then shelved
- Cross-border licensing (event study, small). Chinese biotechs license rights outside China to Western pharma. Across 14 deals (2021–2025), the seller's shares beat the home index by a median 8.5% around the announcement (10 of 14 positive), and by 14.5% where the upfront was at least 5% of market cap; they had already risen 6.8% in the month before, and drifted down 6.3% in the month after. Details
Testing the idea honestly
- The broad thesis failed, and that changed the project. Shelved drugs that another company later picked up do not beat stage-matched base rates: for reaching the next phase within four years, the Mantel–Haenszel pooled odds ratio is 0.94 (95% CI 0.71–1.24), with Kaplan–Meier and Cox models agreeing. The effect varies by stage, which is where the project narrowed. Design · Numbers
- Point-in-time testing. The screening funnel rerun as of 2018 and 2020, using only information available then. Method
- Pre-registered predictions. Two dated lists of shelved drugs, frozen in November 2026 with SHA-256 hashes in public gists, to be scored on 7 November 2029. Predictions
Live output
Two lists: Chinese biotechs whose drugs' rights outside China may still be for sale, and Western shelved drugs another company could restart. Each row has visible points and links to the underlying trials, filings and papers.
Limits
- Observational data: shelving and pickup are not randomised, and registries miss trials run only in China.
- Who holds a drug's rights is not in any public dataset; the lists say where to look, not what will happen.
- Weekly betas for big pharma fit poorly (R² below 0.1), so WACC is reported with that caveat and compared with companies' own disclosed rates.
- The event study has 14 famous deals, chosen by hand: a sanity check, not a result.
Tools
Python, DuckDB, pandas, lifelines, statsmodels and SciPy; a small server-rendered interface. Developed with an AI coding assistant (Claude Code) as a pair programmer; the questions, design decisions and judgement calls are mine.