SlideShare a Scribd company logo
1 of 23
Statistical Inference
Hypothesis Testing
•   What is a statistical hypothesis?
•   What is so important about it?
•   What is a rejection region?
•   What does it mean to say that a finding is
    statistically significant?
•   Describe Type I and Type II errors.
Hypothesis Testing
• Task: Statement about unknown vales of population
  parameters in terms of sample information
• Elements of a hypothesis test:
   – Null hypothesis (H0 ) - Statement on the value(s) of unknown
     parameter(s);
   – Alternative hypothesis - Statement contradictory to the null
     hypothesis
   – Test statistic – Estimate based on sample information and null
     hypothesis used to test between null and alternative
     hypotheses
   – Rejection (Critical) region – Range of value on the test statistic
     for which we reject the null in favor of the alternative
     hypothesis
Hypothesis Testing
      True State        H0 True          HA True


Decision
Do not reject                       Type II Error
Null               Correct Decision P(Type II)=

Reject Null        Type I Error      Correct Decision
                   p(Type I)=        Power=1-
Critical Value
• Critical value: Value that separates the
  critical (rejection) region from the
  values of the test statistic that do not
  lead to rejection of the null hypothesis,
  given the sampling distribution and the
  significance level .
Significance Level
• The significance level ( ): Probability of
  the test statistic falling in the critical
  region under a valid null hypothesis.
• : Conventional Choices for are 0.05,
  0.01, and 0.10.
• p-value: Probability of observing the
  test statistic under the null hypothesis
Significance Level and Power
• Level of significance: Probability that the test
  rejects the null hypothesis on the assumption
  that the null hypothesis is true.
• Power of a test: Probability that that the test
  rejects the null hypothesis on the assumption
  that that alternative hypothesis is true.
Test of Hypothesis: Interpretations
• Rejecting the null hypothesis
• Do not reject H0 : Does not mean that H0 is true;
  nor that the data supports H0.If the observations
  are few, the test would not have the power, that
  is, difficult for a test to reject a false null H0.
• Reject H0 does not mean that HA is true. It
  means that either H0 is false or the event has
  probability no larger than the significance level.
Statistical Significance vs. Practical
               Importance
• An effect may be of importance but not
  statistically significant because of sample
  limitations (poor quality or few
  observations).
• The effect may not be of much policy
  significance in terms of impact but still
  statistically significant due to high quality of
  data.
Hypothesis Testing: Steps
• State the maintained hypothesis.
• State the null & alternative hypotheses.
• Choose the test statistic and estimate its value.
• Specify the sampling distribution of the test
  statistics under the null hypothesis.
• Determine the critical value(s) corresponding to
  a significance level.
• Determine the p-value for the test statistic.
• State the conclusion of a hypothesis test in
  simple, nontechnical terms.
Hypothesis Testing: Rationale
• We infer that the assumption is probably
  incorrect given the maintained and null
  hypotheses, if the probability of getting the
  sample is exceptionally small.
• Please note that the null hypothesis contains
  equality. Comparing the assumption and the
  sample results, we infer one of the
  following:
Hypothesis Testing: Rationale
• Under the null hypothesis, if the probability
  of observing the sample estimate is
  high, discrepancy between the assumption
  and the sample estimate, if any, is due to
  chance.
• If this probability is very low, even relatively
  large discrepancy between the assumption
  and the sample is due to invalid null
  hypothesis.
Test of Hypothesis: Population Means
• Assumptions:
1) Simple random sample
2) Population variance is known
3) Population distribution is normal or sample
  size is more than 30
Test of Hypothesis: Population Means
               Known population variance

• Test statistic

                         x – µx
               z=
                            n
Two Tail Test
One- and Two Tail Tests
One-Tail Test   Two-Tail Test   One-Tail Test
 (left tail)                     (right tail)
Test of Hypothesis: Population Means
• Assumptions:
1) Simple random sample
2) Population variance is unknown
3) Population distribution is normal or sample
  size is more than 30
