Causal recognition and adjustment: determine if the effects of the action can be seen from the data
Use stratified inversions to derive standardization and weightings to indicate consistency, exchangeability, positive value and the boundary of the adjusted variable.
Learning objectives and first steps4 objectives 2 first repairs
Try to do it after reading
- Distinguishing the potential consequences of condition predictions and changes in the movement
- Select the adjustment variable using graphs and data generation order
- Manual rough comparison, standardization and counter-probability weights
- Identification of non-cover, undetected mixing and reprocessing deviations
Suggested first
- Conditional probabilities and expectations
- Sample aggregate, grouping and return
What's the difference between "this group of people is less risky" and "this action reduces risk"
Assuming that the system introduced new actions for some users, two sets of incidents were subsequently observed at different rates. The two sets of differences may come from action or from the original strategy to divide the different people. credit limit The length of time, pricing or search exposure is affected by historical rules and the actions in the logs are not randomly distributed. The predictive model can well replicate these conditional relationships, but cannot prove the result of a change of movement solely on the basis of the degree of comprehension.
This chapter discusses only once the binary action T and the fixed observation window results Y, Y =1 represent events that do not wish to occur. The first step is the probability of conditions and expectations. The objective is to identify the target population, the definition of the movement and the point of observation, and to calculate how the identification hypothesis is adjusted when it is established. All the tables are synthetic teaching counts and have no real business performance; The negative result difference represents a decrease in events but does not automatically amount to an increase in profits.
Write the problem from the potential results
Use Y(1) to indicate the potential result when the same unit accepts action 1, and Y(0) to accept action 0. Average treatment effect ATE It's the target group. Y(1) − Y(0) Average. Each log can only observe results under one action, and the other missing result is not a general missing value, and the current model output cannot be considered a proven fact.
Common identification conditions include consistency, exchange of terms and positive values. Consistency requires that observations correspond to a clear version of intervention; If the “lift” is accompanied by different pricing and touch, they cannot all be called the same treatment. The exchange of terms requires that the adjustment of X be followed by no omission of factors that affect both the movement and the result. Positiveness requires that both actions have positive probabilities in each relevant X area of the target population. It is also usually explained that there is no interference: one person ' s actions do not change the results of others. Advertisement competition or resource sharing scenarios may not satisfy it.
The meaning of these conditions and the complexity of vertical situations can be determined by What If Check. They don't automatically test the statistical properties adopted by training AUC. Even if observations are identical, different undetected mechanisms may be different. causal effect 。
An example of a hierarchical reversal
The target population is divided into low and high levels by pre-motion characteristics, with the target being divided by half. The synthesis log is as follows:
| Baseline level | Action 1: Events/Numbers | Action 0: Events/Number of Persons | We have a low incidence rate |
|---|---|---|---|
| Lower level | 2/20=0.10 | 16/80=0.20 | −0.10 |
| Top | 32/80=0.40 | 10/20=0.50 | −0.10 |
Direct comparison, action 1 incident rate 34/100 = 0.34, action 0 26/100 = 0.26, positive 0.08; It looks worse. The reason is that action 1 includes more high-level users. When standardized for the same target population, action 1 has a mean value of 0.5 x 0.1+0.5 x 0.4 = 0.25 and action 0= 0.35, with a difference of ~0.10. Standardization is the average value compared to the same composition, not the removal of unwanted samples.
Reverse probabilities weight is re-establishing what distributions are
The probability of low-level action 1 in this table is 0.2 and high-level 0.8. The action 1 sample is weighted by 1/ e(X), action 0 by 1/(1-e(X)) and all two hundredths of the denominator, with a mean value of action 1 (2/0.2+32/0.8)/200=0.25 and a mean value of action 0 (16/0.8+10/0.2)/200=0.35, consistent with standardization. This is a calculation of known synthetic stratum probabilities and is not a statistical experiment to reliably estimate bias fractions from small tables.
When the actual weight is close to infinite, a small sample will dominate the results. Cropping reduces the variance but introduces deviations or changes the target population; Thresholds, effective sample sizes and sensitivity should be reported, and not only fair averages after cropping should be published. If a layer has never assigned action 0, there is no empirical coverage and the prediction of the regression model is extrapolated. No matter how many nervous network layers are added, this recognition gap will not be automatically repaired.
Implemented Standard Python Example
The following Python 3 standard library code has been implemented by CPU, retaining the original number of persons, the number of events and the target ratio, without the causal framework.
import mathrows=[(20,2,80,16),(80,32,20,10)] # n1,y1,n0,y0raw1=sum(r[1] for r in rows)/sum(r[0] for r in rows)raw0=sum(r[3] for r in rows)/sum(r[2] for r in rows)standard1=sum(.5*y1/n1 for n1,y1,n0,y0 in rows)standard0=sum(.5*y0/n0 for n1,y1,n0,y0 in rows)N=sum(n1+n0 for n1,y1,n0,y0 in rows)ipw1=ipw0=0.0for n1,y1,n0,y0 in rows: e=n1/(n1+n0) ipw1+=y1/e/N ipw0+=y0/(1-e)/Nassert math.isclose(raw1-raw0,.08)assert math.isclose(standard1-standard0,-.10)assert math.isclose(ipw1,standard1) and math.isclose(ipw0,standard0)print(raw1,raw0,standard1,standard0,ipw1-ipw0)# 0.34 0.26 0.25 0.35 -0.10(末位可能有浮点误差)Adjusting more variables is not always safer
The assembly should only be adjusted according to the causal structure preceding the action. (b) The action may be followed by a transaction, a transaction or a click on an intermediary; It's a baseline control that changes the overall effect that you want to estimate. If only “audited” is retained and the state is affected by both the action and the potential result, the collision point path may also be opened. The observed correlation sifting variables are insufficient to judge these issues, and time lines and operational mechanisms need to be written first.
randomized trial It can reduce the mix of measured and undetected baselines, but the distribution is still checked for execution, sample loss, cross-group interference and result maturity. Observation strategy learning has to be accompanied by a description of the target population and the allowed action cluster.Athey and Wager (a) Policy learning under constraints was discussed;Dud í k E. De-lineation assessment This is why historical strategy coverage and results models are important. Neither means that any log can be converted into randomized experiment without any conditions.
Self-measure and answer
Why is this rough comparison against each layer?
The baseline composition of the action group is different, and action 1 includes more high-level users; A comparison of the averages of the blends takes the selection mechanism in.
Why do we need to standardize it in half of two floors?
This is a clearly designated distribution of the target population. If the distribution of objectives changes, the weight should be reweighted and this value should not be used.
Does the proximate projection of fractions prove to be non-mixed?
Can't. It describes only the relationship between the log variables and the action, and the common causes of omission may still exist; Over-divisibility may also mean inadequate coverage.
What are the risks of using the amount spent after action as a general control variable?
It may be located on the intermediary path of the action affecting the outcome, and control may no longer be estimated as the original aggregate effect, and may also result in selectivity.
How do you identify this part of the comparison?
The available empirical data alone are not usually available; Additional structural assumptions, changes in the target population or the collection of covered data are required, and boundaries are identified for extrapolation.
ATE minus 0.10 means that each user reduces the risk of 10 percentage points?
No, it's not. It is the average difference between the target population; The individual effects and conditions are different and rely on the identification assumptions in this paper.
Read it next DML and Process Response Identification issues continue to be separated from estimation methods under high-dimensional baselines.
Sources and reconciliations
Definitions, methods and interfaces are available.
- Hernán and Robins — Causal Inference What If
- Athey and Wager — Policy Learning with Observational Data
- Dudík et al. — Doubly Robust Policy Evaluation and Optimization
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.