← 8. Causal effects
Propensity score matching (PSM)
Try this analysis →

Propensity Score Matching (PSM)

Pair up people who were about equally likely to receive the treatment, then compare their outcomes.

Propensity scoreMatching methodsCovariate balanceATT and ATE

ParticipantsNonparticipants0.720.550.380.710.570.360.950.14No match found00.250.50.751.0Propensity scoreMatching

Suppose the government runs a job training program for job seekers. The employment rate of people who took part in the program was 72%, and that of people who did not was 55%. Can we conclude that the job training program raised the employment rate by 17 percentage points?

That is hard to say. People who took part may have been more motivated to find work, younger, or had more previous work experience than those who did not. Such differences can affect not only whether someone joins the program but also how likely they are to find a job.

So if you simply compare the employment rates of participants and nonparticipants, differences in individual characteristics that existed from the start can end up counted as part of the program effect. A classic method used to reduce this problem is propensity score matching (PSM).

PSM compares people by pairing up those who were about equally likely to take part in the program. This lets you analyze how much outcomes differ between participants and nonparticipants with similar observable characteristics.

In this article we cover the basic idea of PSM, estimating propensity scores, matching methods, diagnosing balance between groups, calculating the treatment effect, and interpreting the results.

SECTION 1

What is propensity score matching (PSM)?

Propensity score matching is a method for observational studies that makes the characteristics of the treated and untreated groups similar before comparing their outcomes.

Here, treatment does not necessarily mean medical treatment. It broadly means any intervention whose effect the researcher wants to evaluate, such as a government policy, participation in an education program, or use of a company support program. For example, participation in a job training program can be set as the treatment variable.

The problem is that the two groups were not randomly assigned. If individuals chose whether to participate, participants and nonparticipants may differ in age, education, previous experience, length of unemployment, and so on. PSM uses these observable characteristics to calculate each individual’s likelihood of participating in the program.

This likelihood of participating is called the propensity score.

ParticipantsNonparticipants0.720.550.380.710.570.360.950.14No match found00.250.50.751.0ParticipantsNonparticipantsNo matchMatching
Propensity score matching

Next, participants and nonparticipants with similar propensity scores are matched and their employment rates compared. Creating similar groups with PSM, however, does not make the study fully equivalent to a randomized experiment. Differences in factors not included in the data can still remain.

SECTION 2

What is a propensity score?

A propensity score is the probability of receiving treatment, calculated from an individual’s observed characteristics.

The formula is as follows.

e(X) = P(T = 1 | X)

Here T is whether the person participated in the program, and X is the individual’s characteristics measured before participation. For example, suppose there are two job seekers.

CharacteristicJob seeker AJob seeker B
Age2728
EducationCollege graduateCollege graduate
Previous experience3 years3 years
Length of unemployment5 months6 months
Job training participationParticipatedDid not participate
Estimated propensity score0.710.69

The two people differ in whether they actually participated, but the propensity scores calculated from their pre-participation characteristics are similar. So PSM can link these two people as a comparison pair.

Conversely, a nonparticipant with a propensity score of 0.20, who differs greatly in age, education, experience, and so on, may not be a suitable comparison for a participant with a propensity score of 0.71. Propensity scores are often estimated with logistic regression, but other statistical models or machine learning methods can also be used.

What matters, though, is not how accurately the propensity score predicts participation, but how well the relevant characteristics of the treatment and comparison groups are balanced after matching.

SECTION 3

In what order does a PSM analysis proceed?

A typical PSM analysis proceeds in the following order.

1. Define treatment and comparison groupsParticipation · employment outcome2. Estimate propensity scoresProbability of participating from pre-participation traits3. Perform matchingPair people with similar scores4. Check covariate balanceCheck differences in traits after matching5. Estimate the treatment effectDifference in employment rates and its interval
Five steps of a PSM analysis