Test of Hypothesis: Population Means
              Unknown population variance

• Test statistic
                      x –µx
                    t= s
                       n
Student’s t-test: An Illustration
• Question: The diameter of some ball for
  study is specified to be one meter. A random
  sample of 10 such balls is selected to check
  the specification. The sample selected gave
  the following
  measurements:1.01, 1.01, 1.02, 1.00, 0.99, 0.
  99, 1.02, 1.02, 1.00, 1.02
• Is there any reason to believe that there has
  been a change in the average diameter?
Student’s t-test
• Level of significance = 0.05
• Maintained hypothesis: Distribution of
  diameters is normal
• n = 10
• H0 : m = 1.0
• HA : m <> 1.0
• Sample mean = 1.008
Student’s t-test
•   Estimate of population variance = 0.000151
•   Std. deviation = 0.012288
•   t-statistic = 1.953125 (9 d.f.)
•   t(9,0.05) = 2.262
•   Computed t < tabulated t
•   Do not reject H0
•   Conclusion: Sample information supports the
    hypothesis that the average diameter of the ball
    is one meter.
What would be the sampling
distribution of a sample mean from
a normally distributed population?
      Sample mean from a normal
    population will also be normally
    distributed for any sample size n
Central Limit Theorem
• The sampling distribution of mean of n
  sample observations from any population
  would be approximately normal when n is
  sufficiently large.

More Related Content

What's hot (20)

STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Tests of Significance: The Basics Concepts
Tests of Significance: The Basics ConceptsTests of Significance: The Basics Concepts
Tests of Significance: The Basics Concepts
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
t distribution, paired and unpaired t-test
t distribution, paired and unpaired t-testt distribution, paired and unpaired t-test
t distribution, paired and unpaired t-test
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Variable inferential statistics
Variable inferential statisticsVariable inferential statistics
Variable inferential statistics
 
8.1
8.18.1
8.1
 
Statistics Presentation week 7
Statistics Presentation week 7Statistics Presentation week 7
Statistics Presentation week 7
 
Introduction to Hypothesis Testing
Introduction to Hypothesis TestingIntroduction to Hypothesis Testing
Introduction to Hypothesis Testing
 
Statistical significance
Statistical significanceStatistical significance
Statistical significance
 
Hypothesis testing lectures
Hypothesis testing lectures Hypothesis testing lectures
Hypothesis testing lectures
 
Tests of significance Periodontology
Tests of significance PeriodontologyTests of significance Periodontology
Tests of significance Periodontology
 
Introduction to the t Statistic
Introduction to the t StatisticIntroduction to the t Statistic
Introduction to the t Statistic
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 

Similar to Topic 7 stat inference

Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1HanaaBayomy
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in StatisticsVikash Keshri
 
Chapter 9 Fundamental of Hypothesis Testing.ppt
Chapter 9 Fundamental of Hypothesis Testing.pptChapter 9 Fundamental of Hypothesis Testing.ppt
Chapter 9 Fundamental of Hypothesis Testing.pptHasanGilani3
 
Hypothesis_Testing.ppt
Hypothesis_Testing.pptHypothesis_Testing.ppt
Hypothesis_Testing.pptssuserac2a40
 
Chapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptxChapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptxNELVINNOOL1
 
Hypothesis testing definitions
Hypothesis testing definitionsHypothesis testing definitions
Hypothesis testing definitionsJJkedst
 
Day-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxDay-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxrjaisankar
 
hypothesis testing
 hypothesis testing hypothesis testing
hypothesis testingzoheb khan
 
TOPIC- HYPOTHESIS TESTING RMS.pptx
TOPIC- HYPOTHESIS TESTING  RMS.pptxTOPIC- HYPOTHESIS TESTING  RMS.pptx
TOPIC- HYPOTHESIS TESTING RMS.pptxanamikamishra29
 
