SlideShare a Scribd company logo
1 of 30
Download to read offline
Lecture 15
HYPOTHESIS TESTING
Study Outline
Sampling Distributions and Central limit theorem
◦ populations and samples
◦ sampling distributions of the mean (std dev known)
◦ sampling distribution of the mean ( std dev unknown)
Point Estimate (PE) and Maximum Error in Estimation E
Maximum likelihood Estimate (MLE)
Confidence Interval Estimation (CI)
Hypothesis Testing
Fall 2021 DR. MAHA A. HASSANEIN 2
Recall: Confidence Interval
For large sample , the Confidence Interval for 𝜇 (𝜎 known):
ത
𝑋 − 𝑧𝛼
2
.
𝜎
𝑛
≤ 𝜇 ≤ ത
𝑋 + 𝑧𝛼
2
.
𝜎
𝑛
For small sample of a Normal population, the Confidence Interval for
𝜇 (𝜎 unknown):
ത
𝑋 − 𝑡𝛼
2
.
𝑆
𝑛
≤ 𝜇 ≤ ത
𝑋 + 𝑡𝛼
2
.
𝑆
𝑛
This gives a (1 − 𝛼 )100% confidence that this interval contains the
population mean 𝜇.
Fall 2021 DR. MAHA A. HASSANEIN 3
z-Interval
t-Interval
Hypothesis Testing
We start by a conjecture or postulate something about a system
◦ For example ….
◦ Drinking coffee increases risk of cancer.
◦ There is a difference in accuracy between two measuring devices
◦ The sales of computer and the temperature are independent variables
◦ Blood type is independent on eye color.
Put the conjecture in the form of a statistical Hypothesis
We use the sample data to provide evidence that either accept or reject
the Hypothesis.
 Data-based Decision procedure
