Hypothesis Testing: Examples and Interpretation

 
H
y
p
o
t
h
e
s
i
s
 
t
e
s
t
i
n
g
KUS objectives
BAT 
Test a hypothesis at a given significance level for
one and two tailed tests
 
S
t
a
r
t
e
r
:
 
 
 
WB 5
 
 Cars entering a car park have to turn left or right. A survey is done of
20 cars. It is found that 15 went to the left. At the 5% significance level,
does this mean car drivers have a preference for a particular direction?
 
The evidence supports that we REJECT the hypothesis
There is evidence to suggest that car drivers have a preference for turning left
 
The probability that 15 or more turned left
 
Binomial distribution  n = 20    x = 15
 
The evidence supports that we do NOT  reject the hypothesis
There is no evidence to support the Doctors claim
W
B
 
7
 
B
r
a
d
 
p
l
a
n
t
e
d
 
2
5
 
s
e
e
d
s
 
i
n
 
h
i
s
 
g
r
e
e
n
h
o
u
s
e
.
 
H
e
 
h
a
s
 
r
e
a
d
 
i
n
 
a
 
g
a
r
d
e
n
i
n
g
 
b
o
o
k
t
h
a
t
 
t
h
e
 
p
r
o
b
a
b
i
l
i
t
y
 
o
f
 
o
n
e
 
o
f
 
t
h
e
s
e
 
s
e
e
d
s
 
g
e
r
m
i
n
a
t
i
n
g
 
i
s
 
0
.
2
5
.
 
T
e
n
 
o
f
 
B
r
a
d
s
 
s
e
e
d
s
g
e
r
m
i
n
a
t
e
d
.
 
H
e
 
c
l
a
i
m
e
d
 
t
h
a
t
 
t
h
e
 
g
a
r
d
e
n
i
n
g
 
b
o
o
k
 
h
a
d
 
u
n
d
e
r
e
s
t
i
m
a
t
e
d
 
t
h
i
s
 
p
r
o
b
a
b
i
l
i
t
y
.
T
e
s
t
,
 
a
t
 
t
h
e
 
5
%
 
l
e
v
e
l
 
o
f
 
s
i
g
n
i
f
i
c
a
n
c
e
,
 
B
r
a
d
s
 
c
l
a
i
m
.
 
S
t
a
t
e
 
y
o
u
r
 
h
y
p
o
t
h
e
s
e
s
 
c
l
e
a
r
l
y
.
 
X = number of seeds germinating
 
H
0
 : p = 0.25
 
H
1
 : p > 0.25
 
Accept H
0
 as there is insufficient evidence to support Brad’s claim
Two tailed tests
S
o
 
f
a
r
 
y
o
u
 
h
a
v
e
 
s
e
e
n
 
w
h
a
t
 
a
r
e
 
k
n
o
w
n
 
a
s
 
1
-
t
a
i
l
 
t
e
s
t
s
 
 
w
h
e
n
 
H
1
 
i
s
t
h
a
t
 
t
h
e
 
p
a
r
a
m
e
t
e
r
 
i
n
 
q
u
e
s
t
i
o
n
 
h
a
s
 
e
i
t
h
e
r
 
i
n
c
r
e
a
s
e
d
 
o
r
 
d
e
c
r
e
a
s
e
d
I
n
 
a
 
2
-
t
a
i
l
 
t
e
s
t
,
 
H
1
 
i
s
 
s
i
m
p
l
y
 
t
h
a
t
 
t
h
e
 
p
a
r
a
m
e
t
e
r
 
i
n
 
q
u
e
s
t
i
o
n
 
h
a
s
 
c
h
a
n
g
e
d
When doing a 2-tail test, the significance level is shared equally
between observations which are less than what was expected and
more than what was expected.
WB 8
 
   Over a long period of time it has been found that in one long
running Mexican restaurant the ratio on non vegetarian to vegetarian
meals is 2:1
In Manuel’s Mexican restaurant in a random sample of 10 people
ordering meals one ordered a vegetarian meal.
Using a 5% level of significance, test whether the proportion of people in
Manuel’s restaurant is different to that of the long running restaurant
 
Binomial distribution  n = 10    x = 1
 
Do NOT  reject the hypothesis
There is no evidence the ratio is different at Manuel’s
WB 9
 
   A manager tells their sales staff that they make a sale to 45% of
customers entering their shop.
 The manager randomly selects 40 customers. Of these, 25  were sold
something. At the 5% level of significance, test whether or not what the
manager thinks is justified
 
Binomial distribution  n = 40    x = 35
 
This is enough evidence to REJECT the hypothesis
There is evidence the staff sell more than the manager says
 
Practice
 
Ex 105B
 