teast mean one and two sample
teast mean one and two sampleteast mean one and two sample
teast mean one and two sampleMuzamil Hussain
 

Similar to Topic 7 stat inference (20)

Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
 
BBA 020
BBA 020BBA 020
BBA 020
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in Statistics
 
Testing of Hypothesis
Testing of Hypothesis Testing of Hypothesis
Testing of Hypothesis
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
7 hypothesis testing
7 hypothesis testing7 hypothesis testing
7 hypothesis testing
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Chapter 9 Fundamental of Hypothesis Testing.ppt
Chapter 9 Fundamental of Hypothesis Testing.pptChapter 9 Fundamental of Hypothesis Testing.ppt
Chapter 9 Fundamental of Hypothesis Testing.ppt
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Hypothesis_Testing.ppt
Hypothesis_Testing.pptHypothesis_Testing.ppt
Hypothesis_Testing.ppt
 
Chapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptxChapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptx
 
Ds 2251 -_hypothesis test
Ds 2251 -_hypothesis testDs 2251 -_hypothesis test
Ds 2251 -_hypothesis test
 
Hypothesis testing definitions
Hypothesis testing definitionsHypothesis testing definitions
Hypothesis testing definitions
 
Hypothesis Testing.pptx
Hypothesis Testing.pptxHypothesis Testing.pptx
Hypothesis Testing.pptx
 
312320.pptx
312320.pptx312320.pptx
312320.pptx
 
Day-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxDay-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptx
 
hypothesis.pptx
hypothesis.pptxhypothesis.pptx
hypothesis.pptx
 
hypothesis testing
 hypothesis testing hypothesis testing
hypothesis testing
 
TOPIC- HYPOTHESIS TESTING RMS.pptx
TOPIC- HYPOTHESIS TESTING  RMS.pptxTOPIC- HYPOTHESIS TESTING  RMS.pptx
TOPIC- HYPOTHESIS TESTING RMS.pptx
 
teast mean one and two sample
teast mean one and two sampleteast mean one and two sample
teast mean one and two sample
 

More from Sizwan Ahammed

Topic 21 evidence on diet diversity
Topic 21 evidence on diet diversityTopic 21 evidence on diet diversity
Topic 21 evidence on diet diversitySizwan Ahammed
 
Topic 21 diet diversity
Topic 21 diet diversityTopic 21 diet diversity
Topic 21 diet diversitySizwan Ahammed
 
Topic 21 diet diversity stata
Topic 21  diet diversity stataTopic 21  diet diversity stata
Topic 21 diet diversity stataSizwan Ahammed
 
Topic 20 anthropomeric indicators
Topic 20 anthropomeric indicatorsTopic 20 anthropomeric indicators
Topic 20 anthropomeric indicatorsSizwan Ahammed
 
Topic 20 anthro meaurement
Topic 20 anthro meaurementTopic 20 anthro meaurement
Topic 20 anthro meaurementSizwan Ahammed
 
Topic 20 anthro meaurement230312
Topic 20 anthro meaurement230312Topic 20 anthro meaurement230312
Topic 20 anthro meaurement230312Sizwan Ahammed
 
Topic 19 inequality stata
Topic 19 inequality stataTopic 19 inequality stata
Topic 19 inequality stataSizwan Ahammed
 
Topic 18 multiple regression
Topic 18 multiple regressionTopic 18 multiple regression
Topic 18 multiple regressionSizwan Ahammed
 
Topic17 regression spss
Topic17 regression spssTopic17 regression spss
Topic17 regression spssSizwan Ahammed
 
Topic 15 correlation spss
Topic 15 correlation spssTopic 15 correlation spss
Topic 15 correlation spssSizwan Ahammed
 
Topic 14 maternal education
Topic 14 maternal educationTopic 14 maternal education
Topic 14 maternal educationSizwan Ahammed
 
