S3-SA3-0351
What is a Z-Test for Mean?
Grade Level:
Class 9
AI/ML, Data Science, Physics, Economics, Cryptography, Computer Science, Engineering
Definition
What is it?
A Z-Test for Mean is a statistical tool used to check if the average (mean) of a sample group is significantly different from a known average of a larger population. It helps us decide if an observation is just random chance or if there's a real difference worth noticing. We use it when we know the population's standard deviation.
Simple Example
Quick Example
Imagine a snack company claims their new 'Masala Crunch' packets have an average of 100 grams of chips. You buy 30 packets and find their average weight is 98 grams. A Z-Test helps you figure out if 98 grams is close enough to 100 grams, or if the company's claim might be false.
Worked Example
Step-by-Step
Let's say a school claims its students spend an average of 45 minutes daily on homework. We know the standard deviation for homework time in all schools like this is 10 minutes. We survey 50 students from this school and find their average homework time is 42 minutes. Is this school's average truly different from 45 minutes?
Step 1: Identify knowns. Population Mean (mu) = 45 minutes. Population Standard Deviation (sigma) = 10 minutes. Sample Size (n) = 50 students. Sample Mean (x-bar) = 42 minutes.
---Step 2: State the null and alternative hypotheses.
Null Hypothesis (H0): The school's average homework time is 45 minutes (mu = 45).
Alternative Hypothesis (Ha): The school's average homework time is not 45 minutes (mu != 45).
---Step 3: Calculate the Z-score using the formula: Z = (x-bar - mu) / (sigma / sqrt(n))
---Step 4: Substitute the values: Z = (42 - 45) / (10 / sqrt(50))
---Step 5: Calculate sqrt(50) = 7.07 (approx).
---Step 6: Z = -3 / (10 / 7.07) = -3 / 1.414 = -2.12 (approx).
---Step 7: Compare the calculated Z-score to a critical value (e.g., for a 95% confidence level, the critical Z-values are -1.96 and +1.96). Since -2.12 is less than -1.96, it falls into the 'rejection region'.
---Step 8: Conclusion: Since our calculated Z-score (-2.12) is outside the range of -1.96 to 1.96, we reject the null hypothesis. This suggests that the school's average homework time is significantly different from 45 minutes.
Answer: The Z-score is -2.12. This suggests the school's average homework time is significantly different from 45 minutes.
Why It Matters
Z-tests are super important in fields like AI/ML, Data Science, and Economics. Data scientists use it to check if a new feature in an app genuinely improves user engagement, or if a new medicine really works better. It helps engineers and researchers make data-driven decisions, leading to better products and discoveries.
Common Mistakes
MISTAKE: Using Z-test when population standard deviation is unknown or sample size is very small (less than 30). | CORRECTION: If the population standard deviation is unknown and the sample size is small, a T-test should be used instead of a Z-test.
MISTAKE: Confusing population mean with sample mean in the formula. | CORRECTION: Remember, 'mu' (population mean) is the value you are testing against, and 'x-bar' (sample mean) is the average you calculated from your collected data.
MISTAKE: Not understanding what a 'significant difference' means. | CORRECTION: A significant difference doesn't mean a huge difference in numbers, but rather that the observed difference is unlikely to have happened by random chance alone, based on a chosen confidence level.
Practice Questions
Try It Yourself
QUESTION: A mobile company claims its phone batteries last 18 hours on average. We know the standard deviation for all phone batteries is 2 hours. You test 40 phones and find their average battery life is 17.5 hours. Calculate the Z-score. | ANSWER: Z = (17.5 - 18) / (2 / sqrt(40)) = -0.5 / (2 / 6.32) = -0.5 / 0.316 = -1.58
QUESTION: A fitness tracker company says users walk an average of 8000 steps daily. The population standard deviation is 1500 steps. A group of 100 new users is tracked, and their average steps per day is 7700. Should the company revise its claim at a 95% confidence level (critical Z-values are -1.96 and +1.96)? | ANSWER: Z = (7700 - 8000) / (1500 / sqrt(100)) = -300 / (1500 / 10) = -300 / 150 = -2. Since -2 is less than -1.96, we reject the claim. Yes, the company should revise its claim.
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 introduced. A sample of 60 bulbs from the new process has an average lifespan of 1015 hours. Calculate the Z-score and explain if the new process significantly increased the lifespan at a 99% confidence level (critical Z-values are -2.58 and +2.58). | ANSWER: Z = (1015 - 1000) / (50 / sqrt(60)) = 15 / (50 / 7.746) = 15 / 6.455 = 2.32. Since 2.32 is between -2.58 and +2.58, it does not fall into the rejection region. Therefore, we do not have enough evidence to say the new process significantly increased the lifespan at a 99% confidence level.
MCQ
Quick Quiz
When should you use a Z-Test for Mean?
When the sample size is very small (less than 10)
When the population standard deviation is unknown
When you want to compare two population means
When the population standard deviation is known and the sample size is large
The Correct Answer Is:
D
A Z-Test for Mean is specifically used when the population standard deviation is known and the sample size is generally large (usually n >= 30). If the population standard deviation is unknown or the sample size is small, a T-test is more appropriate.
Real World Connection
In the Real World
Imagine you are working for a company like Swiggy or Zomato. They might want to know if a new delivery route optimization software actually reduces average delivery time. They would compare the average delivery time of 1000 deliveries using the old system (population mean and standard deviation known) with 1000 deliveries using the new system (sample mean). A Z-test helps them decide if the new software is truly better or if any difference is just random.
Key Vocabulary
Key Terms
Population Mean: The average of all values in the entire group being studied. | Sample Mean: The average of values taken from a smaller group (sample) of the population. | Standard Deviation: A measure of how spread out numbers are from the average. | Null Hypothesis: The default assumption that there is no significant difference or effect. | Z-score: A number indicating how many standard deviations an element is from the mean.
What's Next
What to Learn Next
Great job understanding the Z-Test! Next, you should explore the 'T-Test for Mean'. It's similar but used when you don't know the population's standard deviation, which is very common in real-world situations. This will broaden your statistical toolkit!


