SlideShare a Scribd company logo
Hypothesis Testing
Kalyan Acharjya
kalyan.acharjya@gmail.com
Outlines
● What is Hypothesis?
● Characteristics of Hypotheses.
● Hypotheses Types & Terminologies.
● Null & Alternate Hypotheses.
● Flowchart of Hypotheses Testing.
● Chi-Square Test.
● Conclusion.
2
What is Hypothesis?
● A Hypothesis is a premise or claim that we want to test.
● Hypothesis (Latin)= Hupo (Under)+Thesis (placing)-Greek.
● A supposition or proposed explanation made on the basis of limited
evidence as a starting point for further investigation.
● A hypothesis is a speculation or theory based on insufficient evidence that
lends itself to further testing and experimentation.
● Presume assumption based on observations or experiences (Not Verified).
3
Characteristics of Hypothesis
● Hypothesis should be clear & precise.
● Hypothesis should be capable of being tested.
● Hypothesis must explain the facts that give rise to the need for
explanation.
● Hypothesis should be amenable to testing within a reasonable time.
● Hypothesis should be consistent with most known facts.
● Hypothesis should state relationships between variables.
4
Hypothesis Types
★ Null Hypothsis
★ Alternate Hypothesis / Research Hypothesis
A Null Hypothesis (Ho) - that says there is no statistical significance
between the two variables in the hypothesis.
When the samples result donot support the null hypothesis, then
concluded something else is true, termed as Alternate Hypothesis (Ha).
5
Hypothesis Testing Flowchart
Hypothesis
Significance
Sample
Values
Testing
Method
P Value
Decision
6
Some Terminologies
The level of Confidence (C): Probability of confidence (May be Null
Hypothesis likely to be reject).
The level of Significance (alpha) - The probability of rejecting the null
hypothesis when it is true. Normally referred in percentage (usually 5%).
Decision Rule-Test Hypothesis - The decision rule compares the sample
mean to the hypothesized mean. If the sample mean is "close" to the
hypothesized mean, we accept the null hypothesis.
Type I & Type II error:
7
8
Two Tailed & One Tailed Test
Some Terminologies..Continue
Analyze Sample Data: Degrees of freedom, expected frequencies, test statistic,
and the P-value associated with the test statistic.
•Degrees of freedom. The degrees of freedom (DF) is equal to:
DF = (r - 1) * (c - 1)
where r is the number of levels for one categorical variable, and c is the
number of levels for the other categorical variable.
•Expected frequencies: Er,c = (nr * nc) / n, where Er,c is the expected
frequency count for level r of Variable A and level c of Variable B, nr is the total
number of sample observations at level r of Variable A, nc is the total number
of sample observations at level c of Variable B, and n is the total sample size.
9
Test statistic: Chi Square Test
•The test statistic is a chi-square random variable (chi square) defined by the
following equation-
P-value: The P-value is the probability of observing a sample statistic as
extreme as the test statistic (Variable and degrees of freedom on Chi-Square
Distribution).
Interpret Results: When P value < alpha (Level of significance) implies null
hypothesis is rejected.
10


E
EO 2)(2
Chi-Sqaure Test-Example
•“Is Demonetization will help to boost the Indian Economy?” Opinion poll surveyed a simple
random sample of 1000 people. Respondents were classified by gender (male or female) and by
voting preference (Yes, No, or Neutral). Results-
•Is there a gender gap? Do the men's preferences differ significantly from the women's preferences?
Use a 0.05 level of significance.
Poll Results
Row Total
Yes No Neutral
Male 200 150 50 400
Female 250 300 50 600
Column total 450 450 100 1000
11
Chi-Sqaure Test-Solutions Contd..
•State the Hypotheses: The first step is to state the null hypothesis and an alternative
hypothesis.
H0: Gender and voting preferences are independent.
Ha: Gender and voting preferences are not independent.
•Formulate an analysis plan. For this analysis, the significance level is 0.05. Using
sample data, we will conduct a chi-square test for independence.
12
Numerical Continue..
•Analyze sample data: Compute the degrees of freedom, the expected
frequency counts, and the chi-square test statistic.
DF = (r - 1) * (c - 1) = (2 - 1) * (3 - 1) = 2
E r,c = (nr * nc) / n
E1,1 = (400 * 450) / 1000 = 180000/1000 = 180
E1,2 = (400 * 450) / 1000 = 180000/1000 = 180
E1,3 = (400 * 100) / 1000 = 40000/1000 = 40
E2,1 = (600 * 450) / 1000 = 270000/1000 = 270
E2,2 = (600 * 450) / 1000 = 270000/1000 = 270
E2,3 = (600 * 100) / 1000 = 60000/1000 = 60
= Σ [ (Or,c - Er,c)2 / Er,c ]
= (200 - 180)2/180 + (150 - 180)2/180 + (50 - 40)2/40
+ (250 - 270)2/270 + (300 - 270)2/270 + (50 - 60)2/60
= 16.2
where DF is the degrees of freedom, r is the number of
levels of gender, c is the number of levels of the voting
preference, nr is the number of observations from level r
of gender, nc is the number of observations from level c of
voting preference, n is the number of observations in the
sample, Er,c is the expected frequency count when
gender is level r and voting preference is level c, and Or,c
is the observed frequency count when gender is level r
voting preference is level c.
13
Poll Results
Row Total
Yes No Neutral
Male 200 150 50 400
Female 250 300 50 600
Column
total
450 450 100 1000
2
2
2
Numeric Continue…
Based on the chi-square statistic and the degrees of freedom, we determine
the P-value.
The P-value is the probability that a chi-square statistic having 2 degrees of
freedom is more extreme than 16.2.
By using the Chi-Square Distribution Calculator to find P( > 16.2) = 0.0003.
Results: Since the P-value (0.0003) is less than the significance level (0.05),
we cannot accept the null hypothesis. Thus, we conclude that there is a
relationship between gender and voting preference.
Null Hypothesis is rejected.
14
2
Conclusions:
• The outcome of the research is based on formulation of hypothesis.
•Hypothesis testing is a significant part of any research work.
•The objective of Hypothesis Testing to verify the Null Hypotheses, not prove it.
•Chi-square is one statistic use to find the P value (Hypothesis Testing).
•If P Value is less than level of significance, then reject the null hypothesis.
•The other most popular test statistics are z2 test and t test.
15
References:
Book:
 Website link (Numeric Example)
http://stattrek.com/chi-square-test/independence.aspx?Tutorial=AP
16
Thank You
17
Kalyan Acharjya
kalyan.acharjya@gmail.com

More Related Content

What's hot

Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
RajThakuri
 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
Parag Shah
 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesisvikramlawand
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Rashmi Vaishya
 
Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)Upama Dwivedi
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Shameer P Hamsa
 
NULL AND ALTERNATIVE HYPOTHESIS.pptx
NULL AND ALTERNATIVE HYPOTHESIS.pptxNULL AND ALTERNATIVE HYPOTHESIS.pptx
NULL AND ALTERNATIVE HYPOTHESIS.pptx
04ShainaSachdeva
 
Hypothesis testing an introduction
Hypothesis testing an introductionHypothesis testing an introduction
Hypothesis testing an introductionGeetika Gulyani
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
ewhite00
 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt finalpiyushdhaker
 
STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testingjundumaug1
 
Statistical inference concept, procedure of hypothesis testing
Statistical inference   concept, procedure of hypothesis testingStatistical inference   concept, procedure of hypothesis testing
Statistical inference concept, procedure of hypothesis testing
AmitaChaudhary19
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Hossain Hemel
 
HYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptHYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.ppt
sadiakhan783184
 
Confidence intervals
Confidence intervalsConfidence intervals
Confidence intervalsTanay Tandon
 
Different types of distributions
Different types of distributionsDifferent types of distributions
Different types of distributions
RajaKrishnan M
 
Estimation in statistics
Estimation in statisticsEstimation in statistics
Estimation in statistics
Rabea Jamal
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
Smruti Ranjan Parida
 

What's hot (20)

Testing of hypotheses
Testing of hypothesesTesting of hypotheses
Testing of hypotheses
 
Statistical inference: Estimation
Statistical inference: EstimationStatistical inference: Estimation
Statistical inference: Estimation
 
Test of hypothesis
Test of hypothesisTest of hypothesis
Test of hypothesis
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)Brm (one tailed and two tailed hypothesis)
Brm (one tailed and two tailed hypothesis)
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
NULL AND ALTERNATIVE HYPOTHESIS.pptx
NULL AND ALTERNATIVE HYPOTHESIS.pptxNULL AND ALTERNATIVE HYPOTHESIS.pptx
NULL AND ALTERNATIVE HYPOTHESIS.pptx
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
 
Hypothesis testing an introduction
Hypothesis testing an introductionHypothesis testing an introduction
Hypothesis testing an introduction
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt final
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testing
 
Statistical inference concept, procedure of hypothesis testing
Statistical inference   concept, procedure of hypothesis testingStatistical inference   concept, procedure of hypothesis testing
Statistical inference concept, procedure of hypothesis testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
HYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptHYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.ppt
 
Confidence intervals
Confidence intervalsConfidence intervals
Confidence intervals
 
Different types of distributions
Different types of distributionsDifferent types of distributions
Different types of distributions
 
Estimation in statistics
Estimation in statisticsEstimation in statistics
Estimation in statistics
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 

Viewers also liked

Hypothesis and its types
Hypothesis and its typesHypothesis and its types
Hypothesis and its types
rajukammari
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testingrishi.indian
 
Hypothesis Testing in Six Sigma
Hypothesis Testing in Six SigmaHypothesis Testing in Six Sigma
Hypothesis Testing in Six Sigma
Body of Knowledge
 
Hypothesis
HypothesisHypothesis
Hypothesis
Michael Gezae
 
Hypothsis testing
Hypothsis testingHypothsis testing
Hypothsis testing
Shakeel Nouman
 
Chisquare Test
Chisquare Test Chisquare Test
Chisquare Test
Manas Mondal
 
Z test, f-test,etc
Z test, f-test,etcZ test, f-test,etc
Z test, f-test,etc
Juan Apolinario Reyes
 
F test Analysis of Variance (ANOVA)
F test Analysis of Variance (ANOVA)F test Analysis of Variance (ANOVA)
F test Analysis of Variance (ANOVA)Marianne Maluyo
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
MyPresentations Services
 
DEMONETISATION IN INDIA AND ITS IMPACT
DEMONETISATION IN INDIA  AND ITS IMPACT DEMONETISATION IN INDIA  AND ITS IMPACT
DEMONETISATION IN INDIA AND ITS IMPACT
SREEKESH VP
 
impact on demonetisation on indian economy
impact on demonetisation on indian economy impact on demonetisation on indian economy
impact on demonetisation on indian economy
vicky sharma
 
Chi Square Worked Example
Chi Square Worked ExampleChi Square Worked Example
Chi Square Worked Example
John Barlow
 
Chi square test
Chi square testChi square test
Introduction to hypothesis testing ppt @ bec doms
Introduction to hypothesis testing ppt @ bec domsIntroduction to hypothesis testing ppt @ bec doms
Introduction to hypothesis testing ppt @ bec doms
Babasab Patil
 
Chi – square test
Chi – square testChi – square test
Chi – square test
Dr.M.Prasad Naidu
 
The Presentation on Demonetisation
The Presentation on DemonetisationThe Presentation on Demonetisation
The Presentation on Demonetisation
Priyanka Payal Pareek
 
16 Enjoyable Business Lessons from Sex
16 Enjoyable Business Lessons from Sex16 Enjoyable Business Lessons from Sex
16 Enjoyable Business Lessons from Sex
Andrew Morrison
 
Chap#9 hypothesis testing (3)
Chap#9 hypothesis testing (3)Chap#9 hypothesis testing (3)
Chap#9 hypothesis testing (3)shafi khan
 

Viewers also liked (20)

Hypothesis
HypothesisHypothesis
Hypothesis
 
Hypothesis and its types
Hypothesis and its typesHypothesis and its types
Hypothesis and its types
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Hypothesis Testing in Six Sigma
Hypothesis Testing in Six SigmaHypothesis Testing in Six Sigma
Hypothesis Testing in Six Sigma
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Hypothsis testing
Hypothsis testingHypothsis testing
Hypothsis testing
 
Chisquare Test
Chisquare Test Chisquare Test
Chisquare Test
 
Z test, f-test,etc
Z test, f-test,etcZ test, f-test,etc
Z test, f-test,etc
 
F test Analysis of Variance (ANOVA)
F test Analysis of Variance (ANOVA)F test Analysis of Variance (ANOVA)
F test Analysis of Variance (ANOVA)
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
DEMONETISATION IN INDIA AND ITS IMPACT
DEMONETISATION IN INDIA  AND ITS IMPACT DEMONETISATION IN INDIA  AND ITS IMPACT
DEMONETISATION IN INDIA AND ITS IMPACT
 
impact on demonetisation on indian economy
impact on demonetisation on indian economy impact on demonetisation on indian economy
impact on demonetisation on indian economy
 
Chi Square Worked Example
Chi Square Worked ExampleChi Square Worked Example
Chi Square Worked Example
 
Chi square test
Chi square testChi square test
Chi square test
 
Chi square test
Chi square test Chi square test
Chi square test
 
Introduction to hypothesis testing ppt @ bec doms
Introduction to hypothesis testing ppt @ bec domsIntroduction to hypothesis testing ppt @ bec doms
Introduction to hypothesis testing ppt @ bec doms
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
The Presentation on Demonetisation
The Presentation on DemonetisationThe Presentation on Demonetisation
The Presentation on Demonetisation
 
16 Enjoyable Business Lessons from Sex
16 Enjoyable Business Lessons from Sex16 Enjoyable Business Lessons from Sex
16 Enjoyable Business Lessons from Sex
 
Chap#9 hypothesis testing (3)
Chap#9 hypothesis testing (3)Chap#9 hypothesis testing (3)
Chap#9 hypothesis testing (3)
 

Similar to Hypothesis Testing

Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
Michael770443
 
Day 3 SPSS
Day 3 SPSSDay 3 SPSS
Day 3 SPSS
abir hossain
 
Chi square tests using spss
Chi square tests using spssChi square tests using spss
Chi square tests using spss
Parag Shah
 
Chi square
Chi square Chi square
Chi square
HemamaliniSakthivel
 
Chi square tests using SPSS
Chi square tests using SPSSChi square tests using SPSS
Chi square tests using SPSS
Parag Shah
 
linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...
KavyasriPuttamreddy
 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
HanaaBayomy
 
RESEARCH METHODOLOGY - 2nd year ppt
RESEARCH METHODOLOGY - 2nd year pptRESEARCH METHODOLOGY - 2nd year ppt
RESEARCH METHODOLOGY - 2nd year ppt
Aayushi Chhabra
 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for Pharmacy
Parag Shah
 
Chi sqaure test
Chi sqaure testChi sqaure test
Chi sqaure test
Pritam Kolge
 
Topic 7 stat inference
Topic 7 stat inferenceTopic 7 stat inference
Topic 7 stat inferenceSizwan Ahammed
 
Testing a claim about a standard deviation or variance
Testing a claim about a standard deviation or variance  Testing a claim about a standard deviation or variance
Testing a claim about a standard deviation or variance
Long Beach City College
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
Unsa Shakir
 
Goodness of-fit
Goodness of-fit  Goodness of-fit
Goodness of-fit
Long Beach City College
 
Two Proportions
Two Proportions  Two Proportions
Two Proportions
Long Beach City College
 
hypothesis teesting
 hypothesis teesting hypothesis teesting
hypothesis teesting
kpgandhi
 
Unit 3
Unit 3Unit 3
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
Snehamurali18
 

Similar to Hypothesis Testing (20)

Goodness of fit (ppt)
Goodness of fit (ppt)Goodness of fit (ppt)
Goodness of fit (ppt)
 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
 
Ad test
Ad testAd test
Ad test
 
Day 3 SPSS
Day 3 SPSSDay 3 SPSS
Day 3 SPSS
 
Chi square tests using spss
Chi square tests using spssChi square tests using spss
Chi square tests using spss
 
Chi square
Chi square Chi square
Chi square
 
Chi square tests using SPSS
Chi square tests using SPSSChi square tests using SPSS
Chi square tests using SPSS
 
linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...linearity concept of significance, standard deviation, chi square test, stude...
linearity concept of significance, standard deviation, chi square test, stude...
 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
 
RESEARCH METHODOLOGY - 2nd year ppt
RESEARCH METHODOLOGY - 2nd year pptRESEARCH METHODOLOGY - 2nd year ppt
RESEARCH METHODOLOGY - 2nd year ppt
 
Basics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for PharmacyBasics of Hypothesis testing for Pharmacy
Basics of Hypothesis testing for Pharmacy
 
Chi sqaure test
Chi sqaure testChi sqaure test
Chi sqaure test
 
Topic 7 stat inference
Topic 7 stat inferenceTopic 7 stat inference
Topic 7 stat inference
 
Testing a claim about a standard deviation or variance
Testing a claim about a standard deviation or variance  Testing a claim about a standard deviation or variance
Testing a claim about a standard deviation or variance
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
 
Goodness of-fit
Goodness of-fit  Goodness of-fit
Goodness of-fit
 
Two Proportions
Two Proportions  Two Proportions
Two Proportions
 
hypothesis teesting
 hypothesis teesting hypothesis teesting
hypothesis teesting
 
Unit 3
Unit 3Unit 3
Unit 3
 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
 

More from Kalyan Acharjya

Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
Kalyan Acharjya
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
Kalyan Acharjya
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
Kalyan Acharjya
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
Kalyan Acharjya
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
Kalyan Acharjya
 
Histogram Specification or Matching Problem
Histogram Specification or Matching ProblemHistogram Specification or Matching Problem
Histogram Specification or Matching Problem
Kalyan Acharjya
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
Kalyan Acharjya
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
Kalyan Acharjya
 
Fundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image ComponentsFundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image Components
Kalyan Acharjya
 
Introduction to Image Processing:Image Modalities
Introduction to Image Processing:Image ModalitiesIntroduction to Image Processing:Image Modalities
Introduction to Image Processing:Image Modalities
Kalyan Acharjya
 
Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)
Kalyan Acharjya
 
Stick Diagram
Stick DiagramStick Diagram
Stick Diagram
Kalyan Acharjya
 
Photodetector (Photodiode)
Photodetector (Photodiode)Photodetector (Photodiode)
Photodetector (Photodiode)
Kalyan Acharjya
 
Fiber fabrication
Fiber fabricationFiber fabrication
Fiber fabrication
Kalyan Acharjya
 
Fiber End Preparations & Splicing
Fiber End Preparations & SplicingFiber End Preparations & Splicing
Fiber End Preparations & Splicing
Kalyan Acharjya
 
Connector losses Optical Fiber Cable
Connector losses Optical Fiber CableConnector losses Optical Fiber Cable
Connector losses Optical Fiber Cable
Kalyan Acharjya
 
Introduction to VLSI Design
Introduction to VLSI DesignIntroduction to VLSI Design
Introduction to VLSI Design
Kalyan Acharjya
 