Fall 2021 DR. MAHA A. HASSANEIN 4
Hypothesis Testing
Definition
A statistical Hypothesis is an assertion or conjecture concerning one or
more populations.
In other words , a Hypothesis is a claim that we want to test
Fall 2021 DR. MAHA A. HASSANEIN 5
Illustrative Example
The proportion of defective parts in a lot is p=0.1 .
A random sample of size n =100 is tested for defective parts ; the
proportion of defective parts in the sample is found to be p=0.12
Does this Sample rejects the old believes that p=0.1 ? P>0.1 ? P<0.1
How certain are you?
If another random sample of size 100 , has p=0.2
Does this Sample rejects the old believes that p=0.1 ? How certain?
Fall 2021 DR. MAHA A. HASSANEIN 6
Types Of Hypothesis
Null Hypothesis , denoted by 𝐻0
Alternative Hypothesis , denoted by 𝐻1 ( or 𝐻𝑎)
Definitions.
𝐻1: Is question to be answered; the claim we wish to establish
“Research Question”
𝐻0: Is the logical complement of 𝐻1; we need to reject the claim
“Default” or “Current belief”
Fall 2021 DR. MAHA A. HASSANEIN 7
Illustrative Example
In a factory , it is established that the mean weight of a product is 5 gm.
A new supervisor , claims that the factory no longer produces this
product with 5 gm weight.
Random samples are tested , and the average weight of product is
recorded .
We define the Hypothesis as follows:
𝑯𝟎 : 𝜇 = 5 and 𝑯𝟏 : 𝜇 ≠ 5
The question :
Using the samples, do we reject 𝑯𝟎 and accept 𝑯𝟏?
Else, we fail to reject 𝑯𝟎
Fall 2021 DR. MAHA A. HASSANEIN 8
Decision of HT
Reject Null Hypothesis 𝑯𝟎: in favour of 𝐻1because of sufficient
evidence in the data
Fail to Reject 𝑯𝟎: because of insufficient evidence in the data
Type I error: Rejection of the 𝑯𝟎 when 𝑯𝟎 is true with probability 𝛼
Type II error: Nonrejection of 𝑯𝟎 when 𝑯𝟏 is true with probability
denoted by 𝛽
Fall 2021 DR. MAHA A. HASSANEIN 9
𝑯𝟎 is True 𝑯𝟎 is False
Do not reject 𝑯𝟎
Correct Decision Type II error
Reject 𝑯𝟎 Type I error
Correct Decision
Step 1 : Formulate 𝑯𝟎 and 𝑯𝟏
One-sided alternative Hypothesis
𝑯𝟎 : 𝜇 = 𝜇0 and 𝑯𝟏 : 𝜇 > 𝜇0
One-sided alternative Hypothesis
𝑯𝟎 : 𝜇 = 𝜇0 and 𝑯𝟏 : 𝜇 < 𝜇0
Two-sided alternative Hypothesis
𝑯𝟎 : 𝜇 = 𝜇0 and 𝑯𝟏 : 𝜇 ≠ 𝜇0
Fall 2021 DR. MAHA A. HASSANEIN 10
One-Tailed vs. Two-Tailed Tests
One-Tailed Hypothesis Test
Values of the test statistic leading to rejecting H0 fall in one tail of the
sampling distribution curve.
Ex: H0: µ =29 & Ha: µ >29
Ex: H0: µ =29 & Ha: µ <29
Two-Tailed Hypothesis Test
Values of the test statistic leading to rejecting H0 fall in both tails of the
sampling distribution curve.
Ex: H0: µ =29 & Ha: µ =29
Fall 2021 DR. MAHA A. HASSANEIN 11
Step 2:
Specify Level of Significance
Denoted by 𝛼
α= probability of making a Type I Error ( also called the level of
significance)
The researcher decides the maximum acceptable error (α). Traditionally
α=5% (95% confidence) or 1% ( 00% confidence) .
Fall 2021 DR. MAHA A. HASSANEIN 12
Step 3 - Rejection Region
Based on the sampling distribution of an appropriate statistic, we
construct a criterion for testing the null hypothesis against the given
alternative for level of significance α
For z-Interval ; compute zα or zα/2; known as 𝑧𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙
For t-Interval ; compute tα or tα/2; known as 𝑡𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙
Fall 2021 DR. MAHA A. HASSANEIN 13
Steps 4-5
4. We calculate from the data the value of the test statistic on which
the decision is to be based
The test Statistic
For z-Interval 𝑧 =
ҧ
𝑥−𝜇
𝜎/ 𝑛
For t-Interval 𝑡 =
ҧ
𝑥−𝜇
𝑠/ 𝑛
5. We decide whether to reject the null hypothesis or whether to fail to
reject it based on the critical region ( rejection region) .
Fall 2021 DR. MAHA A. HASSANEIN 14
Example
A product manager of a production line wants to introduce the
production line into a new market area.
A random sample of 400 houses in the new market area indicated that
the average income is $30,000 with a standard deviation of $8,000.
It is believed that the product line will be successful if the average
income per household is >$29,000.
Should the new product line be introduced with 5% error?
Fall 2021 DR. MAHA A. HASSANEIN 18
Solution
Population mean 𝜇 = 29,000, 𝑛 = 400
Sample mean and standard deviation ҧ
𝑥 = 30,000 and 𝑠 = 8000
Step 1: H0: µ = 29,000 and Ha: µ > 29,000
Step 2: The maximum acceptable error α = 5%
Step 3: Using the one-tailed Z-Test (rejection region right tail)
𝑧𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 (𝑓𝑜𝑟 𝛼 = 0.05) = 1.645 Critical Region: 𝑧 > 1.645
Step 4: the test statistic
𝑧 =
ҧ
𝑥−𝜇
𝑠/ 𝑛
=
30000−29000
8000/ 400
=
20
8
= 2.5
Step 5: z=2.5 > 1.645 =zcritical  Reject H0 & Accept Ha
We can be confident enough to introduce the new product line based on the
mean household income information available.
Fall 2021 DR. MAHA A. HASSANEIN 19
One-Tailed Hypothesis Test
Fall 2021 DR. MAHA A. HASSANEIN 20
µ=0
µ=29,000
Zcritical
xcritical
Rejection Area (α=5%)
1.645
z
x
2.5
Example
A company stated that their product is on average 3 mm in diameter. An
employee claims that the average is no more equal to 3.0 mm .
A random sample of 100 product is measured indicated that the
average diameter is 3.2 mm with a standard deviation of 0.1
It is believed that the claim will be true if the average diameter is not
3.0 mm.
Should the claim be accepted about the product average with 99%
confidence level?
Fall 2021 DR. MAHA A. HASSANEIN 21
Solution
Population: 𝜇 = 3.0, Sample : 𝑛 = 100, ҧ
𝑥 = 3.2 and 𝑠 = 0.1
Step 1: H0: µ = 3 and Ha: µ≠ 3
Step 2: The maximum acceptable error α = 0.01 ; α/2=0.005
Step 3: Using the Two-tailed Z-Test (large sample size)
𝑧𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 (𝑓𝑜𝑟 𝛼/2 = 0.005) = 2.575
Critical Region:𝑧 < −2.575𝑎𝑛𝑑 𝑧 > 2.575
Step 4: the test statistic
𝑧 =
ҧ
𝑥−𝜇
𝑠/ 𝑛
=
3.2−3.0
0.1/ 100
=
2
10
= 0.2
Step 5: z=0.2 < 2.575 =zcritical  Fail to reject H0
We can not be confident enough to reject the product average
diameter 3.0 based on the information available.
Fall 2021 DR. MAHA A. HASSANEIN 22
Two-Tailed Hypothesis Test
Fall 2021 DR. MAHA A. HASSANEIN 23
µ=3.0
__
Xcritical 2
__
Xcritical 1
Rejection Area 1
(α/2=2.5%)
Rejection Area 2
(α/2=2.5%)
Z_critical = 2.645
z=0.2
Important Values for Tests
Convidence Level
CL
Significant level
𝛼
𝑍𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙
One-tail Test Two-tail Test
0.9 0.10 1.28 1.645
0.95 0.05 1.645 1.96
0.98 0.02 2.05 2.33
0.99 0.01 2.33 2.645
Fall 2021 DR. MAHA A. HASSANEIN 24
Example 3
A manufacturer of fuses claims that with 20% overload, the fuse will
blow in 12.4 minutes on the average .
To test this claim, a sample of 20 fuses was subjected to a 20%
overload, the times to blow had a mean 10.63 minutes and a standard
deviation of 2.48 minutes.
If the data constitute a random sample from a normal population , do
they tend to support or refute the manufacturer’s claim ?
Fall 2021 DR. MAHA A. HASSANEIN 25
Solution
Population: normally distributed with mean 12.4 and 𝜎 𝑢𝑛𝑘𝑛𝑜𝑤𝑛
Sample : n=20 , ത
𝑋=10.63 , S=2.48
Step 1: H0: µ = 12.4 and Ha: µ < 12.4
Step 2: The maximum acceptable error α ( not given) ?
Step 3: Using the one-tailed t-Test, 𝜈 = 𝑛 − 1 =19 with 𝑡𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 𝛼 ?
Step 4: the test statistic with 𝜈 = 𝑛 − 1 =19 degrees of freedom, is given by
𝑡 =
ത
𝑋−𝜇
𝑆/ 𝑛
=
10.63−12.4
2.48/ 20
= −3.19
Step 5: From Table: For 𝜈 = 19 , since t = −3.19 < −2.861
𝑝 = 𝑃 𝑡 < −2.861 = 0.005(= 𝛼)
𝑤ℎ𝑒𝑟𝑒 2.861 is the max abs value for t at 𝜈 = 19 . P-value is a very small
probability, we conclude that the data tend to refute the manufacturer’s claim. i.e.
the mean blowing time of his fuses with a 20% overload is less than 12.4 .
Fall 2021 DR. MAHA A. HASSANEIN 26
Fall 2021 DR. MAHA A. HASSANEIN 27
𝑡𝛼
𝜈
𝛼
P-values in Hypothesis Testing
- Specify the rejection region whether we are two tail, one-tail
- Calculate your test statistic and compare
Purpose of the p-value is no different than before using rejection
regions
Before we have α and select the critical region accordingly .
The maximum risk of making type I error is controlled
Now P-values approach merely reject or donot reject conclusion with
probability p.
P-values approach are more common in research papers , real problems
, and applied statistics.
Fall 2021 DR. MAHA A. HASSANEIN 28
Definition: P-Value
A P-value is the lowest level (of significance) at which the observed value of
the test statistic is significant
i.e It is the probability of obtaining a sample “more extreme” than the ones
observed in your data, assuming that the Null Hypothesis is true .
Statistical Testing P-value Approach :
1- State Null and Alternative Hypothesis
2- Choose an appropriate test statistic
3- Compute P-value based on computed value of test statistic
Draw conclusions based on system
If p-value < α, we can reject H0 and accept Ha.
If p-value > α, we cannot reject H0 nor accept Ha.
Fall 2021 DR. MAHA A. HASSANEIN 29
Example 4
A random sample of 100 deaths in Us during the past year showed an
average life span of 71.8 years
A population with 𝜎 = 8.9 years , does this indicate that the mean life
span today is greater than 70 years? Use a 0.05 level of significance.
Fall 2021 DR. MAHA A. HASSANEIN 30
Solution
Population: 𝜇 = 70, 𝜎 = 8.9;
Sample : 𝑛 = 100, ҧ
𝑥 = 71.8
Step 1: H0: µ = 70 and H1: µ> 70
Step 2: α = 0.05 ;
Step 3: Using the one-tailed Z-Test
𝑧𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 (𝑓𝑜𝑟 𝛼 = 0.05) = 1.645  Critical Region: 𝑧 > 1.645
Step 4: the test statistic
𝑧 =
ҧ
𝑥−𝜇
𝑠/ 𝑛
=
71.8−70
8.9/ 100
= 2.02
Step 5: P=P(z>2.02)=0.0217 < 0.05= α  Reject H0 in favor of H1
The evidence in favor of H1 is even stronger than that suggested by
a 0.05 level of significance
Fall 2021 DR. MAHA A. HASSANEIN 31
P
2.02
1.645
Reference
Text book
Chapter 7.
sec 7.4 Tests of Hypothesis
Sec. 7.5 Null Hypotheses and Tests of
Hypotheses
Sec. 7.6 Hypotheses concerning one mean
Sec. 7.7 The relation between Tests and
Confidence Intervals
Fall 2021 DR. MAHA A. HASSANEIN 32
Thank you for your attention
Maha
Fall 2021 DR. MAHA A. HASSANEIN 33