A particularly important step in this process is checking covariate balance after matching. Similar propensity scores alone cannot guarantee that every individual characteristic has become sufficiently similar. So when evaluating the matching results, check the balance of characteristics between groups before looking at the difference in employment rates.

SECTION 4

Worked example: the employment effect of a job training program

Suppose a local government surveyed 1,000 unemployed young adults.

Of these, 400 took part in a job training program and 600 did not. The researchers recorded whether each person found a job within 6 months after the program ended.

Study data

ItemDescription
Study population1,000 unemployed young adults
Treatment group400 job training participants
Comparison group600 nonparticipants
Treatment variableJob training participation
Outcome variableEmployed within 6 months after the participation reference date
Matching variablesAge, education, previous experience, length of unemployment, area of residence, etc.

What matters here is that the individual characteristics used for matching must be measured before program participation. For example, if you include in the matching variables a certificate earned after job training or job skills improved through the program, you can end up controlling away part of the program’s effect.

You also need to define, for nonparticipants, the same reference date that allows comparison with participants. The research question is as follows.

“When comparing job seekers with similar pre-participation characteristics, how did participating in the job training program affect employment within 6 months?”

SECTION 5

What are the results without matching?

First, let’s compare the employment rates of all participants and nonparticipants.

Employment rate before matching

GroupnEmployedEmployment rate
Job training participants40028872%
Nonparticipants60033055%
Difference+17 pp

The participants’ employment rate was 17 percentage points higher than that of nonparticipants. But the participants may have had characteristics that favored employment from the start. For example, suppose the average characteristics of the two groups before matching were as follows.

CharacteristicParticipantsNonparticipants
Mean age27.231.4
Share with a college degree or higher68%46%
Mean previous experience3.1 years2.0 years
Mean length of unemployment5.2 months8.4 months
ParticipantsNonparticipantsMean age27.231.4College degree+68%46%Mean experience3.1 years2.0 yearsMean length of unemployment5.2 months8.4 months
Average characteristics of the two groups before matching

When participants and nonparticipants differ like this, it is hard to interpret the overall 17-percentage-point gap in employment rates as the effect of job training as is. So we need to compare people with similar characteristics.

SECTION 6

How is matching done?

PSM links observations from the treatment and comparison groups that have similar propensity scores.

The main matching methods are as follows.

MethodDescriptionCharacteristics
Nearest neighbor matchingSelects the unit with the closest propensity scoreIntuitive and widely used
Caliper matchingMatches only units within a set distancePrevents linking units that are too different
1:N matchingLinks several comparison units to each participantMakes additional use of comparison group information
Matching with replacementThe same comparison unit can be used more than onceUseful when suitable comparison units are scarce

For example, suppose participant A has a propensity score of 0.72. If there are nonparticipants with propensity scores of 0.71, 0.45, and 0.29, nearest neighbor matching considers the person with 0.71 first. But it may not always be appropriate to match someone simply because they are the closest.

If a participant’s propensity score is 0.95 but the closest nonparticipant’s is 0.50, the two people may not be similar enough. To reduce this problem, you can use a caliper, which limits the maximum distance allowed for a match.

Choose the matching method in light of the research goal set before the analysis and the characteristics of the data.

SECTION 7

How do you check group differences before and after matching?

One of the most important diagnostics in PSM is covariate balance.

If the treatment and comparison groups still differ greatly in age, experience, and so on after matching, the program effect may be hard to trust. A standard measure for assessing covariate balance is the standardized mean difference (SMD).

The SMD expresses a difference between groups in standardized form, so it can be compared across variables measured in different units. An absolute value below 0.1 is commonly used as a reference for good balance. The 0.1 threshold, however, does not guarantee sufficient balance in every study.

Covariate balance before and after matching

VariableSMD before matchingSMD after matching
Age0.520.06
Education0.450.04
Previous experience0.380.07
Length of unemployment0.610.08
00.10.30.50.7Cutoff 0.10.520.06Age0.450.04Education0.380.07Previousexperience0.610.08Length ofunemploymentBefore matchingAfter matching
Standardized mean difference (SMD) before and after matching

