SlideShare uma empresa Scribd logo
1 de 12
Elementary Statistics
Chapter 9:
Inferences from Two
Samples
9. 1 Two Proportions
1
Chapter 9: Inferences from Two Samples
9. 1 Two Proportions
9.2 Two Means: Independent Samples
9.3 Two Dependent Samples (Matched Pairs)
9.4 Two Variances or Standard Deviations
2
Objectives:
• Test the difference between two proportions.
• Test the difference between sample means, using the z test.
• Test the difference between two means for independent samples, using the t test.
• Test the difference between two means for dependent samples.
• Test the difference between two variances or standard deviations.
1. The traditional method (Critical Value Method) (CV)
2. The P-value method
P-Value Method: In a hypothesis test, the P-value is the probability of getting a value of the
test statistic that is at least as extreme as the test statistic obtained from the sample data,
assuming that the null hypothesis is true.
3. The confidence interval (CI)method
Because a confidence interval estimate of a population parameter contains the likely values of that parameter,
reject a claim that the population parameter has a value that is not included in the confidence interval.
Equivalent Methods: A confidence interval estimate of a proportion might lead to a conclusion different
from that of a hypothesis test.
Recall: 8.1 Basics of Hypothesis Testing: 3 methods used to test hypotheses:
3
Construct a confidence interval with
a confidence level selected:
Significance Level for
Hypothesis Test: α
Two-Tailed Test:
1 – α
One-Tailed
Test: 1 – 2α
0.01 99% 98%
0.05 95% 90%
0.10 90% 80%
A statistical hypothesis is a assumption about a population parameter. This conjecture may or may not be
true. The null hypothesis, symbolized by H0, and the alternative hypothesis, symbolized by H1
4
Type I error: The mistake of rejecting the null hypothesis when it is
actually true. The symbol α (alpha) is used to represent the
probability of a type I error. (A type I error occurs if one rejects the
null hypothesis when it is true.)
The level of significance is the maximum probability of committing
a type I error: α = P(type I error) = P(rejecting H0 when H0 is
true) and Typical significance levels are: 0.10, 0.05, and 0.01
For example, when a = 0.10, there is a 10% chance of rejecting a
true null hypothesis.
Type II error: The mistake of failing to reject the null hypothesis
when it is actually false. The symbol β(beta) is used to represent the
probability of a type II error. (A type II error occurs if one does not
reject the null hypothesis when it is false.) β = P(type II error) =
P(failing to reject H0 when H0 is false)
Procedure for Hypothesis Tests
Step 1 State the null and alternative
hypotheses and identify the claim (H0 , H1).
Step 2 Test Statistic (TS): Compute
the test statistic value that is relevant to
the test and determine its sampling
distribution (such as normal, t, χ²).
Step 3 Critical Value (CV) :
Find the critical value(s) from the appropriate
table.
Step 4 Make the decision to
a. Reject or not reject the null
hypothesis.
b. The claim is true or false
c. Restate this decision: There is / is
not sufficient evidence to support
the claim that…
Objective: Conduct a formal hypothesis test of a claim about a population
proportion p.
Recall: 8.2 Testing a Claim about a Proportion
Notation
n = sample size or number of
trials
p = population proportion (used
in the the null hypothesis)
𝑝 =
𝑥
𝑛
= Sample proportion
Requirements
1. The sample observations are a simple random sample.
2. The conditions for a binomial distribution are
satisfied:
• There is a fixed number of trials.
• The trials are independent.
• Each trial has two categories of “success” and “failure.”
• The probability of a success remains the same in all
trials.
3. The conditions np ≥ 5 and nq ≥ 5 are both satisfied, so
the binomial distribution of sample proportions can be
approximated by a normal distribution with
𝜇 = 𝑛𝑝, 𝜎 = 𝑛𝑝𝑞
5
ˆ 

