Matched-Pair Analysis

Last Updated on September 4, 2020

A data analyst would frequently want to know whether there is a significant difference between two sets of data, usually pre- and post- campaign, and whether that difference is likely to occur due to random fluctuations or is instead unusual determining the existence of difference.

What is Matched-Pair Analysis?

MPA involves two groups: a study group and a comparison group, that are made by individually pairing study subjects with the comparison group subjects. 

There are usually two situations in analyzing the related data:

  1. When we take repeated measurements from the same set of participants
  2. When we match item or participant according to some characteristic

In either situation, the analysis is conducted on the difference between two related values rather than individuals themselves. Since, the groups are comparable – the difference determines the statistically significant difference.

Why Matched-Pair Analysis?

The purpose of matched samples is to get better and accurate output in determining significant difference by controlling the effects of all other characteristics. Since each observation is paired, apart from the one characteristic that is being analysed, all other characteristics remain the same for both cases. For example, if we are analysing the impact of a campaign conducted by a company in the beauty industry, you can control for age-related shopping behaviour by matching respective participants. The pairs can be the same person, thing or the same group of observations.

Types of Matched-Pair Analysis:


Let us consider an e-commerce retailer who wants to determine the impact of dollar value discount on the conversion rate campaign across all states in the US.

It is important to note that, as a rule of thumb, all parametric tests require sample sizes >=30. As the sample size increases, the statistical power increases.

H0 : µD = 0 (There is no difference in the mean conversion rate before and after the implementation of campaign)

HA : µD > 0 (There is a difference in the mean conversion rate before and after the implementation of campaign)

Since, the objective is to identify whether the campaign results in significantly better conversion rates or not – the alternate hypothesis is to prove the difference is greater than 0.


Representations of null and alternative hypotheses:

  • H0   : µD = 0
  • HA1 : µD ≠ 0 (two-tailed)
  • HA2 : µD > 0 (upper-tailed)
  • HA3 : µD < 0 (lower-tailed)

There are 4 important assumptions in performing a  test as listed below:

  1. The dependant variable must be continuous
  2. Observations are independent
  3. The dependant variable must be normally distributed
  4. The dependant variable cannot have outliers

We reject the null hypothesis and state that the conversion rate is significantly better after the implementation of the campaign with 95% confidence (α=0.05) which means that the statistically significant difference in result is not by chance.

This site uses cookies to give our users the best experience on our website. By continuing on our website, you are agreeing to the use of cookies. To learn more, you can read our privacy policy.