SlideShare a Scribd company logo
Testing of Hypothesis
Mr. Tanuj Kumar Pandey
Assistant Professor (Statistics)
FCBM, AGI, Haldwani
Terminology
T e s t i n g o f H y p o t h e s i s
Null Hypothesis: The hypothesis that the observed
difference (between two or more population
characteristics or any specified population
characteristic) is due to sampling or experimental
error (chance) only. So we can say that a Null
Hypothesis is a hypothesis of No Difference. It is
denoted by H0. It has neutral or null attitude
regarding the outcome of the test.
Vaccine – A Vaccine – B
Which vaccine is more effective against COVID-19?
H0: Both vaccines are equally effective.
A test of a statistical hypothesis is a two-action decision problem in which we either reject or fail to
reject the hypothesis based on the analysis of a sample.
T e s t i n g o f H y p o t h e s i s
Vaccine – A Vaccine – B
Which vaccine is more effective against COVID-19?
H1: Both vaccines are not equally effective.
Alternative Hypothesis: The rival hypothesis of null hypothesis or hypothesis made according to the claim
or problem or question. It is denoted by H1.
Remark: One cannot say that a null hypothesis is ‘’accepted’’
rather it is correct to say that “cannot be rejected” or “failed to
reject” as it remains to be true based on the statistical evidence
supporting it. Conversely, a null hypothesis that is refuted can be
said to has been “rejected”.
Term origin: Coined by the English Statistician Ronald A.
Fisher better know as Father of Statistics.
T e s t i n g o f H y p o t h e s i s
T y p e s o f H y p o t h e s i s T e s t
T e s t i n g o f H y p o t h e s i s
Vaccine – A
Which vaccine is more
effective against COVID-19?
Vaccine – B
P o s s i b l e A l t e r n a t i v e H y p o t h e s e s
 H1: Both Vaccines are not equally effective.
 H1: Vaccine A is more effective than Vaccine B.
 H1: Vaccine A is less effective than Vaccine B.
