Professional Documents
Culture Documents
DBM
Quantitative Techniques in Management
Semester - 1
Session - 6
HYPOTHESIS TESTING
Example
A random sample of 26 sociology
graduates scored 458 on the GRE
advanced sociology test with a standard
deviation of 20. Is this significantly
different from the population average
( = 440)?
Solution (cont.)
Step 2: State the null and alternate
hypotheses.
H0: = 440 (or H0:
H1: 440
= )
Solution (cont.)
Solution (cont.)
Step 4: Use Formula to Compute the Test Statistic
458 440
t
4.5
S
20
n 1
26 1
2. Establish Level of
Significance
is a predetermined value
The convention
= .05
= .01
= .001
( Fo Fe )
Fe
( Fo Fe )
Fe
Ex
fre pec
qu ted
en
cy
d
cte y
pe nc
Ex que
fre
5. Determine Degrees of
Freedom
df = (R-1)(C-1)
of
ber
Num ls in
leve n
m
colu le
b
varia
N
u
m
b
er of
le
v
e
l
s
in ro
variab w
le
Example
Suppose a researcher is interested in
voting preferences on gun control issues.
A questionnaire was developed and sent
to a random sample of 90 voters.
The researcher also collects information
about the political party membership of the
sample of 90 respondents.
Neutral
Oppose
f row
10
10
30
50
Republican 15
15
10
40
f column
25
40
n = 90
Democrat
25
Neutral
Oppose
f row
10
10
30
50
Republican 15
15
10
40
25
40
n = 90
Democrat
d
e
s
rv cie25
e
column bs en
O qu
fre
Row frequency
Neutral
Oppose
f row
10
10
30
50
Republican 15
15
10
40
f column
25
40
n = 90
Democrat
25
Neutral
Oppose
f row
10
10
30
50
Republican 15
15
10
40
f column
25
40
n = 90
Democrat
Column frequency
25
2. Establish Level of
Significance
Alpha of .05
Democrat
Favor
Neutral
Oppose
f row
fo =10
fo =10
fo =30
50
fe =13.9 fe =13.9
Republican fo =15
f column
fo =15
fe=22.2
fo =10
fe =11.1 fe =11.1
fe =17.8
25
40
25
40
n = 90
fo =10
Neutral
= 50*25/90
fo =10
fe =13.9 fe =13.9
Republican fo =15
f column
Oppose
fo =15
fo =30
50
fe=22.2
fo =10
fe =11.1 fe =11.1
fe =17.8
25
40
25
f row
40
n = 90
Democrat
Favor
Neutral
Oppose
f row
fo =10
fo =10
fo =30
50
fe =13.9 fe =13.9
Republican fo =15
f column
fe=22.2
= 40* 25/90
fo =15
fo =10
fe =11.1 fe =11.1
fe =17.8
25
40
25
40
n = 90
13.89
13.89
22.2
2
11.11
11.11
17.8
= 11.03
5. Determine Degrees of
Freedom
df = (R-1)(C-1) =
(2-1)(3-1) = 2
= 0.05
df = 2
Critical tabled value = 5.991
Test statistic, 11.03, exceeds critical value
Null hypothesis is rejected
Democrats & Republicans differ
significantly in their opinions on gun
control issues
Pearson Chi-Square
Likelihood Ratio
Linear-by-Linear
Association
N of Valid Cases
Value
11.025a
11.365
8.722
2
2
Asymp. Sig.
(2-sided)
.004
.003
.003
df
90
ANOVA
1.
2.
3.
4.
5.
6.
7.
Characteristics of
of the
the
Characteristics
F-Distribution
F-Distribution
Thereis
isaafamily
familyof
ofF-Distributions:
F-Distributions:
There
Each member of the family is determined by
the numerator degrees of freedom, and
denominator degrees of freedom
F cannot
two parameters:
the
Test for
for equal
equal Variances
Variances
Test
For the two tailed test, the test
statistic is given by:
F
F
s12 and s22
2
2
ss11
22
s
s 22
Question
Question
Colin, a stockbroker at Critical Securities, reported that the mean rate
of return on a sample of 10 internet stocks was 12.6 percent with a
standard deviation of 3.9 percent.
The mean rate of return on a sample of 8 utility stocks was 10.9 percent with a
standard deviation of 3.5 percent.
Recall
Recall
HypothesisTesting
Testing
Hypothesis
Step 11
Step
Statethe
thenull
nulland
andalternate
alternatehypotheses
hypotheses
State
Step 22
Step
Selectthe
thelevel
levelof
ofsignificance
significance
Select
Step 33
Step
Identifythe
thetest
teststatistic
statistic
Identify
Step 44
Step
Statethe
thedecision
decisionrule
rule
State
Step 55
Step
Computethe
thevalue
valueof
ofthe
thetest
teststatistic
statisticand
andmake
makeaa
Compute
decision
decision
Donot
not reject
reject HH00
Do
Reject HH00and
and accept
accept HH11
Reject
HypothesisTest
Test
Hypothesis
Step 11
Step
Statethe
thenull
nulland
andalternate
alternate
State
hypotheses
hypotheses
Step 22
Step
Selectthe
thelevel
levelof
ofsignificance
significance
Select
Step 33
Step
Identifythe
thetest
teststatistic
statistic
Identify
Step 44
Step
Statethe
thedecision
decisionrule
rule
State
Step 55
Step
Computethe
the
Compute
test statistic
statisticand
and
test
makeaadecision
decision
make
H 0: I2 U2
H : I2 2
1
U
= .05
2
1
s22
( 3 .9 ) 2
( 3.5) 2
= 1.2416
two or
or more
more
two
samplemeans
means
camefrom
from the
the
sample
came
same or
or equal
equalpopulations
populations
same
This technique is called
analysis of variance or
ANOVA
and
ANOVA Procedure
The Null Hypothesis (H0) is that the population means are the same
means is different
reject H0
if
F(computed) is
greater than
F(table)
Terminology
Total Variation
k 1
SST
F
SSE n k
( X )
SSTotal X
n
2
SST
n
nc
51
51
44
Loris
10
12
13
11
46
46
44
Lander
18
16
17
17
17
85
85
55
(
X
)
SS Total X 2 n
= 2634 -
(182)2
13
= 86
SST
n
c
51 2 46 2 85 2
4
= 76.25
2
(
182
)
13
76.25
= 9.75
HypothesisTest
Test
Hypothesis
Step 11
Step
Step 22
Step
Step 33
Step
Step 44
Step
Step 55
Step
Statethe
thenull
nulland
andalternate
alternate
State
hypotheses
hypotheses
H 0:
1 = 2 = 3
H :
1
Treatment means
are not all equal
Select
the
level
of
significance
Select the level of significance
= .05
Identifythe
thetest
teststatistic
statistic
The test statistic is the
Identify
F
distribution
Statethe
thedecision
decisionrule
rule
State
Computethe
the
Compute
test statistic
statisticand
and
test
makeaadecision
decision
make
SST k 1
SSE
n k
76.25
9.75
2
10
= 39.10
Conclusion:
hypothesis
The treatment means are not the same
The mean number of meals sold at the
three locations is not the same
ANOVA Table
Table
ANOVA
from the Minitab system
Analysis of Variance
Source
DF
SS
MS
F
P
Factor
2
76.250
38.125
39.10
0.000
Error
10
9.750
0.975
Total
12
86.000
Individual 95% CIs For Mean Based on Pooled St.Dev
Level
N
Mean
St.Dev ---------+--------+---------+------Aynor
4
12.750
0.957
(---*---)
Loris
4
11.500
1.291
(---*---)
Lander
5
17.000
0.707
(---*---)
---------+---------+---------+------Pooled St.Dev =
0.987
12.5
15.0
17.5
Inferences
About
Treatment
Means
1
1
X1 X2 t MSE
n1 n2
MSE = [SSE(n-k)]
Example
X2 t
MSE
1
n1
n2
MSE
MSE
1
5
2
B r2
( X)
SSB
n
k
Day
Evening
Night
Output
Output
Output
McCartney
31
25
35
Neary
33
26
33
Schoen
28
24
30
Thompson
30
29
28
Wagner
28
26
27
HypothesisTest
Test
Hypothesis
Differencebetween
betweenvarious
variousshifts?
shifts?
Difference
Step 11
Step
Statethe
thenull
nulland
andalternate
alternate
State
hypotheses
hypotheses
Step 22
Step
Selectthe
thelevel
levelof
ofsignificance
significance
Select
Step 33
Step
Identifythe
thetest
teststatistic
statistic
Identify
Step 44
Step
Statethe
thedecision
decisionrule
rule
State
Step 55
Step
Computethe
the
Compute
test statistic
statisticand
and
test
makeaadecision
decision
make
H 0:
1 = 2 = 3
H : Not
1
SST k 1
SSE ( k 1)( b 1)
SST k 1
SSE ( k 1)( b 1)
3 1
43.47 3 1 5 1
62 . 53
= 5.754
HypothesisTest
Test
Hypothesis
Differencebetween
betweenvarious
variousshifts?
shifts?
Difference
Step 11
Step
Step 22
Step
Step 33
Step
Step 44
Step
Step 55
Step
Statethe
thenull
nulland
andalternate
alternate
State
hypotheses
hypotheses
H 0:
1 = 2 = 3
H : Not
1
Computethe
the
Compute
test statistic
statisticand
and
test
makeaadecision
decision
make
The df
SST k 1
SSE ( k 1)( b 1)
Step 55
Step
SST k 1
SSE ( k 1)( b 1)
4
= 1.55
43.47 24
33.73
Units
versus
Worker,
Shift
Units versus Worker, Shift
Analysis
of
Variance
for
Units
Analysis of Variance for Units
Source
Source
Worker
Worker
Shift
Shift
Error
Error
Total
Total
DF
SS
DF
SS
4
33.73
4
33.73
2
62.53
2
62.53
8
43.47
8
43.47
14 139.73
14 139.73
MS
MS
8.43
8.43
31.27
31.27
5.43
5.43
F
P
F
P
1.55 0.276
1.55 0.276
5.75 0.028
5.75 0.028