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

Hypothesis testing Part1
Hypothesis testing Part1Hypothesis testing Part1
Hypothesis testing Part1Akhila Prabhakaran
ย 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testingShameer P Hamsa
ย 
Goodness of fit (ppt)
Goodness of fit (ppt)Goodness of fit (ppt)
Goodness of fit (ppt)Sharlaine Ruth
ย 
Z-test
Z-testZ-test
Z-testfemymoni
ย 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVAParag Shah
ย 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt finalpiyushdhaker
ย 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testingMuhammadasif909
ย 
TOPIC- HYPOTHESIS TESTING RMS.pptx
TOPIC- HYPOTHESIS TESTING  RMS.pptxTOPIC- HYPOTHESIS TESTING  RMS.pptx
TOPIC- HYPOTHESIS TESTING RMS.pptxanamikamishra29
ย 
Ch4 Confidence Interval
Ch4 Confidence IntervalCh4 Confidence Interval
Ch4 Confidence IntervalFarhan Alfin
ย 
Medical Statistics Part-II:Inferential statistics
Medical Statistics Part-II:Inferential  statisticsMedical Statistics Part-II:Inferential  statistics
Medical Statistics Part-II:Inferential statisticsRamachandra Barik
ย 
types of hypothesis
types of hypothesistypes of hypothesis
types of hypothesisZahra Naz
ย 
Survival analysis
Survival analysisSurvival analysis
Survival analysisShalli Bavoria
ย 
Confidence intervals
Confidence intervalsConfidence intervals
Confidence intervalsTanay Tandon
ย 
Statistical significance
Statistical significanceStatistical significance
Statistical significanceMai Ngoc Duc
ย 
Confidence interval
Confidence intervalConfidence interval
Confidence intervalDr Renju Ravi
ย 
P value, Power, Type 1 and 2 errors
P value, Power, Type 1 and 2 errorsP value, Power, Type 1 and 2 errors
P value, Power, Type 1 and 2 errorsRizwan S A
ย 

What's hot (20)

Hypothesis testing Part1
Hypothesis testing Part1Hypothesis testing Part1
Hypothesis testing Part1
ย 
Fishers test
Fishers testFishers test
Fishers test
ย 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
ย 
Basics of Hypothesis Testing
Basics of Hypothesis Testing  Basics of Hypothesis Testing
Basics of Hypothesis Testing
ย 
Goodness of fit (ppt)
Goodness of fit (ppt)Goodness of fit (ppt)
Goodness of fit (ppt)
ย 
Z-test
Z-testZ-test
Z-test
ย 
Sample Size Determination
Sample Size DeterminationSample Size Determination
Sample Size Determination
ย 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
ย 
Hypothesis testing ppt final
Hypothesis testing ppt finalHypothesis testing ppt final
Hypothesis testing ppt final
ย 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
ย 
TOPIC- HYPOTHESIS TESTING RMS.pptx
TOPIC- HYPOTHESIS TESTING  RMS.pptxTOPIC- HYPOTHESIS TESTING  RMS.pptx
TOPIC- HYPOTHESIS TESTING RMS.pptx
ย 
Ch4 Confidence Interval
Ch4 Confidence IntervalCh4 Confidence Interval
Ch4 Confidence Interval
ย 
Hypothesis
HypothesisHypothesis
Hypothesis
ย 
Medical Statistics Part-II:Inferential statistics
Medical Statistics Part-II:Inferential  statisticsMedical Statistics Part-II:Inferential  statistics
Medical Statistics Part-II:Inferential statistics
ย 
types of hypothesis
types of hypothesistypes of hypothesis
types of hypothesis
ย 
Survival analysis
Survival analysisSurvival analysis
Survival analysis
ย 
Confidence intervals
Confidence intervalsConfidence intervals
Confidence intervals
ย 
Statistical significance
Statistical significanceStatistical significance
Statistical significance
ย 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
ย 
P value, Power, Type 1 and 2 errors
P value, Power, Type 1 and 2 errorsP value, Power, Type 1 and 2 errors
P value, Power, Type 1 and 2 errors
ย 

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 SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxrathorebhagwan07
ย 
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
ย 

Similar to Goodness of-fit (20)

Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
ย 
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
ย 
Contingency Tables
Contingency TablesContingency Tables
Contingency Tables
ย 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
ย 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
ย 
Two Proportions
Two Proportions  Two Proportions
Two Proportions
ย 
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]
ย 

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
ย 

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
ย 
One-Way ANOVA
One-Way ANOVAOne-Way ANOVA
One-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
ย 

Recently uploaded

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
ย 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
ย 
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
ย 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
ย 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
ย 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
ย 
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
ย 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)โ€”โ€”โ€”โ€”IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)โ€”โ€”โ€”โ€”IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)โ€”โ€”โ€”โ€”IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)โ€”โ€”โ€”โ€”IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
ย 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
ย 
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
ย 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
ย 
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
ย 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
ย 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
ย 
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
ย 
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
ย 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
ย 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
ย 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
ย 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
ย 

Recently uploaded (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
ย 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
ย 
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
ย 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
ย 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
ย 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
ย 
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
ย 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)โ€”โ€”โ€”โ€”IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)โ€”โ€”โ€”โ€”IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)โ€”โ€”โ€”โ€”IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)โ€”โ€”โ€”โ€”IMP.OF KSHARA ...
ย 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
ย 
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
ย 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
ย 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
ย 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
ย 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
ย 
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 ...
ย 
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
ย 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
ย 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
ย 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
ย 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
ย 

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 ๏ฃ ๏€ญ ๏€ฝ ๏€ฝ ๏€ญ ๏ƒฅ