SlideShare a Scribd company logo
1 of 20
UUnnlloocckkiinngg tthhee MMyysstteerriieess 
ooff HHyyppootthheessiiss TTeessttiinngg 
Muzamil Hussain 
Arsalan Shaikh 
Thanks to Sir 
Mohammad Rafique
What’s this all about? 
• Hypothesis 
• An educated guess 
• A claim or statement about a 
property of a population 
• The goal in Hypothesis Testing is to 
analyze a sample in an attempt to 
distinguish between population 
characteristics that are likely to occur 
and population characteristics that 
are uunnlliikkeellyy to occur.
• Null Hypothesis 
vs. Alternative 
Hypothesis 
• Type I vs. Type II 
Error 
" a vs. b 
The Basics
Null Hypothesis vs. Alternative 
Hypothesis 
Null Hypothesis 
• Statement about the 
value of a population 
parameter 
• Represented by H0 
• Always stated as an 
Equality 
Alternative Hypothesis 
• Statement about the 
value of a population 
parameter that must be 
true if the null 
hypothesis is false 
• Represented by H1 
• Stated in on of three 
forms 
• > 
• < 
• ¹
Type I vs. Type II Error 
Referring 
to Ho, the 
Null 
Hypothesis 
True False 
Reject Type I 
Error 
O.K 
Fail to 
Reject 
O.K. Type II 
Error
Alpha vs. Beta 
· a is the probability of Type I error 
· b is the probability of Type II error 
· The experimenters (you and I) have the 
freedom to set the a-level for a 
particular hypothesis test. That level is 
called the level of significance for the 
test. Changing a can (and often does) 
affect the results of the test—whether 
you reject or fail to reject H0.
Alpha vs. Beta, Part II 
• It would be wonderful if we could force 
both a and b to equal zero. 
Unfortunately, these quantities have 
an inverse relationship. As a 
increases, b decreases and vice versa. 
• The only way to decrease both a and b 
is to increase the sample size. To 
make both quantities equal zero, the 
sample size would have to be infinite— 
you would have to sample the entire 
population.
Type I and Type II Errors 
True State of Nature 
We decide to 
reject the 
null hypothesis 
We fail to 
reject the 
null hypothesis 
The null 
hypothesis is 
true 
The null 
hypothesis is 
false 
Type I error 
(rejecting a true 
null hypothesis) 
a 
Correct 
decision 
Type II error 
(rejecting a false 
null hypothesis) 
b 
Correct 
decision 
Decision
Forming Conclusions 
• Every hypothesis test ends with the 
experimenters (you and I) either 
• Rejecting the Null Hypothesis, or 
• Failing to Reject the Null Hypothesis 
• As strange as it may seem, you never 
aacccceepptt the Null Hypothesis. The best 
you can ever say about the Null 
Hypothesis is that you don’t have 
enough evidence, based on a sample, 
to reject it!
Seven Steps to Hypothesis 
Testing Happiness 
(Traditional or Classical Method)
The Seven Steps… 
1) Describe in words the population 
characteristic about which 
hypotheses are to be tested 
2) State the null hypothesis, Ho 
3) State the alternative hypothesis, H1 
or Ha 
4) Display the test statistic to be used
The Seven Steps… 
5) Identify the rejection region 
• Is it an upper, lower, or two-tailed 
test? 
• Determine the critical value 
associated with a, the level of 
significance of the test 
5) Compute all the quantities in 
the test statistic, and compute 
the test statistic itself
The Seven Steps… 
7) State the conclusion. That is, 
decide whether to reject the null 
hypothesis, Ho, or fail to reject the 
null hypothesis. The conclusion 
depends on the level of significance 
of the test. Also, remember to state 
your result in the context of the 
specific problem.
Types of Hypothesis Tests 
• Large Sample Tests, Population Mean 
(known population standard deviation) 
• Large Sample Tests, Population 
Proportion (unknown population 
standard deviation) 
• Small Sample Tests, Mean of a Normal 
Population
Test for mean one and 
two sample test
• Our focus in this Presentation is 
comparing the data from two different 
samples 
• For now, we will assume that these two 
different samples are independent of 
each other and come from two distinct 
populations 
Population 1:m 1 , s1 
Sample 1: , s1 
Population 2: m 2 , s2 
Sample 2: , s2
Two-Sample Z test 
 We want to test the null hypothesis that the two 
