Kapnova Research

Measuring what an economic decision causes

Abstract

Most commercial reporting measures what moved together. Decisions require something harder: what an action caused, compared with what would have happened without it. Kapnova applies established causal inference methods, which the founding research extended to time-to-event outcomes in medicine, to pricing, promotion, media and inventory decisions. Projections are recorded before a decision is made and checked afterward, and effects are confirmed by designed experiments where observational evidence is not enough. This note describes the methods, the assumptions they rest on and the safeguards for each, how results are scored, and how the AI agents are trained.

1The question

A dashboard can report that customers who reached a loyalty tier spend 11.5% more. It cannot say how much of that gap the tier created, because the customers who reached it were already different. The quantity a decision-maker needs compares two potential outcomes for the same units, only one of which is ever observed.

τ(x) = E[ Y(1) − Y(0) | X = x ](1)

Here Y(1) is the outcome under the decision, Y(0) the outcome without it, and τ(x) the average effect among units with characteristics x. Averaging over x gives the average treatment effect. Everything that follows is a way of estimating the unobserved half of that comparison credibly, and of saying how uncertain the estimate is.

Figure 1. The observed mean outcome after a decision and the estimated counterfactual mean. The shaded region is the estimated effect. Illustrative.

In the worked loyalty case, the dashboard gap implied +$624K a year. The estimated effect of the tier itself was +$152K, with most of the gap present before customers reached it. Demo account.

2Methods

Six families of methods work together. Causal identification is the step that allows forecasts and optimizations to describe what a decision will cause, rather than what has tended to accompany it.

Table 1. Method families and the question each answers.
MethodQuestionApproach
DescriptiveWhat happened, and where?Decomposition by segment, channel and period
ForecastingWhat happens if nothing changes?Baseline forecasts with prediction intervals
Econometric estimationHow strongly is a lever associated with an outcome?Regression and elasticity estimates with uncertainty
Causal identificationDid the lever change the outcome?Estimators in Table 2
OptimizationWhat is the best move within constraints?Search over the estimated response surface
ExperimentsWhat should be tested when data cannot settle it?Randomized rollouts and holdouts

The causal estimators are established methods from the statistics and econometrics literature. The founding research extends several of them to time-to-event outcomes, such as time to repurchase or time to churn, and to settings with poor overlap between groups [1][2][8][9].

Table 2. Causal estimators, the problem each addresses, and its origin.
EstimatorProblem it addressesCommercial exampleOrigin
Target trial emulationNo randomized trial exists, only historyAnalysing last year's promotion as if it had been a trial, with a defined start date, eligibility and comparison[11]; applied in [2]
Double / debiased MLFlexible models for the confounders bias the effect estimateAn effect estimate that is insensitive to small errors in the demand and selection models[12]; extended in [9]
Overlap weightingTreated and untreated groups barely compareLoyalty members who chose themselves in. The estimate then applies to the overlap population[13]; extended in [9]
Competing risks, separable effectsOne outcome can prevent another from being observedA subscription change where cancelling and downgrading compete, and the change may affect each differently[14]; applied in [1]
Heterogeneous effectsAn average hides who respondsWhich customer segments a price change actually moves[15]; extended in [8]

3Identification

An estimate from observational data is causal only under assumptions. For each decision, the system states which ones it relies on and how they were assessed.

  1. A1Consistency and no interference. Each unit's outcome depends on its own treatment only. This fails often in commerce: promotions cannibalize other products, geographic tests spill across borders, and marketplace actions move competitors. Where interference is likely, the unit of analysis is widened or the design changed.
  2. A2Conditional exchangeability. After adjusting for measured factors such as seasonality, price, competitors and sentiment, treated and untreated units are comparable. This cannot be verified from data, so estimates are reported with sensitivity analysis showing how strong an unmeasured confounder would have to be to change the conclusion.
  3. A3Positivity. Every kind of unit had a real chance of receiving either choice. Where overlap is poor, overlap weighting is used and the target population is stated [13].
  4. A4Correct timing. A defined start date, eligibility rule and follow-up window, so that causes precede effects and the comparison mirrors a trial [11].