p p
z
pq n
TI Calculator:
1 - Proportion Z - test
1. Stat
2. Tests
3. 1 ‒ PropZTest
4. Enter Data or
Stats (p, x, n)
5. Choose RTT, LTT,
or 2TT
TI Calculator:
Confidence Interval:
proportion
1. Stat
2. Tests
3. 1-prop ZINT
4. Enter: x, n & CL
Key Concept: Testing a claim about a population mean
Objective: Use a formal hypothesis test to test a claim about a
population mean µ.
1. The population standard deviation σ is not known.
2. The population standard deviation σ is known.
Recall: 8.3 Testing a Claim About a Mean
The z test is a statistical test for the
mean of a population. It can be used
when n  30, or when the population is
normally distributed and  is known.
The formula for the z test is (Test
Statistic): 𝒁 =
𝒙−𝝁
𝝈/ 𝒏
where
𝑥 = sample mean
μ = hypothesized population mean
 = population standard deviation
n = sample size
The t test is a statistical test for the
mean of a population. It can be used
when n  30, or when the population is
normally distributed and  is not
known.
The formula for the t test is (Test
Statistic): 𝒕 =
𝒙−𝝁
𝒔/ 𝒏
where
𝑥 = sample mean
μ = hypothesized population mean
 = population standard deviation
n = sample size 6
TI Calculator:
Mean: T ‒ Test
1. Stat
2. Tests
3. T ‒ Test
4. Enter Data or Stats (p, x, n)
5. Choose RTT, LTT, or 2TT
6. Calculate
TI Calculator:
Mean: Z ‒ Test
1. Stat
2. Tests
3. Z ‒ Test
4. Enter Data or Stats (p, x, n)
5. Choose RTT, LTT, or 2TT
6. Calculate
Key Concept:
Conduct a formal hypothesis test of a claim made about a population standard
deviation σ or population variance σ².
The chi-square distribution is also used to test a claim about a single variance or standard deviation.
Recall: 8.4 Testing a Claim About a Standard Deviation or Variance
Notation
n = sample size
d.f. = n – 1
s = sample standard deviation
σ = population standard
deviation
s² = sample variance
σ² = population variance
When testing claims about σ or σ²,
the P-value method, the critical
value method, and the confidence
interval method are all equivalent
in the sense that they will always
lead to the same conclusion.
Requirements
1. The sample is a simple
random sample.
2. The population has a normal
distribution. (This is a fairly
strict requirement.)
Test Statistic
7
2
2
2
( 1)n s




Synopsis:
1. Testing a claim made about two population proportions
2. Constructing a confidence interval estimate of the difference between two population
proportions. (in forms of probabilities or the decimal equivalents of percentages)
Objectives
1. Hypothesis Test: Conduct a hypothesis test of a claim about two population
proportions.
2. Confidence Interval: Construct a confidence interval estimate of the difference
between two population proportions.
9. 1 Two Proportions
8
1. The sample proportions are from two simple random samples.
2. The two samples are independent. (Samples are independent if the sample
values selected from one population are not related to or somehow naturally
paired or matched with the sample values from the other population.)
3. 𝑛 𝑝 & 𝑛 𝑞 ≥ 5 𝑓𝑜𝑟 𝑒𝑎𝑐ℎ 𝑠𝑎𝑚𝑝𝑙𝑒
For population 1 & 2:
9
9. 1 Inferences about Two Proportions
2
2 2 2
2
ˆ ˆ ˆ, 1
x
p q p
n
  1
1 1 1
1
ˆ ˆ ˆ, 1
x
p q p
n
  
1 2
1 2
x x
p
n n



1q p 
The pooled sample proportion combines the two samples
proportions into one proportion & Test Statistic :
1 2 1 2 1 2 1 2
1 21 2
ˆ ˆ ˆ ˆ( ) ( ) ( ) ( )
: Or
1 1
p p p p p p p p
TS z
pq pq
pq
n nn n
     

   
 
