A small dairy wants to make sure that their butter mill isproducing bricks of butter that do not differ from the labelledweight by too much. The machine produces 30 bricks of butter perminute and runs for 4 hours Monday, Tuesday, and Wednesdaymornings. If the weights of the bricks of butter are deemed to betoo high or too low then that afternoon will be dedicated torecalibrating the machines.
Question 1.
Use a hypothesis test to determine if Monday's sample indicateswe should recalibrate the butter mill.
- a. What are my hypotheses? State them in both words and asequations.
- b. Every hundredth brick is weighed and the weight differencerecorded.
- Suppose we know the sample values are normallydistributed.
- On Monday the sample yielded an average of weight differencesof -2.5 g and a sample standard deviation of 10.25 g.
- Let ? be a random variable representing the difference betweenthe actual weight of a brick of butter and the desired weight ofthe brick of butter.
- Write the short hand for the distribution of ?¯ (the samplingdistribution for the sample means).
- c. Draw the sampling distribution.
- d. Complete the hypothesis test using ?=0.03?=0.03.
- Shade the region for the p-value
- Compute the p-value.
- Compare the p-value to the critical value.
- e. Write the conclusion in terms of what the dairy owner shouldplan to do Monday afternoon
Question 2.
On Tuesday the sample yielded an average of weight differencesof -2.71 g and a sample standard deviation of 9.87 g. Use ahypothesis test to determine if Tuesday's sample indicates weshould recalibrate the butter mill.
- a. Write the short hand for the distribution of ?¯X¯ (thesampling distribution for the sample means).
- b. Draw the sampling distribution.
- c. Complete the hypothesis test using ?=0.03?=0.03.
- Shade the region for the p-value
- Compute the p-value.
- Compare the p-value to the critical value.
- d. Write the conclusion in terms of what the dairy owner shouldplan to do Tuesday afternoon.
Need Codes for R program
This was the code block given
normalplot<-function(m,sd,region=0){
x<-seq(m-3.5*sd,m+3.5*sd,length=1000)
y<-dnorm(x,m,sd)
plot(x,y,type="l",xlab="",ylab="")
z<-x[x>region[1]]
z<- z[zpolygon(c(region[1],z,region[2]),c(0,dnorm(z,m,sd),0),col="gray")
}