In: Statistics and Probability
6. You are comparing the quality of a certain part that is produced by two different manufacturers.You sample 1000 parts from each manufacturer. You find 4 defectives in the parts from the first manufacturer and 20 defectives in the parts from the second manufacturer.
(a) Construct and interpret a 98% confidence interval for the difference between the population proportions of defective parts for the two manufacturers.
(b) Modify the code so that it produces the desired confidence interval. Recall, this will not be the exact same as the interval you calculated by hand.
prop.test(c(success1, success2), c(n1, n2), conf.level = .95)
(c) Do we have evidence that the quality of one manufacturer’s parts is superior?