Confidence Interval Estimate of p1 − p2
1 1 2 2 1 1 2 2
1 2 2 1 2 1 2 2
1 2 1 2
ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ
ˆ ˆ ˆ ˆ( ) ( )
p q p q p q p q
p p z p p p p z
n n n n
a a        
1 2
ˆ ˆ( )p p E 
The P-value method and the critical value method are equivalent, but the confidence
interval method is not equivalent to the P-value method or the critical value method.
TI Calculator:
Confidence Interval:
2 proportion
1. Stat
2. Tests
3. 2-prop ZINT
4. Enter:𝒏 𝟏 , 𝒏 𝟐, 𝒙 𝟏,
𝒙 𝟐 & CL
TI Calculator:
2 - Proportion Z - test
1. Stat
2. Tests
3. 2 ‒ PropZTest
4. Enter Data or Stats
𝒏 𝟏 , 𝒏 𝟐, 𝒙 𝟏, 𝒙 𝟐
5. Choose RTT, LTT,
or 2TT
Decision:
a. Reject H0
b. The claim is True
c. There is enough evidence to say that the
proportion of drivers who send text messages
is larger today than it was last year. 10
A survey of 1000 drivers this year showed that 29% of the people send text
messages while driving. Last year a survey of 1000 drivers showed that 17% of
those send text messages while driving. At α = 0.01, test the claim that there has
been an increase in the number of drivers who text while driving?
Example 1
CV: α = 0.01 → 𝑧 = 2.33, Or 2.325
H0: p1 = p2 & H1: p1 > p2 (claim), RTTGiven: BD, α = 0.01
𝒏 𝟏 = 𝟏𝟎𝟎𝟎, 𝒑 𝟏 = 𝟎. 𝟐𝟗,
𝒏 𝟐 = 𝟏𝟎𝟎𝟎, 𝒑 𝟐 =0.17
Step 1: H0 , H1, claim & Tails
Step 2: TS Calculate (TS)
Step 3: CV using α
Step 4: Make the decision to
a. Reject or not H0
b. The claim is true or false
c. Restate this decision: There is / is not
sufficient evidence to support the claim
that…
0.29 0.17
:
0.23(0.77) 0.23(0.77)
1000 1000
TS z



6.381000(0.29) 1000(0.17)
1000 1000
0.23 1 0.77
p
q p



    
1 2 1 2
1 2
1 2 1 2
1 2
ˆ ˆ( ) ( )
1 1
ˆ ˆ( ) ( )
p p p p
z
pq
n n
p p p p
or
pq pq
n n
  

 
 
 
  

11
Proportions of Cars with Rear License Plates Only: Are the
Proportions the Same in Connecticut and New York? Use a 0.05
significance level to test the claim that Connecticut and New York
have the same proportion of cars with rear license plates only.
Example 2 : CV Method
CV: α = 0.05 → 𝑧 = ±1.96
H0: p1 = p2 , Claim & H1: p1 ≠ p2, 2TT
Solution: BD, 𝒙 𝟏 = 𝟐𝟑𝟗, 𝒏 𝟏 = 𝟐𝟎𝟒𝟗,
𝒙 𝟐 = 𝟗, 𝒏 𝟐 = 𝟓𝟓𝟎, α = 0.05
0.117 0.016
:
0.0954(0.9046) 0.0954(0.9046)
2049 550
TS z



7.11
1
1
1
2
2
2
239
ˆ 0.1166
2049
9
ˆ 0.0164
550
x
p
n
x
p
n
  
  
1 2
1 2
239 9
2049 550
0.09542132 0.90457868
x x
p
n n
q
 
  
 
 
Blank Connecticut New York
Cars with rear license
plate only
239 9
Cars with front and
rear license plates
1810 541
Total 2049 550
Decision:
a. Reject H0
b. The claim is False
c. There is not sufficient evidence to support the claim that p1 = p2. That is, there is
sufficient evidence to conclude that Connecticut and New York have different
proportions of cars with rear license plates only. It’s reasonable to speculate that
enforcement of the license plate laws is much stricter in New York than in
Connecticut, and that is why Connecticut car owners are less likely to install the
front license plate.
1 2
1 2
ˆ ˆp p
z
p q p q
n n



TI Calculator:
2 - Proportion Z - test
1. Stat
2. Tests
3. 2 ‒ PropZTest
4. Enter Data or Stats
𝒏 𝟏 , 𝒏 𝟐, 𝒙 𝟏, 𝒙 𝟐
5. Choose RTT, LTT,
or 2TT
12
Proportions of Cars with Rear License Plates Only: Are the Proportions the
Same in Connecticut and New York? Use a 0.05 significance level to test the
claim that Connecticut and New York have the same proportion of cars with
rear license plates only.
a. By the Traditional (CV) Method
b. By The P-value Method
c. By Confidence Interval (90%) .
Example 2: P-value Method
Solution: BD, 𝒙 𝟏 = 𝟐𝟑𝟗, 𝒏 𝟏 = 𝟐𝟎𝟒𝟗,
𝒙 𝟐 = 𝟗, 𝒏 𝟐 = 𝟓𝟓𝟎, , 𝒑 𝟏=𝒑 𝟐=0.8, α = 0.05
1
2
ˆ 0.1166
ˆ 0.0164
0.09542132
0.90457868
p
p
p
q




