Question

In: Statistics and Probability

Aflatoxin residues in peanut butter: In actual testing, 12 lots of peanut butter had aflatoxin residues...

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.)

Solutions

Expert Solution

The detailed r code is given


Related Solutions

Aflatoxin residues in peanut butter: In actual testing, 12 lots of peanut butter had aflatoxin residues...
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...
Peanut Land Inc. produces all-natural organic peanut butter. The peanut butter is sold in 12-ounce jars....
Peanut Land Inc. produces all-natural organic peanut butter. The peanut butter is sold in 12-ounce jars. The sales budget for the first four months of the year is as follows: Unit Sales Dollar Sales ($) January 80,000 176,000 February 45,000 99,000 March 40,000 88,000 April 42,000 92,400 Company policy requires that ending inventories for each month be 10% of next month's sales. At the beginning of January, the inventory of peanut butter is 31,000 jars. Each jar of peanut butter...
Peanut Land Inc. produces all-natural organic peanut butter. The peanut butter is sold in 12-ounce jars....
Peanut Land Inc. produces all-natural organic peanut butter. The peanut butter is sold in 12-ounce jars. The sales budget for the first four months of the year is as follows: Unit Sales Dollar Sales ($) January 70,000 147,000 February 65,000 136,500 March 60,000 126,000 April 62,000 130,200 Company policy requires that ending inventories for each month be 10% of next month's sales. At the beginning of January, the inventory of peanut butter is 31,000 jars. Each jar of peanut butter...
3. Peanut Butter and Jelly - Consider the case of a consumer that buys peanut butter...
3. Peanut Butter and Jelly - Consider the case of a consumer that buys peanut butter in six-packs. Use the information that follows to calculate the appropriate elasticities of demand. a. When the price of a six-pack increased from $18 to $22, the number of six-packs bought decreased from 30 to 20. What is the consumer's price elasticity of demand in this case? How did the consumer's total spending on peanut butter change as a result of this? (Spending by...
A quick survey of peanut butter prices had standard deviation and mean of $0.26 and $3.68,...
A quick survey of peanut butter prices had standard deviation and mean of $0.26 and $3.68, respectively. Compute the area for a peanut butter jar costing more than $4.25.
64) In 2014, the price of peanuts was rising, which lead peanut butter sellers and peanut...
64) In 2014, the price of peanuts was rising, which lead peanut butter sellers and peanut butter buyers to expect the price of peanut butter would rise in the future. Suppose the effect on the buyers was larger than the effect on the sellers. Consequently, in the current market for peanut butter there is a   in the price of peanut butter and   in the quantity of peanut butter. A) rise; a decrease B) fall; an increase C) rise; an increase...
Suppose that Jiffyland produces nothing but peanut butter. In 2018 the following activities were observed: Peanut...
Suppose that Jiffyland produces nothing but peanut butter. In 2018 the following activities were observed: Peanut farmers sold $20 million worth of peanuts to distributors. Distributors sold $30 million worth of peanuts to processors. Processors sold $50 million worth of peanut butter to producers. Producers sold $60 million worth of jars of peanut butter to grocers. Grocers sold $75 million worth of jars of peanut butter to final consumers. In this example, what are the two methods of calculating GDP?...
The supply and demand for organic peanut butter are QD = 70 – 5P and QS...
The supply and demand for organic peanut butter are QD = 70 – 5P and QS = 5P, where P is price per jar and Q is in hundreds of jars per day. The government has two pieces of legislation up for debate: a $1 supply subsidy or a price floor equal to $7.50. Defend your answers with math and economic logic! No defense means no credit. A) Which law would be more efficient (i.e. result in less deadweight loss)?...
Plain M&M: 15,14,15,15,14,16,15,14,15,16,16,14,15,14,15,15,14,17,17,15,15,17,14,16,14,16,17,13,16,16, 15, 17,6,14,16,15,13,15,17,15,17,14,15,14,16,14 Peanut Butter: 8,6,8,7,8,8,8,7,3,7,10,7,7,6,8,7,8,7,7,7,8,8,8,7,9,7,8,8,7,8,8,8,6,7,8,8,8,7,6,7,7,8,8
Plain M&M: 15,14,15,15,14,16,15,14,15,16,16,14,15,14,15,15,14,17,17,15,15,17,14,16,14,16,17,13,16,16, 15, 17,6,14,16,15,13,15,17,15,17,14,15,14,16,14 Peanut Butter: 8,6,8,7,8,8,8,7,3,7,10,7,7,6,8,7,8,7,7,7,8,8,8,7,9,7,8,8,7,8,8,8,6,7,8,8,8,7,6,7,7,8,8,8,14,8,8,7,6 Skittles: 15,14,15,14,14,15,15,14,15,15,14,15,15,15,14,15,20,15,15,15,14,14,15,15,15,16,12,15,15,14, 14,15,14,15,14,14,14,13,16 **Assume that both Plain and Peanut M&M candies, and Skittles are normally distributed. 2. Suppose that M&M claims that each bag of Peanut M&Ms should be 18 grams and Plain M&Ms should be 13.5 grams. Suppose that Skittles claims that each bag contains 16 grams. a. Test the claim that M&M is shorting its customers in servings of Peanut M&Ms. b. Test the claim that M&M is overfilling Plain...
Ants on a Sandwich How many ants will climb on a piece of a peanut butter...
Ants on a Sandwich How many ants will climb on a piece of a peanut butter sandwich left on the ground near an ant hill? To study this, a student in Australia left a piece of a sandwich for several minutes, then covered it with a jar and counted the number of ants. He did this eight times, and the results are shown in Table 3.10. (In fact, he also conducted an experiment to see if there is a difference...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT