A/B test: which variant works better

A/B test (split test) is an experiment in which two versions of an email, page or offer are shown to random groups and compared on one metric. In a casino, teams test offers, subject lines and games this way and pick the winner on deposits and NGR.

Yevhen Sychov

What an A/B test means

In plain words, an A/B test is an experiment: the audience is split into two random groups, one sees version A, the other sees version B, and the results are compared on one metric chosen in advance. Decisions are then made on data, not on the team's taste. It is also called A/B testing or a split test.

The method comes from science, where a new treatment is compared with a control group. In marketing it is used to compare product pages, email subject lines, sign-up screens and ad creatives. With more than two variants the test is called A/B/n.

In iGaming, an A/B test is the main way to check a CRM or product idea before rolling it out to the whole base: a subject line, an offer, a game, a channel, a send time, the sign-up and cashier steps. The winner is picked on deposits and NGR: a generous offer easily wins on responses and loses on money.

Example: the winner on opens and on money

A variant that wins on opens or clicks does not necessarily bring more money. So the main metric is chosen before launch, and in a casino it is deposits or NGR. Opens and clicks explain why a variant worked, but do not pick the winner. Two examples below: a subject line and an offer.

The variant with the better result on the main metric winsTwo subject lines, 10,000 players each: opens 18% and 21%, deposits 4.1% and 4.0%. Subject line B won on opens but brought no extra deposits: a 0.1-point gap is within chance.

Offers work the same way. Say offer A gives 50% on a deposit and offer B gives 100%, with 5,000 players in each group. B brought more deposits and €33,000 of GGR against €30,000. But its bonuses cost €11,000, against €6,000 for A. On NGR, A wins: €24,000 against €22,000.

How to run an A/B test step by step

An A/B test runs in six steps: hypothesis, metric, group size and duration, random split, launch without peeking, and the result in money. The order matters: if you pick the metric after launch, you will almost always find one on which any variant "won". Below are the steps for an offer test.

  1. Hypothesis. One change and the expected effect: free spins on a favourite slot will bring more deposits than a deposit bonus.
  2. Metric. One main metric: deposits, NGR per player or players won back from churn. Next to it, guardrail metrics: unsubscribes and complaints.
  3. Size and duration. Work out in advance how many players and how many days you need.
  4. Random split. Groups from the same segment, at the same time, by a hash of the player ID: a player always stays in one group. Exclusions and the contact policy are the same for both groups.
  5. Launch. Do not stop the test on day one, when a variant is "already winning": an early lead is often random.
  6. Result. The outcome in money after the bonus cost, recorded in the test log.

Sample size and duration

Sample size depends on two numbers: the baseline conversion and the difference you want to detect. The rarer the event and the smaller the expected effect, the more players each group needs. In small groups a half-point difference is almost always random, and no decision should be made on it.

Players per group = 16 x p x (1 minus p) / d squaredAn approximation for a 5% significance level and 80% power. Example: deposit conversion p = 5%, and we want to detect a lift of d = 1 point: 16 x 0.05 x 0.95 / 0.0001 = 7,600 players in each group.
ConversionLift to detectPlayers per group
5%plus 1 point7,600
5%plus 2 points1,900
20%plus 2 points6,400

Duration follows from size, but should be at least a week, so that weekdays, weekends and paydays are all included. For offers, also look at the 7 - 30 days after the end: did the bonus eat into the next deposits?

How to tell the result is not random

An A/B test result is not random when the gap between the groups is clearly bigger than the usual spread. For proportions, such as deposit conversion, the gap is divided by its standard error to get z. If z is above 2 in absolute value, you can be about 95% sure the gap is real, not noise.

z = (conversion B minus conversion A) / square root of (p x (1 minus p) x (1/nA + 1/nB))p is the pooled conversion of both groups, nA and nB are their sizes. For the subject lines above: on deposits z is about 0.4 (random), on opens about 5.4 (a real difference).

Money per player is noisier than proportions: a single high roller can make any variant the winner. That is why NGR is compared with the largest values capped.

A/B test vs control group

An A/B test compares variants with each other, while a control group compares a campaign with no campaign at all. These are different questions: which offer is better, and whether an offer is needed at all. A good test keeps both: variant A, variant B and a random group with no message, otherwise both variants may add nothing over silence.

Example: offer A brought back 9% of players, offer B 8%, and the control group with no message also 8%. On A/B, A wins, while B's bonuses go to players who would have come back anyway.

Common mistakes

  • Judging offers on deposits alone. A generous offer almost always brings more deposits. Make the decision on NGR minus the bonus cost, and estimate that cost in advance with the bonus cost calculator.
  • Changing several things at once. Subject line, offer and game in one variant: there is no telling what worked.
  • Stopping the test early. Stopping at the first lead produces false winners.
  • Never retesting the winner. The effect changes over time, so strong decisions get rechecked.
  • Testing small details. Button colour moves the needle less than the game in the offer or the channel of the message.

FAQ

What does A/B test mean?

It is an experiment: two versions of an email, page or offer are shown to random groups and compared on one metric. In a casino the winner is picked on deposits and NGR, not on opens.

What is A/B testing in marketing?

It is testing subject lines, creatives, pages and offers on part of the audience. The better variant then goes to everyone.

How many players do you need for an A/B test?

It depends on the conversion and the difference you need to detect. At 5% conversion and a 1-point lift, about 7,600 players in each group.

How long should an A/B test run?

Until the groups reach the required size, but for at least a week. For offers, also look at the 7 - 30 days after the end.

What is the difference between an A/B test and a control group?

An A/B test compares variants with each other, a control group compares a campaign with no campaign. A good test keeps both.

How do you know an A/B test result is not random?

Calculate significance: for proportions this is a z-test. If the absolute value of z is above 2, the difference is almost certainly not random.