More Related Content

Similar to Lecture 15 - Hypothesis Testing (1).pdf

8. testing of hypothesis for variable &amp; attribute data
8. testing of hypothesis for variable &amp; attribute  data8. testing of hypothesis for variable &amp; attribute  data
8. testing of hypothesis for variable &amp; attribute dataHakeem-Ur- Rehman
 
Chapter 10
Chapter 10Chapter 10
Chapter 10bmcfad01
 
BUS173 Lecture 5.pdf
BUS173 Lecture 5.pdfBUS173 Lecture 5.pdf
BUS173 Lecture 5.pdfSusantoSaha1
 
1667390753_Lind Chapter 10-14.pdf
1667390753_Lind Chapter 10-14.pdf1667390753_Lind Chapter 10-14.pdf
1667390753_Lind Chapter 10-14.pdfAriniputriLestari
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statisticsMaria Theresa
 
Statistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxStatistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxdessiechisomjj4
 
Business Statistics Chapter 9
Business Statistics Chapter 9Business Statistics Chapter 9
Business Statistics Chapter 9Lux PP
 
Running head HYPOTHESIS TEST 1HYPOTHESIS TESTING.docx
Running head HYPOTHESIS TEST    1HYPOTHESIS TESTING.docxRunning head HYPOTHESIS TEST    1HYPOTHESIS TESTING.docx
Running head HYPOTHESIS TEST 1HYPOTHESIS TESTING.docxcowinhelen
 