Two Tailed Test: The test which has two possible alternative outcomes after rejecting
the null hypothesis. Symbolically, the test based on
H1: PA ≠ PB (Both vaccines are not equally effective)
One Tailed Test: One possible outcome of the test after rejecting the null hypothesis.
H1 : PA > PB (Vaccine A is more effective than Vaccine B). Right Tailed Test
H1 : PA < PB (Vaccine A is less effective than Vaccine B). Left Tailed Test
C r i t i c a l R e g i o n
T e s t i n g o f H y p o t h e s i s
Let us consider a population of 5 coins with weights 1 gm, 2 gm, 3 gm, 4 gm and 5
gm. A random sample of 2 coins has been selected with SRSWOR for testing the
null hypothesis that the mean weight of coins is 3 gm. We have to test
H0 : μ = 3 vs H1 : μ ≠ 3.
Suppose the test criterion is to reject the null hypothesis when sample mean is less
than 2 or more than 4 gm or fail to reject the null hypothesis when sample mean is
between 2 gm to 4 gm.
(1, 2)
(1, 3) (1, 4) (1, 5) (2, 3)
(2, 4) (2, 5) (3, 4), (3, 5)
(4, 5)
S a m p l e S p a c e
Region where
H0 is rejected
even being true.
Region where
H0 is rejected
even being true.
𝑃𝑜𝑠𝑠𝑖𝑏𝑙𝑒 𝑆𝑎𝑚𝑝𝑙𝑒𝑠 = 𝑁𝐶𝑛
= 5𝐶2
= 10
C r i t i c a l R e g i o n
T e s t i n g o f H y p o t h e s i s
The region of rejection of null hypothesis when it is true is that region of the
outcome set where null hypothesis is rejected if the sample point falls in that region
and is called critical region.
10% area to
the right tail
10% area to
the left tail
H1 : μ ≠ 3. Two Tailed Test
H0 : μ = 3.
C r i t i c a l R e g i o n
T e s t i n g o f H y p o t h e s i s
10% area to
the left tail
H1 : μ < 3.
Left Tailed Test
The region of rejection of null hypothesis when it is true is that region of the
outcome set where null hypothesis is rejected if the sample point falls in that region
and is called critical region.
The test criterion is to reject the null hypothesis when sample mean is less than 2 gm.
H0 : μ = 3.
C r i t i c a l R e g i o n
T e s t i n g o f H y p o t h e s i s
10% area to
the right tail
H1 : μ > 3.
Right Tailed Test
The region of rejection of null hypothesis when it is true is that region of the
outcome set where null hypothesis is rejected if the sample point falls in that region
and is called critical region.
The test criterion is to reject the null hypothesis when sample mean is more than 4 gm.
H0 : μ = 3.
Lot is GOOD.
Lot of 10,000
LED Bulbs
Sample of
LED bulbs
Lot of 10,000
LED Bulbs
Sample of
LED bulbs
T y p e s o f E r r o r i n H y p o t h e s i s T e s t i n g
H0 : The defective percentage in the lot is within the allowed limit (Lot is good).
Against H1 : The defective percentage is more than allowed limit (Lot is bad).
Lot is rejected due to higher defectives in sample.
Lot is BAD.
Lot is accepted due to less defectives in sample.
Good LED
Defective LED
Assumptions
Reject Lot
(Decision of Rejecting H0)
Accept Lot
(Decision of failing to Reject H0)
Lot is Good (H0 is True)
Wrong Decision
(Type I Error)
Right Decision
(Confidence)
Lot is Bad (H0 is False)
Right Decision
(Power)
Wrong Decision
(Type II Error)
Decision 1: Reject H0 when it is True. (Wrong Decision) ---- Type I Error (False Positive)
Decision 2: Fail to Reject H0 when it is True. (Right Decision) ---- Confidence (True Negative)
Decision 3: Reject H0 when it is False. (Right Decision) ---- Power of the Test (True Positive)
Decision 4: Fail to reject H0 when it is False. (Wrong Decision) ---- Type II Error (False Negative)
T y p e s o f E r r o r i n H y p o t h e s i s T e s t i n g
Assumptions
Positive
(Decision of Accepting H1)
Negative
(Decision of failing to Reject H0)
Negative (H0 is True)
False Positive
(Type I Error)
True Negative
(Confidence)
Positive (H1 is True)
True Positive
(Power)
False Positive
(Type II Error)
Decision 1: Reject H0 when it is True. (Wrong Decision) ---- Type I Error (False Positive)
Decision 2: Fail to Reject H0 when it is True. (Right Decision) ---- Confidence (True Negative)
Decision 3: Reject H0 when it is False. (Right Decision) ---- Power of the Test (True Positive)
Decision 4: Fail to reject H0 when it is False. (Wrong Decision) ---- Type II Error (False Negative)
T y p e s o f E r r o r i n H y p o t h e s i s T e s t i n g
L e v e l o f S i g n i f i c a n c e & P o w e r o f T e s t
Level of Significance: Probability of committing type I error or size of the critical
region. It is denoted by α.
𝜶 = 𝑃 𝐶𝑜𝑚𝑚𝑖𝑡𝑖𝑛𝑔 𝑇𝑦𝑝𝑒 𝐼 𝐸𝑟𝑟𝑜𝑟
𝜶 = 𝑃 𝑅𝑒𝑗𝑒𝑐𝑡𝑖𝑛𝑔 𝐻0 𝑤ℎ𝑒𝑛 𝐻0 𝑖𝑠 𝑎𝑐𝑡𝑢𝑎𝑙𝑙𝑦 𝑡𝑟𝑢𝑒
𝜶 = 𝑃 𝑥 ∈ 𝑊
𝐻0
𝜶 =
𝑊
𝐿0𝑑𝑥
Power of Test: Probability of Rejecting H0 when H1 is true. The probability of not
making a Type II error. It is denoted by 1 – β.
1 − β = 𝑃 𝑁𝑜𝑡 𝐶𝑜𝑚𝑚𝑖𝑡𝑖𝑛𝑔 𝑇𝑦𝑝𝑒 𝐼 𝐸𝑟𝑟𝑜𝑟
1 − β = 𝑃 𝑅𝑒𝑗𝑒𝑐𝑡𝑖𝑛𝑔 𝐻0 𝑤ℎ𝑒𝑛 𝐻1 𝑖𝑠 𝑎𝑐𝑡𝑢𝑎𝑙𝑙𝑦 𝑡𝑟𝑢𝑒
1 − β = 𝑃 𝑥 ∈ 𝑊
𝐻1
1 − β =
𝑊
𝐿1𝑑𝑥
C o n f i d e n c e L e v e l
Confidence Level: Probability of Not committing Type I Error.
𝟏 − 𝜶 = 𝑃 𝑁𝑜𝑡 𝐶𝑜𝑚𝑚𝑖𝑡𝑖𝑛𝑔 𝑇𝑦𝑝𝑒 𝐼 𝐸𝑟𝑟𝑜𝑟
𝟏 − 𝜶 = 𝑃 𝑁𝑜𝑡 𝑅𝑒𝑗𝑒𝑐𝑡𝑖𝑛𝑔 𝐻0 𝑤ℎ𝑒𝑛 𝐻0 𝑖𝑠 𝑎𝑐𝑡𝑢𝑎𝑙𝑙𝑦 𝑡𝑟𝑢𝑒
10% area to
the right tail
10% area to
the left tail
H1 : μ ≠ 3.
Two Tailed Test
H0 : μ = 3.
α = 20%. 1 – α = 80%.
In TOH α remains fixed and we try to minimize β or maximize 1 – β.
(1, 2)
(1, 3) (1, 4) (1, 5) (2, 3)
(2, 4) (2, 5) (3, 4), (3, 5)
(4, 5)
S a m p l e S p a c e
Region where H0 is
rejected even being true.
P - v a l u e C o n c e p t
Let us consider a population of 6 coins with weights 1 gm, 2 gm, 3 gm, 4 gm 5gm
and 6 gm. A random sample of 2 coins has been selected using SRSWOR for
testing the null hypothesis that the mean weight of coins is 3.5 gm. We have to test
H0 : μ = 3.5 vs H1 : μ < 3.5
Suppose the test criterion is to reject the null hypothesis when sample mean is less
than 3.5 gm or fail to reject the null hypothesis when sample mean is more than or
equal to 3.5 gm.
S a m p l e S p a c e
(1, 2) (1, 3) (1, 4)
(1, 5) (2, 3) (2, 4)
(1, 6) (2, 5) (2, 6) (3, 4)
(3, 5) (3, 6) (4, 5) (4, 6) (5, 6)
The so called Sampling Distribution of Sample means
𝒙 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5
P(𝒙) 1
15
1
15
2
15
2
15
3
15
2
15
2
15
1
15
1
15
α = 40% and 1 – α = 60%.
If we observe 2.5 as the sample mean
then what will be the p-value?
P - v a l u e C o n c e p t
Definition: Probability of getting an observed result or more extreme
result under the assumption that the null hypothesis is true.
So, p-value is the
CDF of the sampling
distribution of the test
statistic in case of left
tailed test.
P-value ≅ 27%
• Left (Lower) Tail p-value = CDF
• Right (Upper) Tail p-Value = 1 – CDF
• Two Tailed P-Value = 2 × min 𝐶𝐷𝐹, (1 − 𝐶𝐷𝐹)
• For symmetric sampling distributions:
P-value = 2 × 𝐶𝐷𝐹 𝑜𝑟 2 × 1 − 𝐶𝐷𝐹
Since p-value < α, therefore, we reject the null hypothesis.
If p-value ≤ α, then we reject the null hypothesis otherwise fail to reject it.

