2. Randomization Testing
As a part of your pre-launch testing plan, you should ensure that your project's randomization matches the selected randomization method, including arm and block weights. Â
 Unsure what randomization method your project should be using? See Randomization for a complete description on:
- Basic Randomization
- Block Randomization
- Block Randomization with StratificationÂ
 Need help setting up your project's randomization? See How to Configure Randomization and How to Configure StrataÂ
Â
 Now that you have set up your project's randomization, you are ready to test!Â
- Depending on the complexity of your randomization scheme, you should plan to enroll at least 15 test participants in a row and record the outcomes.  If your study has multiple strata, arms, and weights, plan to enroll at least 30.  Why? This will allow you to detect any discrepancies in the arm allocations. Â
Let's look at an example using basic randomization!Â
- Imagine you have a 3-arm study (control, incentive, social arms) using basic randomization. Â The arm weights are as follows:
- Control- 0
- Social- 1
- Incentive- 2
- What should you expect when you enroll and randomize 15 test participants?
- Control = 0 participants
- Social ~ 5 participants
- Incentive ~ 10 participantsÂ
- Once you determine how the participants should be allocated, you are ready to test!Â
- Create the participant
- Complete all necessary enrollment steps
- Â Tip! Have a lot of enrollment steps that are slowing down the randomization testing process?? Test on staging instead! Put in a JIRA ticket to have production copied to staging and then delete all enrollment steps (Be careful not to delete any steps that are required for arm assignment, strata assignment, etc.!) so that your enrollment looks like this,Â
- Â Tip! Have a lot of enrollment steps that are slowing down the randomization testing process?? Test on staging instead! Put in a JIRA ticket to have production copied to staging and then delete all enrollment steps (Be careful not to delete any steps that are required for arm assignment, strata assignment, etc.!) so that your enrollment looks like this,Â
- View participant's arm assignment in their profile.
- For each participant's assignment, you should track this in either a Google sheet or Excel doc. Â This will help you to view the randomization pattern.Â
- Repeat for remaining participants.
- We predicted that the control arm would have 0 participants, the social arm would have ~5 participants, and the incentive arm would have ~10. Â Based on our testing, we can conclude that the randomization is working as expected!Â
- Â Notice any inconsistencies in the arm allocation? Put in a JIRA Help ticket including:
- Randomization Method
- Arm weight
- Screen shot or link to testingÂ
Let's look an example using block randomization!Â
-  Imagine you have a 3-arm study (control, incentive, social arms) using block randomization. Â
- The arm weights are as follows:
- Control- 1
- Social- 1
- Incentive- 1
- The block weights are as follows: 3
- The arm weights are as follows:
- What should you expect when you enroll and randomize 15 test participants?
- Control ~ 5 participants
- Social ~ 5 participants
- Incentive ~ 5 participantsÂ
- Â Note! Since there is a block size of 3, you should expect the participants to be randomized in 1 of the 3 arms in blocks of 3. Â What does this mean? At the start of the block, a test participant is randomized to control. The next participant in the block can only be randomized to incentive or social since control was already 'taken'.
- Once you determine how the participants should be allocated, you are ready to test!Â
- Create the participant
- Complete all necessary enrollment steps
- Â Tip! Have a lot of enrollment steps that are slowing down the randomization testing process?? Test on staging instead! Put in a JIRA ticket to have production copied to staging and then delete all enrollment steps (Be careful not to delete any steps that are required for arm assignment, strata assignment, etc.!) so that your enrollment looks like this,Â
- Â Tip! Have a lot of enrollment steps that are slowing down the randomization testing process?? Test on staging instead! Put in a JIRA ticket to have production copied to staging and then delete all enrollment steps (Be careful not to delete any steps that are required for arm assignment, strata assignment, etc.!) so that your enrollment looks like this,Â
- View participant's arm assignment in their profile.
- For each participant's assignment, you should track this in either a Google sheet or Excel doc. Â This will help you to view the randomization pattern.Â
- Â Tip! When testing block randomization, use shaded colors to indicate the different block sizes. Â In this example, we want to alternate between 2 shades of orange every 3 participants. Â Again, this will help you to detect patterns.Â
- Â Tip! When testing block randomization, use shaded colors to indicate the different block sizes. Â In this example, we want to alternate between 2 shades of orange every 3 participants. Â Again, this will help you to detect patterns.Â
- Repeat for remaining participants.
- We predicted that all arms would have exactly 5 participants and for each 3-block, there would be one participant in each arm (as indicated by the green and purple boxes above). Â Based on our testing, we can conclude that the randomization is working as expected!Â
- Â Notice any inconsistencies in the arm allocation? Put in a JIRA Help ticket including:
- Randomization Method
- Arm weight
- Screen shot or link to testingÂ