
IMS1 Ch. 11
Math 215
soda datasetIn words:
\(H_0:\) Location has no
effect on preference for
cola over orange soda.
\(H_A:\) There is a higher
preference for cola
over orange soda on the
East Coast than on the
West Coast.
In symbols:
\(H_0: p_E - p_W = 0\)
\(H_A: p_E - p_W > 0\)
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.
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.
Dot plot of 100 differences in randomized proportions (null distribution), showing observed difference as dashed vertical line.