More Related Content

What's hot

Introduction to Python Programming language.pptx
Introduction to Python Programming language.pptxIntroduction to Python Programming language.pptx
Introduction to Python Programming language.pptx
BharathYusha1
 
File Handling in Python
File Handling in PythonFile Handling in Python
Natural Language Processing with Python
Natural Language Processing with PythonNatural Language Processing with Python
Natural Language Processing with Python
Benjamin Bengfort
 
An introduction to Python for absolute beginners
An introduction to Python for absolute beginnersAn introduction to Python for absolute beginners
An introduction to Python for absolute beginners
Kálmán "KAMI" Szalai
 
Python Tricks That You Can't Live Without
Python Tricks That You Can't Live WithoutPython Tricks That You Can't Live Without
Python Tricks That You Can't Live Without
Audrey Roy
 
4. R- files Reading and Writing
4. R- files Reading and Writing4. R- files Reading and Writing
4. R- files Reading and Writing
krishna singh
 
Decision Making & Loops
Decision Making & LoopsDecision Making & Loops
Decision Making & Loops
Akhil Kaushik
 
Python variables and data types.pptx
Python variables and data types.pptxPython variables and data types.pptx
Python variables and data types.pptx
AkshayAggarwal79
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
Shivam Gupta
 
Programming with Python
Programming with PythonProgramming with Python
Programming with Python
Rasan Samarasinghe
 