populations have different means 
• H0: m1 = m2 or equivalently, m1 - m2 = 0 
• Two-sided alternative hypothesis: m1 - m2 ¹ 0 
• If we assume our population SDs s1 and s2 are known, we 
can calculate a two-sample Z statistic: 
• We can then calculate a p-value from this Z statistic using 
the standard normal distribution 
X1=mean1 x2=mean2 s1  s2 = standard deviation N1  N2 = sample 1 and sample 2
Two-Sample t test 
 We still want to test the null hypothesis that the two 
populations have equal means (H0: m1 - m2 = 0) 
• If s1 and s2 are unknown, then we need to use the sample 
SDs s1 and s2 instead, which gives us the two-sample T 
statistic: 
• The p-value is calculated using the t distribution, but what 
degrees of freedom do we use? 
• df can be complicated and often is calculated by software 
• Simpler and more conservative: set degrees of freedom equal to 
the smaller of (n1-1) or (n2-1)
The End 
Actually, it’s just the 
beginning...

More Related Content

What's hot

Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06DrZahid Khan
 
Chap#9 hypothesis testing (3)
Chap#9 hypothesis testing (3)Chap#9 hypothesis testing (3)
Chap#9 hypothesis testing (3)shafi khan
 
A note and graphical illustration of type II error
A note and graphical illustration of type II errorA note and graphical illustration of type II error
A note and graphical illustration of type II errorGH Yeoh
 
Bca admission in india
Bca admission in indiaBca admission in india
Bca admission in indiaEdhole.com
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testingSumit Sharma
 
Type i and type ii errors
Type i and type ii errorsType i and type ii errors
Type i and type ii errorsp24ssp
 
hypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigmahypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigmavdheerajk
 
business research management
business research management business research management
business research management ApneetSaini
 
Mca admission in india
Mca admission in indiaMca admission in india
Mca admission in indiaEdhole.com
 
Math3010 week 4
Math3010 week 4Math3010 week 4
Math3010 week 4stanbridge
 
Chapter 10
Chapter 10Chapter 10
Chapter 10bmcfad01
 
Math3010 week 5
Math3010 week 5Math3010 week 5
Math3010 week 5stanbridge
 
Econometrics and statistics mcqs part 2
Econometrics and statistics mcqs part 2Econometrics and statistics mcqs part 2
Econometrics and statistics mcqs part 2punjab university
 
Crm handout probability distributions
Crm handout   probability distributionsCrm handout   probability distributions
Crm handout probability distributionsElvis U Omar
 
Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011Lauren Crosby
 
Topic 2 - More on Hypothesis Testing
Topic 2 - More on Hypothesis TestingTopic 2 - More on Hypothesis Testing
Topic 2 - More on Hypothesis TestingRyan Herzog
 

What's hot (20)

Hypothesis testing and p values 06
Hypothesis testing and p values  06Hypothesis testing and p values  06
Hypothesis testing and p values 06
 
Chap#9 hypothesis testing (3)
Chap#9 hypothesis testing (3)Chap#9 hypothesis testing (3)
Chap#9 hypothesis testing (3)
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
A note and graphical illustration of type II error
A note and graphical illustration of type II errorA note and graphical illustration of type II error
A note and graphical illustration of type II error
 
Bca admission in india
Bca admission in indiaBca admission in india
Bca admission in india
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Type i and type ii errors
Type i and type ii errorsType i and type ii errors
Type i and type ii errors
 
hypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigmahypothesis testing-tests of proportions and variances in six sigma
hypothesis testing-tests of proportions and variances in six sigma
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
business research management
business research management business research management
business research management
 
Mca admission in india
Mca admission in indiaMca admission in india
Mca admission in india
 
Math3010 week 4
Math3010 week 4Math3010 week 4
Math3010 week 4
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Math3010 week 5
Math3010 week 5Math3010 week 5
Math3010 week 5
 
Econometrics and statistics mcqs part 2
Econometrics and statistics mcqs part 2Econometrics and statistics mcqs part 2
Econometrics and statistics mcqs part 2
 