self-assess
 
One thing learned is  –
 
One thing to improve is  –
KUS objectives
BAT 
Test a hypothesis at a given significance level for
one and two tailed tests
 
END
Slide Note
Embed
Share

This content covers various examples of hypothesis testing scenarios, including car drivers' preferences for turning directions, the effectiveness of a new drug compared to a standard treatment, and the probability of seeds germinating in a greenhouse. It explains how to formulate null and alternative hypotheses, calculate probabilities, and interpret results at different significance levels. Additionally, it introduces the concept of one-tailed and two-tailed tests in hypothesis testing.

  • Hypothesis Testing
  • Statistical Analysis
  • Significance Level
  • Null Hypothesis
  • Alternative Hypothesis

Uploaded on Aug 14, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Hypothesis testing Hypothesis tests

  2. Hypothesis testing BAT Test a hypothesis at a given significance level for one and two tailed tests KUS objectives Starter:

  3. WB 5 Cars entering a car park have to turn left or right. A survey is done of 20 cars. It is found that 15 went to the left. At the 5% significance level, does this mean car drivers have a preference for a particular direction? ?0: ? = 0.5 probability of turning left ?1: ? > 0.5 because we are testing if more turn left (one tailed) Binomial distribution n = 20 x = 15 ?~ ?(20,0.5) The probability that 15 or more turned left P ? 15 = 1 ?(? 14) < 5% = 1 0.9793 = 0.0207 The evidence supports that we REJECT the hypothesis There is evidence to suggest that car drivers have a preference for turning left

  4. The standard treatment for a particular disease has a 2 WB 6 success. A doctor has undertaken research in this area and has produced a new drug which has been successful with 11 out of 20 patients. The doctor claims that the new drug represents an improvement on the standard treatment. a) Write suitable null and alternative hypotheses b) Write the distribution of random variable X that represents the number of patients that could be cured if the null hypothesis were true c) Work out the probability of X taking a value equal to, or greater than 11 d) At a 5% significance level, is this result enough evidence to reject the null hypothesis 5 probability of ?0: ? =2 ?1: ? >2 5 probability of turning left 5 because Doctor claims an improvement (one tailed) 2 5 Binomial distribution ?~? 20, ? ? 11 = 1 ? ? 10 = 1 0.8725 = 0.1275 > 5% The evidence supports that we do NOT reject the hypothesis There is no evidence to support the Doctors claim

  5. WB 7 Brad planted 25 seeds in his greenhouse. He has read in a gardening book that the probability of one of these seeds germinating is 0.25. Ten of Brad s seeds germinated. He claimed that the gardening book had underestimated this probability. Test, at the 5% level of significance, Brad s claim. State your hypotheses clearly. ( ) 25 0 , 25 . ~ X B X = number of seeds germinating H0 : p = 0.25 H1 : p > 0.25 ( ) ( 9287 . ) = = = 10 1 1 9 P X P 0 X 0. 05 0713 0. Accept H0as there is insufficient evidence to support Brad s claim

  6. Two tailed tests So far you have seen what are known as 1-tail tests when H1 is that the parameter in question has either increased or decreased In a 2-tail test, H1 is simply that the parameter in question has changed When doing a 2-tail test, the significance level is shared equally between observations which are less than what was expected and more than what was expected.

  7. WB 8Over a long period of time it has been found that in one long running Mexican restaurant the ratio on non vegetarian to vegetarian meals is 2:1 In Manuel s Mexican restaurant in a random sample of 10 people ordering meals one ordered a vegetarian meal. Using a 5% level of significance, test whether the proportion of people in Manuel s restaurant is different to that of the long running restaurant ?0: ? =1 ?1: ? 1 3 probability vegetarian is ordered 3TWO TAILED ?~ ?( 10,1 Binomial distribution n = 10 x = 1 3 > 2.5% P ? 1 = 0.1040 Do NOT reject the hypothesis There is no evidence the ratio is different at Manuel s

  8. WB 9A manager tells their sales staff that they make a sale to 45% of customers entering their shop. The manager randomly selects 40 customers. Of these, 25 were sold something. At the 5% level of significance, test whether or not what the manager thinks is justified ?0: ? = 0.45 probability of a sale ?1: ? 0.45TWO TAILED ?~ ?( 40,0.45 Binomial distribution n = 40 x = 35 < 2.5% P ? 25 = 1 ? ? 24 = 1 0.9804 = 0.0196 This is enough evidence to REJECT the hypothesis There is evidence the staff sell more than the manager says

  9. Practice Ex 105B

  10. KUS objectives BAT Test a hypothesis at a given significance level for one and two tailed tests self-assess One thing learned is One thing to improve is

  11. END

More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#