Statistics · Guided Practice
Z Tests
6 questions with answers. Try each one before revealing the answer.
1
A manager compares the defect rate of two machines.
Machine A produced defective items out of ; machine B produced out of .
State the null and alternative hypotheses.
Machine A produced defective items out of ; machine B produced out of .
State the null and alternative hypotheses.
Video solution coming soon
Answer
: there is no difference in the proportion of defective items produced by the two machines.
: there is a difference in the proportion of defective items produced by the two machines.
: there is a difference in the proportion of defective items produced by the two machines.
Video solution coming soon
2
Explain why a z-test for proportions, rather than a t-test, is used to compare two defect rates.
Video solution coming soon
Answer
The data is categorical — each item is either defective or not — so the comparison is between two proportions.
A t-test compares means of numerical data, which is not what is being measured here.
A t-test compares means of numerical data, which is not what is being measured here.
Video solution coming soon
3
A z-test comparing the proportion of adults and teenagers who shop online gives a p-value of and a confidence interval of .
State the conclusion at the level, in context.
State the conclusion at the level, in context.
Video solution coming soon
Answer
, so there is insufficient evidence to reject the null hypothesis.
There is no significant difference in the proportion of adults and teenagers who prefer shopping online. The confidence interval containing zero agrees.
There is no significant difference in the proportion of adults and teenagers who prefer shopping online. The confidence interval containing zero agrees.
Video solution coming soon
4
A council compares smart meter uptake in two cities. In City X, of households have one; in City Y, of .
Calculate the proportion for each city.
Calculate the proportion for each city.
Video solution coming soon
Answer
City X:
City Y: , which is to 3 decimal places.
City Y: , which is to 3 decimal places.
Video solution coming soon
5
A z-test on smart meter uptake in two cities gives a p-value of .
State the conclusion at the level, in context.
State the conclusion at the level, in context.
Video solution coming soon
Answer
The p-value is far less than , so reject the null hypothesis.
There is a significant difference in the proportion of households with a smart meter in the two cities.
There is a significant difference in the proportion of households with a smart meter in the two cities.
Video solution coming soon
6
State the R Studio command for a z-test comparing successes out of with successes out of .
Video solution coming soon
Answer
prop.test(c(82, 78), c(150, 120))Video solution coming soon