SlideShare a Scribd company logo
1 of 10
Elementary Statistics
Goodness-of-Fit
1
Goodness-of-Fit and Contingency Tables
Goodness-of-Fit
2
Objectives:
1 Test a distribution for goodness of fit, using chi-square.
2 Test two variables for independence, using chi-square.
3 Test proportions for homogeneity, using chi-square.
3
TI Calculator:
How to enter data:
1. Stat
2. Edit
3. ClrList ๐‘ณ ๐Ÿ & ๐‘ณ ๐Ÿ
4. Type in your data in ๐‘ณ ๐Ÿ & ๐‘ณ ๐Ÿ
Recall: Correlation & Regression
The linear correlation coefficient r, is a number that measures how well paired sample data fit a
straight-line pattern when graphed . The value of rยฒ is the proportion of the variation in y that is
explained by the linear relationship between x and y. (The linear correlation coefficient:โˆ’1 โ‰ค r โ‰ค 1)
Regression Line:
Given a collection of paired sample
data, the regression line (or line of best
fit, or least-squares line) is the straight
line that โ€œbestโ€ fits the scatterplot of the
data.
No significant linear correlation โ†’
The best predicted y-value is ๐‘ฆ.
Significant linear correlation โ†’ The
best predicted y-value is found by
Plugging x-value into the regression
equation.
TI Calculator:
Scatter Plot:
1. Press on Y & clear
2. 2nd y, Enter
3. On, Enter
4. Select X1-list: ๐‘ณ ๐Ÿ
5. Select Y1-list: ๐‘ณ ๐Ÿ
6. Mark: Select
Character
7. Press Zoom & 9 to get
ZoomStat
zx denotes the z score for an individual sample value x
zy is the z score for the corresponding sample value y.
2
2
:
:
, 2
1
T
n
t r d
O
r
r
fS n
r
๏€ญ
๏€ฝ ๏€ฝ ๏€ญ
๏€ญ
TI Calculator:
Linear Regression - test
1. Stat
2. Tests
3. LinRegTTest
4. Enter ๐‘ณ ๐Ÿ & ๐‘ณ ๐Ÿ
5. Freq = 1
6. Choose โ‰ 
7. Calculate
๏€จ ๏€ฉ ๏€จ ๏€ฉ๏€จ ๏€ฉ
๏€จ ๏€ฉ ๏€จ ๏€ฉ ๏€จ ๏€ฉ ๏€จ ๏€ฉ
2 22 2
)
1
:
(
,
x y
n xy x y Z Z
r r
n
n x x n y y
Or
๏€ญ
๏€ฝ ๏€ฝ
๏€ญ๏ƒฉ ๏ƒน ๏ƒฉ ๏ƒน๏€ญ ๏€ญ๏ƒช ๏ƒบ ๏ƒช ๏ƒบ๏ƒซ ๏ƒป ๏ƒซ ๏ƒป
๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ
๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ
Test of Hypothesis:
Step 1: H0 :๐œŒ = 0, H1: ๐œŒ โ‰  0 claim
& Tails
Step 2: TS: ๐‘ก = ๐‘Ÿ
๐‘›โˆ’2
1โˆ’๐‘Ÿ2 , OR: r
Step 3: CV using ฮฑ From the
T-table or Correlation (r-table)
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โ€ฆ
There is a linear Correlation If |r|
โ‰ฅ critical value
There is No Correlation If |r| <
critical value
๏€จ ๏€ฉ
0 1
1 22
0 1
Regression Line:
,
:
int :
,
y b b x
n xy x y
Slope b
n x x
Y ercept b y b x
y x
y x
n n
๏€ฝ ๏€ซ
๏€ญ
๏€ฝ
๏€ญ
๏€ญ ๏€ฝ ๏€ญ
๏€ฝ ๏€ฝ
๏ƒฅ ๏ƒฅ ๏ƒฅ
๏ƒฅ ๏ƒฅ
๏ƒฅ ๏ƒฅ
4
Goodness-of-Fit
Key Concept:
By โ€œgoodness-of-fitโ€ we mean that sample data consisting of observed frequency counts
arranged in a single row or column (called a one-way frequency table) agree with some
particular distribution (such as normal or uniform) being considered. We will use a hypothesis
test for the claim that the observed frequency counts agree with the claimed distribution.
Definition: A Multinomial Experiment is an experiment that meets the following conditions:
1. The number of trials is fixed.
2. The trials are independent.
3. All outcomes of each trial must be classified into exactly one of several different categories.
4. The probabilities for the different categories remain constant for each trial.
Goodness-of-Fit Test
A goodness-of-fit test is used to test the hypothesis that an observed frequency distribution fits (or
conforms to) some claimed distribution.
Conduct a goodness-of-fit test, which is a hypothesis test to determine whether a single row (or
column) of frequency counts agrees with some specific distribution (such as uniform or normal).
5
Goodness-of-Fit Notation
O represents the observed frequency of an outcome, found from the sample data.
E represents the expected frequency of an outcome, found by assuming that the distribution is as
claimed.
k represents the number of different categories or cells.
n represents the total number of trials (or the total of observed sample values).
p represents the probability that a sample value falls within a particular category.
Requirements:
1. The data have been randomly selected.
2. The sample data consist of frequency counts for each of the different categories.
3. For each category, the expected frequency is at least 5. (The expected frequency for a category is
the frequency that would occur if the data actually have the distribution that is being claimed.
There is no requirement that the observed frequency for each category must be at least 5.)
Null and Alternative Hypotheses
H0: The frequency counts agree with the claimed distribution.
H1: The frequency counts do not agree with the claimed distribution.
6
Goodness-of-Fit Notation
P-values: P-values are provided by technology, or a range of P-values can be
found from ๐œ’2
โˆ’ ๐‘‡๐‘Ž๐‘๐‘™๐‘’.
Critical values:
1. Critical values are found in ๐œ’2
โˆ’ ๐‘‡๐‘Ž๐‘๐‘™๐‘’ by using k โˆ’ 1 degrees of freedom,
where k is the number of categories.
2. Goodness-of-fit hypothesis tests are always right-tailed.
3. Conducting a goodness-of-fit test requires that we identify the observed
frequencies denoted by O, then find the frequencies expected (denoted by
E) with the claimed distribution. There are two different approaches for
finding expected frequencies E:
If the expected frequencies are not all equal:
Calculate E = np for each individual category.
2
2
Test Statistic:
( )
1
O E
E
df k
๏ฃ
๏€ญ
๏€ฝ
๏€ฝ ๏€ญ
๏ƒฅ
d.f. = number of categories minus 1
O = observed frequency
E = expected frequency
๐‘ฐ๐’‡ ๐’†๐’™๐’‘๐’†๐’„๐’•๐’†๐’… ๐’‡๐’“๐’†๐’’๐’–๐’†๐’๐’„๐’Š๐’†๐’” ๐’‚๐’“๐’† ๐’‚๐’๐’ ๐’†๐’’๐’–๐’‚๐’: ๐‘ฌ =
๐’
๐’Œ
๐ธ๐‘ž๐‘ข๐‘Ž๐‘™ ๐น๐‘Ÿ๐‘’๐‘ž: ๐ธ =
๐‘›
๐‘˜
, otherwise: E = np
Example 1:
7
Finding Expected Frequencies:
Equally Likely A single die is rolled 45 times with the following
results. Assuming that the die is fair and all outcomes are equally
likely, find the expected frequency E for each empty cell.
Outcome 1 2 3 4 5 6
Observed Frequency O 13 6 12 9 3 2
Expected Frequency E
๐ธ =
๐‘›
๐‘˜
If the die is fair and the outcomes are all
equally likely, we expect that each
outcome should occur about 7.5 times.
=
45
6
= 7.5
b. Not Equally Likely Using the same results from part (a), suppose that we claim that instead
of being fair, the die is loaded so that the outcome of 1 occurs 50% of the time and the other
five outcomes occur 10% of the time. The probabilities are listed in the second row below.
Outcome 1 2 3 4 5 6
Probability 0.5 0.1 0.1 0.1 0.1 0.1
Observed Frequency O 13 6 12 9 3 2
Expected Frequency E
n = 45 & E = np
1: E = np = (45)(0.5) = 22.5
Each of the other five outcomes:
E = np = (45)(0.1) = 4.5
7.5 7.5 7.5 7.5 7.5 7.5
22.5 4.5 4.5 4.5 4.5 4.5
๐ธ๐‘ž๐‘ข๐‘Ž๐‘™ ๐น๐‘Ÿ๐‘’๐‘ž: ๐ธ =
๐‘›
๐‘˜
,
otherwise: E = np
8
Measuring Disagreement with the Claimed
Distribution
We know that sample frequencies typically differ somewhat from the values
we theoretically expect, so we consider the key question:
Are the differences between the actual observed frequencies O and the
theoretically expected frequencies E significant?
To measure the discrepancy between the O and E values, we use the test statistic
Goodness-of-Fit Notation
d.f. = Number of categories minus 1
O = observed frequency
E = expected frequency
2
2
Test Statistic:
( )
1
O E
E
df k
๏ฃ
๏€ญ
๏€ฝ
๏€ฝ ๏€ญ
๏ƒฅ
Example 2:
9
To check whether consumers have any preference among
five flavors of a new fruit soda, a sample of 100 people
provided the following data. Is there enough evidence to
support the claim that there is no preference in the
selection of fruit soda flavors? Let ฮฑ = 0.05.
Cherry Strawberry Orange Lime Grape
Observed 32 28 16 14 10
Expected 20 20 20 20 20
H0: Consumers show no preference
(claim) OR ( p1 = p2 = p3 = p4 = p5 ).
H1: Consumers show a preference.(At
least one of the probabilities is different
from the others.), RTT
df = 5 โ€“ 1 = 4 & ฮฑ = 0.05โ†’
2
2 ( )
:
O E
TS
E
๏ฃ
๏€ญ
๏€ฝ ๏ƒฅ
2 2 2 2 2
(32 20) (28 20) (16 20) (14 20) (10 20)
20 20 20 20 20
๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ
๏€ฝ ๏€ซ ๏€ซ ๏€ซ ๏€ซ
Decision:
a. Reject H0
b. The claim is False
c. There is NOT sufficient
evidence to support the
claim that consumers show
no preference for the flavors.
18.000๏€ฝ
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โ€ฆ
TI Calculator:
Goodness of Fit - test
1. Stat
2. Tests
3. ๐Œ ๐Ÿ
๐‘ฎ๐‘ถ๐‘ญ โˆ’ ๐‘ป๐’†๐’”๐’•
4. Enter ๐‘ณ ๐Ÿ & ๐‘ณ ๐Ÿ
5. ๐๐Ÿ = ๐ง โˆ’ ๐Ÿ
6. Calculate
TI Calculator: Enter data:
1. Stat
2. Edit
3. ClrList ๐‘ณ ๐Ÿ & ๐‘ณ ๐Ÿ
4. O โ†’ ๐‘ณ ๐Ÿ & E โ†’ ๐‘ณ ๐Ÿ
CV: ๐œ’2 = 9.488
2
2 ( )
T 1: ,S
O E
df k
E
๏ฃ
๏€ญ
๏€ฝ ๏€ฝ ๏€ญ๏ƒฅ
Example 3:
10
A researcher reads that firearm-related deaths for people aged 1 to 18
were distributed as follows: 74% were accidental, 16% were homicides,
and 10% were suicides. In her district, there were 68 accidental deaths,
27 homicides, and 5 suicides during the past year. At ฮฑ = 0.10, test the
claim that the percentages are equal to the given claimed values.
Accidental Homicides Suicides
Observed 68 27 5
Expected 74 16 10
H0: p1 = 0.74, p2 = 0.16 and p3 = 0.10 (Claim)
H1: At least one of the proportions is not equal
to the given claimed value. (RTT)
2 2 2
(68 74) (27 16) (5 10)
74 16 10
๏€ญ ๏€ญ ๏€ญ
๏€ฝ ๏€ซ ๏€ซ 10.549๏€ฝ
CV: ฮฑ = 0.10, df = k โ€“ 1 = 2โ†’
Decision:
a. Reject H0
b. The claim is False
c. There is not sufficient evidence to support the
claim that the distribution is 74% accidental,
16% homicides, and 10% suicides.
2
2 ( )
:
O E
TS
E
๏ฃ
๏€ญ
๏€ฝ ๏ƒฅ
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โ€ฆ
ฯ‡ยฒ = 4.605
2
2
Test Statistic:
( )
1
O E
E
df k
๏ฃ
๏€ญ
๏€ฝ
๏€ฝ ๏€ญ
๏ƒฅ

More Related Content

What's hot

STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testingjundumaug1
ย 
Hypergeometric probability distribution
Hypergeometric probability distributionHypergeometric probability distribution
Hypergeometric probability distributionNadeem Uddin
ย 
Inferential statictis ready go
Inferential statictis ready goInferential statictis ready go
Inferential statictis ready goMmedsc Hahm
ย 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testingShameer P Hamsa
ย 
Geometric probability distribution
Geometric probability distributionGeometric probability distribution
Geometric probability distributionNadeem Uddin
ย 
Chap14 analysis of categorical data
Chap14 analysis of categorical dataChap14 analysis of categorical data
Chap14 analysis of categorical dataJudianto Nugroho
ย 
Weighted arithmetic mean
Weighted arithmetic meanWeighted arithmetic mean
Weighted arithmetic meanNadeem Uddin
ย 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervalsmandalina landy
ย 
HYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptHYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptsadiakhan783184
ย 
The kolmogorov smirnov test
The kolmogorov smirnov testThe kolmogorov smirnov test
The kolmogorov smirnov testSubhradeep Mitra
ย 
Addition Rule and Multiplication Rule
Addition Rule and Multiplication RuleAddition Rule and Multiplication Rule
Addition Rule and Multiplication RuleLong Beach City College
ย 
Statistical inference concept, procedure of hypothesis testing
Statistical inference   concept, procedure of hypothesis testingStatistical inference   concept, procedure of hypothesis testing
Statistical inference concept, procedure of hypothesis testingAmitaChaudhary19
ย 
Statistics lecture 8 (chapter 7)
Statistics lecture 8 (chapter 7)Statistics lecture 8 (chapter 7)
Statistics lecture 8 (chapter 7)jillmitchell8778
ย 

What's hot (20)

Two Proportions
Two Proportions  Two Proportions
Two Proportions
ย 
STATISTICS: Hypothesis Testing
STATISTICS: Hypothesis TestingSTATISTICS: Hypothesis Testing
STATISTICS: Hypothesis Testing
ย 
Hypergeometric probability distribution
Hypergeometric probability distributionHypergeometric probability distribution
Hypergeometric probability distribution
ย 
Inferential statictis ready go
Inferential statictis ready goInferential statictis ready go
Inferential statictis ready go
ย 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
ย 
Geometric probability distribution
Geometric probability distributionGeometric probability distribution
Geometric probability distribution
ย 
Chap14 analysis of categorical data
Chap14 analysis of categorical dataChap14 analysis of categorical data
Chap14 analysis of categorical data
ย 
Weighted arithmetic mean
Weighted arithmetic meanWeighted arithmetic mean
Weighted arithmetic mean
ย 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
ย 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
ย 
Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
ย 
HYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.pptHYPOTHESIS TESTING.ppt
HYPOTHESIS TESTING.ppt
ย 
Hypothesis
HypothesisHypothesis
Hypothesis
ย 
Statistical Distributions
Statistical DistributionsStatistical Distributions
Statistical Distributions
ย 
The kolmogorov smirnov test
The kolmogorov smirnov testThe kolmogorov smirnov test
The kolmogorov smirnov test
ย 
Addition Rule and Multiplication Rule
Addition Rule and Multiplication RuleAddition Rule and Multiplication Rule
Addition Rule and Multiplication Rule
ย 
Statistical inference concept, procedure of hypothesis testing
Statistical inference   concept, procedure of hypothesis testingStatistical inference   concept, procedure of hypothesis testing
Statistical inference concept, procedure of hypothesis testing
ย 
Statistics lecture 8 (chapter 7)
Statistics lecture 8 (chapter 7)Statistics lecture 8 (chapter 7)
Statistics lecture 8 (chapter 7)
ย 
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
ย 
Sampling Distribution
Sampling DistributionSampling Distribution
Sampling Distribution
ย 

Similar to Goodness of-fit

Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisMichael770443
ย 
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
ย 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametricANCYBS
ย 
chi-squaretest-170826142554.ppt
chi-squaretest-170826142554.pptchi-squaretest-170826142554.ppt
chi-squaretest-170826142554.pptSoujanyaLk1
ย 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.pptSnehamurali18
ย 
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docxrhetttrevannion
ย 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxErgin Akalpler
ย 
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA  359 Chapter .docxChapter 11 Chi-Square Tests and ANOVA  359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docxbartholomeocoombs
ย 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptBAGARAGAZAROMUALD2
ย 
Chi square tests
Chi square testsChi square tests
Chi square testswaqole
ย 
Test of significance
Test of significanceTest of significance
Test of significanceDr. Imran Zaheer
ย 
Chi square[1]
Chi square[1]Chi square[1]
Chi square[1]yogesh turkane
ย 
chi square test lecture for nurses in pakistan
chi square test lecture for nurses in pakistanchi square test lecture for nurses in pakistan
chi square test lecture for nurses in pakistanmuhammad shahid
ย 
Two Sample Tests
Two Sample TestsTwo Sample Tests
Two Sample Testssanketd1983
ย 

Similar to Goodness of-fit (20)

Contingency tables
Contingency tables  Contingency tables
Contingency tables
ย 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
ย 
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
ย 
Chi square
Chi square Chi square
Chi square
ย 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
ย 
chi-squaretest-170826142554.ppt
chi-squaretest-170826142554.pptchi-squaretest-170826142554.ppt
chi-squaretest-170826142554.ppt
ย 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
ย 
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
ย 
ders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptxders 5 hypothesis testing.pptx
ders 5 hypothesis testing.pptx
ย 
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA  359 Chapter .docxChapter 11 Chi-Square Tests and ANOVA  359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
ย 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
ย 
One way AVOVA
One way AVOVA  One way AVOVA
One way AVOVA
ย 
Chapter12
Chapter12Chapter12
Chapter12
ย 
Chi square tests
Chi square testsChi square tests
Chi square tests
ย 
Test of significance
Test of significanceTest of significance
Test of significance
ย 
Chi square[1]
Chi square[1]Chi square[1]
Chi square[1]
ย 
Ad test
Ad testAd test
Ad test
ย 
chi square test lecture for nurses in pakistan
chi square test lecture for nurses in pakistanchi square test lecture for nurses in pakistan
chi square test lecture for nurses in pakistan
ย 
Two Sample Tests
Two Sample TestsTwo Sample Tests
Two Sample Tests
ย 
Chi square
Chi squareChi square
Chi square
ย 

More from 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
ย 
Practice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis TestingPractice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis TestingLong 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 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
ย 
Stat sample test ch 12 solution
Stat sample test ch 12 solutionStat sample test ch 12 solution
Stat sample test ch 12 solutionLong Beach City College
ย 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard DeviationsLong Beach City College
ย 
Two Means, Two Dependent Samples, Matched Pairs
Two Means, Two Dependent Samples, Matched PairsTwo Means, Two Dependent Samples, Matched Pairs
Two Means, Two Dependent Samples, Matched PairsLong Beach City College
ย 

More from 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 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
ย 
Regression
RegressionRegression
Regression
ย 
Correlation
CorrelationCorrelation
Correlation
ย 
Two Variances or Standard Deviations
Two Variances or Standard DeviationsTwo Variances or Standard Deviations
Two Variances or Standard Deviations
ย 
Two Means, Two Dependent Samples, Matched Pairs
Two Means, Two Dependent Samples, Matched PairsTwo Means, Two Dependent Samples, Matched Pairs
Two Means, Two Dependent Samples, Matched Pairs
ย 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
ย 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
ย 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
ย 
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
ย 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
ย 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
ย 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
ย 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
ย 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
ย 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
ย 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
ย 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
ย 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
ย 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...Dr. Mazin Mohamed alkathiri
ย 
call girls in Kamla Market (DELHI) ๐Ÿ” >เผ’9953330565๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Kamla Market (DELHI) ๐Ÿ” >เผ’9953330565๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธcall girls in Kamla Market (DELHI) ๐Ÿ” >เผ’9953330565๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Kamla Market (DELHI) ๐Ÿ” >เผ’9953330565๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
ย 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
ย 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
ย 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
ย 

Recently uploaded (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
ย 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
ย 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
ย 
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
ย 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
ย 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
ย 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
ย 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
ย 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
ย 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
ย 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
ย 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
ย 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
ย 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
ย 
call girls in Kamla Market (DELHI) ๐Ÿ” >เผ’9953330565๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Kamla Market (DELHI) ๐Ÿ” >เผ’9953330565๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธcall girls in Kamla Market (DELHI) ๐Ÿ” >เผ’9953330565๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
call girls in Kamla Market (DELHI) ๐Ÿ” >เผ’9953330565๐Ÿ” genuine Escort Service ๐Ÿ”โœ”๏ธโœ”๏ธ
ย 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ย 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
ย 
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
ย 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
ย 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
ย 

Goodness of-fit

  • 2. Goodness-of-Fit and Contingency Tables Goodness-of-Fit 2 Objectives: 1 Test a distribution for goodness of fit, using chi-square. 2 Test two variables for independence, using chi-square. 3 Test proportions for homogeneity, using chi-square.
  • 3. 3 TI Calculator: How to enter data: 1. Stat 2. Edit 3. ClrList ๐‘ณ ๐Ÿ & ๐‘ณ ๐Ÿ 4. Type in your data in ๐‘ณ ๐Ÿ & ๐‘ณ ๐Ÿ Recall: Correlation & Regression The linear correlation coefficient r, is a number that measures how well paired sample data fit a straight-line pattern when graphed . The value of rยฒ is the proportion of the variation in y that is explained by the linear relationship between x and y. (The linear correlation coefficient:โˆ’1 โ‰ค r โ‰ค 1) Regression Line: Given a collection of paired sample data, the regression line (or line of best fit, or least-squares line) is the straight line that โ€œbestโ€ fits the scatterplot of the data. No significant linear correlation โ†’ The best predicted y-value is ๐‘ฆ. Significant linear correlation โ†’ The best predicted y-value is found by Plugging x-value into the regression equation. TI Calculator: Scatter Plot: 1. Press on Y & clear 2. 2nd y, Enter 3. On, Enter 4. Select X1-list: ๐‘ณ ๐Ÿ 5. Select Y1-list: ๐‘ณ ๐Ÿ 6. Mark: Select Character 7. Press Zoom & 9 to get ZoomStat zx denotes the z score for an individual sample value x zy is the z score for the corresponding sample value y. 2 2 : : , 2 1 T n t r d O r r fS n r ๏€ญ ๏€ฝ ๏€ฝ ๏€ญ ๏€ญ TI Calculator: Linear Regression - test 1. Stat 2. Tests 3. LinRegTTest 4. Enter ๐‘ณ ๐Ÿ & ๐‘ณ ๐Ÿ 5. Freq = 1 6. Choose โ‰  7. Calculate ๏€จ ๏€ฉ ๏€จ ๏€ฉ๏€จ ๏€ฉ ๏€จ ๏€ฉ ๏€จ ๏€ฉ ๏€จ ๏€ฉ ๏€จ ๏€ฉ 2 22 2 ) 1 : ( , x y n xy x y Z Z r r n n x x n y y Or ๏€ญ ๏€ฝ ๏€ฝ ๏€ญ๏ƒฉ ๏ƒน ๏ƒฉ ๏ƒน๏€ญ ๏€ญ๏ƒช ๏ƒบ ๏ƒช ๏ƒบ๏ƒซ ๏ƒป ๏ƒซ ๏ƒป ๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ Test of Hypothesis: Step 1: H0 :๐œŒ = 0, H1: ๐œŒ โ‰  0 claim & Tails Step 2: TS: ๐‘ก = ๐‘Ÿ ๐‘›โˆ’2 1โˆ’๐‘Ÿ2 , OR: r Step 3: CV using ฮฑ From the T-table or Correlation (r-table) 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โ€ฆ There is a linear Correlation If |r| โ‰ฅ critical value There is No Correlation If |r| < critical value ๏€จ ๏€ฉ 0 1 1 22 0 1 Regression Line: , : int : , y b b x n xy x y Slope b n x x Y ercept b y b x y x y x n n ๏€ฝ ๏€ซ ๏€ญ ๏€ฝ ๏€ญ ๏€ญ ๏€ฝ ๏€ญ ๏€ฝ ๏€ฝ ๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ ๏ƒฅ
  • 4. 4 Goodness-of-Fit Key Concept: By โ€œgoodness-of-fitโ€ we mean that sample data consisting of observed frequency counts arranged in a single row or column (called a one-way frequency table) agree with some particular distribution (such as normal or uniform) being considered. We will use a hypothesis test for the claim that the observed frequency counts agree with the claimed distribution. Definition: A Multinomial Experiment is an experiment that meets the following conditions: 1. The number of trials is fixed. 2. The trials are independent. 3. All outcomes of each trial must be classified into exactly one of several different categories. 4. The probabilities for the different categories remain constant for each trial. Goodness-of-Fit Test A goodness-of-fit test is used to test the hypothesis that an observed frequency distribution fits (or conforms to) some claimed distribution. Conduct a goodness-of-fit test, which is a hypothesis test to determine whether a single row (or column) of frequency counts agrees with some specific distribution (such as uniform or normal).
  • 5. 5 Goodness-of-Fit Notation O represents the observed frequency of an outcome, found from the sample data. E represents the expected frequency of an outcome, found by assuming that the distribution is as claimed. k represents the number of different categories or cells. n represents the total number of trials (or the total of observed sample values). p represents the probability that a sample value falls within a particular category. Requirements: 1. The data have been randomly selected. 2. The sample data consist of frequency counts for each of the different categories. 3. For each category, the expected frequency is at least 5. (The expected frequency for a category is the frequency that would occur if the data actually have the distribution that is being claimed. There is no requirement that the observed frequency for each category must be at least 5.) Null and Alternative Hypotheses H0: The frequency counts agree with the claimed distribution. H1: The frequency counts do not agree with the claimed distribution.
  • 6. 6 Goodness-of-Fit Notation P-values: P-values are provided by technology, or a range of P-values can be found from ๐œ’2 โˆ’ ๐‘‡๐‘Ž๐‘๐‘™๐‘’. Critical values: 1. Critical values are found in ๐œ’2 โˆ’ ๐‘‡๐‘Ž๐‘๐‘™๐‘’ by using k โˆ’ 1 degrees of freedom, where k is the number of categories. 2. Goodness-of-fit hypothesis tests are always right-tailed. 3. Conducting a goodness-of-fit test requires that we identify the observed frequencies denoted by O, then find the frequencies expected (denoted by E) with the claimed distribution. There are two different approaches for finding expected frequencies E: If the expected frequencies are not all equal: Calculate E = np for each individual category. 2 2 Test Statistic: ( ) 1 O E E df k ๏ฃ ๏€ญ ๏€ฝ ๏€ฝ ๏€ญ ๏ƒฅ d.f. = number of categories minus 1 O = observed frequency E = expected frequency ๐‘ฐ๐’‡ ๐’†๐’™๐’‘๐’†๐’„๐’•๐’†๐’… ๐’‡๐’“๐’†๐’’๐’–๐’†๐’๐’„๐’Š๐’†๐’” ๐’‚๐’“๐’† ๐’‚๐’๐’ ๐’†๐’’๐’–๐’‚๐’: ๐‘ฌ = ๐’ ๐’Œ ๐ธ๐‘ž๐‘ข๐‘Ž๐‘™ ๐น๐‘Ÿ๐‘’๐‘ž: ๐ธ = ๐‘› ๐‘˜ , otherwise: E = np
  • 7. Example 1: 7 Finding Expected Frequencies: Equally Likely A single die is rolled 45 times with the following results. Assuming that the die is fair and all outcomes are equally likely, find the expected frequency E for each empty cell. Outcome 1 2 3 4 5 6 Observed Frequency O 13 6 12 9 3 2 Expected Frequency E ๐ธ = ๐‘› ๐‘˜ If the die is fair and the outcomes are all equally likely, we expect that each outcome should occur about 7.5 times. = 45 6 = 7.5 b. Not Equally Likely Using the same results from part (a), suppose that we claim that instead of being fair, the die is loaded so that the outcome of 1 occurs 50% of the time and the other five outcomes occur 10% of the time. The probabilities are listed in the second row below. Outcome 1 2 3 4 5 6 Probability 0.5 0.1 0.1 0.1 0.1 0.1 Observed Frequency O 13 6 12 9 3 2 Expected Frequency E n = 45 & E = np 1: E = np = (45)(0.5) = 22.5 Each of the other five outcomes: E = np = (45)(0.1) = 4.5 7.5 7.5 7.5 7.5 7.5 7.5 22.5 4.5 4.5 4.5 4.5 4.5 ๐ธ๐‘ž๐‘ข๐‘Ž๐‘™ ๐น๐‘Ÿ๐‘’๐‘ž: ๐ธ = ๐‘› ๐‘˜ , otherwise: E = np
  • 8. 8 Measuring Disagreement with the Claimed Distribution We know that sample frequencies typically differ somewhat from the values we theoretically expect, so we consider the key question: Are the differences between the actual observed frequencies O and the theoretically expected frequencies E significant? To measure the discrepancy between the O and E values, we use the test statistic Goodness-of-Fit Notation d.f. = Number of categories minus 1 O = observed frequency E = expected frequency 2 2 Test Statistic: ( ) 1 O E E df k ๏ฃ ๏€ญ ๏€ฝ ๏€ฝ ๏€ญ ๏ƒฅ
  • 9. Example 2: 9 To check whether consumers have any preference among five flavors of a new fruit soda, a sample of 100 people provided the following data. Is there enough evidence to support the claim that there is no preference in the selection of fruit soda flavors? Let ฮฑ = 0.05. Cherry Strawberry Orange Lime Grape Observed 32 28 16 14 10 Expected 20 20 20 20 20 H0: Consumers show no preference (claim) OR ( p1 = p2 = p3 = p4 = p5 ). H1: Consumers show a preference.(At least one of the probabilities is different from the others.), RTT df = 5 โ€“ 1 = 4 & ฮฑ = 0.05โ†’ 2 2 ( ) : O E TS E ๏ฃ ๏€ญ ๏€ฝ ๏ƒฅ 2 2 2 2 2 (32 20) (28 20) (16 20) (14 20) (10 20) 20 20 20 20 20 ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ ๏€ซ ๏€ซ ๏€ซ ๏€ซ Decision: a. Reject H0 b. The claim is False c. There is NOT sufficient evidence to support the claim that consumers show no preference for the flavors. 18.000๏€ฝ 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โ€ฆ TI Calculator: Goodness of Fit - test 1. Stat 2. Tests 3. ๐Œ ๐Ÿ ๐‘ฎ๐‘ถ๐‘ญ โˆ’ ๐‘ป๐’†๐’”๐’• 4. Enter ๐‘ณ ๐Ÿ & ๐‘ณ ๐Ÿ 5. ๐๐Ÿ = ๐ง โˆ’ ๐Ÿ 6. Calculate TI Calculator: Enter data: 1. Stat 2. Edit 3. ClrList ๐‘ณ ๐Ÿ & ๐‘ณ ๐Ÿ 4. O โ†’ ๐‘ณ ๐Ÿ & E โ†’ ๐‘ณ ๐Ÿ CV: ๐œ’2 = 9.488 2 2 ( ) T 1: ,S O E df k E ๏ฃ ๏€ญ ๏€ฝ ๏€ฝ ๏€ญ๏ƒฅ
  • 10. Example 3: 10 A researcher reads that firearm-related deaths for people aged 1 to 18 were distributed as follows: 74% were accidental, 16% were homicides, and 10% were suicides. In her district, there were 68 accidental deaths, 27 homicides, and 5 suicides during the past year. At ฮฑ = 0.10, test the claim that the percentages are equal to the given claimed values. Accidental Homicides Suicides Observed 68 27 5 Expected 74 16 10 H0: p1 = 0.74, p2 = 0.16 and p3 = 0.10 (Claim) H1: At least one of the proportions is not equal to the given claimed value. (RTT) 2 2 2 (68 74) (27 16) (5 10) 74 16 10 ๏€ญ ๏€ญ ๏€ญ ๏€ฝ ๏€ซ ๏€ซ 10.549๏€ฝ CV: ฮฑ = 0.10, df = k โ€“ 1 = 2โ†’ Decision: a. Reject H0 b. The claim is False c. There is not sufficient evidence to support the claim that the distribution is 74% accidental, 16% homicides, and 10% suicides. 2 2 ( ) : O E TS E ๏ฃ ๏€ญ ๏€ฝ ๏ƒฅ 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โ€ฆ ฯ‡ยฒ = 4.605 2 2 Test Statistic: ( ) 1 O E E df k ๏ฃ ๏€ญ ๏€ฝ ๏€ฝ ๏€ญ ๏ƒฅ