Skip to content

Methods · Machine learning · Explainable AI (XAI)

Anchor Rule Explanations

An anchor is a short if-then rule that is enough to keep a model's prediction for one case: whenever a row satisfies the rule, the model almost always gives the same prediction. Numeric features are cut into quantile classes and categorical features use their value. Precision is the share of rows satisfying the rule that receive the same prediction, measured on all data rows that satisfy it, with a one-sided Clopper-Pearson lower bound; coverage is the share of rows the rule applies to. A beam search finds the shortest rule that reaches the precision target and, among those, the one with the widest coverage.

앵커는 한 사례에 대한 모형의 예측을 유지시키는 짧은 조건 규칙입니다. 규칙을 만족하는 행이면 모형이 거의 언제나 같은 예측을 냅니다. 규칙을 만족하는 모든 자료 행에서 같은 예측이 나오는 비율(정밀도)과 그 하한, 규칙이 적용되는 행의 비율(포괄도)을 계산하고, 빔 탐색으로 정밀도 목표를 넘는 가장 짧고 포괄도가 넓은 규칙을 찾습니다.

Which few conditions are sufficient for the model to make this particular prediction?

모형이 이 사례를 이렇게 예측하는 데 충분한 조건 몇 가지는 무엇입니까?

Read the anchor as a sufficient condition: with precision 0.97 and coverage 0.12, rows meeting the rule get the same prediction 97% of the time and the rule covers 12% of the data. Short, high-coverage anchors indicate simple local behaviour; long anchors with tiny coverage indicate a prediction that depends on a narrow combination of values.

When to use Anchor Rule Explanations

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

For row [value] the model predicted [class]; the anchor "[rule]" kept that prediction with precision [value] (lower bound [value]) on [value] matching rows, coverage [value].

Related methods

How this method is validated

이 방법의 검증 근거

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

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

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 Rule Explanations on Quorant

Data you need
a table (CSV or Excel) with an outcome variable and predictor (feature) columns
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 Q71051 · Reviewed 2026-10-25