When a decision has a clear start date and a comparison group observed beforehand, difference-in-differences designs are also used. Their key assumption, parallel trends, is checked against the pre-period.

Figure 2. Difference-in-differences. A treated group and its comparison move in parallel before the decision date; the estimated effect is the change in the gap after it, which assumes the trends would have stayed parallel. Illustrative.

4Pre-registration and scoring

An estimate that is never checked cannot be trusted. Forward-looking decisions follow a fixed protocol, borrowed from how clinical trials are registered.

  1. P1Predict. Before any action, record the expected outcome under the chosen action with an 80% prediction interval, and the expected effect with its uncertainty interval.
  2. P2Lock. Fix the success criterion, the comparison and the read date. They cannot change mid-flight.
  3. P3Act. The client team decides. Nothing executes automatically.
  4. P4Read. Measure the outcome on the committed date.
  5. P5Score. Two different things are scored, and they are kept separate.

Outcome scoring compares the projected outcome under the chosen action with the realized outcome, and checks whether the prediction interval contained it. This is possible for every decision, because the realized outcome is observed.

Effect scoring compares the projected effect with a measured effect. Because the counterfactual is never observed for the same units, this is possible only when the decision was run with a comparison: a randomized rollout, a holdout or a staggered launch. This is the main reason the system recommends experiments.

Back-tests are never scored, because nothing was predicted before they ran. Calibration is the test of the prediction intervals: across many decisions, an 80% interval should contain the realized outcome about 80% of the time.

Figure 3. Calibration of prediction intervals. Points on the diagonal mean intervals held as often as stated; points below it mean overconfidence. Illustrative of the check, not of reported results.

5Agents, post-training and AI research

5.1 Two layers

Language-model agents search for opportunities, route each decision to the right model, propose experiments and explain results. Every value and interval is computed by the statistical layer. The language model does not produce the number, which keeps every figure traceable to an estimator, its inputs and its assumptions.

5.2 Screening candidate decisions

The founding research ran high-throughput screens of drug and disease pairs in health records. A language model removed pairs with a built-in medical link, which would otherwise bias a self-controlled cohort screen, before formal estimation [5][6]. The opportunity agents apply the same pattern to commerce: generate many candidate decisions, use domain knowledge to discard those whose link is mechanical rather than causal, such as a sales lift that is really seasonality, and spend formal estimation on the rest. Because screening many candidates inflates false discoveries, flagged decisions are confirmed by the statistical layer, and by experiment where needed, before any effect is reported.

5.3 Learning from scored outcomes

Each forward-looking decision produces a record: the context, the agents' proposal, the locked projection, the action taken and the realized outcome. Two learning signals come from it, aimed at the two layers.

Figure 4. One decision record and its two learning signals. Outcome and effect scores calibrate the statistical models. Whether a proposal paid off, and whether a designed experiment produced a clean read, is the signal for the agents.

For the agents, the signal is the quality of their own work: whether the decisions they raised were worth acting on, and whether the experiments they designed produced conclusive results. For the statistical layer, outcome and effect scores update the models and the calibration of their intervals.

These signals are sparse and delayed, often arriving weeks after a decision, and a single client produces relatively few of them. Post-training therefore emphasizes quality over volume: every record is pre-registered, scored and traceable. This principle comes from Shenbo Xu's work on post-training frontier models at Scale AI, where a modest number of verifiable, high-quality examples shapes model behavior more than large volumes of unlabeled text.

5.4 Recursive self-training

The agents improve partly by training on their own work. Each cycle, they propose decisions and experiments, outcomes are scored, and the scored records become training data for the next version. This is a form of recursive self-training, related to expert iteration [16], self-taught reasoning [17] and reinforced self-training [18]: a model generates candidates, a filter keeps the good ones, and the model is fine-tuned on what was kept.

