
soda datasetIn words:
In symbols:
Here is the original soda data with 5 random permutations.
infer packageDot plot of 100 differences in randomized proportions (null distribution), showing observed difference as dashed vertical line.
Red dots are as large or larger than the observed test statistic.
There are 28 differences in randomization proportions that are greater than or equal to the observed value (0.09276). So we estimate the p-value to be 28/100 = 0.28.
The p-value is the proportion of red dots.