SlideShare a Scribd company logo
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

What's hot

Assessing Normality
Assessing NormalityAssessing Normality
Assessing Normality
Long Beach City College
 
2.2 laws of probability (1)
2.2 laws of probability (1)2.2 laws of probability (1)
2.2 laws of probability (1)
gracie
 
Concept of probability
Concept of probabilityConcept of probability
Concept of probability
Habibullah Bahar University College
 
Two Means, Independent Samples
Two Means, Independent SamplesTwo Means, Independent Samples
Two Means, Independent Samples
Long Beach City College
 
The binomial distributions
The binomial distributionsThe binomial distributions
The binomial distributions
maamir farooq
 
Espacios de probabilidad
Espacios de probabilidadEspacios de probabilidad
Espacios de probabilidad
Danny Burgos
 
Test of hypothesis test of significance
Test of hypothesis test of significanceTest of hypothesis test of significance
Test of hypothesis test of significance
Dr. Jayesh Vyas
 
Theory of probability
Theory of probabilityTheory of probability
Theory of probability
Manthan Chavda
 
Complements and Conditional Probability, and Bayes' Theorem
 Complements and Conditional Probability, and Bayes' Theorem Complements and Conditional Probability, and Bayes' Theorem
Complements and Conditional Probability, and Bayes' Theorem
Long Beach City College
 
Hypothesis testing part i
Hypothesis testing part iHypothesis testing part i
Hypothesis testing part i
Nadeem Uddin
 
2.03 bayesian estimation
2.03 bayesian estimation2.03 bayesian estimation
2.03 bayesian estimation
Andres Mendez-Vazquez
 
Poisson Probability Distributions
Poisson Probability DistributionsPoisson Probability Distributions
Poisson Probability Distributions
Long Beach City College
 
Epidemic modelling an introduction
Epidemic modelling an introductionEpidemic modelling an introduction
Epidemic modelling an introduction
Nailul Hasibuan
 
Bias and Mean square error
Bias and Mean square errorBias and Mean square error
Bias and Mean square error
Suruchi Somwanshi
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testingrishi.indian
 
Sampling Distributions and Estimators
Sampling Distributions and EstimatorsSampling Distributions and Estimators
Sampling Distributions and Estimators
Long Beach City College
 
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
nszakir
 
Practice Test 1
Practice Test 1Practice Test 1
Practice Test 1
Long Beach City College
 
Stratified Random Sampling - Problems
Stratified Random Sampling -  ProblemsStratified Random Sampling -  Problems
Stratified Random Sampling - Problems
Sundar B N
 

What's hot (20)

Assessing Normality
Assessing NormalityAssessing Normality
Assessing Normality
 
2.2 laws of probability (1)
2.2 laws of probability (1)2.2 laws of probability (1)
2.2 laws of probability (1)
 
Concept of probability
Concept of probabilityConcept of probability
Concept of probability
 
Two Means, Independent Samples
Two Means, Independent SamplesTwo Means, Independent Samples
Two Means, Independent Samples
 
The binomial distributions
The binomial distributionsThe binomial distributions
The binomial distributions
 
Espacios de probabilidad
Espacios de probabilidadEspacios de probabilidad
Espacios de probabilidad
 
Test of hypothesis test of significance
Test of hypothesis test of significanceTest of hypothesis test of significance
Test of hypothesis test of significance
 
Theory of probability
Theory of probabilityTheory of probability
Theory of probability
 
Complements and Conditional Probability, and Bayes' Theorem
 Complements and Conditional Probability, and Bayes' Theorem Complements and Conditional Probability, and Bayes' Theorem
Complements and Conditional Probability, and Bayes' Theorem
 
Hypothesis testing part i
Hypothesis testing part iHypothesis testing part i
Hypothesis testing part i
 
2.03 bayesian estimation
2.03 bayesian estimation2.03 bayesian estimation
2.03 bayesian estimation
 
Poisson Probability Distributions
Poisson Probability DistributionsPoisson Probability Distributions
Poisson Probability Distributions
 
Epidemic modelling an introduction
Epidemic modelling an introductionEpidemic modelling an introduction
Epidemic modelling an introduction
 
Bias and Mean square error
Bias and Mean square errorBias and Mean square error
Bias and Mean square error
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Sampling Distributions and Estimators
Sampling Distributions and EstimatorsSampling Distributions and Estimators
Sampling Distributions and Estimators
 
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
 
Practice Test 1
Practice Test 1Practice Test 1
Practice Test 1
 
Inferencia estadistica
Inferencia estadisticaInferencia estadistica
Inferencia estadistica
 
Stratified Random Sampling - Problems
Stratified Random Sampling -  ProblemsStratified Random Sampling -  Problems
Stratified Random Sampling - Problems
 

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

Hypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.pptHypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.ppt
Solomonkiplimo
 
Telesidang 4 bab_8_9_10stst
Telesidang 4 bab_8_9_10ststTelesidang 4 bab_8_9_10stst
Telesidang 4 bab_8_9_10stst
Nor Ihsan
 
Biomath12
Biomath12Biomath12
Biomath12
guruppkn11
 
Hypothesis Test _One-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _One-sample t-test, Z-test, Proportion Z-testHypothesis Test _One-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _One-sample t-test, Z-test, Proportion Z-test
Ravindra Nath Shukla
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
Smruti Ranjan Parida
 
Statr session 17 and 18
Statr session 17 and 18Statr session 17 and 18
Statr session 17 and 18
Ruru Chowdhury
 
Statr session 17 and 18 (ASTR)
Statr session 17 and 18 (ASTR)Statr session 17 and 18 (ASTR)
Statr session 17 and 18 (ASTR)
Ruru Chowdhury
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Denni Domingo
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
Broward County Schools
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
Broward County Schools
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
Broward County Schools
 
SNM-1.pdf
SNM-1.pdfSNM-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
Hakeem-Ur- Rehman
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
Chapter 10Chapter 10
Chapter 10bmcfad01
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
Tuul Tuul
 
BUS173 Lecture 5.pdf
BUS173 Lecture 5.pdfBUS173 Lecture 5.pdf
BUS173 Lecture 5.pdf
SusantoSaha1
 
1667390753_Lind Chapter 10-14.pdf
1667390753_Lind Chapter 10-14.pdf1667390753_Lind Chapter 10-14.pdf
1667390753_Lind Chapter 10-14.pdf
AriniputriLestari
 
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.docx
dessiechisomjj4
 

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

Hypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.pptHypothesis Testing techniques in social research.ppt
Hypothesis Testing techniques in social research.ppt
 
Telesidang 4 bab_8_9_10stst
Telesidang 4 bab_8_9_10ststTelesidang 4 bab_8_9_10stst
Telesidang 4 bab_8_9_10stst
 
Biomath12
Biomath12Biomath12
Biomath12
 
Hypothesis Test _One-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _One-sample t-test, Z-test, Proportion Z-testHypothesis Test _One-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _One-sample t-test, Z-test, Proportion Z-test
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 
Statr session 17 and 18
Statr session 17 and 18Statr session 17 and 18
Statr session 17 and 18
 
Statr session 17 and 18 (ASTR)
Statr session 17 and 18 (ASTR)Statr session 17 and 18 (ASTR)
Statr session 17 and 18 (ASTR)
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
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
 

Recently uploaded

哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
rwarrenll
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
eddie19851
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
vikram sood
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Enterprise Wired
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 

Recently uploaded (20)

哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.My burning issue is homelessness K.C.M.O.
My burning issue is homelessness K.C.M.O.
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTESAdjusting OpenMP PageRank : SHORT REPORT / NOTES
Adjusting OpenMP PageRank : SHORT REPORT / NOTES
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 

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