Topic 13 con pattern spss
Topic 13 con pattern spssTopic 13 con pattern spss
Topic 13 con pattern spssSizwan Ahammed
 

More from Sizwan Ahammed (20)

Topic 21 evidence on diet diversity
Topic 21 evidence on diet diversityTopic 21 evidence on diet diversity
Topic 21 evidence on diet diversity
 
Topic 21 diet diversity
Topic 21 diet diversityTopic 21 diet diversity
Topic 21 diet diversity
 
Topic 21 diet diversity stata
Topic 21  diet diversity stataTopic 21  diet diversity stata
Topic 21 diet diversity stata
 
Topic 20 anthropomeric indicators
Topic 20 anthropomeric indicatorsTopic 20 anthropomeric indicators
Topic 20 anthropomeric indicators
 
Topic 20 anthro meaurement
Topic 20 anthro meaurementTopic 20 anthro meaurement
Topic 20 anthro meaurement
 
Topic 20 anthro meaurement230312
Topic 20 anthro meaurement230312Topic 20 anthro meaurement230312
Topic 20 anthro meaurement230312
 
Topic 20 anthro stata
Topic 20 anthro stataTopic 20 anthro stata
Topic 20 anthro stata
 
Topic 19 inequaltiy
Topic 19 inequaltiyTopic 19 inequaltiy
Topic 19 inequaltiy
 
Topic 19 inequality stata
Topic 19 inequality stataTopic 19 inequality stata
Topic 19 inequality stata
 
Topic 18 multiple regression
Topic 18 multiple regressionTopic 18 multiple regression
Topic 18 multiple regression
 
Topic 17 regression
Topic 17 regressionTopic 17 regression
Topic 17 regression
 
Topic17 regression spss
Topic17 regression spssTopic17 regression spss
Topic17 regression spss
 
Topic 16 poverty(ii)
Topic 16 poverty(ii)Topic 16 poverty(ii)
Topic 16 poverty(ii)
 
Topic 16 poverty(i)
Topic 16 poverty(i)Topic 16 poverty(i)
Topic 16 poverty(i)
 
Topic 15 correlation spss
Topic 15 correlation spssTopic 15 correlation spss
Topic 15 correlation spss
 
Topic 15 correlation
Topic 15 correlationTopic 15 correlation
Topic 15 correlation
 
Topic 14 two anova
Topic 14 two anovaTopic 14 two anova
Topic 14 two anova
 
Topic 14 maternal education
Topic 14 maternal educationTopic 14 maternal education
Topic 14 maternal education
 
Topic 13 cons pattern
Topic 13 cons patternTopic 13 cons pattern
Topic 13 cons pattern
 
Topic 13 con pattern spss
Topic 13 con pattern spssTopic 13 con pattern spss
Topic 13 con pattern spss
 

Recently uploaded

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 

Recently uploaded (20)

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 

