Counterfactual LTV modeling

For the same user, how would risk and value change under a different offer?

Delivered · Iterating

My role
Lead for counterfactual principal-loss modeling
Business scope
Mexico cash lending · Pre-loan and in-life
Work stage
2025.07—present
Credit-limit response: AUUC improvement
**
2025 H2 · In-life lending RCT evaluation
Comparison: previous in-life lending model · Absolute AUUC improvement

Actual results are redacted as **.

Project evaluation summary: a version-to-version improvement in response ranking. Policy-level CM gains require validation in the corresponding online experiment.

Where the problem began

A higher credit limit may increase both drawdown and loss; term and pricing also affect behavior. LTV management compares long-term value under risk constraints, rather than setting limits from a risk score alone. Historical data records only the offers actually assigned by earlier policies. Counterfactual models estimate what would happen under a different offer, then pass the candidates to policy optimization.

My responsibilities

Led counterfactual principal-loss modeling and connected predictions to candidate-offer comparison and constrained optimization.

Methods and trade-offs

Check limit, term and pricing responses separately from prediction calibration, then supply loss estimates for policy selection.

  • I develop counterfactual principal-loss models for lending, studying risk responses to credit limit, term and pricing changes and connecting them with related predictions and value assessment.
  • For pre-loan decisions, learn risk and baseline offers from randomly assigned reference groups, then model responses to credit limit, term and pricing. For in-life lending, combine historical observational and RCT data with DML residualization, disentangled representations and interaction networks to learn multivariable responses.
  • For zero-heavy, long-tailed, low-activity and high-limit segments, iterate on losses, sample construction, monotonic constraints and post-hoc calibration. Check prediction levels, response ranking and response magnitudes together.
  • Connect model scores to candidate-offer matrices and constrained optimization. Check extrapolation in credit limits, terms and pricing, and trace unreasonable allocations back to model bias.

Credit-limit experiment · Model evaluation

After a limit increase, which cash flow determines whether the offer advances?

My part is estimating how principal losses change under a different offer. The team combines those estimates with drawdown, revenue and cost to compare policies. This fictional limit experiment starts with a 90-day ledger and asks what else we need to estimate lifetime value.

A 90-day ledger for two credit limits

Eligible applicants are randomly assigned, 100 per arm, at the same rate and term. Losses have been observed through the full window. Amounts use one currency unit and valuation date. Cash flows beyond the window are excluded.

MeasureLower limitHigher limit
People drawing funds5060
Principal drawn50,00060,000
Loss of principal1,2501,440
Revenue less funding and operating costs2,4002,700
Net contribution per assignee11.512.6

The higher limit costs 1.9 more in principal losses per assignee. Additional revenue after costs must cover that first.

Revenue after costs rises by (2,700 − 2,400) / 100 = 3 per assignee. Subtracting the extra loss leaves a 90-day gain of 1.1. With a prespecified maximum extra loss of 1.5 per assignee, this candidate stops before expansion despite positive net contribution.

Repeat loans bring further revenue, funding costs and losses. A lifetime value estimate needs an explicit future lending policy and horizon, with each period’s expected net cash flow discounted to the same date. The gain of 1.1 applies only to the first window.

How can we estimate two offers for one person?

Freeze the predictors before assignment. Estimate principal loss under the reference offer, then the change under a higher limit. Each person receives one offer, so the other outcome must be estimated using comparable people. When lower-risk customers historically received higher limits, a raw comparison between limit bands also captures differences in who received them.

For existing borrowers, historical data can estimate expected loss and offer assignment given pre-offer features. The residuals help learn the offer response. In a held-out randomized trial, check that both limits were actually assigned within the same price, term and stratum. If the higher limit appears only with a lower price, that trial can test only the combined change.

Who enters the denominator?

Sixty people draw in the higher-limit arm and fifty in the lower-limit arm. Restricting analysis to these 110 people selects on behavior after assignment. To estimate the effect of offering the limit, keep all 200 in their assigned arms. Record zero principal loss for confirmed non-drawers after the full window, and wait for immature loans.

When is the model ready for the strategy agent?

Overall prediction error can hide a model that reverses the two limits. After freezing the model and shortlist, I run two checks on randomized data held out from both training and tuning.

Magnitude of incremental loss
Score each person under both offers and average the predicted differences. Compare with the observed difference in mean loss between randomized arms and its uncertainty interval. When allocation varies across strata, standardize to the same target population. This synthetic ledger provides totals, enough to compute 1.9 but insufficient to recover the individual-level standard error.
Ordering the candidate groups
Group people by predicted extra loss, from low to high. In each group, compare randomized arm means and their uncertainty. Multiplying predicted differences by one positive constant changes their scale but never their order. When two models compete for the same number of places, isolate the people who enter or leave the shortlist and count assignments to each limit in both sets. Sparse groups need more comparison data.

The agent receives the candidate action, target population, outcome window, support for both limits, incremental loss and its uncertainty. This candidate exceeds the loss budget, so a smaller step can enter the next trial. If the idea came from results already reviewed, register it, retain the original control and assess it on a fresh randomized cohort.

Follow the task through implementation

Change the offer and compare choices

Synthetic example using fixed formulas. Explore limits, terms, pricing and risk constraints.

Horizontal: synthetic loss rate · Vertical: synthetic net value

Net valueLoss rate →2%4%6%8%10%-0.020.040.10Limit 1, price 1Limit 1, price 2Limit 1, price 3Limit 2, price 1Limit 2, price 2Limit 2, price 3Limit 3, price 1Limit 3, price 2Limit 3, price 3

Filled: feasible · Outline: exceeds constraints · Large: current offer

Current offer

