Z Test
Z Test
Z Test
• Population
• Sample
• Parameter
• Statistic
Small Sample Tests(𝒏 < 𝟑𝟎): t-test, F-test and Chi-square Test.
Null Hypothesis 𝑯𝟎 : The hypothesis which is tested for possible rejection
under the assumption that it is true.
Ex: 𝑯𝟎 : 𝝁 = 𝝁𝟎 𝜇 − population mean
𝒕−𝑬(𝒕)
Test Statistic: 𝒁= ~ 𝑵(𝟎, 𝟏) asymptotically as 𝒏 → ∞
𝑺.𝑬.(𝒕)
Critical Values or Significant Values: The critical value of the test statistic at
level of significance 𝜶 for two-tailed
test is given by:
𝑃 𝑍 > 𝑧𝛼 = 𝛼
2 𝑃 𝑍 > 𝑧𝛼 = 𝛼
𝑃 𝑍 > 𝑧𝛼 = 𝛼 2
In case of one-tailed test, the critical value 𝑧𝛼 is determined as:
Right-tailed
2.33 1.645 1.28
Test
Left-tailed Test -2.33 -1.645 -1.28
Procedure for Testing of Hypothesis
1. Set up the Null Hypothesis 𝑯𝟎 .
2. Set up the Alternative Hypothesis (𝑯𝟏 ).
3. Choose the appropriate Level of Significance (𝜶).
𝒕−𝑬(𝒕)
4. Compute the Test Statistic: 𝒁 = , under 𝐻0
𝑺.𝑬.(𝒕)
5. Conclusion. We compare the computed value of 𝐙 in step 4 with
the significant value (tabulated value) 𝐳𝛂 at the
given level of significance.
If 𝒁𝒄𝒂𝒍 < |𝒛𝜶 | -- accept the null hypothesis 𝑯𝟎 .
If 𝒁𝒄𝒂𝒍 > |𝒛𝜶 | -- reject the null hypothesis 𝑯𝟎 ,
i.e., accept the alternative hypothesis 𝑯𝟏 .
Test for Single Mean
The test statistic for testing 𝑯𝟎 : 𝝁 = 𝝁𝟎 𝝁- population mean
vs
the alternative hypothesis: 𝑯𝟏 : 𝝁 ≠ 𝝁𝟎 (𝝁 > 𝝁𝟎 or 𝝁 < 𝝁𝟎 )
(Two-tailed alternative) or
𝑯𝟏 : 𝝁 > 𝝁𝟎 (right-tailed alternative)
𝑯𝟏 : 𝝁 < 𝝁𝟎 (left-tailed alternative)
𝒙−𝝁
Is given by: 𝒁= ~ 𝑵(𝟎, 𝟏) ; 𝒙 - sample mean
𝝈 𝒏
(i) If the population s.d. 𝝈 is unknown then the estimate of 𝝈 ,
𝒙−𝝁
the sample variance is used for test statistic. i.e., 𝒁=
𝒔 𝒏
Example 1:
A sample of 900 units has a mean 3.4 cms and standard deviation 2.61
cms. Is the sample from a large population of mean 3.25 cms and s.d.
2.61 cms at 5% level of significance ?
Solution:Given, Sample mean: 𝒙 = 3.4 Population Mean : 𝝁 = 𝟑. 𝟐𝟓
Sample size : n = 900 Population Standard deviation : 𝝈 = 𝟐. 𝟔𝟏
1. Null Hypothesis : 𝑯𝟎 : 𝝁 = 𝟑. 𝟐𝟓
No. of
12 22 20 30 16
Persons
𝑥1 −𝑥2 −𝑬( 𝑥1 − 𝑥2 )
𝒁=
𝑺.𝑬. ( 𝑥1 − 𝑥2 )
~ 𝑁(0, 1)
𝑥1 −𝑥2
i.e., 𝒁= ~ 𝑁(0, 1)
𝜎12 2 𝑛
𝑛1 +𝜎2 2
Remarks:
1. If 𝜎12 = 𝜎22 = 𝜎 2 i.e., if the sample have been drawn from the
populations with common Standard Deviation (𝜎)
𝑥1 −𝑥2
𝒁= ~ 𝑁(0, 1)
𝝈 1 𝑛1 +1 𝑛2
2. If 𝜎 is not known, then the unbiased estimator of 𝜎 2 is given by:
𝑛 𝑠 2 + 𝑛 𝑠2
𝜎2 = 1 1 2 2
𝑛1 +𝑛2
If 𝜎12 ≠ 𝜎22 and 𝜎1 and 𝜎2 are not known,
𝑥1 − 𝑥2
𝒁= ~ 𝑁(0, 1)
𝑠12 𝑛1 +𝑠22 𝑛2
The test statistic for testing
vs
𝑝1 −𝑝2
𝒁= ~ 𝑁(0, 1)
𝑷𝑸(1 𝑛1 +1 𝑛2 )
𝑛1 𝑝1 +𝑛2 𝑝2 𝑋1 +𝑋2
Where 𝑃 = =
𝑛1 +𝑛2 𝑛1 +𝑛2
Example 8:
In a large city A, 20% of a random sample of 900 school children had
defective eye-sight. In other city B, 15% of random sample of 1600
children had the same defect. Is this difference between the two
proportions significant ?
Example 9:
Before an increase in excise duty on tea, 800 persons out of sample of
1000 persons were found to be tea drinkers. After an increase in duty, 800
people were tea drinkers in a sample of 1200 people. Using standard error
of proportion, state whether there is a significant decrease in the
consumption of tea after the increase in excise duty?