Topic 7 stat inference

  • 2. Hypothesis Testing • What is a statistical hypothesis? • What is so important about it? • What is a rejection region? • What does it mean to say that a finding is statistically significant? • Describe Type I and Type II errors.
  • 3. Hypothesis Testing • Task: Statement about unknown vales of population parameters in terms of sample information • Elements of a hypothesis test: – Null hypothesis (H0 ) - Statement on the value(s) of unknown parameter(s); – Alternative hypothesis - Statement contradictory to the null hypothesis – Test statistic – Estimate based on sample information and null hypothesis used to test between null and alternative hypotheses – Rejection (Critical) region – Range of value on the test statistic for which we reject the null in favor of the alternative hypothesis
  • 4. Hypothesis Testing True State H0 True HA True Decision Do not reject Type II Error Null Correct Decision P(Type II)= Reject Null Type I Error Correct Decision p(Type I)= Power=1-
  • 5. Critical Value • Critical value: Value that separates the critical (rejection) region from the values of the test statistic that do not lead to rejection of the null hypothesis, given the sampling distribution and the significance level .
  • 6. Significance Level • The significance level ( ): Probability of the test statistic falling in the critical region under a valid null hypothesis. • : Conventional Choices for are 0.05, 0.01, and 0.10. • p-value: Probability of observing the test statistic under the null hypothesis
  • 7. Significance Level and Power • Level of significance: Probability that the test rejects the null hypothesis on the assumption that the null hypothesis is true. • Power of a test: Probability that that the test rejects the null hypothesis on the assumption that that alternative hypothesis is true.
  • 8. Test of Hypothesis: Interpretations • Rejecting the null hypothesis • Do not reject H0 : Does not mean that H0 is true; nor that the data supports H0.If the observations are few, the test would not have the power, that is, difficult for a test to reject a false null H0. • Reject H0 does not mean that HA is true. It means that either H0 is false or the event has probability no larger than the significance level.
  • 9. Statistical Significance vs. Practical Importance • An effect may be of importance but not statistically significant because of sample limitations (poor quality or few observations). • The effect may not be of much policy significance in terms of impact but still statistically significant due to high quality of data.
  • 10. Hypothesis Testing: Steps • State the maintained hypothesis. • State the null & alternative hypotheses. • Choose the test statistic and estimate its value. • Specify the sampling distribution of the test statistics under the null hypothesis. • Determine the critical value(s) corresponding to a significance level. • Determine the p-value for the test statistic. • State the conclusion of a hypothesis test in simple, nontechnical terms.
  • 11. Hypothesis Testing: Rationale • We infer that the assumption is probably incorrect given the maintained and null hypotheses, if the probability of getting the sample is exceptionally small. • Please note that the null hypothesis contains equality. Comparing the assumption and the sample results, we infer one of the following:
  • 12. Hypothesis Testing: Rationale • Under the null hypothesis, if the probability of observing the sample estimate is high, discrepancy between the assumption and the sample estimate, if any, is due to chance. • If this probability is very low, even relatively large discrepancy between the assumption and the sample is due to invalid null hypothesis.
  • 13. Test of Hypothesis: Population Means • Assumptions: 1) Simple random sample 2) Population variance is known 3) Population distribution is normal or sample size is more than 30
  • 14. Test of Hypothesis: Population Means Known population variance • Test statistic x – µx z= n
  • 16. One- and Two Tail Tests One-Tail Test Two-Tail Test One-Tail Test (left tail) (right tail)
  • 17. Test of Hypothesis: Population Means • Assumptions: 1) Simple random sample 2) Population variance is unknown 3) Population distribution is normal or sample size is more than 30
  • 18. Test of Hypothesis: Population Means Unknown population variance • Test statistic x –µx t= s n
  • 19. Student’s t-test: An Illustration • Question: The diameter of some ball for study is specified to be one meter. A random sample of 10 such balls is selected to check the specification. The sample selected gave the following measurements:1.01, 1.01, 1.02, 1.00, 0.99, 0. 99, 1.02, 1.02, 1.00, 1.02 • Is there any reason to believe that there has been a change in the average diameter?
  • 20. Student’s t-test • Level of significance = 0.05 • Maintained hypothesis: Distribution of diameters is normal • n = 10 • H0 : m = 1.0 • HA : m <> 1.0 • Sample mean = 1.008
  • 21. Student’s t-test • Estimate of population variance = 0.000151 • Std. deviation = 0.012288 • t-statistic = 1.953125 (9 d.f.) • t(9,0.05) = 2.262 • Computed t < tabulated t • Do not reject H0 • Conclusion: Sample information supports the hypothesis that the average diameter of the ball is one meter.
  • 22. What would be the sampling distribution of a sample mean from a normally distributed population? Sample mean from a normal population will also be normally distributed for any sample size n
  • 23. Central Limit Theorem • The sampling distribution of mean of n sample observations from any population would be approximately normal when n is sufficiently large.