Chapter 10 One sample test of hypothesis.ppt
Chapter 10 One sample test of hypothesis.pptChapter 10 One sample test of hypothesis.ppt
Chapter 10 One sample test of hypothesis.pptrhanik1596
 

Similar to Lecture 15 - Hypothesis Testing (1).pdf (20)

Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
 
SNM-1.pdf
SNM-1.pdfSNM-1.pdf
SNM-1.pdf
 
8. testing of hypothesis for variable &amp; attribute data
8. testing of hypothesis for variable &amp; attribute  data8. testing of hypothesis for variable &amp; attribute  data
8. testing of hypothesis for variable &amp; attribute data
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
BUS173 Lecture 5.pdf
BUS173 Lecture 5.pdfBUS173 Lecture 5.pdf
BUS173 Lecture 5.pdf
 
1667390753_Lind Chapter 10-14.pdf
1667390753_Lind Chapter 10-14.pdf1667390753_Lind Chapter 10-14.pdf
1667390753_Lind Chapter 10-14.pdf
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
Statistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxStatistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docx
 
Business Statistics Chapter 9
Business Statistics Chapter 9Business Statistics Chapter 9
Business Statistics Chapter 9
 
Ch09(1)
Ch09(1)Ch09(1)
Ch09(1)
 
Running head HYPOTHESIS TEST 1HYPOTHESIS TESTING.docx
Running head HYPOTHESIS TEST    1HYPOTHESIS TESTING.docxRunning head HYPOTHESIS TEST    1HYPOTHESIS TESTING.docx
Running head HYPOTHESIS TEST 1HYPOTHESIS TESTING.docx
 
