# Introduction

In statistical hypothesis testing, it is sometimes necessary to aggregate cohorts that were not started on the same day.

For example, if you want to call 500 customers at random and see if this has an impact on their mid-term retention, you may not be able to call them all on day 1. If it takes 20 days to call all the 500 customers in the target group, you would end up with 20 small cohorts.

However, if certain conditions are met, you can aggregate the small cohorts and conduct a global analysis.

# Conditions

**For each cohort, a random sample must be drawn to create the target and control groups.**For example, if you can call 25 customers every day, you should choose 50 random customers and split them into two groups. If you want to call only a specific subset of customers, such as customers who have placed a certain number of orders, you should have the same properties for the control group. To make sure that samples were drawn at random, it is good practice to check for pre-biases between the groups.**When analyzing customer retention, your starting point will obviously be different for each cohort.**For example, if you want to analyze retention at D+30 days, Day 0 will be the day of the call for each cohort.

If these conditions are met, you can aggregate the two groups and apply a standard test.

# Example

Say we have 20 cohorts of 50 users, with a 50% split in Control and Target groups. When the experiment period is over, we can look at the D+15 days retention of each cohort.

In the graph below, we have plotted the 95% confidence interval of the daily retention for each group, up to 15 days after the call. A first visual analysis shows no obvious difference between the groupsโ retention.

Since we have respected the above conditions, we can now aggregate all cohorts, and constitute bigger Control and Target groups.

โฌ ๏ธย Then we can plot the retention up to D+15 and see if the results are more significant. In this example, they are not, as the graph suggests, which is confirmed by a proper t-test.