Professional Documents
Culture Documents
06/04/2014
M.P.Dhanushika
06/04/2014
M.P.Dhanushika
Hypothesis Testing
06/04/2014
M.P.Dhanushika
06/04/2014
M.P.Dhanushika
Is he Dodgy / Liar?
06/04/2014
M.P.Dhanushika
Is he Dodgy?
You will probably not believe him.
Over 3 games, Sams average score is 30.
Dont believe him
Over 3 games, Sams average score is 140.
More likely to believe him
M.P.Dhanushika
Is he Dodgy?
What is your cut off score for Sam?
If Sam scores below 120 over 3 games
If Sam scores over 120 over 3 games
There is a claim Sams long time average mark is 150
REJECT Claim
06/04/2014
M.P.Dhanushika
06/04/2014
M.P.Dhanushika
Rejection Region
c =120
06/04/2014
M.P.Dhanushika
Your Mum
Go with Mum for bowling
Mum says Honey you know Im excellent bowler so my long
time average mark is 150
Over 3 games, mums average score is 30.
M.P.Dhanushika
Your Mum
What if you want to be more sure that the claim is false
before rejecting it?
Choose LOWER VALUE for a cut-off mark
06/04/2014
M.P.Dhanushika
Rejection Region
c =50
06/04/2014
M.P.Dhanushika
Rejection Region
c =120
06/04/2014
M.P.Dhanushika
Depend on
How sure you want to be when rejecting a claim
06/04/2014
M.P.Dhanushika
Decision Rule
Estimation
Dont know value of the parameter
Collect sample data
Give an approximate value or range for parameter
Testing
First, make a claim about the parameter
Then test the claim using sample data
06/04/2014
M.P.Dhanushika
Population
Claim
Average bowling
score over 100
games / long term
average score = 150
Sample
Bowling scores
over 3 Games
06/04/2014
SAMPLE STATISTIC
Average score over 3 games
M.P.Dhanushika
In reality
Claim is True
H0 is True
Claim is False
H0 is False
Wrong
Type II Error
Correct
M.P.Dhanushika
In reality
Claim is True
H0 is True
Claim is False
H0 is False
Wrong
Type II Error
Correct
06/04/2014
Accept H1
Accept H0
Reject Ho
Do not Reject Ho
M.P.Dhanushika
What is the probability associated with making a Type 1 error? Answer: alpha=.05.
Thus a decision to 'reject H0' is accompanied by knowledge about the probability of
being in error
our decision is to 'not reject H0
What is the probability associated with making a Type 2 error? Answer: beta is unknown
Thus a decision to 'not reject H0' is accompanied by uncertainty about the probability of
being in error.
Without having any idea about the probability of making an error,
we cannot say we have proven that H0 is true
Cannot make a stronger statement, like 'accept H0',
Thats why we word this result so weakly.
06/04/2014
M.P.Dhanushika
H0 : = 10
H1 : 10
Two Rejection Regions
Test Statistic =
X
M.P.Dhanushika
H0 : = 10
H1 : > 10
Rejection Region
Test Statistic =
10
06/04/2014
X
M.P.Dhanushika
H0 : = 10
H1 : < 10
Rejection Region
Test Statistic =
10
06/04/2014
X
M.P.Dhanushika
Example:
(1) Someone claims that the average daily sales of a firm is Rs. 2000.
06/04/2014
M.P.Dhanushika
M.P.Dhanushika
Sample Data
n = 100, Mean stress capacity of the sample =
= 79600
H0 : = 80000
Two tailed test
H1 : 80000
H1 : 80000
/ 2 = 0.025
/ 2 = 0.025
0 80000
Normal distribution
(Z table )
Normal distribution
(Z table )
t distribution
(t table )
Normal distribution
/ 2 = 0.025
0 Z / 2 X
/ 2 = 0.025
0 80000
0 Z / 2 X
/ 2 = 0.025
0 Z / 2 X
79216
/ 2 = 0.025
0 80000
0 Z / 2 X
80784
H1 : 80000
/ 2 = 0.025
0 Z / 2 X
/ 2 = 0.025
0 80000
0 Z / 2 X
79216
if Xis between 79216 and 80784
80784
Do not reject H0
Acceptance Region
Rejection Region
/ 2 = 0.025
0 Z / 2 X
/ 2 = 0.025
0 80000
79216
0 Z / 2 X
80784
Sample Data
n = 100, average salary of employees of the sample = X = 19240
Standard deviation of the salary of employees of the sample = s = 2610
H0 : = 18750
Two tailed test
H1 : 18750
/ 2 = 0.025
/ 2 = 0.025
0 18750
H1 : 18750
Normal distribution
(Z table )
Normal distribution
(Z table )
t distribution
(t table )
Normal distribution
/ 2 = 0.025
0 Z / 2 ( S X )
/ 2 = 0.025
0 18750
0 Z / 2 ( S X )
Normal distribution
S X stadard error of the sample mean
S/ n
/ 2 = 0.025
0 Z / 2 ( S X )
18238.44
/ 2 = 0.025
0 18750
0 Z / 2 ( S X )
19261.56
/ 2 = 0.025
0 Z / 2 ( S X )
18238.44
/ 2 = 0.025
0 18750
H1 : 18750
0 Z / 2 ( S X )
19261.56
Do not reject H0
Acceptance Region
Rejection Region
/ 2 = 0.025
0 Z / 2 ( S X )
18238.44
/ 2 = 0.025
0 18750
0 Z / 2 ( S X )
19261.56
Sample Data
n = 50, sample mean of the dosage = X
= 99.75
H0 : = 100
One tailed test
H1 : 100
H1 : < 100
H1 : < 100
= 0.1
0 100
Normal distribution
(Z table )
Normal distribution
(Z table )
t distribution
(t table )
Normal distribution
= 0.1
0 Z X
0 100
= 0.1
0 Z X
99.638
0 100
H1 : < 100
= 0.1
0 Z X
99.638
0 100
Do not reject H0
Acceptance Region
Rejection Region
= 0.1
99.638
0 100
Sample Data
n = 100, average bulb life of the sample= X = 1570
Standard deviation of the bulb life of the sample= s = 120
H0 : = 1600
One tailed test
H1 : 1600
H1 : < 1600
H1 : > 1600
H1 : < 1600
= 0.01
0 1600
Normal distribution
(Z table )
Normal distribution
(Z table )
t distribution
(t table )
Normal distribution
= 0.01
0 Z S X
0 1600
= 0.01
0 Z S X
1572.04
0 1600
H1 : < 1600
= 0.01
0 Z S X
0 1600
1572.04
if X is greater than 1572.04
Do not reject H0
Acceptance Region
Rejection Region
= 0.01
1572.04
0 1600
Sample Data
n = 25, Average number of days lost per worker of the sample =
Standard deviation of the sample= S = 15.845
H0 : = 15
Two tailed test
H1 : 15
= 18.32
Normal distribution
(Z table )
Normal distribution
(Z table )
t distribution
(t table )
Select t Distribution
t distribution
/ 2 = 0.025
/ 2 = 0.025
t
0
H1 : 15
X 0
t
SX
t distribution
/ 2 = 0.025
t / 2,n 1
/ 2 = 0.025
t
0
t / 2,n 1
t distribution
/ 2 = 0.025
t / 2
2.064
/ 2 = 0.025
t
0
t / 2
2.064
X 0
t
SX
SX S / n
t 1.05
t distribution
/ 2 = 0.025
t / 2
2.064
/ 2 = 0.025
t
0
t / 2
2.064
Acceptance Region
Rejection Region
X 0
t
SX
SX S / n
t 1.05
/ 2 = 0.025
t / 2
2.064
Do not reject H0
/ 2 = 0.025
t
0
1.05 t / 2
2.064
Step 6: Conclusion
X 0
t
SX
SX S / n
t 1.05
Rejection Region
/ 2 = 0.025
t / 2 2.064
/ 2 = 0.025
t
0
1.05 t / 2
2.064
Sample Data
n = 18, sample mean =X = 37.206
Standard deviation of the sample= S = 0.796
H0 : = 40
One tailed test
H1 : 40
H1 : < 40
Normal distribution
(Z table )
Normal distribution
(Z table )
t distribution
(t table )
Select t Distribution
t distribution
= 0.01
t
0
H1 : < 40
X 0
t
SX
t distribution
= 0.01
t ,n 1
t distribution
= 0.01
2.567
X 0
t
SX
SX S / n
= 0.01
t 14.89
2.567
Acceptance Region
Rejection Region
X 0
t
SX
SX S / n
= 0.01
14.89 t
t 14.89
2.567
reject H0
Step 6: Conclusion
Rejection Region
Acceptance Region
X 0
t
SX
SX S / n
t 14.89
= 0.01
14.89 t
2.567
H0 : = 0
H1 : 0
H0 : = 0
H1 : 0
H0 : = 0 H0 : = 0
H1 : < 0 H1 : > 0
H0 : = 0 H0 : = 0
H1 : < 0 H1 : > 0
H0 : = 0
H1 : 0
H0 : = 0 H0 : = 0
H1 : < 0 H1 : > 0
M.P.Dhanushika