Data visualization in Python
Data visualization in PythonData visualization in Python
Data visualization in Python
Marc Garcia
 
String matching algorithms
String matching algorithmsString matching algorithms
String matching algorithms
Dr Shashikant Athawale
 
Python If Else | If Else Statement In Python | Edureka
Python If Else | If Else Statement In Python | EdurekaPython If Else | If Else Statement In Python | Edureka
Python If Else | If Else Statement In Python | Edureka
Edureka!
 
ISOMORPHIC (SIMILAR) ORDERD SETS
ISOMORPHIC (SIMILAR) ORDERD SETSISOMORPHIC (SIMILAR) ORDERD SETS
ISOMORPHIC (SIMILAR) ORDERD SETS
AmenahGondal1
 
C++ vs python the best ever comparison
C++ vs python the best ever comparison C++ vs python the best ever comparison
C++ vs python the best ever comparison
calltutors
 
Syntactic analysis in NLP
Syntactic analysis in NLPSyntactic analysis in NLP
Syntactic analysis in NLP
kartikaVashisht
 
Python PPT
Python PPTPython PPT
Python PPT
Edureka!
 
Data Visualization in Python
Data Visualization in PythonData Visualization in Python
Data Visualization in Python
Jagriti Goswami
 
Data Analysis and Visualization using Python
Data Analysis and Visualization using PythonData Analysis and Visualization using Python
Data Analysis and Visualization using Python
Chariza Pladin
 
R studio
R studio R studio
R studio
Kinza Irshad
 

What's hot (20)

Introduction to Python Programming language.pptx
Introduction to Python Programming language.pptxIntroduction to Python Programming language.pptx
Introduction to Python Programming language.pptx
 
File Handling in Python
File Handling in PythonFile Handling in Python
File Handling in Python
 
Natural Language Processing with Python
Natural Language Processing with PythonNatural Language Processing with Python
Natural Language Processing with Python
 
An introduction to Python for absolute beginners
An introduction to Python for absolute beginnersAn introduction to Python for absolute beginners
An introduction to Python for absolute beginners
 
Python Tricks That You Can't Live Without
Python Tricks That You Can't Live WithoutPython Tricks That You Can't Live Without
Python Tricks That You Can't Live Without
 
4. R- files Reading and Writing
4. R- files Reading and Writing4. R- files Reading and Writing
4. R- files Reading and Writing
 
Decision Making & Loops
Decision Making & LoopsDecision Making & Loops
Decision Making & Loops
 
Python variables and data types.pptx
Python variables and data types.pptxPython variables and data types.pptx
Python variables and data types.pptx
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
 
Programming with Python
Programming with PythonProgramming with Python
Programming with Python
 
Data visualization in Python
Data visualization in PythonData visualization in Python
Data visualization in Python
 
String matching algorithms
String matching algorithmsString matching algorithms
String matching algorithms
 
Python If Else | If Else Statement In Python | Edureka
Python If Else | If Else Statement In Python | EdurekaPython If Else | If Else Statement In Python | Edureka
Python If Else | If Else Statement In Python | Edureka
 
ISOMORPHIC (SIMILAR) ORDERD SETS
ISOMORPHIC (SIMILAR) ORDERD SETSISOMORPHIC (SIMILAR) ORDERD SETS
ISOMORPHIC (SIMILAR) ORDERD SETS
 
