Propensity score matching explained
Pair similar units to cut selection bias in non-random data, then check balance and read the ATT.
Students who went to an after-school coding camp scored higher on the end-of-term assignment. So can we say this?
"The camp raised scores by 11 points!"
But only students who wanted to go signed up. If the camp drew more students who were already keen on coding and good at it, those 11 points mix the camp's effect with differences that were there all along.
So today we walk through a way to estimate effects from data that could not be randomised: propensity score matching.
What selection bias is
When people choose a treatment themselves (here, joining the camp) or get it because of some condition, the treated and untreated groups differ from the start. When that difference inflates or shrinks the estimated effect, it is called selection bias.
It is the first thing to worry about whenever you cannot randomise as in an experiment.
Today's example
- Participants — 400 students at one school (simulated data)
- Treatment — joined the after-school coding camp 84 · did not 316
- Outcome — end-of-term coding assignment score (out of 100)
- Covariates — pre-test score · weekly computer hours · interest in maths · grade
Compare plain means and campers scored 74.8 against 63.8 for the rest: an 11.0-point gap. But even the pre-test, taken before the camp, already differed: 66.2 for campers and 58.5 for the rest. They started from different lines.
What a propensity score is
A propensity score is the probability of receiving the treatment given the covariates. It is usually estimated with logistic regression — for example, "a student with this pre-test score who uses a computer this much has a 0.35 chance of going to the camp".
The advantage is that however many covariates there are, you reduce them to a single score to compare on. Pair students with similar propensity scores and their covariates tend to match as well.
How pairs are formed
- Nearest-neighbour matching — each treated student is paired with the control whose score is closest
- Caliper matching — pairs are formed only when the score gap is within a set range (the caliper)
- With or without replacement — whether one control can be used several times or only once
A common caliper is 0.2 times the standard deviation of the propensity score. The narrower it is, the more alike the pairs, but more treated students fail to find a partner and drop out.
What to check after matching
- Covariate balance — standardised mean difference (SMD) below 0.1 for every covariate
- Variance ratio — roughly between 0.5 and 2.0
- Common support — enough overlap in the two groups' propensity scores
- Match rate — how many treated students found a partner
If balance is not achieved, choose the covariates again or adjust the caliper, and get balance first before interpreting the effect.
Read the effect as the ATT
The effect estimated by matching is usually the ATT (average treatment effect on the treated). It answers not "what if every student went to the camp?" but "how much did the camp help the students who went?"
| Measure | Value |
|---|---|
| Simple difference (before matching) | 11.02 points |
| ATT (after matching) | 5.53 points · 95% CI [3.28, 7.79] |
| Mean |SMD| before → after | 0.337 → 0.035 |
The matched effect is about half of the simple difference. The other half was not the camp at all, but the gap in starting lines.
The assumption to remember
Propensity score matching can only balance the covariates you measured. If something not in the data — parental involvement or prior motivation, say — affects both joining and scores, that part remains.
So choose covariates that could affect both participation and the outcome, all measured before treatment, and where needed run a sensitivity analysis to see how robust the result is.
How to write it up
To examine the effect of the after-school coding camp on end-of-term coding assignment scores, propensity scores were estimated from pre-test score, weekly computer hours, interest in mathematics and grade, and 1:1 nearest-neighbour matching without replacement was performed with a caliper of 0.2 SD. Of the 84 participants, 82 (97.6%) were matched, and after matching the standardised mean difference of every covariate was below 0.1. The average treatment effect on the treated (ATT) was 5.53 points (SE = 1.13, 95% CI [3.28, 7.79]) and significant, t(81) = 4.89, p < .001, about half of the unmatched simple difference (11.02 points).
Example sentence · the numbers are made up
In Skari
In Skari Statistics, load your data, switch the analysis list to By field and open Economics · policy → Policy effects (causal) to find Propensity Score Matching (PSM). (Under By method, it is in Econometrics → Causal Inference.)
The analysis runs Variables → Settings → Validation → Result. At the variables step you choose the treatment (0/1), the outcome (Y) and the covariates to match on; at the settings step you set the matching method, caliper width and whether to match with replacement.

Try propensity score matching on your data
Opens Statistics at By field → Economics · policy → Policy effects (causal)
The validation step first checks that the treatment has exactly two values (0/1), that both treated and control units exist, and that nothing is missing.
Run the analysis and the results come together as a report. The ATT, its confidence interval and the t value sit at the top, and one table sets the unmatched simple difference beside the matched ATT. Common support and matching results are tabled too.

For each covariate, a table shows the standardised difference and variance ratio before and after matching, and whether it is balanced.

Plots such as the propensity score distribution and the Love plot show at a glance whether balance was achieved.

The report downloads from Export as Word, PDF or Excel.
Wrapping up
The heart of propensity score matching is pairing similar units to level the starting line, then comparing. After matching, always check balance (SMD < 0.1) and read the effect as the ATT — remember just that, and the results table becomes much easier to read.
Want the theory behind it?The Academy's propensity score matching chapter covers propensity scores, calipers, SMD and common support in depth →