2022 Stat Analysis Module 4 Parametric Test R
2022 Stat Analysis Module 4 Parametric Test R
MODULE 4
PARAMETRIC TESTS
TOPICS OUTLINE:
1. Test the mean difference between sample mean and known value of
the population mean when:
a) σ (sigma) is known - n ≥ 30 or n < 30 (rare case)
b) σ (sigma) is unknown - and is replaced by s but n ≥ 30 only.
2. Test the mean difference between the sample mean and the known value of the
population mean when n < 30 only.
3. Test the mean difference between the sample proportion and the known value of
population proportion when n ≥ 30 only.
LEARNING OUTCOMES :
At the end of the module the student will be able to :
1. Apply the steps in testing hypothesis as to whether or not the sample mean is different
from population mean when sample size is :
2. Apply the steps in testing hypothesis as to whether or not the sample mean is different
from the population mean when sample size is n < 30 and sample standard
deviation S is known only.
3 Apply the steps in testing hypothesis to know the difference between sample proportion
and the population proportion when n ≥ 30.
TOPIC PRESENTATION :
The one sample z-test is a statistical procedure to know the mean difference between
the sample mean and the known value of the population mean and make a
statistical decision as to whether or not the sample mean is different from population
mean when sample size is:
𝑥̅ − 𝜇
𝑧= 𝜎
√𝑛
Where : z = z – test
𝑥̅ = sample mean
𝛍 = hypothesized population mean
𝝈 = population standard deviation
n = sample size
𝑥̅ − 𝜇
𝑧= 𝑠
√𝑛
Where : z = z – test
𝑥̅ = sample mean
𝛍 = hypothesized population mean
s = sample standard deviation
n = sample size
Significance Level
Test Type
0.10 0.05 0.025 0.01
One-tailed Test ±1.28 ±1.645 ±1.96 ±2.33
Two-tailed Test ±1.645 ±1.96 ±2.33 ±2.58
Problem : Powdered milk is packed in 1 kg. A sample of 36 bags produces a mean of 0.96 kg.
and standard deviation of 0.12 kg. Is there enough evidence to conclude that the bags do not
contain 1 kg. at ∝ =0.05?
𝑥̅ −𝜇 0.96 −1.00
FORMULA z = 𝑠 = 0.12 = −2.00
√𝑛 √36
REJECTION REJECTION
ACCEPTANCE
REGION of REGION
REGION of Ho
Ho
𝑥̅ − 𝜇
𝑡= 𝑠
√𝑛
Where : t = t– test
𝑥̅ = sample mean
𝛍 = population mean
s = sample standard deviation
n = no. of samples
Problem : Powdered milk is packed in 1 kg. A sample of 25 bags produces a mean of 0.96 kg.
and standard deviation of 0.10 kg. Is there enough evidence to conclude that the bags do not
contain 1 kg. at ∝ =0.05?
𝛼
= 0.025
2
df = n− 1
df = 25− 1 = 24
tCV = − 2.00
The test statistic used was noted to have a distribution that could be readily approximated
by a normal curve. The Z statistic can also be used for situations involving binary classifications
and counts for the binary classes, as is known in the following example :
Problem: In a large city, 250 housewives were randomly selected and asked whether they prefer
Purchasing fish from supermarkets or from wet public markets. If 114 of them prefer
supermarkets, is there evidence at the 5% level of significance to suggest that the proportion of
housewives throughout the city who prefer supermarkets exceeds 40%?
𝑝̂ − 𝑃
𝑧=
√𝑃(1 − 𝑃)
𝑛
Where −
𝑥
𝑝̂ =
𝑛
z = Test statistic
n = Sample size
P= population proportion
𝑝̂ = sample proportion
𝑥 = number of those who are in favor
1. Ho: P = 0.4
H1: P > 0.4
2. α =0.05
𝑥
3. Test Statistic - z test for proportions 𝑝̂ =
𝑛
114 114
𝑝̂−𝑃 −0.4 −0.4 0.056 0.056
250 250
𝑧= = = = =
𝑃(1−𝑃) 0.4(1−0.4) 0.4(1−0.4) .24 .0309
√ √ √ √
𝑛 250 250 250
ZCV = 1.81
4. Computed value ZCV = 1.81
5. Critical Value ZCRV = 1.96
Type of test one tailed test > Ha
Critical Values of z
Type of Test ∝ = 0.05
One tailed 1.645
6. Separate RR from AR
∝ = 0.05
AR
RR
ZCRV = 1.645
Zcv = 1.81
RR
AR ∝ = 0.05
ZCV =
ZCRV = 1.645 1.81
8. Decision Reject H0
9. Conclusion:
The sample provides sufficient evidence to warrant rejection that P= .4
RR
One Tailed
Test right
AR
ZPCV = 3.00
ZPCRV = 1.28
TABLES :
TABLE 1 CRITICAL VALUES OF Z AT VARYING SIGNIFICANCE LEVELS
Significance Level
Test Type
0.10 0.05 0.025 0.01
One-tailed Test ±1.28 ±1.645 ±1.96 ±2.33
Two-tailed Test ±1.645 ±1.96 ±2.33 ±2.58