Z Test Practice Example Problems With Answers

 

A test is conducted for H 0: μ = 34, with σ = 5. A sample of size 100 is selected. The standard error of the sampling distribution is
  • 0.05
  • 0.5
  • 5
A test is conducted for H 0: μ = 20, with σ = 4. A sample of size 36 has equation. The test statistic is
  • 0.35
  • 2.1
  • 12.6
A test is conducted for H 0: μ = 50 vs. H a: μ > 50. The test statistic is 2.46. The p‐value is
  • 0.0069
  • 0.0138
  • 0.9931

 

Hypothesis Testing: Z-Test Concepts

1. In general, statistics does not allow you to prove anything is true, but instead allows you to show that things are probably false. So when we do hypothesis testing, the null hypothesis H0 is something that we want to show is false and the alternative hypothesis H1 is something that you want to show is true. For example, to show that a drug cures cancer, the null hypothesis would be that the drug does nothing and the alternative hypothesis would be that the drug does help cure cancer.
A type 1 error is rejecting a true null which means that in our example, saying a drug cures cancer when it doesn’t. A type 2 error is failing to reject a false null which means in our case as saying that the drug doesn’t do anything when it does. The significance level α is the probability of making a type 1 error. The power 1 − β is 1 minus the probability of making a type 2 error.
Examples


2. When Thanos snapped his fingers, everyone had a p = 0.5 chance of disintegrating. I think that this probability was much lower for the original Avengers. Out of the 6 of them, no one got disintegrated. Can you reject the null hypothesis that there was a p = 0.5 chance of each of them disintegrating with an α = 0.05?
Solution: Our null hypothesis is H0 : p = 0.5 and alternate hypothesis H1 : p < 0.5.
We want the probability of at least that unlikely of a scenario which is P(X ≤ 0)
less than or equal to 0 of them got disintegrated. This is a binomial distribution
sotheprobabilityofthishappeningisP(X≤0)=P(X=0)= 1 =0.015<α. 26
Therefore we can reject the null hypothesis and say that they were given some special treatment.


3. An infomercial claims that a miracle drug will cause you to grow all your hair back. There are 25 brave participants and surprisingly 7 people regrew their hair. If normally 10% of people regrow their hair, can you say that this drug worked?

Math 10B with Professor Stankova Tuesday, 4/23/2019
Solution: We would expect that 10% of people will regrow their hair with standard deviation σ = pp(1 − p) = p0.1(0.9) = 0.3. The central limit theorem says that with a sample of 25 people, we expect that 10% of people regrow their hair with a standard deviation of σ/√n = 0.3/√25 = 0.06. There are 7/25 = 28% who regrew their hair. The z score is z(|0.28 − 0.1|/0.06) = z(3) < α. Therefore, we can reject the null hypothesis and say that this drug does help you grow your hair back.
Problems


4. (True story) A woman claimed that she could tell whether milk or tea was added first to a cup. She was given 4 cups with milk added first then tea and 4 cups of the opposite. She guessed all 8 correctly. Let the null hypothesis be that she guesses randomly and alternate hypothesis be that she actually can tell with p > 0.5. Can we say that she has this ability with α = 0.05?


5. You flip a coin 100 times and get 55 heads. Can you say that it is biased towards heads? (use α = 0.05)
Solution: The null hypothesis would be that she guessed randomly and the prob-
ability that she was successful once is p = 12 . We want to calculate the probability
thatshedidatleastthiswellsoP(X≥8)=P(X=8)=81 = 1 =0.004<α. 828 28
Therefore, we can reject the null hypothesis and say that she does have this ability.

Solution: The null hypothesis is that the coin is unbiased and hence p = 0.5. The standard deviation is σ = pp(1 − p) = 0.5. Thus, the central limit theorem tells us that the percentage of coin flips we get is approximately normally distributed with standard deviation 0.5/√n = 0.5/√100 = 0.05. We got 55/100 = 0.55 percent of heads. Calculating the z score of 0.55 is z(|0.55 − 0.5|/σ) = z(1) > α and hence we cannot reject the null hypothesis.
6. An infomercial claims that a miracle drug will cause you to grow all your hair back. There are 100 brave participants and this time 20 people regrew their hair. If normally 10% of people regrow their hair, can you say that this drug worked?
Solution: We would expect that 10% of people will regrow their hair with standard deviation σ = pp(1 − p) = p0.1(0.9) = 0.3. The central limit theorem says that with a sample of 100 people, we expect that 10% of people regrow their hair with a standard deviation of σ/√n = 0.3/√100 = 0.03. There are 20/100 = 20% who

Math 10B with Professor Stankova Tuesday, 4/23/2019
regrew their hair. The z score is z(|0.2 − 0.1|/0.03) = z(3.33) < α. Therefore, we can reject the null hypothesis and say that this drug does help you grow your hair back.

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top