Crm handout probability distributions
Crm handout   probability distributionsCrm handout   probability distributions
Crm handout probability distributions
 
Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011Stats 3000 Week 1 - Winter 2011
Stats 3000 Week 1 - Winter 2011
 
Topic 2 - More on Hypothesis Testing
Topic 2 - More on Hypothesis TestingTopic 2 - More on Hypothesis Testing
Topic 2 - More on Hypothesis Testing
 

Viewers also liked

Hypothesis testing interview
Hypothesis testing interviewHypothesis testing interview
Hypothesis testing interviewRicky Corp III
 
FYP Presentation On Android based Google Map Application
FYP Presentation On Android based Google Map ApplicationFYP Presentation On Android based Google Map Application
FYP Presentation On Android based Google Map ApplicationMuzamil Hussain
 
10. sampling and hypotehsis
10. sampling and hypotehsis10. sampling and hypotehsis
10. sampling and hypotehsisKaran Kukreja
 
Error And Power
Error And PowerError And Power
Error And Powershoffma5
 
Hypothesis Conclusion (Geometry 1_4)
Hypothesis Conclusion (Geometry 1_4)Hypothesis Conclusion (Geometry 1_4)
Hypothesis Conclusion (Geometry 1_4)rfant
 
Research hypothesis....ppt
Research hypothesis....pptResearch hypothesis....ppt
Research hypothesis....pptRahul Dhaker
 

Viewers also liked (7)

Hypothesis testing interview
Hypothesis testing interviewHypothesis testing interview
Hypothesis testing interview
 
FYP Presentation On Android based Google Map Application
FYP Presentation On Android based Google Map ApplicationFYP Presentation On Android based Google Map Application
FYP Presentation On Android based Google Map Application
 
10. sampling and hypotehsis
10. sampling and hypotehsis10. sampling and hypotehsis
10. sampling and hypotehsis
 
Error And Power
Error And PowerError And Power
Error And Power
 
Hypothesis Conclusion (Geometry 1_4)
Hypothesis Conclusion (Geometry 1_4)Hypothesis Conclusion (Geometry 1_4)
Hypothesis Conclusion (Geometry 1_4)
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Research hypothesis....ppt
Research hypothesis....pptResearch hypothesis....ppt
Research hypothesis....ppt
 

Similar to teast mean one and two sample

Hypothesis_Testing.ppt
Hypothesis_Testing.pptHypothesis_Testing.ppt
Hypothesis_Testing.pptssuserac2a40
 
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
 hypothesis testing hypothesis testing
hypothesis testingzoheb khan
 
Hypothesis 151221131534
Hypothesis 151221131534Hypothesis 151221131534
Hypothesis 151221131534Uvise P M
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncrEdhole.com
 
Testing Of Hypothesis
Testing Of HypothesisTesting Of Hypothesis
Testing Of HypothesisSWATI SINGH
 
HYPOTHESIS TESTING 20200702.pptx
HYPOTHESIS TESTING 20200702.pptxHYPOTHESIS TESTING 20200702.pptx
HYPOTHESIS TESTING 20200702.pptxDr. Gururaj Phatak
 
hypothesis test
 hypothesis test hypothesis test
hypothesis testUnsa Shakir
 
Formulating Hypotheses
Formulating Hypotheses Formulating Hypotheses
Formulating Hypotheses Shilpi Panchal
 
B.tech admission in india
B.tech admission in indiaB.tech admission in india
B.tech admission in indiaEdhole.com
 
Chapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptxChapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptxNELVINNOOL1
 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1HanaaBayomy
 
Topic 7 stat inference
Topic 7 stat inferenceTopic 7 stat inference
Topic 7 stat inferenceSizwan Ahammed
 
testingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptxtestingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptxwigatox256
 
Testing of Hypothesis.pptx
Testing of Hypothesis.pptxTesting of Hypothesis.pptx
Testing of Hypothesis.pptxhemamalini398951
 

Similar to teast mean one and two sample (20)

Hypothesis_Testing.ppt
Hypothesis_Testing.pptHypothesis_Testing.ppt
Hypothesis_Testing.ppt
 
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 testing hypothesis testing
hypothesis testing
 
