Lecture 4 - Hypothesis Testing
Lecture 4 - Hypothesis Testing
Dr Kamran Mahroof
Associate Professor
School of Management
Faculty of Management, Law and Social Sciences
University of Bradford, United Kingdom
1 25/12/22
Objectives
– Define some common terminology related
to hypothesis testing.
– Perform hypothesis testing using the Distribution Analysis and t
Test tasks.
Judicial Analogy
Coin Example
T T
H
H
2.04 Poll
• If you have a fair coin and flip it 100 times, is it possible for it to
land on heads 100 times?
• Yes
• No
2.04 Poll – Correct Answer
• If you have a fair coin and flip it 100 times, is it possible for it to
land on heads 100 times?
• Yes
• No
Coin Analogy
• You used a decision rule to make a decision, but
was the decision correct?
Types of Errors
55 Heads 40 Heads
45 Tails 60 Tails
p-value=.3682 p-value=.0569
37 Heads 15 Heads
63 Tails 85 Tails
p-value=.0120 p-value<.0001
Coin Experiment – Sample Size Influence
• Flip a coin and get 40% heads and decide whether it is fair.
Statistical Hypothesis Test
Comparing and the p-Value
• In general, you
– reject the null hypothesis if p-value <
– fail to reject the null hypothesis if p-value .
2.05 Multiple Choice Poll
• Which of the following affects alpha?
a. The p-value of the test
b. The sample size
c. The number of Type I errors
d. All of the above
e. Answers a and b only
f. None of the above
2.05 Multiple Choice Poll – Correct Answer
• Which of the following affects alpha?
a. The p-value of the test
b. The sample size
c. The number of Type I errors
d. All of the above
e. Answers a and b only
f. None of the above
Performing a Hypothesis Test
• To test the null hypothesis H0: = 0, SAS software calculates the Student’s t
statistic value:
( x 0)
t
sx
• For the test score example:
t (1190.6251200) -0.5702
16.4416
• The null hypothesis is rejected when the calculated value
is more extreme (either positive or negative) than would be expected by
chance if H0 were true.
Performing a Hypothesis Test
95% CL Std
Mean 95% CL Mean Std Dev Dev
1190.6 1157.9 1223.4 147.1 127.3 174.2
Hypothesis Testing