Synthetic utilization
1.12
Synthetic loss rate
5.8%
Synthetic net value
0.039

Nine candidates at a 6-installment term, filtered by risk constraints and compared by synthetic net value.

Inspect all nine candidate results
Compare limits and pricing at a fixed term
Credit limitPricingLoss rateNet valueConstraint
1Low4.0%0.020Within cap
1Medium4.6%0.026Within cap
1High5.2%0.030Within cap
2Low5.2%0.025Within cap
2Medium5.8%0.039Within cap
2High6.4%0.048Within cap
3Low6.4%0.015Within cap
3Medium7.0%0.039Within cap
3High7.6%0.054Exceeds cap
Assumptions and formulas

Limit tier a ∈ 3, term n ∈ 18, pricing tier p ∈ 3. The example assumes higher prices lower utilization and raise loss rates to illustrate constrained trade-offs.

Utilization d = a × [0.64 − 0.08(p − 1) + 0.04(n/6 − 1)]

Loss rate r = 0.04 + 0.012(a − 1) + 0.008(n/6 − 1) + 0.006(p − 1)

Net value v = d × (0.07 + 0.025p) − d × r − 0.015a

Coefficients serve only this hand-calculable example. No model is trained; they represent neither real populations/returns nor usable lending offers.

Validation and delivery

I developed counterfactual risk models and evaluation tools to compare losses across offers. The response-ranking improvement is **; actual results are redacted. Model evaluation and policy-value validation are assessed separately.

Counterfactual risk models for comparing offers
The pre-loan model learns baseline risk and offer sensitivity; the in-life model combines observational and experimental data to learn residual responses. Principal-loss predictions and the team's drawdown model jointly support candidate profit-and-loss evaluation.
I am responsible for counterfactual principal-loss modeling; drawdown modeling and profit-and-loss evaluation are joint team efforts. The two learning paths serve different business settings.
How does the model represent an offer's effect?

One model version expresses a prediction as baseline risk plus a response relative to the baseline offer. It learns user-dependent sensitivities to credit limit, term and pricing separately.

y^(X,t)=y^0(X)+∑j=13kj(X)·[tj−t0j(X)]
ŷ₀(X)、t₀(X)
The same user's risk and offer under the baseline policy.
kⱼ(X)
Response sensitivities for credit limit, term and pricing.
tⱼ − t₀ⱼ(X)
The candidate offer's change relative to that user's baseline offer.

This is the additive-response form of one model version. Later work explores piecewise responses and interactions. Sensitivity directions are chosen under specific business assumptions.

Method details & evaluation definitions

The in-life model first learns conditional expectations of risk and offers, then learns responses through residualization and I / C / A representation disentanglement. A causal interpretation still depends on assumptions such as confounding control and sufficient support.

PCOC / RMSE check prediction-level calibration, RCT AUUC checks response ranking, and grouped Lift checks response magnitude. Tweedie loss addresses the outcome distribution, while monotonic constraints address response shape; neither unconditionally removes observational bias.

Public architecture from the related Multi-Treatment-DML study, arXiv v2. It illustrates residualization and treatment-response modeling and does not represent every later LTV production model. The paper remains under revision.

Multi-Treatment-DML architecture
Figure 2 · Multi-Treatment-DML architecture The Propensity Network learns representations and baseline outcomes. The Causal Network combines treatment changes with sensitivity coefficients. The lower-right panel shows cross-fitting.Public arXiv v2 · 2025 · Original paper figure ↗

Pre-loan and in-life modeling compared

Training data: historical observational and RCT samples combined

See the table below for the full comparison and definitions; scroll horizontally if needed.

Scroll horizontally to view the full table

Pre-loan and in-life modeling compared
StagePre-loanIn-life lending
Training dataReference and intervention groups formed by random assignmentHistorical observational and RCT samples combined
Baseline learningLearn baseline risk and three baseline offer componentsLearn user-conditional expectations of risk and offers
Response learningAdd offer-specific sensitivity responses to the baselineCombine residualization, representation disentanglement and a response network
Main challengesBaseline-group comparability and interactions among offer componentsObservational bias, differences in RCT support and extrapolation

Model principal loss and drawdown separately, then use both for profit-and-loss evaluation and policy selection. A causal interpretation relies on assumptions about confounding control and support. Tweedie loss addresses the distribution; monotonic constraints address response shape.

Model delivery & evaluation focus

In-life model: the RCT evaluation showed an AUUC improvement of ** (to about **); actual results are redacted.

See the table below for the full comparison and definitions; scroll horizontally if needed.

Scroll horizontally to view the full table

Model delivery & evaluation focus
ModuleWork completedEvaluation & results
In-life modelExperimental and observational data fusion, interaction learning and post-hoc calibrationThe 2025 H2 delivered version improved credit-limit AUUC by ** on RCT data, to approximately **; iteration continues
Pre-loan modelBuilt a multivariable counterfactual risk model from scratchThe 2025 H2 pre-loan version achieved approximately ** AUUC on the credit-limit experiment test set; later models were delivered for the main and independent channels
Policy optimizationScore candidate combinations of credit limit, term and pricing under constraintsCompleted offline candidate comparisons and diagnosis of abnormal decisions; this does not establish realized online gains

Actual evaluation values and version improvements are redacted as **. AUUC values from different samples and protocols are not directly comparable; response ranking, effect size and policy value are validated separately.

Actual results are redacted as **.

Remaining questions

When high limits historically come with low rates, their effects are hard to separate. I first find cells with a common term and rate and observations at both limits. I then check the predicted per-person change and the candidate ranking separately. Actions without a comparison arm remain hypotheses for a new experiment.

View this project in my experience ↗
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.