Chapter 10 One sample test of hypothesis.ppt
Chapter 10 One sample test of hypothesis.pptChapter 10 One sample test of hypothesis.ppt
Chapter 10 One sample test of hypothesis.ppt
 
Day 3 SPSS
Day 3 SPSSDay 3 SPSS
Day 3 SPSS
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Hypothesis testing Part1
Hypothesis testing Part1Hypothesis testing Part1
Hypothesis testing Part1
 

Recently uploaded

Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangeThinkInnovation
 
Vastral Call Girls Book Now 7737669865 Top Class Escort Service Available
Vastral Call Girls Book Now 7737669865 Top Class Escort Service AvailableVastral Call Girls Book Now 7737669865 Top Class Escort Service Available
Vastral Call Girls Book Now 7737669865 Top Class Escort Service Availablegargpaaro
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxronsairoathenadugay
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numberssuginr1
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.pptibrahimabdi22
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteedamy56318795
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...ThinkInnovation
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...SOFTTECHHUB
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareGraham Ware
 
Top profile Call Girls In Rohtak [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Rohtak [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Rohtak [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Rohtak [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...gajnagarg
 
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...HyderabadDolls
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRajesh Mondal
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxchadhar227
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...Elaine Werffeli
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...nirzagarg
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 

Recently uploaded (20)

Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
 
Vastral Call Girls Book Now 7737669865 Top Class Escort Service Available
Vastral Call Girls Book Now 7737669865 Top Class Escort Service AvailableVastral Call Girls Book Now 7737669865 Top Class Escort Service Available
Vastral Call Girls Book Now 7737669865 Top Class Escort Service Available
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbers
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
Top profile Call Girls In Rohtak [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Rohtak [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Rohtak [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Rohtak [ 7014168258 ] Call Me For Genuine Models We...
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
 
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
 

Lecture 15 - Hypothesis Testing (1).pdf

  • 2. Study Outline Sampling Distributions and Central limit theorem ◦ populations and samples ◦ sampling distributions of the mean (std dev known) ◦ sampling distribution of the mean ( std dev unknown) Point Estimate (PE) and Maximum Error in Estimation E Maximum likelihood Estimate (MLE) Confidence Interval Estimation (CI) Hypothesis Testing Fall 2021 DR. MAHA A. HASSANEIN 2
  • 3. Recall: Confidence Interval For large sample , the Confidence Interval for 𝜇 (𝜎 known): ത 𝑋 − 𝑧𝛼 2 . 𝜎 𝑛 ≤ 𝜇 ≤ ത 𝑋 + 𝑧𝛼 2 . 𝜎 𝑛 For small sample of a Normal population, the Confidence Interval for 𝜇 (𝜎 unknown): ത 𝑋 − 𝑡𝛼 2 . 𝑆 𝑛 ≤ 𝜇 ≤ ത 𝑋 + 𝑡𝛼 2 . 𝑆 𝑛 This gives a (1 − 𝛼 )100% confidence that this interval contains the population mean 𝜇. Fall 2021 DR. MAHA A. HASSANEIN 3 z-Interval t-Interval
  • 4. Hypothesis Testing We start by a conjecture or postulate something about a system ◦ For example …. ◦ Drinking coffee increases risk of cancer. ◦ There is a difference in accuracy between two measuring devices ◦ The sales of computer and the temperature are independent variables ◦ Blood type is independent on eye color. Put the conjecture in the form of a statistical Hypothesis We use the sample data to provide evidence that either accept or reject the Hypothesis.  Data-based Decision procedure Fall 2021 DR. MAHA A. HASSANEIN 4
  • 5. Hypothesis Testing Definition A statistical Hypothesis is an assertion or conjecture concerning one or more populations. In other words , a Hypothesis is a claim that we want to test Fall 2021 DR. MAHA A. HASSANEIN 5
  • 6. Illustrative Example The proportion of defective parts in a lot is p=0.1 . A random sample of size n =100 is tested for defective parts ; the proportion of defective parts in the sample is found to be p=0.12 Does this Sample rejects the old believes that p=0.1 ? P>0.1 ? P<0.1 How certain are you? If another random sample of size 100 , has p=0.2 Does this Sample rejects the old believes that p=0.1 ? How certain? Fall 2021 DR. MAHA A. HASSANEIN 6
  • 7. Types Of Hypothesis Null Hypothesis , denoted by 𝐻0 Alternative Hypothesis , denoted by 𝐻1 ( or 𝐻𝑎) Definitions. 𝐻1: Is question to be answered; the claim we wish to establish “Research Question” 𝐻0: Is the logical complement of 𝐻1; we need to reject the claim “Default” or “Current belief” Fall 2021 DR. MAHA A. HASSANEIN 7
  • 8. Illustrative Example In a factory , it is established that the mean weight of a product is 5 gm. A new supervisor , claims that the factory no longer produces this product with 5 gm weight. Random samples are tested , and the average weight of product is recorded . We define the Hypothesis as follows: 𝑯𝟎 : 𝜇 = 5 and 𝑯𝟏 : 𝜇 ≠ 5 The question : Using the samples, do we reject 𝑯𝟎 and accept 𝑯𝟏? Else, we fail to reject 𝑯𝟎 Fall 2021 DR. MAHA A. HASSANEIN 8
  • 9. Decision of HT Reject Null Hypothesis 𝑯𝟎: in favour of 𝐻1because of sufficient evidence in the data Fail to Reject 𝑯𝟎: because of insufficient evidence in the data Type I error: Rejection of the 𝑯𝟎 when 𝑯𝟎 is true with probability 𝛼 Type II error: Nonrejection of 𝑯𝟎 when 𝑯𝟏 is true with probability denoted by 𝛽 Fall 2021 DR. MAHA A. HASSANEIN 9 𝑯𝟎 is True 𝑯𝟎 is False Do not reject 𝑯𝟎 Correct Decision Type II error Reject 𝑯𝟎 Type I error Correct Decision
  • 10. Step 1 : Formulate 𝑯𝟎 and 𝑯𝟏 One-sided alternative Hypothesis 𝑯𝟎 : 𝜇 = 𝜇0 and 𝑯𝟏 : 𝜇 > 𝜇0 One-sided alternative Hypothesis 𝑯𝟎 : 𝜇 = 𝜇0 and 𝑯𝟏 : 𝜇 < 𝜇0 Two-sided alternative Hypothesis 𝑯𝟎 : 𝜇 = 𝜇0 and 𝑯𝟏 : 𝜇 ≠ 𝜇0 Fall 2021 DR. MAHA A. HASSANEIN 10
  • 11. One-Tailed vs. Two-Tailed Tests One-Tailed Hypothesis Test Values of the test statistic leading to rejecting H0 fall in one tail of the sampling distribution curve. Ex: H0: µ =29 & Ha: µ >29 Ex: H0: µ =29 & Ha: µ <29 Two-Tailed Hypothesis Test Values of the test statistic leading to rejecting H0 fall in both tails of the sampling distribution curve. Ex: H0: µ =29 & Ha: µ =29 Fall 2021 DR. MAHA A. HASSANEIN 11
  • 12. Step 2: Specify Level of Significance Denoted by 𝛼 α= probability of making a Type I Error ( also called the level of significance) The researcher decides the maximum acceptable error (α). Traditionally α=5% (95% confidence) or 1% ( 00% confidence) . Fall 2021 DR. MAHA A. HASSANEIN 12
  • 13. Step 3 - Rejection Region Based on the sampling distribution of an appropriate statistic, we construct a criterion for testing the null hypothesis against the given alternative for level of significance α For z-Interval ; compute zα or zα/2; known as 𝑧𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 For t-Interval ; compute tα or tα/2; known as 𝑡𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 Fall 2021 DR. MAHA A. HASSANEIN 13
  • 14. Steps 4-5 4. We calculate from the data the value of the test statistic on which the decision is to be based The test Statistic For z-Interval 𝑧 = ҧ 𝑥−𝜇 𝜎/ 𝑛 For t-Interval 𝑡 = ҧ 𝑥−𝜇 𝑠/ 𝑛 5. We decide whether to reject the null hypothesis or whether to fail to reject it based on the critical region ( rejection region) . Fall 2021 DR. MAHA A. HASSANEIN 14
  • 15. Example A product manager of a production line wants to introduce the production line into a new market area. A random sample of 400 houses in the new market area indicated that the average income is $30,000 with a standard deviation of $8,000. It is believed that the product line will be successful if the average income per household is >$29,000. Should the new product line be introduced with 5% error? Fall 2021 DR. MAHA A. HASSANEIN 18
  • 16. Solution Population mean 𝜇 = 29,000, 𝑛 = 400 Sample mean and standard deviation ҧ 𝑥 = 30,000 and 𝑠 = 8000 Step 1: H0: µ = 29,000 and Ha: µ > 29,000 Step 2: The maximum acceptable error α = 5% Step 3: Using the one-tailed Z-Test (rejection region right tail) 𝑧𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 (𝑓𝑜𝑟 𝛼 = 0.05) = 1.645 Critical Region: 𝑧 > 1.645 Step 4: the test statistic 𝑧 = ҧ 𝑥−𝜇 𝑠/ 𝑛 = 30000−29000 8000/ 400 = 20 8 = 2.5 Step 5: z=2.5 > 1.645 =zcritical  Reject H0 & Accept Ha We can be confident enough to introduce the new product line based on the mean household income information available. Fall 2021 DR. MAHA A. HASSANEIN 19
  • 17. One-Tailed Hypothesis Test Fall 2021 DR. MAHA A. HASSANEIN 20 µ=0 µ=29,000 Zcritical xcritical Rejection Area (α=5%) 1.645 z x 2.5
  • 18. Example A company stated that their product is on average 3 mm in diameter. An employee claims that the average is no more equal to 3.0 mm . A random sample of 100 product is measured indicated that the average diameter is 3.2 mm with a standard deviation of 0.1 It is believed that the claim will be true if the average diameter is not 3.0 mm. Should the claim be accepted about the product average with 99% confidence level? Fall 2021 DR. MAHA A. HASSANEIN 21
  • 19. Solution Population: 𝜇 = 3.0, Sample : 𝑛 = 100, ҧ 𝑥 = 3.2 and 𝑠 = 0.1 Step 1: H0: µ = 3 and Ha: µ≠ 3 Step 2: The maximum acceptable error α = 0.01 ; α/2=0.005 Step 3: Using the Two-tailed Z-Test (large sample size) 𝑧𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 (𝑓𝑜𝑟 𝛼/2 = 0.005) = 2.575 Critical Region:𝑧 < −2.575𝑎𝑛𝑑 𝑧 > 2.575 Step 4: the test statistic 𝑧 = ҧ 𝑥−𝜇 𝑠/ 𝑛 = 3.2−3.0 0.1/ 100 = 2 10 = 0.2 Step 5: z=0.2 < 2.575 =zcritical  Fail to reject H0 We can not be confident enough to reject the product average diameter 3.0 based on the information available. Fall 2021 DR. MAHA A. HASSANEIN 22
  • 20. Two-Tailed Hypothesis Test Fall 2021 DR. MAHA A. HASSANEIN 23 µ=3.0 __ Xcritical 2 __ Xcritical 1 Rejection Area 1 (α/2=2.5%) Rejection Area 2 (α/2=2.5%) Z_critical = 2.645 z=0.2
  • 21. Important Values for Tests Convidence Level CL Significant level 𝛼 𝑍𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 One-tail Test Two-tail Test 0.9 0.10 1.28 1.645 0.95 0.05 1.645 1.96 0.98 0.02 2.05 2.33 0.99 0.01 2.33 2.645 Fall 2021 DR. MAHA A. HASSANEIN 24
  • 22. Example 3 A manufacturer of fuses claims that with 20% overload, the fuse will blow in 12.4 minutes on the average . To test this claim, a sample of 20 fuses was subjected to a 20% overload, the times to blow had a mean 10.63 minutes and a standard deviation of 2.48 minutes. If the data constitute a random sample from a normal population , do they tend to support or refute the manufacturer’s claim ? Fall 2021 DR. MAHA A. HASSANEIN 25
  • 23. Solution Population: normally distributed with mean 12.4 and 𝜎 𝑢𝑛𝑘𝑛𝑜𝑤𝑛 Sample : n=20 , ത 𝑋=10.63 , S=2.48 Step 1: H0: µ = 12.4 and Ha: µ < 12.4 Step 2: The maximum acceptable error α ( not given) ? Step 3: Using the one-tailed t-Test, 𝜈 = 𝑛 − 1 =19 with 𝑡𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 𝛼 ? Step 4: the test statistic with 𝜈 = 𝑛 − 1 =19 degrees of freedom, is given by 𝑡 = ത 𝑋−𝜇 𝑆/ 𝑛 = 10.63−12.4 2.48/ 20 = −3.19 Step 5: From Table: For 𝜈 = 19 , since t = −3.19 < −2.861 𝑝 = 𝑃 𝑡 < −2.861 = 0.005(= 𝛼) 𝑤ℎ𝑒𝑟𝑒 2.861 is the max abs value for t at 𝜈 = 19 . P-value is a very small probability, we conclude that the data tend to refute the manufacturer’s claim. i.e. the mean blowing time of his fuses with a 20% overload is less than 12.4 . Fall 2021 DR. MAHA A. HASSANEIN 26
  • 24. Fall 2021 DR. MAHA A. HASSANEIN 27 𝑡𝛼 𝜈 𝛼
  • 25. P-values in Hypothesis Testing - Specify the rejection region whether we are two tail, one-tail - Calculate your test statistic and compare Purpose of the p-value is no different than before using rejection regions Before we have α and select the critical region accordingly . The maximum risk of making type I error is controlled Now P-values approach merely reject or donot reject conclusion with probability p. P-values approach are more common in research papers , real problems , and applied statistics. Fall 2021 DR. MAHA A. HASSANEIN 28
  • 26. Definition: P-Value A P-value is the lowest level (of significance) at which the observed value of the test statistic is significant i.e It is the probability of obtaining a sample “more extreme” than the ones observed in your data, assuming that the Null Hypothesis is true . Statistical Testing P-value Approach : 1- State Null and Alternative Hypothesis 2- Choose an appropriate test statistic 3- Compute P-value based on computed value of test statistic Draw conclusions based on system If p-value < α, we can reject H0 and accept Ha. If p-value > α, we cannot reject H0 nor accept Ha. Fall 2021 DR. MAHA A. HASSANEIN 29
  • 27. Example 4 A random sample of 100 deaths in Us during the past year showed an average life span of 71.8 years A population with 𝜎 = 8.9 years , does this indicate that the mean life span today is greater than 70 years? Use a 0.05 level of significance. Fall 2021 DR. MAHA A. HASSANEIN 30
  • 28. Solution Population: 𝜇 = 70, 𝜎 = 8.9; Sample : 𝑛 = 100, ҧ 𝑥 = 71.8 Step 1: H0: µ = 70 and H1: µ> 70 Step 2: α = 0.05 ; Step 3: Using the one-tailed Z-Test 𝑧𝑐𝑟𝑖𝑡𝑖𝑐𝑎𝑙 (𝑓𝑜𝑟 𝛼 = 0.05) = 1.645  Critical Region: 𝑧 > 1.645 Step 4: the test statistic 𝑧 = ҧ 𝑥−𝜇 𝑠/ 𝑛 = 71.8−70 8.9/ 100 = 2.02 Step 5: P=P(z>2.02)=0.0217 < 0.05= α  Reject H0 in favor of H1 The evidence in favor of H1 is even stronger than that suggested by a 0.05 level of significance Fall 2021 DR. MAHA A. HASSANEIN 31 P 2.02 1.645
  • 29. Reference Text book Chapter 7. sec 7.4 Tests of Hypothesis Sec. 7.5 Null Hypotheses and Tests of Hypotheses Sec. 7.6 Hypotheses concerning one mean Sec. 7.7 The relation between Tests and Confidence Intervals Fall 2021 DR. MAHA A. HASSANEIN 32
  • 30. Thank you for your attention Maha Fall 2021 DR. MAHA A. HASSANEIN 33