Skip to content

Methods · Causal inference · Distributional robustness

Anchor Regression

Anchor regression is a linear regression that trades ordinary least squares against instrumental-variable estimation so that predictions stay accurate when the distribution shifts along directions driven by exogenous anchor variables such as site, batch or time.

앵커 회귀는 지역·배치·시기 같은 외생적 앵커 변수를 따라 분포가 바뀌어도 예측이 정확하도록 최소제곱과 도구변수 추정 사이에서 균형을 잡는 선형 회귀입니다.

My data come from several sites or periods; how do I fit a regression that will still predict well in a new site with shifted conditions?

자료가 여러 지역이나 시기에서 왔습니다. 조건이 달라진 새 지역에서도 잘 예측하는 회귀를 어떻게 적합합니까?

The outcome and predictors are split into the part explained by the anchors and the rest, and the anchor-explained part of the residuals is penalised by a factor gamma. Gamma = 1 is ordinary least squares, larger values protect against stronger shifts and move the estimate toward instrumental variables, and the reported path shows how coefficients change with gamma.

When to use Anchor Regression

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Anchor regression with gamma = [value] using [anchors] gave a coefficient of [value] for [predictor] (bootstrap SE = [value]) compared with [value] by OLS.

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-3.

    독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-3).

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Anchor Regression on Quorant

Data you need
a table (CSV or Excel) with an outcome variable, predictor (feature) columns and instrument
Price
400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q81063 · Reviewed 2026-10-25