Randomization

Randomization consists of assigning units (users, sessions) to control or variant by random draw. On average, it balances the known and unknown characteristics of the groups, which makes it possible to attribute the observed difference to the tested change. The assignment must be stable for a given unit.

Example

groupe = 'B' if hash(user_id + sel) % 100 < 50 else 'A'

Related concepts

The whole glossary