The known risk is model collapse. Models trained repeatedly on their own unfiltered outputs lose the rare cases first and drift toward a narrow, overconfident picture of the world [19]. The loop is built against it in four ways.

Figure 5. Two self-training loops. On the left, a model trained on its own outputs narrows with each generation. On the right, the market is the filter: only proposals with a realized outcome enter training, and real records stay in every round. Schematic.
  1. R1The market is the filter. A proposal enters training only with an outcome read on its pre-registered date. The agents never grade their own work.
  2. R2Real data in every round. Training sets accumulate rather than replace. Scored records and the original curated set stay in every cycle, which prior work finds keeps collapse from compounding [20].
  3. R3Exploration. Agents only see outcomes of decisions that were taken, so a loop trained on those alone would keep recommending what it already recommends. A share of experiments tests options the agents ranked lower, and logged assignment probabilities allow off-policy evaluation of the rest [21].
  4. R4Gated release. A new agent version replaces the old one only if it does better on scored decisions it did not train on.

The statistical layer is not self-trained in this sense. Its estimates are updated by new data, never by its own outputs.

5.5 Related machine learning research

Two strands of Shenbo Xu's machine learning research are relevant. One studies the minimal parameter budget that implicit reasoning requires [3]. The other proposes reinforcement learning to recover reasoning capabilities that over-parameterized models lose to pre-training memorization [10]. Both bear on how reasoning agents are sized and trained.

New clients start from category priors built on de-identified, aggregate results. Raw client data trains only that client's agents.

6Evaluation

The claim that accuracy is measured rather than asserted requires published evidence. Kapnova will report, by decision type: outcome-prediction error, prediction-interval coverage against its stated level, and, for experiments, projected against measured effect. Reports will include every scored decision, not a selection. First scored outcomes are in progress, and no aggregate results are reported here yet.

7Assumptions and safeguards

The founding methods are peer-reviewed in medicine [1][2]. Their application to commerce is documented here and scored in production. Every causal estimate rests on assumptions, and each has a safeguard.

  1. S1Untestable assumptions. No unmeasured confounding and no interference cannot be proven from data. Where either is doubtful, the system says so and recommends an experiment instead of reporting a causal estimate.
  2. S2Effects drift. Markets, competitors and channels change, so last year's estimate may not hold this year. Every estimate carries a date and is re-checked against new outcomes.
  3. S3Small samples and borrowed priors. A single brand may see few comparable decisions, so new clients start from category priors that may fit poorly. Intervals stay wide until the client's own outcomes accumulate and take over.
  4. S4Noisy inputs. Platform-reported attribution and retailer data are imperfect. Estimates are anchored to outcomes in the client's own systems, and sensitivity analysis shows how much measurement error would change the result.
  5. S5Feedback loops. The agents influence which decisions are taken, and so the data they later learn from. Reserved exploration and off-policy evaluation reduce this bias but do not remove it.