Guidlines for ppt Design
Guidlines for ppt DesignGuidlines for ppt Design
Guidlines for ppt Design
Kalyan Acharjya
 
B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016
Kalyan Acharjya
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face Identification
Kalyan Acharjya
 

More from Kalyan Acharjya (20)

Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Histogram Specification or Matching Problem
Histogram Specification or Matching ProblemHistogram Specification or Matching Problem
Histogram Specification or Matching Problem
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Fundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image ComponentsFundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image Components
 
Introduction to Image Processing:Image Modalities
Introduction to Image Processing:Image ModalitiesIntroduction to Image Processing:Image Modalities
Introduction to Image Processing:Image Modalities
 
Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)
 
Stick Diagram
Stick DiagramStick Diagram
Stick Diagram
 
Photodetector (Photodiode)
Photodetector (Photodiode)Photodetector (Photodiode)
Photodetector (Photodiode)
 
Fiber fabrication
Fiber fabricationFiber fabrication
Fiber fabrication
 
Fiber End Preparations & Splicing
Fiber End Preparations & SplicingFiber End Preparations & Splicing
Fiber End Preparations & Splicing
 
Connector losses Optical Fiber Cable
Connector losses Optical Fiber CableConnector losses Optical Fiber Cable
Connector losses Optical Fiber Cable
 
Introduction to VLSI Design
Introduction to VLSI DesignIntroduction to VLSI Design
Introduction to VLSI Design
 
Guidlines for ppt Design
Guidlines for ppt DesignGuidlines for ppt Design
Guidlines for ppt Design
 
B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face Identification
 

Recently uploaded

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 

Recently uploaded (20)

Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 

