Lecture 4 (Statistical Testing)
Lecture 4 (Statistical Testing)
Statistical Testing
(For the Mean and Variance)
1
Test of the Mean of a Probability Test of the Mean of a Probability
Distribution Distribution
• The hypothesis that the mean (µ) of a • Under the null hypothesis (µ = µ0), the
probability distribution is equal to a probability that the sample mean (and
specific value (µ0) can be tested by therefore the population mean) lies
using the sample mean X as the test within the acceptable range is:
statistic.
H0: µ = µ0 P[( µ0 − c) < X < ( µ0 + c)] = 2φ ( z ) − 1
H1: µ ≠ µ0
where: zσ
** X is assumed to be normally c=
n
distributed, or at least approximately
normally distributed
where: ts
c=
n
µ0 - c µ0 µ0 + c X
2
Test of the Mean of a Probability
Distribution
Example
• Thus, we can solve for Φ(z) and F(t): An angle is measured 10 times. Each
α measurement is independent and made
φ (z) = 1 − (for known σ) with the same precision, i.e., the 10
2
measurements constitute a random
α
F (t ) = 1 − (for unknown σ) sample of size 10. The sample mean
2 and sample standard deviation are
• After we get the value of z or t, which is calculated from the measurements as:
Φ(z) or F(t), we can then derive z or t x=42°12’16” and S=3.7”. Test at the
from the table of values 5% significance level the hypothesis
that the population mean µ is
42°12’16.0”, against the alternative
that µ is not equal to 42°12’16.0”.
Solution Solution
For 5% level of significance, α = 0.05 The limits (critical values) can then be computed
α as:
p = F (t ) = 1 − = 0.975 ( µ 0 − c) = 42°12 '13.4"
2
degrees of freedom = n − 1 = 10 − 1 = 9 ( µ 0 + c) = 42°12 '18.6"
3
Test of the Variance of a Test of the Variance of a
Probability Distribution Probability Distribution
• H0 is accepted if S2 lies between χ a ,n −1σ 0 f (s 2 )
2 2
χ 2
σ
and b ,n −1 0
2
( n − 1)
Reject H0 Accept H0 Reject H0
(n − 1)
• Otherwise, H0 is rejected
α α
2 2
Solution Solution
For 5% level of significance, α = 0.05 The limits (critical values) are therefore,
α α χ 0.025,9
2
σ 02 (2.70)(2.0") 2
a= = 0.025 and b = 1− = 0.975 = = 1.2 (seconds of arc) 2
2 2 n −1 9
degrees of freedom = n − 1 = 10 − 1 = 9
χ 0.975,9
2
σ 02 (19.0)(2.0") 2
= = 8.44 (seconds of arc) 2
From the table, χ20.025,9 = 2.70 and χ20.975,9 = n −1 9
19.0 Given that the sample variance S2 =
(3.7)2 = 13.7 (seconds of arc)2 and this
value does not lie within the range of
the limits (critical region), then the null
hypothesis that the population
standard deviation (σ) = 2.0” is
rejected at 5% level of significance.