Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.
51,961 characters · 9 sections · 17 citation commands
Counterfactual Learning with General Data-generating Policies
In bandit and reinforcement learning, off-policy (batch) evaluation attempts to estimate the performance of some counterfactual policy given data from a different logging policy. Off-policy evaluation (OPE) is essential when deploying a new policy might be costly or risky, such as in education, medicine, consumer marketing, and robotics. OPE relates to other fields that study counterfactual/causal reasoning, such as statistics and economics.
Most existing OPE studies focus on full support logging policies, which take all actions with positive probability in any context, such as stochastic bandit (e.g. $\epsilon$-greedy and Thompson Sampling) and random A/B testing. However, real-world decision-making often uses deficient support logging policies, including deterministic bandit (e.g. Upper Confidence Bound) as well as deterministic decision-making based on predictions obtained from supervised and unsupervised learning. An example in the latter group is a policy that greedily chooses the action with the largest predicted reward. OPE is difficult with a deficient support logging policy, since its log data contain no information about the reward from actions never chosen by the logging policy. There appears to be no established OPE estimator for deficient support logging policies Sachdeva2020-qi.
We provide a solution to this problem. Our proposed OPE estimator is applicable not only to full support logging policies but also to deficient support ones. We also allow for hybrid stochastic and deterministic logging policies, i.e., logging policies that choose actions stochastically for some individuals and deterministically for other individuals.
{\bf Method.} Our OPE estimator is based on a modification of the Propensity Score rosenbaum1983central, which we dub the “Approximate Propensity Score” (APS) narita2021algorithm. APS of action (arm) $a$ at context (covariate) value $x$ is the average probability that the logging policy chooses action $a$ over a shrinking neighborhood around $x$ in the context space. If two actions have nonzero APS at $x$, the logging policy chooses both actions locally around $x$. This enables us to estimate the difference in the mean reward between the two actions by exploiting the local subsample around $x$. When the logging policy is deterministic, the subsample consists of individuals near the decision boundary between the two actions. We then use the estimated reward differences to construct an estimator for the performance of any given counterfactual policy.
As the main theoretical result, we prove that our proposed OPE estimator is consistent. That is, the estimator converges in probability to the true performance of a counterfactual policy as the sample size increases, under the assumption that the mean reward differences are constant over the context space (Theorem (ref)). This result holds whether the logging policy is of full support or deficient support. The proof exploits results from differential geometry and geometric measure theory, which have not been applied in machine learning research as far as we know.
{\bf Simulation Experiments.} We validate our method with two simulation experiments. The first considers a mix of full support and deficient support policies as the logging policy. Actions are randomly chosen for a small A/B test segment of the population and are chosen by a deterministic supervised learning algorithm for the rest of the population. For the task of evaluating counterfactual policies, our method produces smaller mean squared errors than a baseline estimator that only uses the A/B test subsample. The second experiment considers a situation in which we have a batch of data generated by a deterministic bandit algorithm. We find that our estimator outperforms a regression-based estimator in terms of mean squared errors.
{\bf Real-World Application.} We empirically apply our method to evaluate and optimize coupon targeting policies. Our application is based on proprietary data provided by Mercari Inc., a major e-commerce company running online C2C marketplaces in Japan and the US. This company uses a deterministic policy based on uplift modeling to decide whether they offer a promotional coupon to each target customer. We use the data produced by their policy and our method to evaluate a counterfactual policy that offers the coupon to more customers. Our method predicts that the counterfactual policy would increase revenue more than the cost of coupon offers, suggesting that redesigning the current policy is profitable.
{\bf Related Work.} Widely-used OPE methods include inverse probability weighting (IPW) precup2000eligibility,Strehl2010, self-normalized IPW Swaminathan2015b, Doubly Robust Dudik2014, and more advanced variants wager2017estimation,Farajtabar2018MoreRD,su2020shrinkage. These methods are based on importance sampling (IS) and require that the logging policy be of full support, i.e., assign a positive probability to every action potentially chosen by the counterfactual policy. This restriction makes them hard to use when the logging policy is of deficient support.
There are two existing approaches to deficient support logging policies.\footnote{Sachdeva et al. (2020) also proposes another approach in which they restrict the policy space.} The first approach considers a logging policy that varies over time or across individuals Strehl2010. Viewing the sequence of varying logging policies as a single full support logging policy, it is possible to apply IS-based OPE methods. Unlike this approach, our approach is usable even when the logging policy is fixed.
The second approach, called the Direct Method or Regression Estimator, predicts the mean reward conditional on the action and context by supervised learning and uses the prediction to estimate the performance of a counterfactual policy beygelzimer2009offset,Dudik2014. Similar regression-based methods are proposed for reinforcement learning settings duan2020minimax. This approach is sensitive to the accuracy of the mean reward prediction. It may have a large bias if the regression model is not correctly specified. This issue is particularly severe when the logging policy is of deficient support, since each action is observed only in a limited area of the context space. Our approach instead predicts the mean reward differences between actions by exploiting local subsamples near the decision boundaries without specifying the regression model. narita2021algorithm originally develop and empirically apply this approach in the context of treatment effect estimation with a binary treatment. This paper extends their approach to OPE with multiple actions. This idea relates to regression discontinuity designs in the social sciences lee2010rdd.
It is worth noting that our approach is applicable to off-policy selection, in which the researcher is to design a decision rule to select a policy given a finite set of policies Kuzborskij2021-vc. Since our method can estimate the expected reward of the policies, we can first estimate the reward of each, and then choose the one with the highest expected reward.
${\cal A} \coloneqq \{1,...,m\}$ is a set of actions that the decision maker can choose from. Let $\mathbb R^p$-valued random variable $X$ denote the context that the decision maker observes when picking an action. Let ${\cal X}$ denote the support of $X$. To simplify the exposition, we assume that $X$ is continuously distributed. Let a tuple of $m$ $\mathbb R$-valued random variables $(Y(1), \dots, Y(m))$ denote potential rewards; $Y(a)$ denotes a potential reward that is observed when action $a$ is chosen. $(Y(1), \dots, Y(m), X)$ follows distribution $P$, which is unknown to the decision maker.
A policy chooses an action given a context. Let $ML:\mathbb{R}^p\rightarrow \Delta({\cal A})$ represent the logging policy, where $ML(a|x)$ is the probability of taking action $a$ for individuals with context $x$. We assume that the analyst knows the logging policy and is able to simulate it. That is, the analyst is able to compute the probability $ML(a|x)$ for each action $a\in{\cal A}$ given any context $x\in\mathbb{R}^p$. Suppose we have log data $\{(Y_i,X_i,A_i)\}_{i=1}^n$ generated as follows. For each individual $i$, (1) $(Y_i(1), \dots, Y_i(m),X_i)$ is i.i.d. drawn from $P$; \footnote{ This assumption is valid when we have a batch of log data generated by a fixed policy. } (2) Given $X_i$, the action $A_i$ is randomly chosen based on the probability $ML(\cdot|X_i)$; (3) We observe the reward $Y_i \coloneqq Y_i(A_i)$. Note that only one of $Y_i(1), \dots, Y_i(m)$ is observed for individual $i$ and recorded as $Y_i$ in the log data. The joint distribution of $(Y, X, A)$ is determined once $ML$ and $P$ are given.
{\bf Prediction Target.} We are interested in estimating the expected reward from any given {\it counterfactual policy} $\pi:\mathbb{R}^p\rightarrow \Delta({\cal A})$, which chooses a distribution of actions given individual context:
We first consider the identification problem, which asks whether it is possible to learn $V(\pi)$ if we had an infinite amount of data. Formally, we say that $V(\pi)$ is identified if it is uniquely determined by the joint distribution of $(Y,X,A)$. A key step toward answering the identification question is what we call the Approximate Propensity Score (APS). To define it, for $a\in{\cal A}$ and $x\in{\cal X}$, let:
where $B(x, \delta)=\{x^*\in\mathbb{R}^p:\|x-x^*\|<\delta\}$ is the $\delta$-ball around $x\in {\cal X}$. Here, $\|\cdot\|$ denotes the Euclidean norm on $\mathbb{R}^p$. To make common $\delta$ for all dimensions reasonable, we normalize $X_{ij}$ to have mean zero and variance one for each $j=1,...,p$. We assume that $ML$ is a Lebesgue measurable function so that the integrals exist. We then define APS $p^{ML}$ as follows: for $a\in{\cal A}$ and $x\in{\cal X}$,
Figure (ref) illustrates APS. Here $\mathcal X \subseteq \mathbb{R}^2$, $\mathcal{A}=\{1,2,3\}$, and the support of $X$ is divided into four sets depending on the value of $ML$ as in panel (a). Panel (b) shows the corresponding APS. For the interior points of each of the four sets, APS is equal to $ML$. On the border of any two sets, APS is the average of the $ML$ values in the two sets.
Our identification analysis uses the following assumption.
$ML(a|x)=0$ means that action $a$ is never taken for individuals with context $x$. If APS of $a$ at $x$ is nonzero ($p^{ML}(a|x)>0$), however, there exists a point close to $x$ that has a positive probability of receiving action $a$, which enables us to observe the reward from the action near $x$. For any such point $x$, Assumption (ref) ensures that the points close to $x$ have similar conditional means of the potential reward $Y(a)$. Thus, the conditional mean reward from action $a$ at $x$ is identified. On the other hand, when $ML(a|x)>0$, action-context pair $(a,x)$ is observed, allowing us to identify the mean reward without any assumptions. Assumption (ref) therefore does not impose continuity at such points. The lemma below summarizes the above argument. For a set $A\subset\mathbb{R}^p$, let ${\rm int}(A)$ denote the interior of $A$.
We use Lemma (ref) to analyse identification of $V(\pi)$. Suppose first that $\pi(a|x)>0 \Longrightarrow p^{ML}(a|x)> 0$, that is, the counterfactual policy $\pi$ only chooses actions with nonzero APS. Lemma (ref) implies that the conditional mean reward is identified at every $(a,x)$ pair that could be realized under the policy $\pi$. As a result, the expected reward $V(\pi)$ is identified for any such policy.
However, if there exists $(a,x)$ such that $\pi(a|x)>0$ but $p^{ML}(a|x)=0$, we cannot identify $V(\pi)$ without additional assumptions. To be able to identify $V(\pi)$ for any policy $\pi$, we assume that the difference in the conditional mean reward function $E[Y(a)|X]$ between any two actions is constant over ${\cal X}$.
At the end of Section (ref), we discuss how our results would change if we drop Assumption (ref) and a potential way of relaxing this. We also impose the following condition on APS.
Assumption (ref) states that there exists a path from a baseline action ($a_1=1$) to any other action ($a_L=a$) for which APS of any two consecutive actions ($a_l$ and $a_{l+1}$) is positive at some $x$. For example, suppose that $m=3$, $p^{ML}(1|x_1)>0$, $p^{ML}(2|x_1)>0$, $p^{ML}(2|x_2)>0$ and $p^{ML}(3|x_2)>0$ for some $x_1,x_2\in {\cal X}$ as in Figure (ref) (b). In this case, the sequence $\{1,2\}$ satisfies the condition in Assumption (ref) for $a=2$, and the sequence $\{1,2,3\}$ satisfies the condition for $a=3$. By Lemma (ref), the four conditional means $E[Y(1)|X=x_1]$, $E[Y(2)|X=x_1]$, $E[Y(2)|X=x_2]$ and $E[Y(3)|X=x_2]$ are identified. Hence, the two differences $E[Y(1)|X=x_1]-E[Y(2)|X=x_1]$ and $E[Y(2)|X=x_2]-E[Y(3)|X=x_2]$ are identified. Under Assumption (ref), the two differences do not depend on $x$. As a result, $E[Y(1)|X=x]-E[Y(2)|X=x]$ and $E[Y(2)|X=x]-E[Y(3)|X=x]$ are identified for every $x\in{\cal X}$. Noting that $E[Y(a)|X=x]$ is identified for at least one $a\in{\cal A}$ for every $x\in{\cal X}$, we can use the differences to identify $E[Y(a)|X=x]$ for every $(a,x)$ pair, even for those not observed in data. Thus, $V(\pi)$ is identified for any policy $\pi$.
Assumption (ref) typically holds if every action is chosen with a positive probability in some region of the context space $\cal{X}$. For example, consider a deterministic logging policy that chooses the action with the largest predicted conditional mean reward given the context ($E[Y(a)|X]$), where the predictions are obtained from supervised learning. If every action $a$ has a region where it is predicted to be optimal, then every action usually shares boundaries with at least one other action. Since $p^{ML}(a|x)>0$ and $p^{ML}(a'|x)>0$ at the boundaries shared by two actions $a$ and $a'$ (unless the boundaries are irregularly shaped), we can find a sequence of actions that satisfies Assumption (ref).
{\bf OPE Estimator.} Suppose that we observe a sample $\{(Y_i,X_i,A_i)\}_{i=1}^n$ of size $n$. We propose an OPE estimator based on the following expression of our prediction target $V(\pi)$: under Assumption (ref),
Appendix (ref) derives this expression. Since $V(ML)$ is the value from the logging policy $ML$, $V(ML)$ can be estimated by the sample mean of $Y_i$. Our identification analysis suggests a way of conducting OPE on any policy $\pi$: (1) estimate $\beta(a,a')$ for each $(a,a')$ pair such that $p^{ML}(a|x)>0$ and $p^{ML}(a'|x)>0$ for some $x$; (2) use the estimates to recover $\beta(a,1)$ for every $a\in\{2,...m\}$ and plug them into the sample analogue of the above expression. For simplicity, we consider a setup in which $p^{ML}(a|x)>0$ and $p^{ML}(1|x)>0$ for some $x$ for every $a$ so that we can directly estimate $\beta(a,1)$ in step (1) above.
To estimate $\beta(a,1)$, we use the subsample \[ {\cal I}(a;\delta_n)\coloneqq \left\{i: A_i\in\{1,a\}, q_{\delta_n}^{ML}(a \mid X_i)\in (0,1) \right\}, \] where \[ q_{\delta_n}^{ML}(a \mid X_i) \coloneqq \frac{p_{\delta_n}^{ML}(a \mid X_i)}{p_{\delta_n}^{ML}(a \mid X_i) + p_{\delta_n}^{ML}(1 \mid X_i)}, \] and $\delta_n$ is a given bandwidth. The bandwidth shrinks towards zero as the sample size $n$ increases.\footnote{For the bandwidth $\delta_n$, we suggest considering several different values and check if the estimates are robust to bandwidth changes. It is hard to pick $\delta_n$ in a data-driven way to minimize the mean squared error, since it would require nonparametric estimation of functions on the high-dimensional context space. } $q_{\delta_n}^{ML}(a| X_i)$ can be viewed as APS of action $a$ within the subsample for which either action $1$ or $a$ is assigned. The subsample ${\cal I}(a;\delta_n)$ contains all observations $i$ such that both actions $1$ and $a$ can be chosen by the logging policy locally around $X_i$. For example, in Figure (ref) (b), the shaded region corresponds to the subsample ${\cal I}(2;\delta_n)$. This covers not only the subsample subject to full randomization (for which $ML(1|x)=ML(2|x)=ML(3|x)=1/3$) but also the local subsample near the deterministic decision boundary $AB$ between actions $1$ and $2$.
We propose minimizing the sum of squared errors on the subsample ${\cal I}(a;\delta_n)$:
where $1\{\cdot\}$ is the indicator function. $\hat\beta_a$ is our estimator of $\beta(a,1)$. We include $q_{\delta_n}^{ML}(a| X_i)$ as an explanatory variable to adjust for imbalance in the context distribution between actions $1$ and $a$, as is done with the standard propensity score angrist_mostly_2008,hull. We then define our OPE estimator as:
It is worth noting that our method does not require the model selection.
For estimating $\beta(a,1)$, the above method uses APS $p_{\delta_n}^{ML}(a|X_i)$, which may be difficult to compute analytically if $ML$ is complex. In such a case, we propose approximating it by brute force simulation. We draw a value of $x$ from the uniform distribution on $B(X_i, \delta_n)$ a number of times, compute $ML(a|x)$ for each draw, and take the average of $ML(a|x)$ over the draws.\footnote{ The approximation error of the simulated APS relative to true $p_{\delta_n}^{ML}(a|X_i)$ has a $S^{-\frac{1}{2}}$ rate of convergence, where $S$ is the number of simulation draws. This rate does not depend on the dimension of $X_i$, so the simulation error can be made negligible by using a large number of simulation draws even when $X_i$ is high dimensional. } We then use it instead of $p_{\delta_n}^{ML}(a|X_i)$ to compute $q_{\delta_n}^{ML}(a| X_i)$, and then compute $\hat\beta(a,1)$ and $\hat V(\pi)$ as in ((ref)) and ((ref)).
{\bf Consistency.} We show that $\hat{V}(\pi)$ is a consistent estimator of $V(\pi)$, that is, $\hat{V}(\pi)$ converges in probability to $V(\pi)$ as $n\rightarrow \infty$ under some regularity conditions.
The main argument in the proof of Theorem 1 is similar to the one used for the consistency result of narita2021algorithm (the first part of their Theorem 1). We extend their result to OPE with multiple actions.
Our consistency result requires that $\delta_n$ go to zero slower than $n^{-1}$. This ensures that, when $ML$ is deterministic, we have sufficiently many observations in the $\delta_n$-neighborhood of the boundary of $\Omega^*_a \coloneqq \{x \colon ML(a | x) = 1\}$ (the set of the context values for which the probability of choosing action $a$ is one). Importantly, the rate condition does not depend on the dimension of $X_i$. This is because we use all the observations in the $\delta_n$-neighborhood of the boundary, and the number of those observations is of order $n\delta_n$ regardless of the dimension of $X_i$ if the boundary is $(p-1)$ dimensional. Our estimator is therefore expected to perform well even if $X_i$ is high dimensional.
Our result holds under the assumption of constant conditional mean reward differences (Assumption (ref)). If this assumption does not hold for a deterministic logging policy, $\hat\beta_a$ is a consistent estimator of the mean reward difference for the subpopulation on the decision boundary between actions $a$ and $1$ (see Appendix (ref)). Therefore, our estimator may still perform well when we are interested in a counterfactual policy that marginally changes the logging policy's decision boundary.
One way to relax Assumption (ref) is to consider a partition of ${\cal X}$ and assume that the conditional mean difference between any two actions is constant within each cell in the partition. This allows the conditional mean differences to vary across cells. If for each $(a,a')$ pair, each cell contains $x$ such that $p^{ML}(a|x)>0$ and $p^{ML}(a'|x)>0$, we can consistently estimate the conditional mean differences and the expected reward from any policy. How to find such a partition is an interesting future topic.
Consider a tech company that conducts an A/B test using a small segment of the population. The company applies a deterministic logging policy to the rest of the population. We generate a random sample $\{(Y_i, X_i, A_i)\}_{i=1}^n$ of size $n=$ 50,000 as follows. There are 5 actions ($m=5$) and $100$ context variables ($p=100$), with $X_i \sim N(0, \boldsymbol\Sigma)$. $Y_i(a)$ is generated as $Y_i(a) = 0.75 \sum_{k=1}^{100}X_{ki}^2\alpha_{0,k} + 0.25 u_i +\epsilon_i(a)$, where $\alpha_0=(\alpha_{0,1},...,\alpha_{0,100})\in \mathbb{R}^{100}$, $u_i \sim N(0,1)$, and $\epsilon_{i}(a) \sim N(a,1)$. The conditional mean difference $E[Y_i(a)|X_i]-E[Y_i(1)|X_i]$ is constant over $x$. The choice of parameters $\boldsymbol\Sigma$ and $\alpha_0$ is explained in Appendix (ref). To generate $A_i$, let $q^k_{0.99}$ be the 99th percentile of the $k$th context variable $X_{ki}$. Let $\tau_{pred}^{ML}(x,a)$ be a prediction of the reward from action $a$ given context value $x$ obtained by supervised learning from a past, independent training sample $\tilde{\mathcal{D}}=\{(\tilde Y_i, \tilde X_i, \tilde A_i)\}_{i=1}^{\tilde n}$ of size $\tilde n =$ 10,000 (see Appendix (ref) for how we constructed $\tilde{\mathcal{D}}$ and $\tau_{pred}^{ML}$).
$A_i$ is then generated based on the logging policy: \[ ML(a|x) =
\] The first case corresponds to the A/B test segment while the second case to the deterministic policy segment. Finally, $Y_i$ is generated as $Y_i=Y_i(A_i)$.
We simulate 1,000 hypothetical samples from the above data-generating process. For each simulation, we use the simulated sample to estimate the value of a counterfactual policy $\pi$, another mix of an A/B test and a deterministic policy. With another reward prediction function $\tau_{pred}^{\pi}$, \[ \pi(a|x) =
\]
{\bf Alternative Methods.} We compare our method with two alternative estimators. The first uses the A/B test segment (for which $ML(a|X_i)=1/5$) while the second uses the full sample. The methods first compute the simple mean differences in reward $Y_i$ between actions $a\in\{2,...,5\}$ and $1$, and then plugs them into $\hat\beta_a$ of Eq. ((ref)). Both our method and the alternative estimator with the A/B test segment produce consistent estimators of the prediction target $V(\pi)$. However, the alternative uses only the A/B test segment while our method additionally uses the local subsample near the decision boundary of the deterministic policy as we discussed in Section (ref).
{\bf Result.} The first panel of Table (ref) presents the bias, standard deviation (S.D.) and root mean squared error (RMSE) of our proposed estimators with several choices of $\delta$ and two alternative estimators. The alternative estimator using the full sample has a larger bias than the other two, since it does not control for the difference in the context distribution between actions. Our proposed estimator outperforms the alternative estimator using the A/B test sample in terms of RMSE. This suggests that exploiting both of the A/B test segment and the local subsample near the deterministic decision boundary can lead to better performance than using only the A/B test segment.
In the second experiment, both the logging policy and the counterfactual policy are deterministic. The rest of the setup is the same as that in the first experiment. We first use the independent training sample $\tilde{\mathcal{D}}$ to train an Upper Confidence Bound bandit algorithm. The logging policy $ML$ is given by $ ML(a|x) = 1\left\{a=\arg\max_{a'\in\{1,...,5\}}UCB(x,a') \right\}, $ where $UCB(x,a)$ is an upper confidence bound of $E[Y_i(a)|X_i=x]$. See Appendix (ref) for training details. We do not update the policy while generating $\{(Y_i, X_i, A_i)\}_{i=1}^n$ in the simulation. The sample is a batch of log data.
For the counterfactual policy $\pi$, we use $\tilde{\mathcal{D}}$ to train a model $f(x,a)$ that predicts the reward given the context and action, using sklearn's RandomForestRegressor with 500 trees and otherwise default parameters. The counterfactual policy tries to maximize the expected reward $V(\pi)$ by choosing the action with the largest predicted reward: $ \pi(a|x) = 1\left\{a=\arg\max_{a' \in\{1,...,5\}} f(x, a') \right\}. $
{\bf Alternative Method.} We compare our method with an alternative estimator using the Direct Method. This first fits a linear model $Y_i=\alpha+\sum_{a = 2}^{5} \beta_{a} 1\left\{A_i = a\right\}+\sum_{k=1}^{100}X_{ki} \gamma_k + e_i$, then makes the reward prediction from action $a$ for individual $i$ by $\hat\mu_i(a)=Y_i+(\hat\beta_a-\hat\beta_{A_i})$, and finally computes $\hat V(\pi)=\frac{1}{n}\sum_{i=1}^n\sum_{a=1}^5\hat\mu_i(a)\pi(a|X_i)$. The linear model used by this method correctly imposes the constant conditional mean differences but misspecifies the functional form with respect to $X_i$.
{\bf Result.} The second panel of Table (ref) shows the result. The alternative using the Direct Method is significantly biased due to model misspecification. Our proposed estimator seems to effectively use the local subsample near the decision boundary and has smaller bias and RMSE than the alternative.
{\bf Setup.} We apply our method to empirically evaluate a coupon targeting policy of an online platform. This application uses proprietary data provided by Mercari, Inc. This company conducts the following promotional campaign. They target customers who signed up for Mercari 4 days ago but have not made a purchase yet. The company uses a logging policy based on an uplift model to determine whether they offer a promotional coupon to each target customer. If customers receive the coupon and make a purchase, they get 900 points (equivalent to 8.34 USD) that they can use for future purchases. We observe data $(Y_i,X_i,A_i)$ for each target user $i$ from this campaign, where action $A_i\in\{0,1\}$ is whether the logging policy recommended offering the coupon to the customer ($A_i=1$) or not ($A_i=0$), $X_i$ is the vector of more than 200 input features for the uplift model, and $Y_i$ is an outcome such as the customer's spending after this coupon offer.
The company's logging policy works as follows. They first use data from a past A/B test and XGBoost to train a model of the conditional average effect of the coupon on purchases (they use library pylift for implementation). Let $\tau(x)$ be the predicted coupon effect for those whose feature value is $X_i=x$. The logging policy then recommends offering a coupon to customer $i$ if the predicted effect is in the top 80% of the distribution of predicted effects. That is, the logging policy $ML$ is given by $ ML(1|x)=1\{\tau(x)\ge c\}, $ where $c$ is the 20th quantile of the distribution of $\tau(X_i)$.
{\bf Effects of Policy Recommendation.} We first apply our method to the logged data generated by the above policy to estimate the effect of the policy recommendation $A_i$ ($\beta(1,0)=E[Y_i(1)-Y_i(0)]$) on the following three outcomes: (1) the purchase value (how much the customer spent), (2) the number of transactions, and (3) point usage (how many points the customer used). All outcomes are sums over 18 days after the coupon offer decision. We compute APS with $\delta\in\{0.4,0.8,1.2,2.0,3.0\}$. \footnote{Unlike the theoretical framework, the feature vector $X_i$ consists of discrete and continuous variables. We compute APS by fixing the value of the discrete part and computing by simulation the APS integral with respect to the continuous part. See Appendix (ref) for details.}
Columns (1)--(5) in the first three rows of Table (ref) report the estimated effects of the policy recommendation $A_i$. We normalize the estimates by dividing the original numbers by the sample outcome means for confidentiality. The results show that the effects of the policy recommendation $A_i$ on the purchase value, the number of transactions, and point usage are 35--92%, 43--74%, and 37--71% of their sample means, respectively. These positive effects mark a sharp contrast with Column (6), which reports the simple differences in the outcome means between those with $A_i=1$ and those with $A_i=0$. The simple mean differences on the purchase value and the number of transactions are negative. These negative estimates suggest that the logging policy tends to recommend a coupon to the customers who have a low propensity to make purchases. Our proposed method corrects for this negative selection bias by controlling for APS.
{\bf Evaluation of Counterfactual Policies.} The company needs to compensate for the discount that customers get by using points. Thus, adopting a new policy would be profitable only when the increase in revenue is sufficiently large compared to that in point usage. The company charges sellers 10% of every payment from the buyer; the revenue increases by 10% of the increase in purchase value. Hence, the policy change is beneficial if the ratio of the increases in the average purchase value and point usage is larger than 10.
Suppose we change our policy from $ML$ to a counterfactual one $\pi$. Let $Y^1_i$ and $Y^2_i$ denote the purchase value and point usage respectively. Under the constant conditional effect assumption, i.e., $E[Y_i^1(1)-Y_i^1(0)|X_i]=:\beta$ and $E[Y_i^2(1)-Y_i^2(0)|X_i]=:\gamma$, the ratio is:
The fourth row of Table (ref) reports the estimates of the ratio $\beta/\gamma$. The estimates are larger than 10 for all $\delta$'s. This result suggests that it would be profitable to expand the campaign.
As mentioned in Section (ref), without the constant conditional effect assumption, our estimator for the effect of the policy recommendation is a consistent estimator of the conditional effect for the subpopulation on the decision boundary, i.e., $E[Y_i(1) - Y_i(0) | \tau(X_i) = c]$. Our estimates in the fourth row of Table (ref) therefore can be interpreted as a measure for the cost effectiveness of the counterfactual policy that slightly lowers the threshold $c$. Without the constant conditional effect assumption, the result still suggests that marginally expanding the campaign would be profitable.
We develop an OPE method for a class of logging policies including deficient support ones. Our method is based on the newly developed “Approximate Propensity Score.” We prove that our estimator is consistent and demonstrate its practical performance through simulations and a real-world application. Promising directions for future work include developing a data-driven procedure to optimize the bandwidth. Also, the assumption of constant conditional mean reward differences may not be plausible in some applications. It will be challenging but interesting to relax this assumption to allow for certain types of heterogeneity. Finally, we look forward to applications of our method in a variety of business, policy, and scientific domains using machine learning.