DML and processing response: what exactly was estimated after the mutilation
Delineating the orthodox to cross-fitting from some linear models, distinguishing DML, doubly robust and multi-action responses with determinative synthetic data.
Learning objectives and first steps4 objectives 2 first repairs
Try to do it after reading
- Rectangular conditions after decomposition of process and result
- Construct cross-fitting residue using projections other than training discounts
- Description of the respective roles of orthodoxy, cross-fitting and identification assumptions
- Distinction DML and doubly robust And recognize multiactional colinearity
Suggested first
- Identification of causes, consistency and quid pro quo
- Linear regression, conditional expectations and matrix shape
Forecast results are not the same as estimated action effects
A complex model is easy to learn at the same time, "Who gets bigger? credit limit and “who normally incurs higher losses”. If the action factor is interpreted directly as an action effect, positive deviations and mixing may be mixed. A common idea for DML is to interpret the predictable parts of the baseline characteristics using flexible models before estimating the target parameters using the remaining changes in the action. Machine learning here is an auxiliary estimation tool, and causal recognition still needs to be provided by data generation processes and assumptions.
This chapter begins with a discussion of some linear models of continuous volume processing, which do not attribute all DML estimates to this form. Conditional expectations, returns and identification conditions in the previous chapter are required. All data are no-noise composite samples, the purpose of which is to check the debris and interlacing data flow; It does not test incremental distribution, inter-trust zone coverage or real operating benefits.
Why do you want to cripple both the results and the movements
Let Y=θT+g(X)+ε, with pre-action X, action T, constant marginal response θ and E(ε|X,T)=0. Define m(X)=E(T|X) and ℓ(X)=E(Y|X). Since ℓ includes θm(X), it generally differs from g(X). Subtracting conditional means gives Y−ℓ(X)=θ[T−m(X)]+ε.
The sample is estimated to be the residual multiplier and decomposition for the treatment of the debris square and sum. The denominator represents how many movement changes remain beyond the baseline conditions; If the original strategy was to decide almost entirely on the movement under each X, the effect would be expected to be unstable if the debris was close to zero. Increasing the capacity of the model might make the problem more visible, rather than solving it.DML original paper At the same time, the discussion of encores and cross-fitting cannot be considered a complete definition of “training two models”.
Four dots
Take X=[0,0,1,1], T=[0,1,1,2] and Y=[1,3,4,6], generated by θ=2 and g(X)=1+X. At X=0, m=0.5 and ℓ=2; at X=1, m=1.5 and ℓ=5. Action residuals are [−0.5,0.5,−0.5,0.5], outcome residuals [−1,1,−1,1]. Numerator 2 and denominator 1 recover θ=2.
When X was not controlled, the average value of T was 1, the average value of Y was 3.5, the co-opt was 5 and the split was 2 and the normal regression was 2.5. The difference is from X, which affects both T and Y, and is not due to the fact that the debris has increased the accuracy of the projections. The real data generation function is written here, so the answer can be checked; This is not a true value in the real log, and it must be based on design and sensitivity analysis.
cross-fitting solves the problem of who predicts who
If you train with the same sample, nuisance model It also predicts itself that overcoupling can reduce the diversity of disability and that the target is estimated to be contaminated. (a) cross-fitting split the data into K folds, each time using other folding support functions, and only for the setting of discounts to generate projections; Finally, all the estimated external impairment parameters are collated. The data on which the user or time depends should also be used for the corresponding grouping or time-series protocol, and a valid independent sample cannot be obtained by default from random branches.
(b) Isotivity eliminates or diminishes the effect of a single step error in the direction of the target rectangular near the real auxiliary function; It's not "nuisance model" that's okay." The rate of error, overlap, the terms of reference and the margin estimates remain to be expected.DML description for EconML (a) A detailed estimate structure was presented; This document does not implement the framework and therefore does not report on its results.
DML and doubly robust It can't be synonymous
doubly robust It is usually meant that, under a given estimation, the result model or the propensity model is at least one of the correct types for which consistency is achieved. Some of the ATE points are of this nature, but not all of the DML scores share the same “second option” assurance. Part of this paper is a linear residual ratio that cannot be said to be general in character to just one set of two auxiliary functions.
If ℓ is correct but m has extra error δ(X), the numerator may remain θ times true residual variance while the denominator adds E[δ²], shrinking the slope. Equal error and true residual variances can halve θ. This counterexample motivates checking robustness for the specific score.Doubly robust evaluation by Dudík et al.A clear log and strategy setting that applies to it cannot be directly substituted for this text.
An example of practical implementation of two conversions
The four above-mentioned no-noise configurations are grouped below, forming eight fixed composite records. Repetitiously, the feature configuration does not claim to provide eight independent statistical information; There is no confidence zone here. Python3 Standard Library code implemented by CPU.
import mathrows=[(0,0.,1.),(0,1.,3.),(1,1.,4.),(1,2.,6.)]*2folds=[list(range(4)),list(range(4,8))]rt,ry=[0.]*8,[0.]*8for holdout in folds: train=[row for i,row in enumerate(rows) if i not in holdout] means={} for x in [0,1]: group=[r for r in train if r[0]==x] means[x]=(sum(r[1] for r in group)/len(group), sum(r[2] for r in group)/len(group)) for i in holdout: x,t,y=rows[i] m,ell=means[x] rt[i],ry[i]=t-m,y-ellnumerator=sum(a*b for a,b in zip(rt,ry))denominator=sum(a*a for a in rt)assert denominator>0estimate=numerator/denominatorassert math.isclose(estimate,2.)print(rt,ry,estimate)# rt: [-.5,.5,-.5,.5]重复两次;ry为其两倍;estimate=2.0What is extra check when expanding to multiple offers
If a credit limit, duration, pricing of a k vector is processed, the MRG matrix is k multiplied by k. It must be sufficiently thick and covered to distinguish between actions; The rules of history are always bigger. credit limit Data may not support separation at all with longer periods. Continuous processing also requires density coverage close to the target action and does not allow the binary processing of probabilistic conditions to be applied to actions anywhere.
If the response changes with X, the fixture is only a model-limited summary and does not necessarily equal the marginal effect of each user. The heterogeneous response can be estimated by a clear function class or a local rectangular method Broad random forest Is one of the corresponding original entrances. RCT and observational data When mixed, the test selection mechanism, label definition and transport conditions of the target population are also examined; Combining and weighting two data does not automatically resolve selection deviations.
Testing a limit–price interaction with four offer arms
Does a rate cut have a different effect on losses after a limit increase? Within one stratum, randomly assign people with the same starting offer to four arms. Hold term, follow-up and currency fixed, and vary limit and rate. Each cell has 100 assigned people. The prespecified outcome is total principal loss in the window divided by the number assigned. These are synthetic data. The two rate-cut cells match the worked example in the counterfactual LTV chapter.
| Tier | Original rate · loss per person | Lower rate · loss per person |
|---|---|---|
| Lower limit | 8.0 | 12.5 |
| Higher limit | 15.0 | 14.4 |
The rate-cut contrast at the lower limit is 12.5 − 8.0 = +4.5. At the higher limit it is 14.4 − 15.0 = −0.6. Subtract the first contrast from the second to get −5.1 in units of loss per assigned person. Change the outcome to drawdown and the four cell rates are 40%, 50%, 50% and 60%. The rate cut raises drawdown by 10 percentage points at both limits, giving a zero percentage-point interaction. The same offer arms can show an interaction on one outcome scale and none on another.
The −5.1 is a point estimate. The four means do not contain the within-arm variation in individual loss needed for a confidence interval. With individual outcomes, estimate uncertainty using the actual randomization strata and assignment units. Aggregate repeated loans to the person first. If one cell is missing, the direct contrast cannot identify this interaction. Keep the three observed cell means, collect the missing randomized arm or narrow the question. Filling the cell with a DML prediction introduces an extrapolation assumption.
Self-measure and answer
I (X) and g(X)
ℓ=E(Y|X)=θm(X)+g(X), already including outcomes from the baseline mean action.
What are the molecules and denominators who returned to this case?
The four-point example has numerator 2 and denominator 1, giving θ=2. Duplicating to eight points doubles both and preserves the ratio.
Why can't we just keep the original T for Y?
The actions still contain a baseline predictability component and the target matrix and its denominators are not consistent with the derived estimation; It should be constructed with a clear orthographic score.
Could cross-fitting remove the undetected confusion?
Can't. It deals with the over-conforming reliance of estimates, and identification assumptions must still be supported by observational variables, design and mechanisms.
Does DML necessarily have the character of "two models for one"?
No, it's not. Specific scores should be checked. The ATE estimation for part DML has doubly robust and cannot be generalized to all residual models.
credit limit What are the problems when the time limit changes at a fixed rate?
(b) Addressing the debris portfolio may be strange or pathological, and it is not possible to distinguish reliably between the two action functions; Coverage, design or additional structural assumptions are required.
Next counterfactual LTV and offer Decision, insert response estimates into binding operational objectives.
Sources and reconciliations
Definitions, methods and interfaces are available.
- Chernozhukov et al. — Double Debiased Machine Learning for Treatment and Causal Parameters
- EconML 0.16 — Orthogonal Double Machine Learning
- Athey Tibshirani Wager — Generalized Random Forests
- Dudík et al. — Doubly Robust Policy Evaluation and Optimization
- NIST/SEMATECH — Two-level full factorial designs
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.