S7-SA3-0144
What is Z-test Introduction?
Grade Level:
Class 12
AI/ML, Physics, Biotechnology, FinTech, EVs, Space Technology, Climate Science, Blockchain, Medicine, Engineering, Law, Economics
Definition
What is it?
The Z-test is a statistical tool used to check if the average (mean) of a sample group is significantly different from the average of a larger population, especially when you already know how spread out the population data is (its standard deviation). It helps us decide if an observed difference is real or just due to chance.
Simple Example
Quick Example
Imagine your school says the average height of Class 12 students nationwide is 160 cm with a known spread. You measure 50 students in your class and find their average height is 165 cm. A Z-test helps you figure out if your class is actually taller than the national average, or if this difference is just a coincidence.
Worked Example
Step-by-Step
Let's say the average time for a delivery rider to complete an order in a city is 30 minutes with a standard deviation of 5 minutes. A new delivery company claims their riders are faster. They track 40 deliveries and find their average time is 28 minutes.
Step 1: State the null and alternative hypotheses.
Null Hypothesis (H0): The new company's average delivery time is the same as the city average (30 minutes).
Alternative Hypothesis (H1): The new company's average delivery time is less than the city average (28 minutes).
--- Step 2: Identify the known values.
Population mean (mu) = 30 minutes
Population standard deviation (sigma) = 5 minutes
Sample size (n) = 40 deliveries
Sample mean (x_bar) = 28 minutes
--- Step 3: Calculate the Z-score using the formula: Z = (x_bar - mu) / (sigma / sqrt(n))
Z = (28 - 30) / (5 / sqrt(40))
--- Step 4: Calculate sqrt(40).
sqrt(40) is approximately 6.32
--- Step 5: Continue the calculation.
Z = -2 / (5 / 6.32)
Z = -2 / 0.791
Z is approximately -2.53
--- Step 6: Compare the Z-score to a critical value (e.g., for a 5% significance level, the critical Z-value for a one-tailed test is -1.645).
Our calculated Z-score (-2.53) is less than the critical value (-1.645).
--- Step 7: Make a decision.
Since -2.53 is beyond -1.645, we reject the null hypothesis.
Answer: The Z-test suggests that the new delivery company's riders are significantly faster than the city average.
Why It Matters
The Z-test is crucial in fields like Medicine to test new drug effectiveness, in FinTech to compare investment strategies, and in AI/ML to validate model performance. Understanding it can open doors to careers in data science, research, and quality control, helping you make data-driven decisions in the real world.
Common Mistakes
MISTAKE: Using Z-test when the population standard deviation is unknown. | CORRECTION: If the population standard deviation is unknown and the sample size is small (typically less than 30), a T-test should be used instead of a Z-test.
MISTAKE: Not checking if the data is normally distributed (or if the sample size is large enough for the Central Limit Theorem to apply). | CORRECTION: The Z-test assumes the sample means are normally distributed. This is usually true if the population is normal or if the sample size is large (n > 30). Always verify this assumption.
MISTAKE: Confusing population mean with sample mean. | CORRECTION: The population mean (mu) is the average of the entire group you're interested in, while the sample mean (x_bar) is the average of the smaller group you actually tested.
Practice Questions
Try It Yourself
QUESTION: A cold drink company claims its bottles contain 500 ml of liquid on average, with a standard deviation of 10 ml. A shopkeeper checks 36 bottles and finds their average volume is 495 ml. Calculate the Z-score. | ANSWER: Z = (495 - 500) / (10 / sqrt(36)) = -5 / (10 / 6) = -5 / 1.667 = -3.00
QUESTION: The average daily mobile data consumption in a city is 1.5 GB with a standard deviation of 0.3 GB. A new telecom plan is introduced, and after a month, 100 users of this plan show an average daily consumption of 1.6 GB. Perform a Z-test to see if their consumption is significantly higher (use a critical Z-value of 1.645 for 5% significance). | ANSWER: Z = (1.6 - 1.5) / (0.3 / sqrt(100)) = 0.1 / (0.3 / 10) = 0.1 / 0.03 = 3.33. Since 3.33 > 1.645, we reject the null hypothesis. Yes, their consumption is significantly higher.
QUESTION: A factory produces light bulbs with an average lifespan of 1000 hours and a standard deviation of 50 hours. A new manufacturing process is tested on 64 bulbs, and they have an average lifespan of 1015 hours. Does this new process significantly increase the lifespan at a 1% significance level (critical Z-value for one-tailed test is 2.33)? | ANSWER: Z = (1015 - 1000) / (50 / sqrt(64)) = 15 / (50 / 8) = 15 / 6.25 = 2.4. Since 2.4 > 2.33, we reject the null hypothesis. Yes, the new process significantly increases the lifespan.
MCQ
Quick Quiz
Which of the following is a key condition for using a Z-test?
The sample size must be exactly 10.
The population standard deviation must be known.
The data must always be categorical.
The sample mean must be zero.
The Correct Answer Is:
B
The Z-test requires the population standard deviation to be known to calculate the standard error correctly. Options A, C, and D are incorrect conditions for a Z-test.
Real World Connection
In the Real World
Imagine a company like Zepto or Blinkit wants to ensure their delivery times are consistently fast. They could use a Z-test to compare the average delivery time of their riders in a new city against their established national average, which has a known variation. This helps them quickly identify if performance in the new city is up to their standards or needs improvement.
Key Vocabulary
Key Terms
POPULATION MEAN: The average of all values in the entire group being studied. | SAMPLE MEAN: The average of values in a smaller subgroup taken from the population. | STANDARD DEVIATION: A measure of how spread out the data points are from the average. | NULL HYPOTHESIS: The initial assumption that there is no significant difference or effect. | Z-SCORE: A number that tells you how many standard deviations a data point is from the mean.
What's Next
What to Learn Next
Next, you should learn about the T-test. It's very similar to the Z-test but is used when you don't know the population standard deviation, which is a common situation in real-world data analysis. Understanding both will give you powerful tools for comparing data!