Hypothesis Testing

  • 2. Outlines ● What is Hypothesis? ● Characteristics of Hypotheses. ● Hypotheses Types & Terminologies. ● Null & Alternate Hypotheses. ● Flowchart of Hypotheses Testing. ● Chi-Square Test. ● Conclusion. 2
  • 3. What is Hypothesis? ● A Hypothesis is a premise or claim that we want to test. ● Hypothesis (Latin)= Hupo (Under)+Thesis (placing)-Greek. ● A supposition or proposed explanation made on the basis of limited evidence as a starting point for further investigation. ● A hypothesis is a speculation or theory based on insufficient evidence that lends itself to further testing and experimentation. ● Presume assumption based on observations or experiences (Not Verified). 3
  • 4. Characteristics of Hypothesis ● Hypothesis should be clear & precise. ● Hypothesis should be capable of being tested. ● Hypothesis must explain the facts that give rise to the need for explanation. ● Hypothesis should be amenable to testing within a reasonable time. ● Hypothesis should be consistent with most known facts. ● Hypothesis should state relationships between variables. 4
  • 5. Hypothesis Types ★ Null Hypothsis ★ Alternate Hypothesis / Research Hypothesis A Null Hypothesis (Ho) - that says there is no statistical significance between the two variables in the hypothesis. When the samples result donot support the null hypothesis, then concluded something else is true, termed as Alternate Hypothesis (Ha). 5
  • 7. Some Terminologies The level of Confidence (C): Probability of confidence (May be Null Hypothesis likely to be reject). The level of Significance (alpha) - The probability of rejecting the null hypothesis when it is true. Normally referred in percentage (usually 5%). Decision Rule-Test Hypothesis - The decision rule compares the sample mean to the hypothesized mean. If the sample mean is "close" to the hypothesized mean, we accept the null hypothesis. Type I & Type II error: 7
  • 8. 8 Two Tailed & One Tailed Test
  • 9. Some Terminologies..Continue Analyze Sample Data: Degrees of freedom, expected frequencies, test statistic, and the P-value associated with the test statistic. •Degrees of freedom. The degrees of freedom (DF) is equal to: DF = (r - 1) * (c - 1) where r is the number of levels for one categorical variable, and c is the number of levels for the other categorical variable. •Expected frequencies: Er,c = (nr * nc) / n, where Er,c is the expected frequency count for level r of Variable A and level c of Variable B, nr is the total number of sample observations at level r of Variable A, nc is the total number of sample observations at level c of Variable B, and n is the total sample size. 9
  • 10. Test statistic: Chi Square Test •The test statistic is a chi-square random variable (chi square) defined by the following equation- P-value: The P-value is the probability of observing a sample statistic as extreme as the test statistic (Variable and degrees of freedom on Chi-Square Distribution). Interpret Results: When P value < alpha (Level of significance) implies null hypothesis is rejected. 10   E EO 2)(2
  • 11. Chi-Sqaure Test-Example •“Is Demonetization will help to boost the Indian Economy?” Opinion poll surveyed a simple random sample of 1000 people. Respondents were classified by gender (male or female) and by voting preference (Yes, No, or Neutral). Results- •Is there a gender gap? Do the men's preferences differ significantly from the women's preferences? Use a 0.05 level of significance. Poll Results Row Total Yes No Neutral Male 200 150 50 400 Female 250 300 50 600 Column total 450 450 100 1000 11
  • 12. Chi-Sqaure Test-Solutions Contd.. •State the Hypotheses: The first step is to state the null hypothesis and an alternative hypothesis. H0: Gender and voting preferences are independent. Ha: Gender and voting preferences are not independent. •Formulate an analysis plan. For this analysis, the significance level is 0.05. Using sample data, we will conduct a chi-square test for independence. 12
  • 13. Numerical Continue.. •Analyze sample data: Compute the degrees of freedom, the expected frequency counts, and the chi-square test statistic. DF = (r - 1) * (c - 1) = (2 - 1) * (3 - 1) = 2 E r,c = (nr * nc) / n E1,1 = (400 * 450) / 1000 = 180000/1000 = 180 E1,2 = (400 * 450) / 1000 = 180000/1000 = 180 E1,3 = (400 * 100) / 1000 = 40000/1000 = 40 E2,1 = (600 * 450) / 1000 = 270000/1000 = 270 E2,2 = (600 * 450) / 1000 = 270000/1000 = 270 E2,3 = (600 * 100) / 1000 = 60000/1000 = 60 = Σ [ (Or,c - Er,c)2 / Er,c ] = (200 - 180)2/180 + (150 - 180)2/180 + (50 - 40)2/40 + (250 - 270)2/270 + (300 - 270)2/270 + (50 - 60)2/60 = 16.2 where DF is the degrees of freedom, r is the number of levels of gender, c is the number of levels of the voting preference, nr is the number of observations from level r of gender, nc is the number of observations from level c of voting preference, n is the number of observations in the sample, Er,c is the expected frequency count when gender is level r and voting preference is level c, and Or,c is the observed frequency count when gender is level r voting preference is level c. 13 Poll Results Row Total Yes No Neutral Male 200 150 50 400 Female 250 300 50 600 Column total 450 450 100 1000 2 2 2
  • 14. Numeric Continue… Based on the chi-square statistic and the degrees of freedom, we determine the P-value. The P-value is the probability that a chi-square statistic having 2 degrees of freedom is more extreme than 16.2. By using the Chi-Square Distribution Calculator to find P( > 16.2) = 0.0003. Results: Since the P-value (0.0003) is less than the significance level (0.05), we cannot accept the null hypothesis. Thus, we conclude that there is a relationship between gender and voting preference. Null Hypothesis is rejected. 14 2
  • 15. Conclusions: • The outcome of the research is based on formulation of hypothesis. •Hypothesis testing is a significant part of any research work. •The objective of Hypothesis Testing to verify the Null Hypotheses, not prove it. •Chi-square is one statistic use to find the P value (Hypothesis Testing). •If P Value is less than level of significance, then reject the null hypothesis. •The other most popular test statistics are z2 test and t test. 15
  • 16. References: Book:  Website link (Numeric Example) http://stattrek.com/chi-square-test/independence.aspx?Tutorial=AP 16