C++ vs python the best ever comparison
C++ vs python the best ever comparison C++ vs python the best ever comparison
C++ vs python the best ever comparison
 
Syntactic analysis in NLP
Syntactic analysis in NLPSyntactic analysis in NLP
Syntactic analysis in NLP
 
Python PPT
Python PPTPython PPT
Python PPT
 
Data Visualization in Python
Data Visualization in PythonData Visualization in Python
Data Visualization in Python
 
Data Analysis and Visualization using Python
Data Analysis and Visualization using PythonData Analysis and Visualization using Python
Data Analysis and Visualization using Python
 
R studio
R studio R studio
R studio
 

Similar to Testing of Hypothesis (Terminologies)

Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
Sanjay Basukala
 
hypothesis-tesing.pdf
hypothesis-tesing.pdfhypothesis-tesing.pdf
hypothesis-tesing.pdf
Sandeep Phogat
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
Edhole.com
 
testingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptxtestingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptx
wigatox256
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
Jags Jagdish
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
RajThakuri
 
Formulating Hypotheses
Formulating Hypotheses Formulating Hypotheses
Formulating Hypotheses
Shilpi Panchal
 
Unit 3
Unit 3Unit 3
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesisTesting of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
svmmcradonco1
 
Formulatinghypotheses
Formulatinghypotheses Formulatinghypotheses
Formulatinghypotheses
CMA Khursheed Ahmad Bhat
 
Hypothesis and t-tests
Hypothesis and t-testsHypothesis and t-tests
Hypothesis and t-tests
Manvendra shrimal
 
HYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptHYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.ppt
sadiakhan783184
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
RuchiJainRuchiJain
 
Formulating hypotheses
Formulating hypothesesFormulating hypotheses
Formulating hypotheses
Aniket Verma
 
hypothesis testing - research oriented
hypothesis testing  -  research orientedhypothesis testing  -  research oriented
hypothesis testing - research oriented
jalajaAnilkumar
 
Lesson05_Static11
Lesson05_Static11Lesson05_Static11
Lesson05_Static11
thangv
 
More Statistics
More StatisticsMore Statistics
More Statistics
mandrewmartin
 
PG STAT 531 Lecture 6 Test of Significance, z Test
PG STAT 531 Lecture 6 Test of Significance, z TestPG STAT 531 Lecture 6 Test of Significance, z Test
PG STAT 531 Lecture 6 Test of Significance, z Test
Aashish Patel
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
Rai University
 
Hypothesis testing Part1
Hypothesis testing Part1Hypothesis testing Part1
Hypothesis testing Part1
Akhila Prabhakaran
 

Similar to Testing of Hypothesis (Terminologies) (20)

Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
hypothesis-tesing.pdf
hypothesis-tesing.pdfhypothesis-tesing.pdf
hypothesis-tesing.pdf
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
testingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptxtestingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptx
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
 
Formulating Hypotheses
Formulating Hypotheses Formulating Hypotheses
Formulating Hypotheses
 
Unit 3
Unit 3Unit 3
Unit 3
 
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesisTesting of Hypothesis, p-value, Gaussian distribution, null hypothesis
Testing of Hypothesis, p-value, Gaussian distribution, null hypothesis
 
Formulatinghypotheses
Formulatinghypotheses Formulatinghypotheses
Formulatinghypotheses
 
Hypothesis and t-tests
Hypothesis and t-testsHypothesis and t-tests
Hypothesis and t-tests
 
HYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptHYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.ppt
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Formulating hypotheses
Formulating hypothesesFormulating hypotheses
Formulating hypotheses
 
hypothesis testing - research oriented
hypothesis testing  -  research orientedhypothesis testing  -  research oriented
hypothesis testing - research oriented
 
Lesson05_Static11
Lesson05_Static11Lesson05_Static11
Lesson05_Static11
 
More Statistics
More StatisticsMore Statistics
More Statistics
 
PG STAT 531 Lecture 6 Test of Significance, z Test
PG STAT 531 Lecture 6 Test of Significance, z TestPG STAT 531 Lecture 6 Test of Significance, z Test
PG STAT 531 Lecture 6 Test of Significance, z Test
 
