Recall that exchangeability doesn’t usually hold in real-world conditions due to the issue of distribution shift — the most common type is covariate shift. Thus the previous framework of conformal p-values will no longer hold.
The setup is the following:
- An independent set of calibration data drawn i.i.d from a distribution , where outcomes are observed.
- The test samples are drawn independent and i.i.d from an unknown distribution , and their outcomes are unobserved.
The objective is to identify a subset with outcomes strictly above thresholds .
The covariate shift assumption is:
where is a weighting function completely independent from
An example can be a company which mainly hires candidates with computer science degrees (). However they are now looking to hire candidates with mathematics degrees.
The distribution has shifted from to however has not changed — is how candidate skills () translate to job performance ().
Naturally, we are interested in finding as much where while also ensuring that the false discovery rate (FDR) is below some specified .
Define.
Weighted Conformal p-Values
The following setup is similar to the one for unweighted conformal p-values.
Let be the calibration dataset (where both features and outcomes are observed) and be the test dataset (where features and selection thresholds are observed, but responses are missing.
Define.
A nonconformity score is monotone if holds for any and any obeying .
The available data is split into two disjoint sets:
-
Calibration Set (): Both covariates and true outcomes are fully observed. We compute the calibration scores:
-
Test Set (): Covariates and cutoff thresholds are observed, but the true response is unobserved . We compute the hypothesized score at the boundary thresholid:
Define. Weighted Conformal P-Value
where which is used for tie-breaking.
As expected when weights are for all , the formula becomes:
which is identical to previous formula for unweighted conformal p-values.
Lemma: The following inequality holds if the covariate shift holds and the score function is monotone:
where the probability is taken jointly over the calibration data and the test sample .
proof to be done later
Define. PRDS
A random vector is PRDS on a subset if for any and any increasing set , the conditional probability:
A set is increasing if and implies (where means for every coordinate ).
Controlling the FDR with the BH-procedure requires p-values to PRDS which holds in the unweighted case of p-values.
Informally:
- In the unweighted case, all calibration points carry equal mass . Thus directly from the formula, a small p-value indicates that the calibration scores have large values relative to . These same large calibration scores are shared when calculating , the other test p-values are also pulled downward . This mutual positive correlation ensures PRDS.
- In the weighted case, a p-value may be small because either the calibration scores are large or the calibration weights for calibration units with are small. This can inflate the other p-values which means the joint distribution is not longer positively dependent which violates PRDS.
proof saved for later.
insert weighted conformal algorithm and idea of auxiliary p-values
theorem later that shows that loss of PRDS doesn’t matter