References

  1. Xu, S. (2025). Causal Inference with Survival Outcomes via Orthogonal Statistical Learning. Doctoral thesis, Massachusetts Institute of Technology. MIT DSpace
  2. Xu, S., Zheng, B., Su, B., Finkelstein, S. N., Welsch, R., Ng, K., & Shahn, Z. (2025). Can metformin prevent cancer relative to sulfonylureas? A target trial emulation accounting for competing risks and poor overlap via double/debiased machine learning estimators. American Journal of Epidemiology, 194(2), 512–523. DOI
  3. Wang, Tan, Xu, S., Jin, Wang, Panda, & Shen (2026). Finding the minimal parameter budget for implicit reasoning. Proceedings of ICML 2026. OpenReview
  4. Shahn, Z., Spear, P., Lu, H., Jiang, S., Zhang, S., Deshmukh, N., Xu, S., Ng, K., et al. (2022). Systematically exploring repurposing effects of antihypertensives. Pharmacoepidemiology and Drug Safety, 31(9), 944–952.
  5. Xu, S., Cobzaru, R., Finkelstein, S. N., Welsch, R. E., Ng, K., & Middleton, L. (2024). Foundational model aided automatic high-throughput drug screening using self-controlled cohort study. medRxiv preprint; NeurIPS 2024 Workshop on AI for New Drug Modalities.
  6. Xu, S., Finkelstein, S. N., Welsch, R. E., Ng, K., Tzoulaki, I., & Middleton, L. (2024). Large language model aided automatic high-throughput drug screening using self-controlled cohort study. medRxiv preprint. DOI
  7. Finkelstein, Xu, S., Su, Zheng, Charpignon, Tzoulaki, Middleton, & Welsch (2019). Anti-diabetic drug repurposing using electronic health records, Alzheimer's disease. Machine Learning for Healthcare.
  8. Xu, S., Cobzaru, R., Finkelstein, S. N., Welsch, R. E., Ng, K., & Shahn, Z. (2024). Estimating heterogeneous treatment effects on survival outcomes using counterfactual censoring unbiased transformations. Under review. arXiv:2401.11263
  9. Xu, S., Zheng, B., Su, B., Finkelstein, S., Welsch, R., Ng, K., Tzoulaki, I., & Shahn, Z. (2023). Efficient estimation of weighted cumulative treatment effects by double/debiased machine learning. arXiv:2305.02373
  10. Xu, S., Wang, Tan, & Shen. Beyond pre-training memorization: reinforcement learning for recovering reasoning capabilities in over-parameterized models. Working paper.
  11. Hernán, M. A., & Robins, J. M. (2016). Using big data to emulate a target trial when a randomized trial is not available. American Journal of Epidemiology, 183(8), 758–764.
  12. Chernozhukov, V., Chetverikov, D., Demirer, M., Duflo, E., Hansen, C., Newey, W., & Robins, J. (2018). Double/debiased machine learning for treatment and structural parameters. The Econometrics Journal, 21(1), C1–C68.
  13. Li, F., Morgan, K. L., & Zaslavsky, A. M. (2018). Balancing covariates via propensity score weighting. Journal of the American Statistical Association, 113(521), 390–400.
  14. Stensrud, M. J., Young, J. G., Didelez, V., Robins, J. M., & Hernán, M. A. (2022). Separable effects for causal inference in the presence of competing events. Journal of the American Statistical Association, 117(537), 175–183.
  15. Wager, S., & Athey, S. (2018). Estimation and inference of heterogeneous treatment effects using random forests. Journal of the American Statistical Association, 113(523), 1228–1242.
  16. Anthony, T., Tian, Z., & Barber, D. (2017). Thinking fast and slow with deep learning and tree search. Advances in Neural Information Processing Systems, 30.
  17. Zelikman, E., Wu, Y., Mu, J., & Goodman, N. D. (2022). STaR: Bootstrapping reasoning with reasoning. Advances in Neural Information Processing Systems, 35.
  18. Gulcehre, C., Paine, T. L., Srinivasan, S., et al. (2023). Reinforced self-training (ReST) for language modeling. arXiv:2308.08998
  19. Shumailov, I., Shumaylov, Z., Zhao, Y., Papernot, N., Anderson, R., & Gal, Y. (2024). AI models collapse when trained on recursively generated data. Nature, 631, 755–759.
  20. Gerstgrasser, M., Schaeffer, R., Dey, A., et al. (2024). Is model collapse inevitable? Breaking the curse of recursion by accumulating real and synthetic data. arXiv:2404.01413
  21. Dudík, M., Langford, J., & Li, L. (2011). Doubly robust policy evaluation and learning. Proceedings of ICML 2011.

Bring us your hardest question.

The decision your team argues about most. We will tell you what can be measured, how, and how sure we can be.

Book a briefing