Unit 4 Tests of Significance
Unit 4 Tests of SignificanceUnit 4 Tests of Significance
Unit 4 Tests of Significance
 
Hypothesis testing Part1
Hypothesis testing Part1Hypothesis testing Part1
Hypothesis testing Part1
 

Recently uploaded

原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
manishkhaire30
 
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
74nqk8xf
 
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
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
zsjl4mimo
 
Natural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptxNatural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptx
fkyes25
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
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
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
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
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
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
 

Recently uploaded (20)

原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
 
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
 
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
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
 
Natural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptxNatural Language Processing (NLP), RAG and its applications .pptx
Natural Language Processing (NLP), RAG and its applications .pptx
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
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...
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
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...
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
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...
 

Testing of Hypothesis (Terminologies)

  • 1. Testing of Hypothesis Mr. Tanuj Kumar Pandey Assistant Professor (Statistics) FCBM, AGI, Haldwani Terminology
  • 2. T e s t i n g o f H y p o t h e s i s Null Hypothesis: The hypothesis that the observed difference (between two or more population characteristics or any specified population characteristic) is due to sampling or experimental error (chance) only. So we can say that a Null Hypothesis is a hypothesis of No Difference. It is denoted by H0. It has neutral or null attitude regarding the outcome of the test. Vaccine – A Vaccine – B Which vaccine is more effective against COVID-19? H0: Both vaccines are equally effective. A test of a statistical hypothesis is a two-action decision problem in which we either reject or fail to reject the hypothesis based on the analysis of a sample.
  • 3. T e s t i n g o f H y p o t h e s i s Vaccine – A Vaccine – B Which vaccine is more effective against COVID-19? H1: Both vaccines are not equally effective. Alternative Hypothesis: The rival hypothesis of null hypothesis or hypothesis made according to the claim or problem or question. It is denoted by H1. Remark: One cannot say that a null hypothesis is ‘’accepted’’ rather it is correct to say that “cannot be rejected” or “failed to reject” as it remains to be true based on the statistical evidence supporting it. Conversely, a null hypothesis that is refuted can be said to has been “rejected”. Term origin: Coined by the English Statistician Ronald A. Fisher better know as Father of Statistics.
  • 4. T e s t i n g o f H y p o t h e s i s
  • 5. T y p e s o f H y p o t h e s i s T e s t T e s t i n g o f H y p o t h e s i s Vaccine – A Which vaccine is more effective against COVID-19? Vaccine – B P o s s i b l e A l t e r n a t i v e H y p o t h e s e s  H1: Both Vaccines are not equally effective.  H1: Vaccine A is more effective than Vaccine B.  H1: Vaccine A is less effective than Vaccine B. Two Tailed Test: The test which has two possible alternative outcomes after rejecting the null hypothesis. Symbolically, the test based on H1: PA ≠ PB (Both vaccines are not equally effective) One Tailed Test: One possible outcome of the test after rejecting the null hypothesis. H1 : PA > PB (Vaccine A is more effective than Vaccine B). Right Tailed Test H1 : PA < PB (Vaccine A is less effective than Vaccine B). Left Tailed Test
  • 6. C r i t i c a l R e g i o n T e s t i n g o f H y p o t h e s i s Let us consider a population of 5 coins with weights 1 gm, 2 gm, 3 gm, 4 gm and 5 gm. A random sample of 2 coins has been selected with SRSWOR for testing the null hypothesis that the mean weight of coins is 3 gm. We have to test H0 : μ = 3 vs H1 : μ ≠ 3. Suppose the test criterion is to reject the null hypothesis when sample mean is less than 2 or more than 4 gm or fail to reject the null hypothesis when sample mean is between 2 gm to 4 gm. (1, 2) (1, 3) (1, 4) (1, 5) (2, 3) (2, 4) (2, 5) (3, 4), (3, 5) (4, 5) S a m p l e S p a c e Region where H0 is rejected even being true. Region where H0 is rejected even being true. 𝑃𝑜𝑠𝑠𝑖𝑏𝑙𝑒 𝑆𝑎𝑚𝑝𝑙𝑒𝑠 = 𝑁𝐶𝑛 = 5𝐶2 = 10
  • 7. C r i t i c a l R e g i o n T e s t i n g o f H y p o t h e s i s The region of rejection of null hypothesis when it is true is that region of the outcome set where null hypothesis is rejected if the sample point falls in that region and is called critical region. 10% area to the right tail 10% area to the left tail H1 : μ ≠ 3. Two Tailed Test H0 : μ = 3.
  • 8. C r i t i c a l R e g i o n T e s t i n g o f H y p o t h e s i s 10% area to the left tail H1 : μ < 3. Left Tailed Test The region of rejection of null hypothesis when it is true is that region of the outcome set where null hypothesis is rejected if the sample point falls in that region and is called critical region. The test criterion is to reject the null hypothesis when sample mean is less than 2 gm. H0 : μ = 3.
  • 9. C r i t i c a l R e g i o n T e s t i n g o f H y p o t h e s i s 10% area to the right tail H1 : μ > 3. Right Tailed Test The region of rejection of null hypothesis when it is true is that region of the outcome set where null hypothesis is rejected if the sample point falls in that region and is called critical region. The test criterion is to reject the null hypothesis when sample mean is more than 4 gm. H0 : μ = 3.
  • 10. Lot is GOOD. Lot of 10,000 LED Bulbs Sample of LED bulbs Lot of 10,000 LED Bulbs Sample of LED bulbs T y p e s o f E r r o r i n H y p o t h e s i s T e s t i n g H0 : The defective percentage in the lot is within the allowed limit (Lot is good). Against H1 : The defective percentage is more than allowed limit (Lot is bad). Lot is rejected due to higher defectives in sample. Lot is BAD. Lot is accepted due to less defectives in sample. Good LED Defective LED
  • 11. Assumptions Reject Lot (Decision of Rejecting H0) Accept Lot (Decision of failing to Reject H0) Lot is Good (H0 is True) Wrong Decision (Type I Error) Right Decision (Confidence) Lot is Bad (H0 is False) Right Decision (Power) Wrong Decision (Type II Error) Decision 1: Reject H0 when it is True. (Wrong Decision) ---- Type I Error (False Positive) Decision 2: Fail to Reject H0 when it is True. (Right Decision) ---- Confidence (True Negative) Decision 3: Reject H0 when it is False. (Right Decision) ---- Power of the Test (True Positive) Decision 4: Fail to reject H0 when it is False. (Wrong Decision) ---- Type II Error (False Negative) T y p e s o f E r r o r i n H y p o t h e s i s T e s t i n g
  • 12. Assumptions Positive (Decision of Accepting H1) Negative (Decision of failing to Reject H0) Negative (H0 is True) False Positive (Type I Error) True Negative (Confidence) Positive (H1 is True) True Positive (Power) False Positive (Type II Error) Decision 1: Reject H0 when it is True. (Wrong Decision) ---- Type I Error (False Positive) Decision 2: Fail to Reject H0 when it is True. (Right Decision) ---- Confidence (True Negative) Decision 3: Reject H0 when it is False. (Right Decision) ---- Power of the Test (True Positive) Decision 4: Fail to reject H0 when it is False. (Wrong Decision) ---- Type II Error (False Negative) T y p e s o f E r r o r i n H y p o t h e s i s T e s t i n g
  • 13. L e v e l o f S i g n i f i c a n c e & P o w e r o f T e s t Level of Significance: Probability of committing type I error or size of the critical region. It is denoted by α. 𝜶 = 𝑃 𝐶𝑜𝑚𝑚𝑖𝑡𝑖𝑛𝑔 𝑇𝑦𝑝𝑒 𝐼 𝐸𝑟𝑟𝑜𝑟 𝜶 = 𝑃 𝑅𝑒𝑗𝑒𝑐𝑡𝑖𝑛𝑔 𝐻0 𝑤ℎ𝑒𝑛 𝐻0 𝑖𝑠 𝑎𝑐𝑡𝑢𝑎𝑙𝑙𝑦 𝑡𝑟𝑢𝑒 𝜶 = 𝑃 𝑥 ∈ 𝑊 𝐻0 𝜶 = 𝑊 𝐿0𝑑𝑥 Power of Test: Probability of Rejecting H0 when H1 is true. The probability of not making a Type II error. It is denoted by 1 – β. 1 − β = 𝑃 𝑁𝑜𝑡 𝐶𝑜𝑚𝑚𝑖𝑡𝑖𝑛𝑔 𝑇𝑦𝑝𝑒 𝐼 𝐸𝑟𝑟𝑜𝑟 1 − β = 𝑃 𝑅𝑒𝑗𝑒𝑐𝑡𝑖𝑛𝑔 𝐻0 𝑤ℎ𝑒𝑛 𝐻1 𝑖𝑠 𝑎𝑐𝑡𝑢𝑎𝑙𝑙𝑦 𝑡𝑟𝑢𝑒 1 − β = 𝑃 𝑥 ∈ 𝑊 𝐻1 1 − β = 𝑊 𝐿1𝑑𝑥
  • 14. C o n f i d e n c e L e v e l Confidence Level: Probability of Not committing Type I Error. 𝟏 − 𝜶 = 𝑃 𝑁𝑜𝑡 𝐶𝑜𝑚𝑚𝑖𝑡𝑖𝑛𝑔 𝑇𝑦𝑝𝑒 𝐼 𝐸𝑟𝑟𝑜𝑟 𝟏 − 𝜶 = 𝑃 𝑁𝑜𝑡 𝑅𝑒𝑗𝑒𝑐𝑡𝑖𝑛𝑔 𝐻0 𝑤ℎ𝑒𝑛 𝐻0 𝑖𝑠 𝑎𝑐𝑡𝑢𝑎𝑙𝑙𝑦 𝑡𝑟𝑢𝑒 10% area to the right tail 10% area to the left tail H1 : μ ≠ 3. Two Tailed Test H0 : μ = 3. α = 20%. 1 – α = 80%. In TOH α remains fixed and we try to minimize β or maximize 1 – β. (1, 2) (1, 3) (1, 4) (1, 5) (2, 3) (2, 4) (2, 5) (3, 4), (3, 5) (4, 5) S a m p l e S p a c e Region where H0 is rejected even being true.
  • 15. P - v a l u e C o n c e p t Let us consider a population of 6 coins with weights 1 gm, 2 gm, 3 gm, 4 gm 5gm and 6 gm. A random sample of 2 coins has been selected using SRSWOR for testing the null hypothesis that the mean weight of coins is 3.5 gm. We have to test H0 : μ = 3.5 vs H1 : μ < 3.5 Suppose the test criterion is to reject the null hypothesis when sample mean is less than 3.5 gm or fail to reject the null hypothesis when sample mean is more than or equal to 3.5 gm. S a m p l e S p a c e (1, 2) (1, 3) (1, 4) (1, 5) (2, 3) (2, 4) (1, 6) (2, 5) (2, 6) (3, 4) (3, 5) (3, 6) (4, 5) (4, 6) (5, 6) The so called Sampling Distribution of Sample means 𝒙 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 P(𝒙) 1 15 1 15 2 15 2 15 3 15 2 15 2 15 1 15 1 15 α = 40% and 1 – α = 60%. If we observe 2.5 as the sample mean then what will be the p-value?
  • 16. P - v a l u e C o n c e p t Definition: Probability of getting an observed result or more extreme result under the assumption that the null hypothesis is true. So, p-value is the CDF of the sampling distribution of the test statistic in case of left tailed test. P-value ≅ 27% • Left (Lower) Tail p-value = CDF • Right (Upper) Tail p-Value = 1 – CDF • Two Tailed P-Value = 2 × min 𝐶𝐷𝐹, (1 − 𝐶𝐷𝐹) • For symmetric sampling distributions: P-value = 2 × 𝐶𝐷𝐹 𝑜𝑟 2 × 1 − 𝐶𝐷𝐹 Since p-value < α, therefore, we reject the null hypothesis. If p-value ≤ α, then we reject the null hypothesis otherwise fail to reject it.