Sample Size Calculator for A/B Tests of AI Recommendations

    Required sample size for an A/B test, calculated from monthly active users (MAU), coefficient of variation, expected uplift and significance level.

    Understanding the Metrics and the Method

    MAUCV (SD/Mean)Uplift (rel.)n per groupn totalDays to sig.Duration (mo)
    15001+0.5%627,2001,254,40025088836.27
    15001+1%156,800313,6006272209.07
    15001+2%39,20078,400156852.27
    15001+3%17,42334,84569723.23
    15001+5%6,27212,5442518.36
    15001+7%3,2006,4001284.27
    15001+10%1,5683,136632.09
    15001+15%6971,394280.93
    15001+20%392784160.52
    15001.5+0.5%1,411,2002,822,400564481881.6
    15001.5+1%352,800705,60014112470.4
    15001.5+2%88,200176,4003528117.6
    15001.5+3%39,20078,400156852.27
    15001.5+5%14,11228,22456518.82
    15001.5+7%7,20014,4002889.6
    15001.5+10%3,5287,0561424.7
    15001.5+15%1,5683,136632.09
    15001.5+20%8821,764361.18
    15002+0.5%2,508,8005,017,6001003523345.07
    15002+1%627,2001,254,40025088836.27
    15002+2%156,800313,6006272209.07
    15002+3%69,689139,378278892.92
    15002+5%25,08850,176100433.45
    15002+7%12,80025,60051217.07
    15002+10%6,27212,5442518.36
    15002+15%2,7885,5761123.72
    15002+20%1,5683,136632.09
    15002.5+0.5%3,920,0007,840,0001568005226.67
    15002.5+1%980,0001,960,000392001306.67
    15002.5+2%245,000490,0009800326.67
    15002.5+3%108,889217,7784356145.19
    15002.5+5%39,20078,400156852.27
    15002.5+7%20,00040,00080026.67
    15002.5+10%9,80019,60039213.07
    15002.5+15%4,3568,7121755.81
    15002.5+20%2,4504,900983.27
    20001+0.5%627,2001,254,40018816627.2
    20001+1%156,800313,6004704156.8
    20001+2%39,20078,400117639.2
    20001+3%17,42334,84552317.42
    20001+5%6,27212,5441896.27
    20001+7%3,2006,400963.2
    20001+10%1,5683,136481.57
    20001+15%6971,394210.7
    20001+20%392784120.39
    20001.5+0.5%1,411,2002,822,400423361411.2
    20001.5+1%352,800705,60010584352.8
    20001.5+2%88,200176,400264688.2
    20001.5+3%39,20078,400117639.2
    20001.5+5%14,11228,22442414.11
    20001.5+7%7,20014,4002167.2
    20001.5+10%3,5287,0561063.53
    20001.5+15%1,5683,136481.57
    20001.5+20%8821,764270.88
    20002+0.5%2,508,8005,017,600752642508.8
    20002+1%627,2001,254,40018816627.2
    20002+2%156,800313,6004704156.8
    20002+3%69,689139,378209169.69
    20002+5%25,08850,17675325.09
    20002+7%12,80025,60038412.8
    20002+10%6,27212,5441896.27
    20002+15%2,7885,576842.79
    20002+20%1,5683,136481.57
    20002.5+0.5%3,920,0007,840,0001176003920
    20002.5+1%980,0001,960,00029400980
    20002.5+2%245,000490,0007350245
    20002.5+3%108,889217,7783267108.89
    20002.5+5%39,20078,400117639.2
    20002.5+7%20,00040,00060020
    20002.5+10%9,80019,6002949.8
    20002.5+15%4,3568,7121314.36
    20002.5+20%2,4504,900742.45
    30001+0.5%627,2001,254,40012544418.13
    30001+1%156,800313,6003136104.53
    30001+2%39,20078,40078426.13
    30001+3%17,42334,84534911.62
    30001+5%6,27212,5441264.18
    30001+7%3,2006,400642.13
    30001+10%1,5683,136321.05
    30001+15%6971,394140.46
    30001+20%39278480.26
    30001.5+0.5%1,411,2002,822,40028224940.8
    30001.5+1%352,800705,6007056235.2
    30001.5+2%88,200176,400176458.8
    30001.5+3%39,20078,40078426.13
    30001.5+5%14,11228,2242839.41
    30001.5+7%7,20014,4001444.8
    30001.5+10%3,5287,056712.35
    30001.5+15%1,5683,136321.05
    30001.5+20%8821,764180.59
    30002+0.5%2,508,8005,017,600501761672.53
    30002+1%627,2001,254,40012544418.13
    30002+2%156,800313,6003136104.53
    30002+3%69,689139,378139446.46
    30002+5%25,08850,17650216.73
    30002+7%12,80025,6002568.53
    30002+10%6,27212,5441264.18
    30002+15%2,7885,576561.86
    30002+20%1,5683,136321.05
    30002.5+0.5%3,920,0007,840,000784002613.33
    30002.5+1%980,0001,960,00019600653.33
    30002.5+2%245,000490,0004900163.33
    30002.5+3%108,889217,778217872.59
    30002.5+5%39,20078,40078426.13
    30002.5+7%20,00040,00040013.33
    30002.5+10%9,80019,6001966.53
    30002.5+15%4,3568,712882.9
    30002.5+20%2,4504,900491.63
    40001+0.5%627,2001,254,4009408313.6
    40001+1%156,800313,600235278.4
    40001+2%39,20078,40058819.6
    40001+3%17,42334,8452628.71
    40001+5%6,27212,544953.14
    40001+7%3,2006,400481.6
    40001+10%1,5683,136240.78
    40001+15%6971,394110.35
    40001+20%39278460.2
    40001.5+0.5%1,411,2002,822,40021168705.6
    40001.5+1%352,800705,6005292176.4
    40001.5+2%88,200176,400132344.1
    40001.5+3%39,20078,40058819.6
    40001.5+5%14,11228,2242127.06
    40001.5+7%7,20014,4001083.6
    40001.5+10%3,5287,056531.76
    40001.5+15%1,5683,136240.78
    40001.5+20%8821,764140.44
    40002+0.5%2,508,8005,017,600376321254.4
    40002+1%627,2001,254,4009408313.6
    40002+2%156,800313,600235278.4
    40002+3%69,689139,378104634.84
    40002+5%25,08850,17637712.54
    40002+7%12,80025,6001926.4
    40002+10%6,27212,544953.14
    40002+15%2,7885,576421.39
    40002+20%1,5683,136240.78
    40002.5+0.5%3,920,0007,840,000588001960
    40002.5+1%980,0001,960,00014700490
    40002.5+2%245,000490,0003675122.5
    40002.5+3%108,889217,778163454.44
    40002.5+5%39,20078,40058819.6
    40002.5+7%20,00040,00030010
    40002.5+10%9,80019,6001474.9
    40002.5+15%4,3568,712662.18
    40002.5+20%2,4504,900371.23
    50001+0.5%627,2001,254,4007527250.88
    50001+1%156,800313,600188262.72
    50001+2%39,20078,40047115.68
    50001+3%17,42334,8452106.97
    50001+5%6,27212,544762.51
    50001+7%3,2006,400391.28
    50001+10%1,5683,136190.63
    50001+15%6971,39490.28
    50001+20%39278450.16
    50001.5+0.5%1,411,2002,822,40016935564.48
    50001.5+1%352,800705,6004234141.12
    50001.5+2%88,200176,400105935.28
    50001.5+3%39,20078,40047115.68
    50001.5+5%14,11228,2241705.64
    50001.5+7%7,20014,400872.88
    50001.5+10%3,5287,056431.41
    50001.5+15%1,5683,136190.63
    50001.5+20%8821,764110.35
    50002+0.5%2,508,8005,017,600301061003.52
    50002+1%627,2001,254,4007527250.88
    50002+2%156,800313,600188262.72
    50002+3%69,689139,37883727.88
    50002+5%25,08850,17630210.04
    50002+7%12,80025,6001545.12
    50002+10%6,27212,544762.51
    50002+15%2,7885,576341.12
    50002+20%1,5683,136190.63
    50002.5+0.5%3,920,0007,840,000470401568
    50002.5+1%980,0001,960,00011760392
    50002.5+2%245,000490,000294098
    50002.5+3%108,889217,778130743.56
    50002.5+5%39,20078,40047115.68
    50002.5+7%20,00040,0002408
    50002.5+10%9,80019,6001183.92
    50002.5+15%4,3568,712531.74
    50002.5+20%2,4504,900300.98
    60001+0.5%627,2001,254,4006272209.07
    60001+1%156,800313,600156852.27
    60001+2%39,20078,40039213.07
    60001+3%17,42334,8451755.81
    60001+5%6,27212,544632.09
    60001+7%3,2006,400321.07
    60001+10%1,5683,136160.52
    60001+15%6971,39470.23
    60001+20%39278440.13
    60001.5+0.5%1,411,2002,822,40014112470.4
    60001.5+1%352,800705,6003528117.6
    60001.5+2%88,200176,40088229.4
    60001.5+3%39,20078,40039213.07
    60001.5+5%14,11228,2241424.7
    60001.5+7%7,20014,400722.4
    60001.5+10%3,5287,056361.18
    60001.5+15%1,5683,136160.52
    60001.5+20%8821,76490.29
    60002+0.5%2,508,8005,017,60025088836.27
    60002+1%627,2001,254,4006272209.07
    60002+2%156,800313,600156852.27
    60002+3%69,689139,37869723.23
    60002+5%25,08850,1762518.36
    60002+7%12,80025,6001284.27
    60002+10%6,27212,544632.09
    60002+15%2,7885,576280.93
    60002+20%1,5683,136160.52
    60002.5+0.5%3,920,0007,840,000392001306.67
    60002.5+1%980,0001,960,0009800326.67
    60002.5+2%245,000490,000245081.67
    60002.5+3%108,889217,778108936.3
    60002.5+5%39,20078,40039213.07
    60002.5+7%20,00040,0002006.67
    60002.5+10%9,80019,600983.27
    60002.5+15%4,3568,712441.45
    60002.5+20%2,4504,900250.82
    80001+0.5%627,2001,254,4004704156.8
    80001+1%156,800313,600117639.2
    80001+2%39,20078,4002949.8
    80001+3%17,42334,8451314.36
    80001+5%6,27212,544481.57
    80001+7%3,2006,400240.8
    80001+10%1,5683,136120.39
    80001+15%6971,39460.17
    80001+20%39278430.1
    80001.5+0.5%1,411,2002,822,40010584352.8
    80001.5+1%352,800705,600264688.2
    80001.5+2%88,200176,40066222.05
    80001.5+3%39,20078,4002949.8
    80001.5+5%14,11228,2241063.53
    80001.5+7%7,20014,400541.8
    80001.5+10%3,5287,056270.88
    80001.5+15%1,5683,136120.39
    80001.5+20%8821,76470.22
    80002+0.5%2,508,8005,017,60018816627.2
    80002+1%627,2001,254,4004704156.8
    80002+2%156,800313,600117639.2
    80002+3%69,689139,37852317.42
    80002+5%25,08850,1761896.27
    80002+7%12,80025,600963.2
    80002+10%6,27212,544481.57
    80002+15%2,7885,576210.7
    80002+20%1,5683,136120.39
    80002.5+0.5%3,920,0007,840,00029400980
    80002.5+1%980,0001,960,0007350245
    80002.5+2%245,000490,000183861.25
    80002.5+3%108,889217,77881727.22
    80002.5+5%39,20078,4002949.8
    80002.5+7%20,00040,0001505
    80002.5+10%9,80019,600742.45
    80002.5+15%4,3568,712331.09
    80002.5+20%2,4504,900190.61
    100001+0.5%627,2001,254,4003764125.44
    100001+1%156,800313,60094131.36
    100001+2%39,20078,4002367.84
    100001+3%17,42334,8451053.48
    100001+5%6,27212,544381.25
    100001+7%3,2006,400200.64
    100001+10%1,5683,136100.31
    100001+15%6971,39450.14
    100001+20%39278430.08
    100001.5+0.5%1,411,2002,822,4008468282.24
    100001.5+1%352,800705,600211770.56
    100001.5+2%88,200176,40053017.64
    100001.5+3%39,20078,4002367.84
    100001.5+5%14,11228,224852.82
    100001.5+7%7,20014,400441.44
    100001.5+10%3,5287,056220.71
    100001.5+15%1,5683,136100.31
    100001.5+20%8821,76460.18
    100002+0.5%2,508,8005,017,60015053501.76
    100002+1%627,2001,254,4003764125.44
    100002+2%156,800313,60094131.36
    100002+3%69,689139,37841913.94
    100002+5%25,08850,1761515.02
    100002+7%12,80025,600772.56
    100002+10%6,27212,544381.25
    100002+15%2,7885,576170.56
    100002+20%1,5683,136100.31
    100002.5+0.5%3,920,0007,840,00023520784
    100002.5+1%980,0001,960,0005880196
    100002.5+2%245,000490,000147049
    100002.5+3%108,889217,77865421.78
    100002.5+5%39,20078,4002367.84
    100002.5+7%20,00040,0001204
    100002.5+10%9,80019,600591.96
    100002.5+15%4,3568,712270.87
    100002.5+20%2,4504,900150.49
    120001+0.5%627,2001,254,4003136104.53
    120001+1%156,800313,60078426.13
    120001+2%39,20078,4001966.53
    120001+3%17,42334,845882.9
    120001+5%6,27212,544321.05
    120001+7%3,2006,400160.53
    120001+10%1,5683,13680.26
    120001+15%6971,39440.12
    120001+20%39278420.07
    120001.5+0.5%1,411,2002,822,4007056235.2
    120001.5+1%352,800705,600176458.8
    120001.5+2%88,200176,40044114.7
    120001.5+3%39,20078,4001966.53
    120001.5+5%14,11228,224712.35
    120001.5+7%7,20014,400361.2
    120001.5+10%3,5287,056180.59
    120001.5+15%1,5683,13680.26
    120001.5+20%8821,76450.15
    120002+0.5%2,508,8005,017,60012544418.13
    120002+1%627,2001,254,4003136104.53
    120002+2%156,800313,60078426.13
    120002+3%69,689139,37834911.61
    120002+5%25,08850,1761264.18
    120002+7%12,80025,600642.13
    120002+10%6,27212,544321.05
    120002+15%2,7885,576140.46
    120002+20%1,5683,13680.26
    120002.5+0.5%3,920,0007,840,00019600653.33
    120002.5+1%980,0001,960,0004900163.33
    120002.5+2%245,000490,000122540.83
    120002.5+3%108,889217,77854518.15
    120002.5+5%39,20078,4001966.53
    120002.5+7%20,00040,0001003.33
    120002.5+10%9,80019,600491.63
    120002.5+15%4,3568,712220.73
    120002.5+20%2,4504,900130.41
    150001+0.5%627,2001,254,400250983.63
    150001+1%156,800313,60062820.91
    150001+2%39,20078,4001575.23
    150001+3%17,42334,845702.32
    150001+5%6,27212,544260.84
    150001+7%3,2006,400130.43
    150001+10%1,5683,13670.21
    150001+15%6971,39430.09
    150001+20%39278420.05
    150001.5+0.5%1,411,2002,822,4005645188.16
    150001.5+1%352,800705,600141247.04
    150001.5+2%88,200176,40035311.76
    150001.5+3%39,20078,4001575.23
    150001.5+5%14,11228,224571.88
    150001.5+7%7,20014,400290.96
    150001.5+10%3,5287,056150.47
    150001.5+15%1,5683,13670.21
    150001.5+20%8821,76440.12
    150002+0.5%2,508,8005,017,60010036334.51
    150002+1%627,2001,254,400250983.63
    150002+2%156,800313,60062820.91
    150002+3%69,689139,3782799.29
    150002+5%25,08850,1761013.35
    150002+7%12,80025,600521.71
    150002+10%6,27212,544260.84
    150002+15%2,7885,576120.37
    150002+20%1,5683,13670.21
    150002.5+0.5%3,920,0007,840,00015680522.67
    150002.5+1%980,0001,960,0003920130.67
    150002.5+2%245,000490,00098032.67
    150002.5+3%108,889217,77843614.52
    150002.5+5%39,20078,4001575.23
    150002.5+7%20,00040,000802.67
    150002.5+10%9,80019,600401.31
    150002.5+15%4,3568,712180.58
    150002.5+20%2,4504,900100.33
    200001+0.5%627,2001,254,400188262.72
    200001+1%156,800313,60047115.68
    200001+2%39,20078,4001183.92
    200001+3%17,42334,845531.74
    200001+5%6,27212,544190.63
    200001+7%3,2006,400100.32
    200001+10%1,5683,13650.16
    200001+15%6971,39430.07
    200001+20%39278420.04
    200001.5+0.5%1,411,2002,822,4004234141.12
    200001.5+1%352,800705,600105935.28
    200001.5+2%88,200176,4002658.82
    200001.5+3%39,20078,4001183.92
    200001.5+5%14,11228,224431.41
    200001.5+7%7,20014,400220.72
    200001.5+10%3,5287,056110.35
    200001.5+15%1,5683,13650.16
    200001.5+20%8821,76430.09
    200002+0.5%2,508,8005,017,6007527250.88
    200002+1%627,2001,254,400188262.72
    200002+2%156,800313,60047115.68
    200002+3%69,689139,3782106.97
    200002+5%25,08850,176762.51
    200002+7%12,80025,600391.28
    200002+10%6,27212,544190.63
    200002+15%2,7885,57690.28
    200002+20%1,5683,13650.16
    200002.5+0.5%3,920,0007,840,00011760392
    200002.5+1%980,0001,960,000294098
    200002.5+2%245,000490,00073524.5
    200002.5+3%108,889217,77832710.89
    200002.5+5%39,20078,4001183.92
    200002.5+7%20,00040,000602
    200002.5+10%9,80019,600300.98
    200002.5+15%4,3568,712140.44
    200002.5+20%2,4504,90080.25
    250001+0.5%627,2001,254,400150650.18
    250001+1%156,800313,60037712.54
    250001+2%39,20078,400953.14
    250001+3%17,42334,845421.39
    250001+5%6,27212,544160.5
    250001+7%3,2006,40080.26
    250001+10%1,5683,13640.13
    250001+15%6971,39420.06
    250001+20%39278410.03
    250001.5+0.5%1,411,2002,822,4003387112.9
    250001.5+1%352,800705,60084728.22
    250001.5+2%88,200176,4002127.06
    250001.5+3%39,20078,400953.14
    250001.5+5%14,11228,224341.13
    250001.5+7%7,20014,400180.58
    250001.5+10%3,5287,05690.28
    250001.5+15%1,5683,13640.13
    250001.5+20%8821,76430.07
    250002+0.5%2,508,8005,017,6006022200.7
    250002+1%627,2001,254,400150650.18
    250002+2%156,800313,60037712.54
    250002+3%69,689139,3781685.58
    250002+5%25,08850,176612.01
    250002+7%12,80025,600311.02
    250002+10%6,27212,544160.5
    250002+15%2,7885,57670.22
    250002+20%1,5683,13640.13
    250002.5+0.5%3,920,0007,840,0009408313.6
    250002.5+1%980,0001,960,000235278.4
    250002.5+2%245,000490,00058819.6
    250002.5+3%108,889217,7782628.71
    250002.5+5%39,20078,400953.14
    250002.5+7%20,00040,000481.6
    250002.5+10%9,80019,600240.78
    250002.5+15%4,3568,712110.35
    250002.5+20%2,4504,90060.2
    300001+0.5%627,2001,254,400125541.81
    300001+1%156,800313,60031410.45
    300001+2%39,20078,400792.61
    300001+3%17,42334,845351.16
    300001+5%6,27212,544130.42
    300001+7%3,2006,40070.21
    300001+10%1,5683,13640.1
    300001+15%6971,39420.05
    300001+20%39278410.03
    300001.5+0.5%1,411,2002,822,400282394.08
    300001.5+1%352,800705,60070623.52
    300001.5+2%88,200176,4001775.88
    300001.5+3%39,20078,400792.61
    300001.5+5%14,11228,224290.94
    300001.5+7%7,20014,400150.48
    300001.5+10%3,5287,05680.24
    300001.5+15%1,5683,13640.1
    300001.5+20%8821,76420.06
    300002+0.5%2,508,8005,017,6005018167.25
    300002+1%627,2001,254,400125541.81
    300002+2%156,800313,60031410.45
    300002+3%69,689139,3781404.65
    300002+5%25,08850,176511.67
    300002+7%12,80025,600260.85
    300002+10%6,27212,544130.42
    300002+15%2,7885,57660.19
    300002+20%1,5683,13640.1
    300002.5+0.5%3,920,0007,840,0007840261.33
    300002.5+1%980,0001,960,000196065.33
    300002.5+2%245,000490,00049016.33
    300002.5+3%108,889217,7782187.26
    300002.5+5%39,20078,400792.61
    300002.5+7%20,00040,000401.33
    300002.5+10%9,80019,600200.65
    300002.5+15%4,3568,71290.29
    300002.5+20%2,4504,90050.16

    AI Recommendations A/B Test Example

    Goal

    Verify that AI recommendations increase average GGR per player compared with the standard game listing.

    Test Design, Step by Step

    1. Hypothesis

    AI recommendations will increase average GGR per player by +20% compared with the standard game list.

    2. Metrics

    • Primary: Primary: GGR per player over 7 days after the first visit during the test.
    • Secondary: Secondary: deposit conversion, average session length, number of games played.

    3. Randomization and Groups

    • 50/50 split at user level (not session).
    • Control: Control: standard game listing.
    • Test: Test: AI-powered game recommendations.
    • Each user stays in the same group until the experiment ends.

    4. Sample Size and Duration

    Using the formula from Evan Miller's calculator (95%/80%):

    n_per group = 2(z₁₋α/ā‚‚ + z₁₋β)² Ā· (CV/Uplift)²

    For instance: MAU=8000, CV=1, Uplift=+20% → n/group = 392, n total = 784.

    Recruitment duration (at 50/50 split):

    Duration (mo) = 2 Ā· n_per group / MAU ā‰ˆ 0.1 mo ā‰ˆ 3 days.

    Observation window for the primary metric: 7 days.

    Total calendar time: ~10 days (3 recruitment + 7 observation).

    5. Thresholds and Success Criteria

    • Significance level α=0.05, power 80% (β=0.20).
    • Success criterion locked before launch: uplift ≄ +20% on the primary metric and p-value < 0.05.

    6. Monitoring During Test

    • Daily: user inflow by group, core metrics, deviation checks.
    • Without a sequential design, do not make decisions based on interim p-values.

    7. Analysis Upon Completion

    • Check distribution; for heavy tails, use bootstrap confidence intervals.
    • Two-sample t-test for average GGR per player over 7 days.
    • Report: uplift estimate, 95% CI, p-value, impact on secondary metrics.
    • Decision: if uplift ≄ +20% and p < 0.05, roll out.

    Important Notes

    • CUPED/covariates: use pre-period GGR and activity to reduce variance (this lowers CV and the required sample size).
    • A/A-test: verify correct randomization and tracking.
    • Fixed protocol: do not change the split, rules, observation windows or promo activity during the test.

    Example Summary (table row)

    ParameterIn Practice
    MAU8,000 players
    Groups392 per group (784 total)
    Target uplift+20% GGR
    Timeline plan~3 days recruitment + 7 days observation
    Calendar timeā‰ˆ 10 days to result