Before matching, the SMD for length of unemployment was 0.61, a large difference between groups, but after matching it fell to 0.08. The differences in age, education, and previous experience also shrank. This means matching improved the balance of the observed characteristics.

However, an improvement in covariate balance alone does not mean unobserved confounders have been removed as well.

SECTION 8

What is common support?

In propensity score matching, the propensity score distributions of participants and nonparticipants must overlap sufficiently.

This is called the common support or overlap condition. For example, if most job training participants have propensity scores of 0.80–0.95 while most nonparticipants fall between 0.10 and 0.30, it is hard to find suitable comparisons.

Conversely, if both groups’ propensity scores are spread sufficiently over a similar range, matching becomes more feasible.

Common supportNonparticipantsParticipants00.250.50.751.0ExcludedExcluded
Propensity score distributions and common support

When common support is lacking, the following problems can arise.

So in a real PSM analysis, it is good to check the propensity score distributions before and after matching with a graph. And if observations outside the common support were excluded, report how many were excluded.

This matters because it is not simple data cleaning but a choice that can change the very population for which the treatment effect is estimated.

SECTION 9

How is the treatment effect calculated after matching?

After performing PSM, compare the employment outcomes of matched participants and nonparticipants.

For example, suppose 1:1 nearest neighbor matching linked 350 participants with 350 nonparticipants. In this example matching was done without replacement, and each participant was linked to one comparison unit.

Employment rate after matching

GroupnEmployedEmployment rate
Matched participants35025272%
Matched nonparticipants35021060%
Difference+12 pp
0 pp5 pp10 pp15 pp20 ppBefore matching+17 ppAfter matching+12 pp95% CIParticipant − nonparticipant employment rate · p = .001
Difference in employment rates before and after matching

After matching, the employment rate was 72% for participants and 60% for nonparticipants. So the difference in employment rates in the matched sample is as follows.

72% − 60% = 12 pp

This means that among people matched to have similar observed characteristics, job training participants had an employment rate 12 percentage points higher. The simple difference before matching was 17 percentage points, but after matching it shrank to 12 percentage points. This change suggests that differences in the two groups’ observed characteristics may have been related to part of the employment gap before matching.

But the 5-percentage-point reduction should not be interpreted as an exact decomposition into the confounding effects of specific variables, because the analysis sample itself also changed during matching.

SECTION 10

How do ATT and ATE differ?

In PSM you need to be clear about which group the treatment effect is estimated for.

The two main ones are the ATT and the ATE.

ATT(Average Treatment Effect on the Treated)

The average effect of the treatment among those who actually received it. For example, it estimates how the program affected, on average, the people who took part in job training.

ATE(Average Treatment Effect)

The average effect if the treatment were applied to the entire target population. For example, it means the average effect that would occur if all the young adults in the study took part in the job training program.

GroupATTATE
TargetThose actually treatedThe entire target population
Main questionWhat effect did it have on those who took part?What effect would it have if applied to everyone?
Typical useEvaluating outcomes for program participantsEvaluating the effect of scaling a policy up to everyone

The 1:1 matching example above linked nonparticipants to participants, so it was an analysis designed to estimate the ATT. But if 50 of the 400 participants could not be matched and were excluded, the result cannot be guaranteed to equal the ATT for all 400 original participants.

In that case, the actual estimand may be limited to the group of participants matched within the common support. So report the observations excluded after matching along with the characteristics of the final analysis sample.

SECTION 11

How do you check confidence intervals and statistical significance in PSM?

Even if a difference in outcomes between groups appears after matching, you need to assess how uncertain that difference is.

For example, suppose the difference in employment rates in the matched sample was 12 percentage points, and applying an appropriate inference method for matching gave the following results.

MeasureResult
Difference in employment rates+12 pp
95% confidence interval+5 pp to +19 pp
p-value.001

