σ StatsDoge Causal inference workflows
11
σ Building block · used in 1 workflow

Local linear forest

OTHER Machine LearningRandom Forest
Source grf — Athey, Tibshirani & Wager
Summary by StatsDoge

Random forest with a local linear correction — smoother fits and better extrapolation for smooth signals.

You're looking at a building block — one of the estimators a workflow uses inside its pipeline. You reached it from a workflow step; it's used in 1 workflow (listed below).

GRF package logo

Figure: GRF package logo. Source — grf-labs docs.

⚠️ Unofficial community write-up of a method from grf-labs/grf (pinned at v2.6.1). Not affiliated with the grf-labs authors — this summarizes the public documentation for demonstration. All credit & copyright belong to the original authors (Athey, Tibshirani, Wager, et al.).

What it does

Uses the forest only to define a kernel (the adaptive weights), then fits a local linear regression at the test point. This corrects the boundary bias and 'staircase' artifacts of plain forests when the true signal is smooth.

llf <- ll_regression_forest(X, Y)
predict(llf, X.test, linear.correction.variables = 1:ncol(X))

Use it for

Smooth conditional means, extrapolation near the edges of the covariate space.

Used in these workflows (1)

Discussion (1)

  • 2

    Local linear correction fixes the staircase artifacts beautifully on smooth signals. My go-to when plain forests look blocky.