Random Forest
The ensemble estimators use regression forests as conditional-moment critics and regression or classification forests as learner best responses. Write
where \(W=1\) by default. The regression oracle fits a supplied target by
least squares. The weighted-classification oracle fits the sign of a learner
direction, using its absolute value as the observation weight, and returns a
function bounded by max_abs_value.
The optimization statements below describe the exact-oracle algorithms. Their regret guarantees require exact best responses and the stated convexity and sign-symmetry conditions on the empirical evaluation sets. Random forests provide approximate best responses, so these results motivate the implementation but are not finite-sample guarantees for a fitted forest.
Estimator 1
When the learner and critic classes are already norm constrained, the one-stage estimator solves
EnsembleIV uses the equivalent sign convention in which the critic fits
\(Y-\bar g_{t-1}\). Its weighted-classification learner follows the
direction \(f'_t\) and the returned estimate averages the resulting
bounded learners. Under exact oracles, convexity of
\(\mathcal F'_{C'}\), and sign symmetry, this is the standard
\(O\{(\log T+1)/T\}\) ensemble approximation.
EnsembleIVStar instead accumulates the critic through an adaptive linear
combination chosen by residual fit. It is a useful heuristic, but it is not
the exact-oracle update covered by the preceding guarantee.
|
Bounded-learner ensemble IV estimator. |
|
Heuristic bounded-learner ensemble with an adaptive critic update. |
Estimator 2
The ridge-regularized one-stage objective is
EnsembleIVL2 uses the effective penalty
with delta_scale=5 and delta_exp=0.4 when these arguments are
'auto'. Given critics \(f'_1,\ldots,f'_t\) fitted to
\(Y-\bar g\), the regression learner targets
\((\mu t)^{-1}\sum_{s\leq t}f'_s(C')\).
When CV=True, each candidate alpha is fitted on the training portion
of a fold. A new critic is trained on the training residual and the candidate
is scored on the held-out conditional-moment payoff
The scale with the smallest average score is stored as best_alpha_ and is
then refitted on the full sample.
|
Empirical-L2-regularized ensemble IV estimator. |
Estimator 3
The ridge-regularized simultaneous estimator uses a common effective penalty \(\mu\) for the two learner functions:
Here \(D\) instruments the first bridge equation and \(C\) instruments the second. If the current critics fit \(f'_t\simeq r_1\) and \(f_t\simeq r_2\), the learner directions are
Ensemble2IVL2 regresses \(g\) and \(h\) on the running averages of
\(d_g/\mu\) and \(d_h/\mu\), respectively. It uses the same
\(\mu=\texttt{alpha}\,\delta_n^2\) definition as EnsembleIVL2.
Cross-validation sums the two held-out conditional-moment payoffs and stores
the selected scale as best_alpha_.
|
Empirical-L2-regularized simultaneous ensemble IV estimator. |
Subsetted estimator
With subsetted=True, the first critic is fitted on the rows selected by
subset_ind1 and the second on those selected by subset_ind2. If the
second indicator is omitted, it is the complement of the first. Explicitly
supplied nonempty binary indicators may overlap and need not exhaust the
sample.
For subset sizes \(p\) and \(q\), the critic actions entering the full-sample learner update are
Thus \(d_g=-\widetilde f'+W\widetilde f\) and
\(d_h=-\widetilde f\), which implements subset empirical moments together
with full-sample learner regularization. Invalid or empty masks raise an
error. n_burn_in performs preliminary critic/learner updates; the running
learner targets and prediction averages are reset afterward, and predictions
average only the following n_iter learners.
Estimator 4 (function class bounded)
Without the ridge terms, the simultaneous objective is
Ensemble2IV fits weighted classifiers to the signs of
\(d_g=-f'+Wf\) and \(d_h=-f\), with absolute directions as weights.
Each learner therefore takes values -max_abs_value or
max_abs_value. The subset scaling and burn-in convention are exactly as
described above.
|
Bounded-learner simultaneous ensemble IV estimator. |