Blank Connecticut New York
Cars with rear license
plate only
239 9
Cars with front and
rear license plates
1810 541
Total 2049 550
2TT:
P-value = twice the area to the right of
the test statistic z = 7.11
The P-value: 2(0.0001) = 0.0002.
Technology: P-value = 0.00000000000119
which is often expressed as 0.0000
or “P-value < 0.0001.”
The P-value = 0.0000 < α = 0.05
Reject the null hypothesis of p1 = p2.

Mais conteúdo relacionado

Mais procurados

One Sample T Test
One Sample T TestOne Sample T Test
One Sample T Testshoffma5
 
Confidence Intervals And The T Distribution
Confidence Intervals And The T   DistributionConfidence Intervals And The T   Distribution
Confidence Intervals And The T DistributionDarren Barton
 
Estimation in statistics
Estimation in statisticsEstimation in statistics
Estimation in statisticsRabea Jamal
 
Statistical inference
Statistical inferenceStatistical inference
Statistical inferenceJags Jagdish
 
Contingency table
Contingency tableContingency table
Contingency tableWeam Banjar
 
Statistical Estimation
Statistical Estimation Statistical Estimation
Statistical Estimation Remyagharishs
 
Critical Value and The P Value
Critical Value and The P ValueCritical Value and The P Value
Critical Value and The P ValuePharmacy Universe
 
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...nszakir
 
INFERENTIAL STATISTICS: AN INTRODUCTION
INFERENTIAL STATISTICS: AN INTRODUCTIONINFERENTIAL STATISTICS: AN INTRODUCTION
INFERENTIAL STATISTICS: AN INTRODUCTIONJohn Labrador
 
Chapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeChapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeRose Jenkins
 
Probability 4.2
Probability 4.2Probability 4.2
Probability 4.2herbison
 
Point and Interval Estimation
Point and Interval EstimationPoint and Interval Estimation
Point and Interval EstimationShubham Mehta
 

Mais procurados (20)

One Sample T Test
One Sample T TestOne Sample T Test
One Sample T Test
 
Confidence Intervals And The T Distribution
Confidence Intervals And The T   DistributionConfidence Intervals And The T   Distribution
Confidence Intervals And The T Distribution
 
Basics of Hypothesis Testing
Basics of Hypothesis TestingBasics of Hypothesis Testing
Basics of Hypothesis Testing
 
Estimation in statistics
Estimation in statisticsEstimation in statistics
Estimation in statistics
 
Statistical inference
Statistical inferenceStatistical inference
Statistical inference
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
 
Contingency table
Contingency tableContingency table
Contingency table
 
Estimating a Population Proportion
Estimating a Population Proportion  Estimating a Population Proportion
Estimating a Population Proportion
 
Statistical Estimation
Statistical Estimation Statistical Estimation
Statistical Estimation
 
Critical Value and The P Value
Critical Value and The P ValueCritical Value and The P Value
Critical Value and The P Value
 
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...Chapter 6 part2-Introduction to Inference-Tests of Significance,  Stating Hyp...
Chapter 6 part2-Introduction to Inference-Tests of Significance, Stating Hyp...
 
Z test
Z testZ test
Z test
 
Testing Hypothesis
Testing HypothesisTesting Hypothesis
Testing Hypothesis
 
INFERENTIAL STATISTICS: AN INTRODUCTION
INFERENTIAL STATISTICS: AN INTRODUCTIONINFERENTIAL STATISTICS: AN INTRODUCTION
INFERENTIAL STATISTICS: AN INTRODUCTION
 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
 
Chapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample SizeChapter 7 – Confidence Intervals And Sample Size
Chapter 7 – Confidence Intervals And Sample Size
 
