Skip to content

Methods · Causal inference · Matching

Optimal Pair Matching

Optimal pair matching pairs each treated unit with one or more controls, without reusing controls, so that the total distance over all pairs is as small as possible. Unlike greedy nearest-neighbour matching, it does not let early matches use up controls that later treated units need.

대조군을 다시 쓰지 않고 처치 단위마다 대조 단위를 짝지을 때, 모든 짝의 거리 합이 가장 작아지도록 헝가리안 알고리즘으로 배정하는 매칭 방법입니다.

If I match every treated person to a control, which pairing makes the matched groups as similar as possible overall?

처치군 한 명마다 대조군을 짝지을 때 전체적으로 가장 비슷해지는 짝은 어떻게 만들까요?

Distances between all treated and control units are computed from the logit of a logistic propensity score or from the Mahalanobis distance of the covariates. The Hungarian algorithm finds the assignment with the smallest total distance; with a ratio above one each treated unit receives several distinct controls. With a caliper, pairs that are too far apart are avoided and unmatched treated units are dropped. The effect on the treated is the mean of treated-minus-control differences with a paired t interval, and standardised differences show balance before and after.

When to use Optimal Pair Matching

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Optimal 1:[value] matching formed [value] matched sets; the effect on the treated was [value] (95% CI [value] to [value]), t([value]) = [value], p = [value], and the largest standardised difference after matching was [value].

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).

    독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.

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 Optimal Pair Matching on Quorant

Data you need
a table (CSV or Excel) with an outcome variable, a treatment indicator 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 Q81106 · Reviewed 2026-10-25