2024-08-08
observe an \(X\), want to know what to expect for \(Y\)
1. X = patient coughs, Y = patient has lung cancer
2. X = ECG, Y = patient has heart attack
3. X = CT-scan, Y = patient dies within 2 years


Let \(f\) depend on parameter \(\theta\), prediction typically aims for:
\[f_{\theta}(x) \to E[Y|X=x]\]
typical estimand:
\[E[Y|\text{do}(T=1)] - E[Y|\text{do}(T=0)]\]
prediction
causal inference
Let \(f: \mathbb{X} \to \mathbb{Y}\) be a prediction model for outcome \(Y\) using features \(X\)
\[f(x) = E[Y|\text{do}(X=x)]\]
\[f(t,x) = E[Y|\text{do}(T=t),X=x]\]

Let \(f: \mathbb{X} \to \mathbb{Y}\) be a prediction model for outcome \(Y\) using features \(X\)
\[f(x) = E[Y|\text{do}(X=x)]\]
Qrisk3: a risk prediction model for cardiovascular events in the coming 10-years. Widely used in the United Kingdom for deciding which patients should get statins
can go wrong when:
\[f(t,x) = E[Y|\text{do}(T=t),X=x]\]

What is the estimand?
note:
requires causal inference assumptions or RCTs
single RCTs often not big enough, or did not measure the right \(X\)s
when \(X\) is not a sufficient adjustment set, but \(X+L\) is, can adjust additionally for \(L\) using e.g. propensity score methods or standardization
assumption of no unobserved confounding often hard to justify in observational data
but there’s more between heaven (RCT) and earth (confounder adjustment)
not covered now: formulating correct estimands (and getting the right data) becomes much more complicated when considering dynamic treatment decision processes (e.g. blood pressure control with multiple follow-up visits) (Luijken et al. 2024)
For example:
TRIPOD+AI on prediction models (Collins et al. 2024)
“Their primary use is to support clinical decision making, such as … initiate treatment or lifestyle changes.”
A treatment policy \(\pi\) is a procedure for determining the treatment
Assuming \(T\) is binary, \(\pi\) can be:
\[\pi(\text{blood pressure}) = \begin{cases} 1, &\text{blood pressure} > 140\text{mmHg}\\ 0, &\text{otherwise} \end{cases}\]
\[\pi(X) = \begin{cases} 1, &f(X) > 0.1\\ 0, &\text{otherwise} \end{cases}\]
\[\pi_0(X) = P(T=1|X)\]





With causal inference!
Using cluster RCTs to evaluated models for decision making is not a new idea (Cooper et al. 1997)
“As one possibility, suppose that a trial is performed in which clinicians are randomized either to have or not to have access to such a decision aid in making decisions about where to treat patients who present with pneumonia.”
What we don’t learn
was the model predicting anything sensible?
Take a model or rule \(f:\mathbb{X}\to\mathbb{R}\) as given.
For each treatment budget \(u\in[0,1]\), treat the top \(u\) fraction according to \(f\).
\[ \pi_{f,u}(x)=\mathbf{1}\{f(x)\ge q_{1-u}\} \]
where \(q_{1-u}\) is the \((1-u)\)-quantile of \(f(X)\).
For this section, let larger \(Y\) mean better outcomes. Flip signs if \(Y\) is a harm.
\[ V_f(u)=E\left[\pi_{f,u}(X)Y(1)+\{1-\pi_{f,u}(X)\}Y(0)\right] \]
In a randomized evaluation set with treatment probability \(e_i=P(T_i=1\mid X_i)\):
\[ \widehat{V}_f(u)=\frac{1}{n}\sum_{i=1}^n \left[ \frac{\pi_{f,u}(X_i)T_iY_i}{e_i} + \frac{\{1-\pi_{f,u}(X_i)\}(1-T_i)Y_i}{1-e_i} \right] \]
RATE metrics are weighted areas under the TOC curve:
\[ \operatorname{RATE}_{\alpha}(f)=\int_0^1\alpha(u)\operatorname{TOC}_f(u)\,du \]
c-for-benefit is another rank-based evaluation summary, but for a fixed benefit score \(f\) (Hoogland et al. 2023).


\[\begin{align} E[Y|X] \class{fragment}{= E[E_{t~\sim \pi_0(X)}[Y|X,t]]} \end{align}\]




What to do?
What to do?
assuming \(x\) is discrete, otherwise replace sums with integrals for continuous \(x\)
want to compute the expected value of \(g(x)\) over distribution \(p\), but we have samples from another distribution \(x \sim q\)
\[E_{x \sim q} \left[ \frac{p(x)}{q(x)} g(x) \right] = \sum_x q(x) \left( \frac{p(x)}{q(x)} g(x) \right) = \sum_x p(x) g(x) = E_{x \sim p} \left[g(x) \right]\]
this assumes \(q(x)>0\) whenever \(p(x)>0\) for the ratio \(p/q\) to be defined
