HYPOTHESIS TESTING
HYPOTHESIS TESTING
Definition
• A statement about a population parameter
developed for the purpose of testing.
Hypothesis Testing
• A procedure based on sample evidence and
probability theory to determine whether the
hypothesis is a reasonable statement.
9-5
Hypothesis Testing
Step 1: State null and alternate hypotheses
NULL HYPOTHESIS
✓A statement about the value of a population parameter.
✓The Alternate hypothesis describes what you will conclude if
you reject the null hypothesis.
ALTERNATE HYPOTHESIS
✓ A statement that is accepted if the sample data provide
enough evidence that the null hypothesis is false.
✓Example: A recent article indicated that the mean age of a
Biman commercial aircraft is 20 years. To conduct a statistical
test regarding this statement, the first step is to determine the
null and alternate hypothesis. The null hypothesis represents
the current or reported condition.
❖It is written
H 0 : = 20.
LEVEL OF SIGNIFICANCE
TYPE I ERROR
TYPE II ERROR
TYPE I ERROR
▪ Rejecting the null hypothesis, H0, when it is true.
▪ The probability of committing another type of error, called
a type II error, is designated by the Greek letter .
TYPE II ERROR
▪ Accepting the null hypothesis when it is false.
The following table summarizes the
decisions the researcher could make and
the possible consequences:
Researcher
Null
Hypothesis Accepts H0 Rejects H0
Ho is true Correct decision Type I error
Ho is false Type II error Correct decision
Step 3
TEST STATISTIC
A value, determined from sample information,
used to determine whether to reject the null
hypothesis.
In hypothesis testing for the mean () when
σ is known or the sample size is large, the
test statistic z is computed by
X −
z=
/ n
The z value is based on the sampling distribution of X .
which is normally distributed when the sample is
reasonably large.
Step 4
Make a Decision
H1: 50000
X −
t =
s/ n
With n – 1 degrees of freedom, where:
PAIRED t TEST
d
t=
sd / n
• There are n-1 degrees of freedom and
Co. A 135 110 131 142 105 130 131 110 125 149
Co. B 128 105 119 140 98 123 127 115 122 145
Home Co. A Co. B Difference, d d2
1 135 128 7 49
2 110 105 5 25
3 131 119 12 144
4 142 140 2 4
5 105 98 7 49
6 130 123 7 49
7 131 127 4 16
8 110 115 -5 25
9 125 122 3 9
10 149 145 4 16
Total 46 386
At the .05 significance level, can we
conclude there is a difference in the
mean appraised values of the homes?
SOLUTION
Pooled Variance :
(n1 − 1) s + (n2 − 1) s
2 2
S =2 1 2
n1 + n2 − 2
p
Where-
X1 − X 2
t =
1 1
2
sp ( + )
n1 n2
Where:
Day 5 8 7 6 9 7
Afternoon 8 10 7 11 9 12 14 9
EXAMPLE
At the .05 significant level, is there a
difference in the mean number of defects
per shift?