-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
394 lines (393 loc) · 21.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>AB Testing Calculators</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark mb-3">
<div class="container-fluid">
<a href="#" class="navbar-brand mr-3">AB Testing Calculators</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<div class="navbar-nav">
<a href="#" class="nav-item nav-link active">Sample Size</a>
<a href="#" class="nav-item nav-link">Test Duration</a>
<a href="#" class="nav-item nav-link">Sanity Checks</a>
<a href="#" class="nav-item nav-link">Statistical Significance</a>
</div>
<div class="navbar-nav ml-auto">
<a href="#" class="nav-item nav-link">Register</a>
<a href="#" class="nav-item nav-link">Login</a>
</div>
</div>
</div>
</nav>
<div id="containerter" class="container">
<div class="row">
<div id="input-1" class="col-xl-4 card-margins">
<div class="card-left-blue">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Sample Size</h6>
</div>
<div class="form-group card-item-top">
<label for="base-cr">Baseline Conversion Rate</label>
<div>
<input type="text" id="base-cr" class="form-control" value="20">
</div>
</div>
<div class="form-group card-item"">
<label for="min-effect">MDE</label>
<div>
<input type="text" id="min-effect" class="form-control" value="5">
</div>
</div>
<div class="form-group card-item"">
<label for="power-value">Statistical power 1−β:</label>
<form class="d-flex">
<input type="range" class="custom-range" min="60" max="95" step="5" value="80" id="power-value">
<p id="power-slider">80%</p>
</form>
</div>
<div class="form-group card-item">
<p>Significance level α:</p>
<form>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="significance-level" id="alpha90" value="0.1">
<label class="form-check-label" for="alpha90">
90%
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="significance-level" id="alpha95" value="0.05" checked>
<label class="form-check-label" for="alpha95">
95%
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="significance-level" id="alpha99" value="0.01">
<label class="form-check-label" for="alpha99">
99%
</label>
</div>
</form>
</div>
</div>
</div>
<div id="output-1" class="col-xl-8 text-center card-margins">
<div class="card-right">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Sample Size</h6>
</div>
<div>
<p>The Sample size should be:</p>
</div>
<div>
<p id="sample-size">1030</p>
</div>
<div>
<p>per group</p>
</div>
</div>
</div>
</div>
<div class="row">
<div id="input-2" class="col-xl-4 card-margins">
<div class="card-left-green">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Test Duration</h6>
</div>
<div class="form-group card-item-top">
<label for="total-traffic">Minimum traffic required</label>
<div>
<input type="text" id="total-traffic" class="form-control" value="2060">
</div>
<button id="button-copy-traffic" type="button" class="btn btn-primary">Copy from prev. calculator</button>
</div>
<div class="form-group card-item">
<label for="daily-traffic">Average Daily Traffic</label>
<div>
<input type="text" id="daily-traffic" class="form-control" value="250">
</div>
</div>
<div class="form-group card-item">
<label for="split-value">Traffic split:</label>
<form class="d-flex">
<input type="range" class="custom-range" min="5" max="100" step="5" id="split-value" value="50">
<p id="split-slider">50%</p>
</form>
</div>
</div>
</div>
<div id="output-2" class="col-xl-8 text-center card-margins">
<div class="card-right">
<div class="row">
<div class="col-xl-6">
<p>The test could run for:</p>
<div>
<p id="total-days-all">17</p>
</div>
</div>
<div class="col-xl-6">
<p>with a split of:</p>
<div>
<p id="split-result">50%</p>
</div>
</div>
<div class="col-xl-12">
<p>That translates into a total of:</p>
</div>
<div class="col-xl-4">
<p>Months (28 days):</p>
<div>
<p id="total-months">0</p>
</div>
</div>
<div class="col-xl-4">
<p>Weeks:</p>
<div>
<p id="total-weeks">2</p>
</div>
</div>
<div class="col-xl-4">
<p>Days:</p>
<div>
<p id="total-days">3</p>
</div>
</div>
<div class="col-xl-4">
<p>Total practical traffic:</p>
<div>
<p id="practical-traffic">2125</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div id="input-3" class="col-xl-4 card-margins">
<div class="card-left-lightBlue">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Sanity Checks</h6>
</div>
<div class="row card-item-top">
<div class="col-xl-12">
<div class="form-group">
<p>Significance level α:</p>
<form>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="significance-level-sanity" id="alpha90" value="0.1">
<label class="form-check-label" for="alpha90">
90%
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="significance-level-sanity" id="alpha95" value="0.05" checked>
<label class="form-check-label" for="alpha95">
95%
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="significance-level-sanity" id="alpha99" value="0.01">
<label class="form-check-label" for="alpha99">
99%
</label>
</div>
</form>
</div>
</div>
</div>
<div id="test" class="row">
<div id="accordion" class="myaccordion">
<div class="card">
<div class="card-header" id="headingOne">
<h5 class="mb-0">
<button id="button1" class="btn btn-link" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Check count metrics:
</button>
</h5>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordion">
<div class="card-body">
<div class="row">
<div class="col-xl-6">
<div class="form-group">
<label for="countControl">Control group traffic:</label>
<div>
<input type="text" id="countControl" class="form-control" value="345543">
</div>
</div>
</div>
<div class="col-xl-6">
<div class="form-group">
<label for="countExp">Experiment group traffic:</label>
<div>
<input type="text" id="countExp" class="form-control" value="344660">
</div>
</div>
</div>
<div class="col-xl-12 form-group">
<label for="split-value-checker">Traffic split</label>
<form class="d-flex">
<input type="range" class="custom-range" min="5" max="100" step="5" id="split-value-checker" value="50">
<p id="split-slider-checker">50%</p>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingTwo">
<h5 class="mb-0">
<button id="button2" class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Check probability metrics:
</button>
</h5>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
<div class="card-body">
<div class="row">
<div class="col-xl-6">
<div class="form-group">
<label for="probControlPageviews">Control group pageviews:</label>
<div>
<input type="text" id="probControlPageviews" class="form-control" value="1000">
</div>
</div>
</div>
<div class="col-xl-6">
<div class="form-group">
<label for="probControlTraffic">Control group traffic:</label>
<div>
<input type="text" id="probControlTraffic" class="form-control" value="1000">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-6">
<div class="form-group">
<label for="probExpPageviews">Experiment group pageviews:</label>
<div>
<input type="text" id="probExpPageviews" class="form-control" value="1000">
</div>
</div>
</div>
<div class="col-xl-6">
<div class="form-group">
<label for="probExpTraffic">Experiment group traffic:</label>
<div>
<input type="text" id="probExpTraffic" class="form-control" value="1000">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="output-3" class="col-xl-8 text-center card-margins">
<div class="card-right">
<div class="row">
<div class="col-xl-12 text-center">
<p id="output-3-results">The difference is correct</p>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div id="input-4" class="col-xl-4 card-margins">
<div class="card-left-purple">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Statistical Significance</h6>
</div>
<div class="row">
<div class="col-xl-6">
<div class="form-group card-item-top">
<label for="testControlTraffic">Control group traffic:</label>
<div>
<input type="text" id="testControlTraffic" class="form-control" value="17293">
</div>
</div>
</div>
<div class="col-xl-6">
<div class="form-group card-item-top">
<label for="testControlConversions">Control group conversions:</label>
<div>
<input type="text" id="testControlConversions" class="form-control" value="3785">
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xl-6">
<div class="form-group card-item">
<label for="testExpTraffic">Experiment group traffic:</label>
<div>
<input type="text" id="testExpTraffic" class="form-control" value="17260">
</div>
</div>
</div>
<div class="col-xl-6">
<div class="form-group card-item">
<label for="testExpConversions">Experiment group conversions:</label>
<div>
<input type="text" id="testExpConversions" class="form-control" value="3423">
</div>
</div>
</div>
</div>
<div class="form-group card-item">
<p>Significance level α:</p>
<form>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="test-significance-level" id="alpha90" value="0.1">
<label class="form-check-label" for="alpha90">
90%
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="test-significance-level" id="alpha95" value="0.05" checked>
<label class="form-check-label" for="alpha95">
95%
</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="test-significance-level" id="alpha99" value="0.01">
<label class="form-check-label" for="alpha99">
99%
</label>
</div>
</form>
</div>
</div>
</div>
<div id="output-4" class="col-xl-8 text-center card-margins">
<div class="card-right">
<div class="row">
<div class="col-xl-12 text-center">
<p id="output-4-results">The difference is correct</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="script.js" charset="utf-8"></script>
</body>
</html>