Probability and Statistics Lecture-10
Probability and Statistics Lecture-10
2
Chapter Outline
1. Hypothesis Testing
2. Tests on the Mean of a normal distribution,
variance Known
3. Tests on the Mean of a normal distribution,
variance Unknown
3
Statistical Hypothesis
In Chapter 8, it is shown how to construct a confidence interval estimate of a parameter
from sample data.
In this chapter, we will investigate how to decide which of two competing claims or
statements about some parameter is true. This decision making process is called
Hypothesis Testing.
Statistical hypothesis testing and confidence interval estimation of parameters are the
fundamental methods used at the data analysis stage of a comparative experiment, in
which the engineer is interested, for example, in comparing the mean of a population to a
specified value.
4
Example:
Null hypothesis
Alternative hypothesis
6
Tests of Statistical Hypotheses
8
Type I Error (significant level, α-error)
σ / n = 2.5 / 10 = 0.79
9
10
How can we reduce α?
Lets consider the critical values 48 and 52. (widening the acceptance region).
Then
" 48 − 50 % " 52 − 50 %
α = P$Z < '+ P $ Z > ' = 0.0114
# 0.79 & # 0.79 &
11
We can also reduce α by increasing the sample size.
If n=16, then
σ / n = 2.5 / 16 = 0.625
12
Type II error (β-error)
To calculate β, we must have a specific alternative hypothesis, that is, we must have a
particular value of μ.
Consider the case where the true value of the mean is μ=50.5 and
the hypothesized value is H0:μ=50. The true value of μ is very
close to 50 and the value of β is
15
Type II error probability is much higher for the case that the true mean
16
is 50.5 than the case where the mean is 52.
What is the effect of sample size on β?
48.5 − 52 51.5 − 52
β = P( ≤Z≤ ) = 0.2119
0.625 0.625
17
• Generally, the analyst controls the type I error probability α when
he or she selects the critical values.
• Strong Conclusion: Rejection of the null Hypothesis H0
18
Power of a statistical test
19
One-Sided and Two Sided Hypotheses
H 0 : µ = µ0
Two-sided Hypothesis:
H1 : µ ≠ µ 0
H 0 : µ = µ0
H1 : µ > µ 0
One-sided Hypothesis:
H 0 : µ = µ0
H1 : µ < µ 0
20
21
22
Tests on the Mean of a Normal Distribution,
Variance known
It is assumed that a random sample X1, X2,…,Xn has been taken from the normal
distribution. The sample mean X is normal with mean μ and variance σ2 /n.
Test Statistics: X − µ0
Z0 =
σ/ n
From a random sample of size n, we can compute the sample mean x and the
standard z-value
x − µ0
z0 =
σ/ n
23
For fixed significance level α, we have to determine where to place the critical
region
Test Statistics: X − µ0
T=
S/ n
30