In: Statistics and Probability
Aflatoxin residues in peanut butter: In actual testing, 12 lots of peanut butter had aflatoxin residues in parts per billion of 4.94, 5.06, 4.53, 5.07, 4.99, 5.16, 4.38, 4.43, 4.93, 4.72, 4.92, and 4.96.
a. How many possible bootstrap resamples of these data are there?
b. Using R and the sample() function, or a random number table or generator, generate five resamples of the integers from 1 to 12.
c. For each of the resamples in b, find the mean of the corresponding elements of the aflatoxin data set. Print out the 5 bootstrap means.
d. Find the mean of the resample means. Compare this with the mean of the original data set.
e. Find the minimum and the maximum of the five resample means. This a crude bootstrap confidence interval on the mean. (If you had used 1000 resamples, and used the 25th and 975th largest means, this would have given a reasonable 95% confidence interval.)