STA 204 Lecture Note 2 - Continuation
STA 204 Lecture Note 2 - Continuation
STA 204 Lecture Note 2 - Continuation
https://groups.google.com/a/unilorin.edu.ng/d/forum/sta204_2018
Common Significance Levels and their
Corresponding Z-Values
The following are the four commonly used
significance levels in hypotheses testing and their
associated Z-values.
α Zα α/2 Zα/2
One-tailed test
Two-tailed test
0.10 1.282 0.05 1.645
0.05 1.645 0.025 1.96
0.02 2.054 0.01 2.33
0.01 2.33 0.005 2.575
2
This learning material is NOT FOR SALE
Test for a Population Proportion
In certain situation, particularly with count data,
we may be interested in proportions rather than
means of population. In such cases, we carry out
test of hypothesis that the sample proportion
could have come from a population with a given
proportion.
We may wish to test the hypothesis that the
population proportion P is a given value P0.
𝑯𝟎 ∶ 𝑷 = 𝑷𝟎 𝒗𝒔 𝑯𝟏 ∶ 𝑷 < 𝑷𝟎
𝑯𝟎 ∶ 𝑷 = 𝑷𝟎 𝒗𝒔 𝑯𝟏 ∶ 𝑷 > 𝑷𝟎
𝑯𝟎 ∶ 𝑷 = 𝑷𝟎 𝒗𝒔 𝑯𝟏 ∶ 𝑷 ≠ 𝑷𝟎
𝒙 − 𝒏 𝒑𝟎
𝒁=
𝒏 𝒑𝟎 𝟏 − 𝒑𝟎
or equivalently as
𝒑 − 𝒑𝟎
𝒁=
𝒑𝟎 𝟏 − 𝒑𝟎
𝒏
𝒙
𝒔𝒊𝒏𝒄𝒆 𝒑 = then 𝒙 = 𝒏𝒑
𝒏
6
This learning material is NOT FOR SALE
Decision Rules
1. For one-tailed tests, reject the null hypothesis
in favour of its alternative if Zcalculated is
greater or equal to Ztabulated (i.e. Zcal ≥ Zα),
else do not reject the null hypothesis.
7
This learning material is NOT FOR SALE
Example 17
A recent survey carried out at UITH indicates
that out of 3,232 births recorded this year,
1705 were girls and the rest were boys .
Do these figures confirm the hypothesis that
the sex ratio is 50:50? Perform your test at
5% level of significance.
11
This learning material is NOT FOR SALE
Case I: Independent Samples
If samples of sizes n1 and n2 are drawn from two
independent populations whose variances σ1 and σ2
are known, we may want to test whether significant
differences exist between the means of the two
populations. To do this, we carry out a statistical test
of which the hypotheses are as follows
H0: μ1 = μ2 or H0: μ1 – μ2 = 0
Versus
H1: μ1 ≠ μ2 or H1: μ1 – μ2 ≠ 0
12
This learning material is NOT FOR SALE
While the hypotheses for one-tailed tests are
H0: μ1 = μ2 or H0: μ1 – μ2 = 0
Lower-tailed test
Versus
H1: μ1 < μ2 or H1: μ1 – μ2 < 0
Upper-tailed test
H0: μ1 = μ2 or H0: μ1 – μ2 = 0
Versus
H1: μ1 > μ2 or H1: μ1 – μ2 > 0
13
This learning material is NOT FOR SALE
Test Statistics
1. Population variances are known and the samples
happen to be large.
Distributed as Zα or Zα/2
𝒙𝟏 − 𝒙𝟐 − 𝝁𝟏 − 𝝁𝟐 depending on whether the
𝒁= test is one-tailed or 2-tailed
𝝈𝟐
𝟏 𝝈𝟐
+ 𝟐
𝒏𝟏 𝒏𝟐
Set B 6.3 7.0 8.2 6.1 6.7 5.9 6.1 7.3 6.6 4.5 4.9 7.9
13 14 15 16 17 18 19 20 21 22 23 24 25
5.2 6.3 8.1 8.6 5.0 7.1 8.1 6.1 6.3 4.5 6.1 7.3 6.1
3.3 5.7 7.9 4.5 5.5 5.7 5.0 5.6 6.4 6.7 6.7 7.3 6.5
This learning material is NOT FOR SALE 16
Exercise
Given the following summaries for two
independent populations from which 12 samples
were taking from each population, test at 5%
significance level whether the two population
means are different.
𝑯𝟎 : 𝝁𝒅 = 𝟎 𝒗𝒔 𝑯𝟏 : 𝝁𝒅 > 𝟎
𝑯𝟎 : 𝝁𝒅 = 𝟎 𝒗𝒔 𝑯𝟏 : 𝝁𝒅 ≠ 𝟎
Before 68 44 30 58 35 33 52 69 23 69 48 30
After 59 42 20 62 25 30 56 62 25 75 40 26
Before 10 15 9 3 7 12 16 17 4
After 12 17 8 5 6 11 18 20 3
38 42 25 35 35 33 48 53 17
24 26 26 47 28 24 35 38 26
38 29 49 26 41 26 35 38 44
25 45 28 31 46 32 39 59 53
The mean 𝒙 for these counts is 35.67 and the sample standard deviation (s) is 9.99.
(a) Construct a 95 % confidence interval for the population mean (μ) the number of dendritic
segment counts that can emanate from the body of a male pig nerve cell.
(b) Test the hypothesis at α = 0.05 that: H0: μ = 30 vs H1: μ > 30
(c) Interpret your results in (a) and (b) to a layman