Cans of black olives are filled by two machines (A and B) in a food processing factory. The distribution of the gross mass is known to be normal with mean 500 g and standard deviation 5.3 g for machine A, and normal with mean 504 g and standard deviation 4.8 g for machine B.
A batch of canned black olives have been filled by the same machine, but it is not known which machine was used. As some substandard olives have accidently been used by machine A, it is decided to test
H0: batch is from machine A, against
H1: batch is from machine B
By weighing a random sample of 6 cans and rejecting H0 if the mean mass exceeds a pre-determined mass of k g.
(a) Determine constant k such that the risk of type I error is 5%. What is the corresponding risk of type II error?
(b) Apply and carry out the test for a sample of 6 cans with masses 511, 499, 500, 498, 507, 495 g.