Probability 4.2
Probability 4.2Probability 4.2
Probability 4.2
 
Multiple regression
Multiple regressionMultiple regression
Multiple regression
 
Point and Interval Estimation
Point and Interval EstimationPoint and Interval Estimation
Point and Interval Estimation
 

Semelhante a Elementary Statistics Chapter 9 Inferences from Two Samples

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
 
1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inferenceDev Pandey
 
Statistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxStatistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxdessiechisomjj4
 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...The Stockker
 
What So Funny About Proportion Testv3
What So Funny About Proportion Testv3What So Funny About Proportion Testv3
What So Funny About Proportion Testv3ChrisConnors
 

Semelhante a Elementary Statistics Chapter 9 Inferences from Two Samples (20)

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
 
Testing a claim about a mean
Testing a claim about a mean  Testing a claim about a mean
Testing a claim about a mean
 
Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
 
Sampling theory
Sampling theorySampling theory
Sampling theory
 
Hypothesis and Test
Hypothesis and TestHypothesis and Test
Hypothesis and Test
 
Testing a claim about a proportion
Testing a claim about a proportion  Testing a claim about a proportion
Testing a claim about a proportion
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
 
Day 3 SPSS
Day 3 SPSSDay 3 SPSS
Day 3 SPSS
 
1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference
 
Two Means Independent Samples
Two Means Independent Samples  Two Means Independent Samples
Two Means Independent Samples
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 
Estimating a Population Mean
Estimating a Population Mean  Estimating a Population Mean
Estimating a Population Mean
 
Testing a Claim About a Proportion
Testing a Claim About a ProportionTesting a Claim About a Proportion
Testing a Claim About a Proportion
 
Unit 3
Unit 3Unit 3
Unit 3
 
Statistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxStatistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docx
 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
 
What So Funny About Proportion Testv3
What So Funny About Proportion Testv3What So Funny About Proportion Testv3
What So Funny About Proportion Testv3
 
Goodness of fit (ppt)
Goodness of fit (ppt)Goodness of fit (ppt)
Goodness of fit (ppt)
 

Mais de Long Beach City College

Practice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesPractice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesLong Beach City College
 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaLong Beach City College
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaLong Beach City College
 
Practice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populationsPractice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populationsLong Beach City College
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsLong Beach City College
 
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionSolution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionLong Beach City College
 
Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Long Beach City College
 

Mais de Long Beach City College (20)

Practice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesPractice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samples
 
Practice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis TestingPractice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis Testing
 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anova
 
Practice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populationsPractice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populations
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
 
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionSolution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
 
Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)
 
Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
 
Practice Test 2 Probability
Practice Test 2 ProbabilityPractice Test 2 Probability
Practice Test 2 Probability
 
Practice Test 1 solutions
Practice Test 1 solutions  Practice Test 1 solutions
Practice Test 1 solutions
 
Practice Test 1
Practice Test 1Practice Test 1
Practice Test 1
 
Stat sample test ch 12 solution
Stat sample test ch 12 solutionStat sample test ch 12 solution
Stat sample test ch 12 solution
 
Stat sample test ch 12
Stat sample test ch 12Stat sample test ch 12
Stat sample test ch 12
 
Stat sample test ch 11
Stat sample test ch 11Stat sample test ch 11
Stat sample test ch 11
 
Stat sample test ch 10
Stat sample test ch 10Stat sample test ch 10
Stat sample test ch 10
 
Two-Way ANOVA
Two-Way ANOVATwo-Way ANOVA
Two-Way ANOVA
 
One-Way ANOVA
One-Way ANOVAOne-Way ANOVA
One-Way ANOVA
 
Contingency Tables
Contingency TablesContingency Tables
Contingency Tables
 
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
 

Último

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Último (20)

URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