Hypothesis 151221131534
Hypothesis 151221131534Hypothesis 151221131534
Hypothesis 151221131534
 
Top schools in delhi ncr
Top schools in delhi ncrTop schools in delhi ncr
Top schools in delhi ncr
 
Testing of Hypothesis
Testing of Hypothesis Testing of Hypothesis
Testing of Hypothesis
 
Testing Of Hypothesis
Testing Of HypothesisTesting Of Hypothesis
Testing Of Hypothesis
 
HYPOTHESIS TESTING 20200702.pptx
HYPOTHESIS TESTING 20200702.pptxHYPOTHESIS TESTING 20200702.pptx
HYPOTHESIS TESTING 20200702.pptx
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
hypothesis test
 hypothesis test hypothesis test
hypothesis test
 
Unit 3
Unit 3Unit 3
Unit 3
 
Formulating Hypotheses
Formulating Hypotheses Formulating Hypotheses
Formulating Hypotheses
 
B.tech admission in india
B.tech admission in indiaB.tech admission in india
B.tech admission in india
 
Chapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptxChapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptx
 
Formulatinghypotheses
Formulatinghypotheses Formulatinghypotheses
Formulatinghypotheses
 
Hypothesis testing1
Hypothesis testing1Hypothesis testing1
Hypothesis testing1
 
Topic 7 stat inference
Topic 7 stat inferenceTopic 7 stat inference
Topic 7 stat inference
 
7 hypothesis testing
7 hypothesis testing7 hypothesis testing
7 hypothesis testing
 
testingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptxtestingofhypothesis-150108150611-conversion-gate02.pptx
testingofhypothesis-150108150611-conversion-gate02.pptx
 
Testing of Hypothesis.pptx
Testing of Hypothesis.pptxTesting of Hypothesis.pptx
Testing of Hypothesis.pptx
 

Recently uploaded

Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Americas Got Grants
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607dollysharma2066
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCRashishs7044
 
Guide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDFGuide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDFChandresh Chudasama
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Peter Ward
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Servicecallgirls2057
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCRashishs7044
 
TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024Adnet Communications
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCRashishs7044
 
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxmbikashkanyari
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy Verified Accounts
 
Chapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditChapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditNhtLNguyn9
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyotictsugar
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCRashishs7044
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africaictsugar
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfJos Voskuil
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchirictsugar
 

Recently uploaded (20)

Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...Church Building Grants To Assist With New Construction, Additions, And Restor...
Church Building Grants To Assist With New Construction, Additions, And Restor...
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
 
Guide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDFGuide Complete Set of Residential Architectural Drawings PDF
Guide Complete Set of Residential Architectural Drawings PDF
 
Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...Fordham -How effective decision-making is within the IT department - Analysis...
Fordham -How effective decision-making is within the IT department - Analysis...
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
 
TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024TriStar Gold Corporate Presentation - April 2024
TriStar Gold Corporate Presentation - April 2024
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptxThe-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
The-Ethical-issues-ghhhhhhhhjof-Byjus.pptx
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail Accounts
 
Call Us ➥9319373153▻Call Girls In North Goa
Call Us ➥9319373153▻Call Girls In North GoaCall Us ➥9319373153▻Call Girls In North Goa
Call Us ➥9319373153▻Call Girls In North Goa
 
Chapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal auditChapter 9 PPT 4th edition.pdf internal audit
Chapter 9 PPT 4th edition.pdf internal audit
 
Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)Japan IT Week 2024 Brochure by 47Billion (English)
Japan IT Week 2024 Brochure by 47Billion (English)
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyot
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africa
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdf
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchir
 

