example-app-ab-testing icon indicating copy to clipboard operation
example-app-ab-testing copied to clipboard

Two-sided p-value calculation possibly incorrect?

Open nicknelson1021 opened this issue 3 years ago • 0 comments

Shouldn't it be something like this?

if hypothesis == "One-sided" and z < 0: return 1 - norm().sf(z) elif hypothesis == "One-sided" and z >= 0: return norm().sf(z) / 2 elif z < 0: return (1 - norm().sf(z)) * 2 else: return (norm().sf(z)) * 2

code

nicknelson1021 avatar Jun 21 '22 20:06 nicknelson1021