Elementary Statistics Chapter 9 Inferences from Two Samples

  • 1. Elementary Statistics Chapter 9: Inferences from Two Samples 9. 1 Two Proportions 1
  • 2. Chapter 9: Inferences from Two Samples 9. 1 Two Proportions 9.2 Two Means: Independent Samples 9.3 Two Dependent Samples (Matched Pairs) 9.4 Two Variances or Standard Deviations 2 Objectives: • Test the difference between two proportions. • Test the difference between sample means, using the z test. • Test the difference between two means for independent samples, using the t test. • Test the difference between two means for dependent samples. • Test the difference between two variances or standard deviations.
  • 3. 1. The traditional method (Critical Value Method) (CV) 2. The P-value method P-Value Method: In a hypothesis test, the P-value is the probability of getting a value of the test statistic that is at least as extreme as the test statistic obtained from the sample data, assuming that the null hypothesis is true. 3. The confidence interval (CI)method Because a confidence interval estimate of a population parameter contains the likely values of that parameter, reject a claim that the population parameter has a value that is not included in the confidence interval. Equivalent Methods: A confidence interval estimate of a proportion might lead to a conclusion different from that of a hypothesis test. Recall: 8.1 Basics of Hypothesis Testing: 3 methods used to test hypotheses: 3 Construct a confidence interval with a confidence level selected: Significance Level for Hypothesis Test: α Two-Tailed Test: 1 – α One-Tailed Test: 1 – 2α 0.01 99% 98% 0.05 95% 90% 0.10 90% 80% A statistical hypothesis is a assumption about a population parameter. This conjecture may or may not be true. The null hypothesis, symbolized by H0, and the alternative hypothesis, symbolized by H1
  • 4. 4 Type I error: The mistake of rejecting the null hypothesis when it is actually true. The symbol α (alpha) is used to represent the probability of a type I error. (A type I error occurs if one rejects the null hypothesis when it is true.) The level of significance is the maximum probability of committing a type I error: α = P(type I error) = P(rejecting H0 when H0 is true) and Typical significance levels are: 0.10, 0.05, and 0.01 For example, when a = 0.10, there is a 10% chance of rejecting a true null hypothesis. Type II error: The mistake of failing to reject the null hypothesis when it is actually false. The symbol β(beta) is used to represent the probability of a type II error. (A type II error occurs if one does not reject the null hypothesis when it is false.) β = P(type II error) = P(failing to reject H0 when H0 is false) Procedure for Hypothesis Tests Step 1 State the null and alternative hypotheses and identify the claim (H0 , H1). Step 2 Test Statistic (TS): Compute the test statistic value that is relevant to the test and determine its sampling distribution (such as normal, t, χ²). Step 3 Critical Value (CV) : Find the critical value(s) from the appropriate table. Step 4 Make the decision to a. Reject or not reject the null hypothesis. b. The claim is true or false c. Restate this decision: There is / is not sufficient evidence to support the claim that…
  • 5. Objective: Conduct a formal hypothesis test of a claim about a population proportion p. Recall: 8.2 Testing a Claim about a Proportion Notation n = sample size or number of trials p = population proportion (used in the the null hypothesis) 𝑝 = 𝑥 𝑛 = Sample proportion Requirements 1. The sample observations are a simple random sample. 2. The conditions for a binomial distribution are satisfied: • There is a fixed number of trials. • The trials are independent. • Each trial has two categories of “success” and “failure.” • The probability of a success remains the same in all trials. 3. The conditions np ≥ 5 and nq ≥ 5 are both satisfied, so the binomial distribution of sample proportions can be approximated by a normal distribution with 𝜇 = 𝑛𝑝, 𝜎 = 𝑛𝑝𝑞 5 ˆ   p p z pq n TI Calculator: 1 - Proportion Z - test 1. Stat 2. Tests 3. 1 ‒ PropZTest 4. Enter Data or Stats (p, x, n) 5. Choose RTT, LTT, or 2TT TI Calculator: Confidence Interval: proportion 1. Stat 2. Tests 3. 1-prop ZINT 4. Enter: x, n & CL
  • 6. Key Concept: Testing a claim about a population mean Objective: Use a formal hypothesis test to test a claim about a population mean µ. 1. The population standard deviation σ is not known. 2. The population standard deviation σ is known. Recall: 8.3 Testing a Claim About a Mean The z test is a statistical test for the mean of a population. It can be used when n  30, or when the population is normally distributed and  is known. The formula for the z test is (Test Statistic): 𝒁 = 𝒙−𝝁 𝝈/ 𝒏 where 𝑥 = sample mean μ = hypothesized population mean  = population standard deviation n = sample size The t test is a statistical test for the mean of a population. It can be used when n  30, or when the population is normally distributed and  is not known. The formula for the t test is (Test Statistic): 𝒕 = 𝒙−𝝁 𝒔/ 𝒏 where 𝑥 = sample mean μ = hypothesized population mean  = population standard deviation n = sample size 6 TI Calculator: Mean: T ‒ Test 1. Stat 2. Tests 3. T ‒ Test 4. Enter Data or Stats (p, x, n) 5. Choose RTT, LTT, or 2TT 6. Calculate TI Calculator: Mean: Z ‒ Test 1. Stat 2. Tests 3. Z ‒ Test 4. Enter Data or Stats (p, x, n) 5. Choose RTT, LTT, or 2TT 6. Calculate
  • 7. Key Concept: Conduct a formal hypothesis test of a claim made about a population standard deviation σ or population variance σ². The chi-square distribution is also used to test a claim about a single variance or standard deviation. Recall: 8.4 Testing a Claim About a Standard Deviation or Variance Notation n = sample size d.f. = n – 1 s = sample standard deviation σ = population standard deviation s² = sample variance σ² = population variance When testing claims about σ or σ², the P-value method, the critical value method, and the confidence interval method are all equivalent in the sense that they will always lead to the same conclusion. Requirements 1. The sample is a simple random sample. 2. The population has a normal distribution. (This is a fairly strict requirement.) Test Statistic 7 2 2 2 ( 1)n s    
  • 8. Synopsis: 1. Testing a claim made about two population proportions 2. Constructing a confidence interval estimate of the difference between two population proportions. (in forms of probabilities or the decimal equivalents of percentages) Objectives 1. Hypothesis Test: Conduct a hypothesis test of a claim about two population proportions. 2. Confidence Interval: Construct a confidence interval estimate of the difference between two population proportions. 9. 1 Two Proportions 8 1. The sample proportions are from two simple random samples. 2. The two samples are independent. (Samples are independent if the sample values selected from one population are not related to or somehow naturally paired or matched with the sample values from the other population.) 3. 𝑛 𝑝 & 𝑛 𝑞 ≥ 5 𝑓𝑜𝑟 𝑒𝑎𝑐ℎ 𝑠𝑎𝑚𝑝𝑙𝑒
  • 9. For population 1 & 2: 9 9. 1 Inferences about Two Proportions 2 2 2 2 2 ˆ ˆ ˆ, 1 x p q p n   1 1 1 1 1 ˆ ˆ ˆ, 1 x p q p n    1 2 1 2 x x p n n    1q p  The pooled sample proportion combines the two samples proportions into one proportion & Test Statistic : 1 2 1 2 1 2 1 2 1 21 2 ˆ ˆ ˆ ˆ( ) ( ) ( ) ( ) : Or 1 1 p p p p p p p p TS z pq pq pq n nn n              Confidence Interval Estimate of p1 − p2 1 1 2 2 1 1 2 2 1 2 2 1 2 1 2 2 1 2 1 2 ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ ˆ( ) ( ) p q p q p q p q p p z p p p p z n n n n a a         1 2 ˆ ˆ( )p p E  The P-value method and the critical value method are equivalent, but the confidence interval method is not equivalent to the P-value method or the critical value method. TI Calculator: Confidence Interval: 2 proportion 1. Stat 2. Tests 3. 2-prop ZINT 4. Enter:𝒏 𝟏 , 𝒏 𝟐, 𝒙 𝟏, 𝒙 𝟐 & CL TI Calculator: 2 - Proportion Z - test 1. Stat 2. Tests 3. 2 ‒ PropZTest 4. Enter Data or Stats 𝒏 𝟏 , 𝒏 𝟐, 𝒙 𝟏, 𝒙 𝟐 5. Choose RTT, LTT, or 2TT
  • 10. Decision: a. Reject H0 b. The claim is True c. There is enough evidence to say that the proportion of drivers who send text messages is larger today than it was last year. 10 A survey of 1000 drivers this year showed that 29% of the people send text messages while driving. Last year a survey of 1000 drivers showed that 17% of those send text messages while driving. At α = 0.01, test the claim that there has been an increase in the number of drivers who text while driving? Example 1 CV: α = 0.01 → 𝑧 = 2.33, Or 2.325 H0: p1 = p2 & H1: p1 > p2 (claim), RTTGiven: BD, α = 0.01 𝒏 𝟏 = 𝟏𝟎𝟎𝟎, 𝒑 𝟏 = 𝟎. 𝟐𝟗, 𝒏 𝟐 = 𝟏𝟎𝟎𝟎, 𝒑 𝟐 =0.17 Step 1: H0 , H1, claim & Tails Step 2: TS Calculate (TS) Step 3: CV using α Step 4: Make the decision to a. Reject or not H0 b. The claim is true or false c. Restate this decision: There is / is not sufficient evidence to support the claim that… 0.29 0.17 : 0.23(0.77) 0.23(0.77) 1000 1000 TS z    6.381000(0.29) 1000(0.17) 1000 1000 0.23 1 0.77 p q p         1 2 1 2 1 2 1 2 1 2 1 2 ˆ ˆ( ) ( ) 1 1 ˆ ˆ( ) ( ) p p p p z pq n n p p p p or pq pq n n              
  • 11. 11 Proportions of Cars with Rear License Plates Only: Are the Proportions the Same in Connecticut and New York? Use a 0.05 significance level to test the claim that Connecticut and New York have the same proportion of cars with rear license plates only. Example 2 : CV Method CV: α = 0.05 → 𝑧 = ±1.96 H0: p1 = p2 , Claim & H1: p1 ≠ p2, 2TT Solution: BD, 𝒙 𝟏 = 𝟐𝟑𝟗, 𝒏 𝟏 = 𝟐𝟎𝟒𝟗, 𝒙 𝟐 = 𝟗, 𝒏 𝟐 = 𝟓𝟓𝟎, α = 0.05 0.117 0.016 : 0.0954(0.9046) 0.0954(0.9046) 2049 550 TS z    7.11 1 1 1 2 2 2 239 ˆ 0.1166 2049 9 ˆ 0.0164 550 x p n x p n       1 2 1 2 239 9 2049 550 0.09542132 0.90457868 x x p n n q          Blank Connecticut New York Cars with rear license plate only 239 9 Cars with front and rear license plates 1810 541 Total 2049 550 Decision: a. Reject H0 b. The claim is False c. There is not sufficient evidence to support the claim that p1 = p2. That is, there is sufficient evidence to conclude that Connecticut and New York have different proportions of cars with rear license plates only. It’s reasonable to speculate that enforcement of the license plate laws is much stricter in New York than in Connecticut, and that is why Connecticut car owners are less likely to install the front license plate. 1 2 1 2 ˆ ˆp p z p q p q n n    TI Calculator: 2 - Proportion Z - test 1. Stat 2. Tests 3. 2 ‒ PropZTest 4. Enter Data or Stats 𝒏 𝟏 , 𝒏 𝟐, 𝒙 𝟏, 𝒙 𝟐 5. Choose RTT, LTT, or 2TT
  • 12. 12 Proportions of Cars with Rear License Plates Only: Are the Proportions the Same in Connecticut and New York? Use a 0.05 significance level to test the claim that Connecticut and New York have the same proportion of cars with rear license plates only. a. By the Traditional (CV) Method b. By The P-value Method c. By Confidence Interval (90%) . Example 2: P-value Method Solution: BD, 𝒙 𝟏 = 𝟐𝟑𝟗, 𝒏 𝟏 = 𝟐𝟎𝟒𝟗, 𝒙 𝟐 = 𝟗, 𝒏 𝟐 = 𝟓𝟓𝟎, , 𝒑 𝟏=𝒑 𝟐=0.8, α = 0.05 1 2 ˆ 0.1166 ˆ 0.0164 0.09542132 0.90457868 p p p q     Blank Connecticut New York Cars with rear license plate only 239 9 Cars with front and rear license plates 1810 541 Total 2049 550 2TT: P-value = twice the area to the right of the test statistic z = 7.11 The P-value: 2(0.0001) = 0.0002. Technology: P-value = 0.00000000000119 which is often expressed as 0.0000 or “P-value < 0.0001.” The P-value = 0.0000 < α = 0.05 Reject the null hypothesis of p1 = p2.