teast mean one and two sample

  • 1. UUnnlloocckkiinngg tthhee MMyysstteerriieess ooff HHyyppootthheessiiss TTeessttiinngg Muzamil Hussain Arsalan Shaikh Thanks to Sir Mohammad Rafique
  • 2. What’s this all about? • Hypothesis • An educated guess • A claim or statement about a property of a population • The goal in Hypothesis Testing is to analyze a sample in an attempt to distinguish between population characteristics that are likely to occur and population characteristics that are uunnlliikkeellyy to occur.
  • 3. • Null Hypothesis vs. Alternative Hypothesis • Type I vs. Type II Error " a vs. b The Basics
  • 4. Null Hypothesis vs. Alternative Hypothesis Null Hypothesis • Statement about the value of a population parameter • Represented by H0 • Always stated as an Equality Alternative Hypothesis • Statement about the value of a population parameter that must be true if the null hypothesis is false • Represented by H1 • Stated in on of three forms • > • < • ¹
  • 5. Type I vs. Type II Error Referring to Ho, the Null Hypothesis True False Reject Type I Error O.K Fail to Reject O.K. Type II Error
  • 6. Alpha vs. Beta · a is the probability of Type I error · b is the probability of Type II error · The experimenters (you and I) have the freedom to set the a-level for a particular hypothesis test. That level is called the level of significance for the test. Changing a can (and often does) affect the results of the test—whether you reject or fail to reject H0.
  • 7. Alpha vs. Beta, Part II • It would be wonderful if we could force both a and b to equal zero. Unfortunately, these quantities have an inverse relationship. As a increases, b decreases and vice versa. • The only way to decrease both a and b is to increase the sample size. To make both quantities equal zero, the sample size would have to be infinite— you would have to sample the entire population.
  • 8. Type I and Type II Errors True State of Nature We decide to reject the null hypothesis We fail to reject the null hypothesis The null hypothesis is true The null hypothesis is false Type I error (rejecting a true null hypothesis) a Correct decision Type II error (rejecting a false null hypothesis) b Correct decision Decision
  • 9. Forming Conclusions • Every hypothesis test ends with the experimenters (you and I) either • Rejecting the Null Hypothesis, or • Failing to Reject the Null Hypothesis • As strange as it may seem, you never aacccceepptt the Null Hypothesis. The best you can ever say about the Null Hypothesis is that you don’t have enough evidence, based on a sample, to reject it!
  • 10. Seven Steps to Hypothesis Testing Happiness (Traditional or Classical Method)
  • 11. The Seven Steps… 1) Describe in words the population characteristic about which hypotheses are to be tested 2) State the null hypothesis, Ho 3) State the alternative hypothesis, H1 or Ha 4) Display the test statistic to be used
  • 12. The Seven Steps… 5) Identify the rejection region • Is it an upper, lower, or two-tailed test? • Determine the critical value associated with a, the level of significance of the test 5) Compute all the quantities in the test statistic, and compute the test statistic itself
  • 13. The Seven Steps… 7) State the conclusion. That is, decide whether to reject the null hypothesis, Ho, or fail to reject the null hypothesis. The conclusion depends on the level of significance of the test. Also, remember to state your result in the context of the specific problem.
  • 14. Types of Hypothesis Tests • Large Sample Tests, Population Mean (known population standard deviation) • Large Sample Tests, Population Proportion (unknown population standard deviation) • Small Sample Tests, Mean of a Normal Population
  • 15. Test for mean one and two sample test
  • 16. • Our focus in this Presentation is comparing the data from two different samples • For now, we will assume that these two different samples are independent of each other and come from two distinct populations Population 1:m 1 , s1 Sample 1: , s1 Population 2: m 2 , s2 Sample 2: , s2
  • 17. Two-Sample Z test We want to test the null hypothesis that the two populations have different means • H0: m1 = m2 or equivalently, m1 - m2 = 0 • Two-sided alternative hypothesis: m1 - m2 ¹ 0 • If we assume our population SDs s1 and s2 are known, we can calculate a two-sample Z statistic: • We can then calculate a p-value from this Z statistic using the standard normal distribution X1=mean1 x2=mean2 s1 s2 = standard deviation N1 N2 = sample 1 and sample 2
  • 18. Two-Sample t test We still want to test the null hypothesis that the two populations have equal means (H0: m1 - m2 = 0) • If s1 and s2 are unknown, then we need to use the sample SDs s1 and s2 instead, which gives us the two-sample T statistic: • The p-value is calculated using the t distribution, but what degrees of freedom do we use? • df can be complicated and often is calculated by software • Simpler and more conservative: set degrees of freedom equal to the smaller of (n1-1) or (n2-1)
  • 19.
  • 20. The End Actually, it’s just the beginning...

Editor's Notes

  1. page 376 of text