Not calculated from an actual sample.

Because the confidence interval does not include 0, this is consistent with a statistically significant difference in a conventional two-sided test. Still, you need to be careful when calculating the uncertainty of matched data.

If you treat the two groups after matching as if they were completely independent simple samples, the standard errors can be inaccurate.

In particular, the ordinary bootstrap is not always valid for nearest neighbor matching.

So choose a variance estimation or inference method suited to the matching method and estimator you used. And even when a statistically significant result appears, the possibility of unobserved confounders remains.

SECTION 12

Points to watch in PSM analysis

PSM makes groups similar using the characteristics included in the data.

It cannot remove unobserved confounders.

If there are characteristics that affect the outcome but were not measured, such as motivation to find work or personal networks, bias can remain even after matching.

Use pretreatment variables.

Including in the matching variables that changed after program participation can remove part of the treatment effect or create new bias. So choose the variables for propensity score estimation with their causal relationships and measurement timing in mind.

Always check balance after matching.

High predictive accuracy of the propensity score model does not mean good matching quality. In real studies, check covariate balance using SMDs, propensity score distributions, and so on.

Not every participant can be matched.

Participants outside the common support may not find suitable comparisons. Excluding them can change the population to which the results can be generalized.

PSM is not always the best method.

Other methods can also be used, such as inverse probability of treatment weighting (IPTW) with propensity scores, covariate-adjusted regression, and doubly robust estimation. Which method is more appropriate depends on the research goal, the characteristics of the data, and the distribution of confounders.

And where a randomized experiment is possible, random assignment can be better for causal identification than matching on observational data.

SECTION 13

How do you report PSM results?

When reporting PSM results, it is good to present the study population, the treatment and outcome variables, the variables used to estimate the propensity score, the matching method, the sample sizes before and after matching, covariate balance, the treatment effect, the confidence interval, and so on.

Using the job training program example above, you could write it as follows.

Sample report

Propensity score matching (PSM) was conducted to analyze the relationship between job training program participation and employment within 6 months. The sample consisted of 1,000 job seekers, including 400 program participants and 600 nonparticipants. Propensity scores were estimated from pre-participation characteristics including age, education, previous experience, and length of unemployment, and 1:1 nearest neighbor matching was performed. After matching, 350 participants and 350 nonparticipants were included in the final analysis. After matching, the absolute standardized mean differences of all key covariates were below 0.1, indicating improved balance of the observed characteristics. The employment rate was 72% for matched participants and 60% for nonparticipants, a difference of 12 percentage points (95% CI [5, 19] percentage points, p = .001). This result indicates that, among groups with similar observed characteristics, job training participants had a higher employment rate. However, because unmeasured confounders may exist, caution is needed in interpreting this as a causal effect.

In real studies, it is good to also report the specification of the propensity score model, whether a caliper was applied, whether matching allowed replacement, the results of the common support check, and the method used to estimate standard errors appropriately. If possible, you can also add a sensitivity analysis for unobserved confounding to assess the robustness of the results.

✓Wrap-up

PSM compares people with similar observed characteristics.

Propensity score matching (PSM) is a method for observational data without random assignment that makes the characteristics of the treatment and comparison groups similar and then compares their outcomes.


Participants and nonparticipants in a job training program can differ in age, education, previous experience, length of unemployment, and so on. PSM uses these characteristics to estimate the probability of program participation and matches people with similar propensity scores. You can then calculate the difference in employment rates between the matched groups to analyze the relationship between program participation and the outcome.

But you need to check whether covariate balance improved sufficiently after matching, and when comparable units are scarce, the analysis population may be restricted. And because it does not remove unobserved confounders, applying PSM does not automatically prove a causal relationship.

KEY TAKEAWAY

The key to PSM is not simply comparing people with good and bad outcomes, but reducing the bias that comes from observable group differences by comparing people whose pretreatment characteristics are similar.