SlideShare a Scribd company logo
1 of 117
What is a 
Chi-Square Test of Goodness of Fit?
Questions of goodness of fit have become 
increasingly important in modern statistics.
Questions of goodness of fit juxtapose complex 
observed patterns against hypothesized or 
previously observed patterns 
to test overall and specific 
differences among them.
Observed Hypothesized Difference
Observed Hypothesized Difference 
If the difference is small then the FIT IS GOOD
Observed Hypothesized Difference 
If the difference is small then the FIT IS GOOD 
Observed Hypothesized Difference
Observed Hypothesized Difference 
If the difference is small then the FIT IS GOOD 
Observed Hypothesized Difference 
For example:
Observed Hypothesized Difference 
If the difference is small then the FIT IS GOOD 
Observed Hypothesized Difference 
For example: 
51% Females 50% Females 1%
Observed Hypothesized Difference
Observed Hypothesized Difference 
If the difference is BIG then the FIT IS NOT GOOD
Observed Hypothesized Difference 
If the difference is BIG then the FIT IS NOT GOOD 
Observed Hypothesized Difference
Observed Hypothesized Difference 
If the difference is BIG then the FIT IS NOT GOOD 
Observed Hypothesized Difference 
For example:
Observed Hypothesized Difference 
If the difference is BIG then the FIT IS NOT GOOD 
Observed Hypothesized Difference 
For example: 
50% Females 22% Females 18%
Here is an example:
Here is an example: 
We want to know if a sample we have selected 
has the national percentages of a certain ethnic 
groups.
Here is an example: 
We want to know if a sample we have selected 
has the national percentages of a certain ethnic 
groups. 
2% of sample 
is made of 
members of 
this ethnic 
group 
10% of the 
population is 
made of this 
ethnic group 
8% Difference
You will use certain statistical methods 
to determine if the goodness of fit is 
significant or not.
You will use certain statistical methods 
to determine if the goodness of fit is 
significant or not. 
Here is an example:
You will use certain statistical methods 
to determine if the goodness of fit is 
significant or not. 
Here is an example: 
Problem – The chair of a statistics department 
suspects that some of her faculty are more 
popular with students than others.
There are three sections of introductory stats 
that are taught at the same time in the morning 
by Professors Cauforek, Kerr, and Rector.
There are three sections of introductory stats 
that are taught at the same time in the morning 
by Professors Cauforek, Kerr, and Rector. 
66 students are planning on enrolling in one of 
the three classes.
What would you expect the number of enrollees 
to be in each class if popularity were not an 
issue?
What would you expect the number of enrollees 
to be in each class if popularity were not an 
issue? 
Professor Cauforek Professor Kerr Professor Rector 
22 22 22
What would you expect the number of enrollees 
to be in each class if popularity were not an 
issue? 
Professor Cauforek Professor Kerr Professor Rector 
22 22 22 
This is our expected value.
Now let’s see what was observed.
Now let’s see what was observed. 
The number who enroll for each class was:
Now let’s see what was observed. 
The number who enroll for each class was: 
Professor Cauforek Professor Kerr Professor Rector 
31 25 10
We will test the degree to which the observed 
data...
We will test the degree to which the observed 
data... 
Professor Cauforek Professor Kerr Professor Rector 
31 25 10
We will test the degree to which the observed 
data... 
Professor Cauforek Professor Kerr Professor Rector 
31 25 10 
…fits the expected enrollments.
We will test the degree to which the observed 
data... 
Professor Cauforek Professor Kerr Professor Rector 
31 25 10 
…fits the expected enrollments. 
Professor Cauforek Professor Kerr Professor Rector 
22 22 22
Here is the formula:
Here is the formula:
푥2 = Σ 
(푂 − 퐸)2 
퐸
Where: 
푥2 = Σ 
(푂 − 퐸)2 
퐸
Where: 
푥2 = Σ 
(푂 − 퐸)2 
퐸 
풙ퟐ = 퐶ℎ푖 푆푞푢푎푟푒
Where: 
푥2 = Σ 
(푂 − 퐸)2 
퐸 
풙ퟐ = 퐶ℎ푖 푆푞푢푎푟푒 
풙ퟐ = Σ 
(푂 − 퐸)2 
퐸
횺 = 푆푢푚 표푓
횺 = 푆푢푚 표푓 
푥2 = 횺 
(푂 − 퐸)2 
퐸
퐎 = 표푏푠푒푟푣푒푑 푠푐표푟푒
퐎 = 표푏푠푒푟푣푒푑 푠푐표푟푒 
푥2 = Σ 
(푶 − 퐸)2 
퐸
퐎 = 표푏푠푒푟푣푒푑 푠푐표푟푒 
푥2 = Σ 
(푶 − 퐸)2 
퐸 
Professor Cauforek Professor Kerr Professor Rector 
31 25 10
퐎 = 표푏푠푒푟푣푒푑 푠푐표푟푒 
푥2 = Σ 
(푶 − 퐸)2 
퐸 
Professor Cauforek Professor Kerr Professor Rector 
31 25 10
푬 = 푒푥푝푒푐푡푒푑 푠푐표푟푒
푬 = 푒푥푝푒푐푡푒푑 푠푐표푟푒 
푥2 = Σ 
(푂 − 푬)2 
퐸
푬 = 푒푥푝푒푐푡푒푑 푠푐표푟푒 
푥2 = Σ 
(푂 − 푬)2 
퐸 
Professor Cauforek Professor Kerr Professor Rector 
22 22 22
푬 = 푒푥푝푒푐푡푒푑 푠푐표푟푒 
푥2 = Σ 
(푂 − 푬)2 
퐸 
Professor Cauforek Professor Kerr Professor Rector 
22 22 22
푬 = 푒푥푝푒푐푡푒푑 푠푐표푟푒 
푥2 = Σ 
(푂 − 퐸)2 
푬 
Professor Cauforek Professor Kerr Professor Rector 
22 22 22
Here is the null-hypothesis:
Here is the null-hypothesis: 
There is no significant difference between the 
expected and the observed number of students 
enrolled in three stats professors’ classes.
Now we will compute the 푥2 value and compare 
it with the 푥2 critical value.
Now we will compute the 푥2 value and compare 
it with the 푥2 critical value. 
• If the value exceeds the critical value, then 
we will reject the null-hypothesis.
Now we will compute the 푥2 value and compare 
it with the 푥2 critical value. 
• If the value exceeds the critical value, then 
we will reject the null-hypothesis. 
• If the value DOES NOT exceed the critical 
value, then we will fail to reject the null-hypothesis.
Let’s compute the 푥2 value.
Let’s compute the 푥2 value. 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10
Let’s compute the 푥2 value. 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = 횺 
(푂 − 퐸)2 
퐸
Let’s compute the 푥2 value. 
OR 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = 횺 
(푂 − 퐸)2 
퐸
Let’s compute the 푥2 value. 
OR 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = 횺 
(푂 − 퐸)2 
퐸 
푥2 = 
(푂 − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸
Let’s compute the 푥2 value. 
Expected 22 22 22 
Observed 31 25 10 
OR 
푥2 = 
Professor Cauforek Professor Kerr Professor Rector 
(푂 − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸 
푥2 = 횺 
(푂 − 퐸)2 
퐸
Let’s input each professor’s data into the 
equation.
Let’s input each professor’s data into the 
equation. 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10
Let’s input each professor’s data into the 
equation. 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = 
(ퟑퟏ − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸
Let’s input each professor’s data into the 
equation. 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = 
(31 − ퟐퟐ)2 
퐸 
+ 
(푂 − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸
Let’s input each professor’s data into the 
equation. 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = 
(31 − 22)2 
ퟐퟐ 
+ 
(푂 − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸
Let’s input each professor’s data into the 
equation. 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = 
(31 − 22)2 
22 
+ 
(ퟐퟓ − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸
Let’s input each professor’s data into the 
equation. 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = 
(31 − 22)2 
22 
+ 
(25 − ퟐퟐ)2 
ퟐퟐ 
+ 
(푂 − 퐸)2 
퐸
Let’s input each professor’s data into the 
equation. 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = 
(31 − 22)2 
22 
+ 
(25 − 22)2 
22 
+ 
(ퟏퟎ − 퐸)2 
퐸
Let’s input each professor’s data into the 
equation. 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = 
(31 − 22)2 
22 
+ 
(25 − 22)2 
22 
+ 
(10 − ퟐퟐ)2 
ퟐퟐ
Now for the calculation:
Now for the calculation: 
푥2 = 
(31 − 22)2 
22 
+ 
(25 − 22)2 
22 
+ 
(10 − 22)2 
22
Now for the calculation: 
푥2 = 
(ퟗ)2 
22 
+ 
(25 − 22)2 
22 
+ 
(10 − 22)2 
22
Now for the calculation: 
푥2 = 
ퟖퟏ 
22 
+ 
(25 − 22)2 
22 
+ 
(10 − 22)2 
22
Now for the calculation: 
푥2 = 
81 
22 
+ 
(ퟑ)2 
22 
+ 
(10 − 22)2 
22
Now for the calculation: 
푥2 = 
81 
22 
+ 
ퟗ 
22 
+ 
(10 − 22)2 
22
Now for the calculation: 
푥2 = 
81 
22 
+ 
ퟗ 
22 
+ 
(−ퟏퟐ)2 
22
Now for the calculation: 
푥2 = 
81 
22 
+ 
9 
22 
+ 
ퟏퟒퟒ 
22
Convert the fractions into decimals: 
푥2 = 
81 
22 
+ 
9 
22 
+ 
ퟏퟒퟒ 
22
Convert the fractions into decimals: 
푥2 = 
81 
22 
+ 
9 
22 
+ 
144 
22
Convert the fractions into decimals: 
푥2 = ퟑ. ퟕ + 
9 
22 
+ 
144 
22
Convert the fractions into decimals: 
푥2 = 3.7 + ퟎ. ퟒ + 
144 
22
Convert the fractions into decimals: 
푥2 = 3.7 + 0.4 + ퟔ. ퟓ
Sum the terms: 
푥2 = 3.7 + 0.4 + 6.5
Sum the terms: 
푥2 = 10.6
As a contrasting example note what the 푥2 value 
would be if the observed and expected values 
were more similar: 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 24 22 20
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 24 22 20 
푥2 = 
(푂 − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸 
+ 
(푂 − 퐸)2 
퐸
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 24 22 20 
푥2 = 
(푂 − ퟐퟐ)2 
ퟐퟐ 
+ 
(푂 − ퟐퟐ)2 
ퟐퟐ 
+ 
(푂 − ퟐퟐ)2 
ퟐퟐ
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 24 22 20 
푥2 = 
(ퟐퟒ − 22)2 
22 
+ 
(ퟐퟐ − 22)2 
22 
+ 
(ퟐퟎ − 22)2 
22
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 24 22 20 
푥2 = 
(ퟐ)2 
22 
+ 
(ퟎ)2 
22 
+ 
(−ퟐ)2 
22
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 24 22 20 
푥2 = 
ퟒ 
22 
+ 
ퟎ 
22 
+ 
ퟒ 
22
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 24 22 20 
푥2 = ퟎ. ퟐ + ퟎ. ퟎ + ퟎ. ퟐ
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 24 22 20 
푥2 = ퟎ. ퟒ
So the moral of the story is that the closer the 
expected and observed values are to one 
another, the smaller the Chi-square value or the 
greater the goodness of fit (as seen below).
So the moral of the story is that the closer the 
expected and observed values are to one 
another, the smaller the Chi-square value or the 
greater the goodness of fit (as seen below). 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10
So the moral of the story is that the closer the 
expected and observed values are to one 
another, the smaller the Chi-square value or the 
greater the goodness of fit (as seen below). 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = ퟏퟎ. ퟔ
On the other hand, the farther the expected and 
observed values are from one another the 
smaller the Chi-square value or the greater the 
goodness of fit (as seen below).
On the other hand, the farther the expected and 
observed values are from one another the 
smaller the Chi-square value or the greater the 
goodness of fit (as seen below). 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10
On the other hand, the farther the expected and 
observed values are from one another the 
smaller the Chi-square value or the greater the 
goodness of fit (as seen below). 
Professor Cauforek Professor Kerr Professor Rector 
Expected 22 22 22 
Observed 31 25 10 
푥2 = ퟏퟎ. ퟔ
Now we determine if a 푥2 of 10.6 exceeds the 
critical 푥2 for terms.
To calculate the 푥2 critical we first must 
determine the degrees of freedom as well as set 
the probability level.
To calculate the 푥2 critical we first must 
determine the degrees of freedom as well as set 
the probability level. 
The probability or alpha level means the 
probability of a type 1 error we are willing to live 
with (i.e., this is the probability of being wrong 
when we reject the null hypothesis).
To calculate the 푥2 critical we first must 
determine the degrees of freedom as well as set 
the probability level. 
The probability or alpha level means the 
probability of a type 1 error we are willing to live 
with (i.e., this is the probability of being wrong 
when we reject the null hypothesis). Generally 
this value is 0.5 which is like saying we are 
willing to be wrong 5 out of 100 times (0.05) 
before we will reject the null-hypothesis.
Degrees of Freedom are calculated by taking the 
number of groups and subtracting them by 1. 
(Three groups minus 1 = 2)
We now have all of the information we need to 
determine the critical 푥2.
We now have all of the information we need to 
determine the critical 푥2. 
We go to the Chi-Square Distribution Table and 
locate the degrees of freedom.
We now have all of the information we need to 
determine the critical 푥2. 
We go to the Chi-Square Distribution Table and 
locate the degrees of freedom. 
df 0.100 0.050 0.025 
1 2.71 3.84 5.02 
2 4.61 5.99 7.38 
3 6.25 7.82 9.35 
4 7.78 9.49 11.14 
5 9.24 11.07 12.83 
6 10.64 12.59 14.45 
7 12.02 14.07 16.10 
8 13.36 15.51 17.54 
9 14.68 16.92 19.20 
… … … …
We now have all of the information we need to 
determine the critical 푥2. 
We go to the Chi-Square Distribution Table and 
locate the degrees of freedom. 
And then we locate the probability or alpha level: 
df 0.100 0.050 0.025 
1 2.71 3.84 5.02 
2 4.61 5.99 7.38 
3 6.25 7.82 9.35 
4 7.78 9.49 11.14 
5 9.24 11.07 12.83 
6 10.64 12.59 14.45 
7 12.02 14.07 16.10 
8 13.36 15.51 17.54 
9 14.68 16.92 19.20 
… … … …
We now have all of the information we need to 
determine the critical 푥2. 
We go to the Chi-Square Distribution Table and 
locate the degrees of freedom. 
And then we locate the probability or alpha level: 
df 0.100 0.050 0.025 
1 2.71 3.84 5.02 
2 4.61 5.99 7.38 
3 6.25 7.82 9.35 
4 7.78 9.49 11.14 
5 9.24 11.07 12.83 
6 10.64 12.59 14.45 
7 12.02 14.07 16.10 
8 13.36 15.51 17.54 
9 14.68 16.92 19.20 
… … … …
We now have all of the information we need to 
determine the critical 푥2. 
We go to the Chi-Square Distribution Table and 
locate the degrees of freedom. 
And then we locate the probability or alpha level: 
df 0.100 0.050 0.025 
1 2.71 3.84 5.02 
2 4.61 5.99 7.38 
3 6.25 7.82 9.35 
4 7.78 9.49 11.14 
5 9.24 11.07 12.83 
6 10.64 12.59 14.45 
7 12.02 14.07 16.10 
8 13.36 15.51 17.54 
9 14.68 16.92 19.20 
… … … … 
Where these two values 
intersect in the table we 
find the critical 푥2.
We now have all of the information we need to 
determine the critical 푥2. 
We go to the Chi-Square Distribution Table and 
locate the degrees of freedom. 
And then we locate the probability or alpha level: 
df 0.100 0.050 0.025 
1 2.71 3.84 5.02 
2 4.61 5.99 7.38 
3 6.25 7.82 9.35 
4 7.78 9.49 11.14 
5 9.24 11.07 12.83 
6 10.64 12.59 14.45 
7 12.02 14.07 16.10 
8 13.36 15.51 17.54 
9 14.68 16.92 19.20 
… … … … 
Where these two values 
intersect in the table we 
find the critical 푥2.
We now have all of the information we need to 
determine the critical 푥2. 
We go to the Chi-Square Distribution Table and 
locate the degrees of freedom. 
And then we locate the probability or alpha level: 
df 0.100 0.050 0.025 
1 2.71 3.84 5.02 
2 4.61 5.99 7.38 
3 6.25 7.82 9.35 
4 7.78 9.49 11.14 
5 9.24 11.07 12.83 
6 10.64 12.59 14.45 
7 12.02 14.07 16.10 
8 13.36 15.51 17.54 
9 14.68 16.92 19.20 
… … … … 
Where these two values 
intersect in the table we 
find the critical 푥2.
Since the chi-square goodness of fit value (10.6) 
exceeds the critical 푥2 (5.99) we will reject the 
null hypothesis:
Since the chi-square goodness of fit value (10.6) 
exceeds the critical 푥2 (5.99) we will reject the 
null hypothesis: 
There is no significant difference between the 
expected and the observed number of students 
enrolled in three stats professors’ classes.
Since the chi-square goodness of fit value (10.6) 
exceeds the critical 푥2 (5.99) we will reject the 
null hypothesis: 
There is no significant difference between the 
expected and the observed number of students 
enrolled in three stats professors’ classes.
Since the chi-square goodness of fit value (10.6) 
exceeds the critical 푥2 (5.99) we will reject the 
null hypothesis: 
There is no significant difference between the 
expected and the observed number of students 
enrolled in three stats professors’ classes. 
There actually is a significant difference.
In summary,
In summary, 
Questions of goodness of fit juxtapose observed 
patterns against hypothesized to test overall and 
specific differences among them.
In summary, 
Questions of goodness of fit juxtapose observed 
patterns against hypothesized to test overall and 
specific differences among them. 
Observed Hypothesized Difference

More Related Content

Viewers also liked

Dynamic Factor Rotation
Dynamic Factor RotationDynamic Factor Rotation
Dynamic Factor Rotation
Ilan Gleiser
 
08 test of hypothesis large sample.ppt
08 test of hypothesis large sample.ppt08 test of hypothesis large sample.ppt
08 test of hypothesis large sample.ppt
Pooja Sakhla
 
09 test of hypothesis small sample.ppt
09 test of hypothesis small sample.ppt09 test of hypothesis small sample.ppt
09 test of hypothesis small sample.ppt
Pooja Sakhla
 

Viewers also liked (20)

Reporting a single linear regression in apa
Reporting a single linear regression in apaReporting a single linear regression in apa
Reporting a single linear regression in apa
 
Dynamic Factor Rotation
Dynamic Factor RotationDynamic Factor Rotation
Dynamic Factor Rotation
 
Lecture slides stats1.13.l19.air
Lecture slides stats1.13.l19.airLecture slides stats1.13.l19.air
Lecture slides stats1.13.l19.air
 
08 test of hypothesis large sample.ppt
08 test of hypothesis large sample.ppt08 test of hypothesis large sample.ppt
08 test of hypothesis large sample.ppt
 
131 141 Chi Square Goodness Of Fit
131 141 Chi Square Goodness Of Fit131 141 Chi Square Goodness Of Fit
131 141 Chi Square Goodness Of Fit
 
B.9 chi square
B.9 chi squareB.9 chi square
B.9 chi square
 
09 test of hypothesis small sample.ppt
09 test of hypothesis small sample.ppt09 test of hypothesis small sample.ppt
09 test of hypothesis small sample.ppt
 
Goodness of fit (ppt)
Goodness of fit (ppt)Goodness of fit (ppt)
Goodness of fit (ppt)
 
An Introduction to Factor analysis ppt
An Introduction to Factor analysis pptAn Introduction to Factor analysis ppt
An Introduction to Factor analysis ppt
 
Is there a covariate?
Is there a covariate?Is there a covariate?
Is there a covariate?
 
Are there covariates?
Are there covariates?Are there covariates?
Are there covariates?
 
What is a nonparametric method?
What is a nonparametric method?What is a nonparametric method?
What is a nonparametric method?
 
Null hypothesis for a single-sample t-test
Null hypothesis for a single-sample t-testNull hypothesis for a single-sample t-test
Null hypothesis for a single-sample t-test
 
Null hypothesis for phi-coefficient
Null hypothesis for phi-coefficientNull hypothesis for phi-coefficient
Null hypothesis for phi-coefficient
 
What is a Kendall's Tau (independence)?
What is a Kendall's Tau (independence)?What is a Kendall's Tau (independence)?
What is a Kendall's Tau (independence)?
 
How many variables are there?
How many variables are there?How many variables are there?
How many variables are there?
 
How many dependent variables?
How many dependent variables?How many dependent variables?
How many dependent variables?
 
Quick reminder ties or no ties
Quick reminder   ties or no tiesQuick reminder   ties or no ties
Quick reminder ties or no ties
 
Quick reminder ordinal, scaled or nominal proportional
Quick reminder   ordinal, scaled or nominal proportionalQuick reminder   ordinal, scaled or nominal proportional
Quick reminder ordinal, scaled or nominal proportional
 
Reporting kendall's tau in apa (1)
Reporting kendall's tau in apa (1)Reporting kendall's tau in apa (1)
Reporting kendall's tau in apa (1)
 

Similar to Chi square goodness of fit

Module1 flexibility-2-problems- rajesh sir
Module1 flexibility-2-problems- rajesh sirModule1 flexibility-2-problems- rajesh sir
Module1 flexibility-2-problems- rajesh sir
SHAMJITH KM
 
Module1 flexibility-2-problems- rajesh sir
Module1 flexibility-2-problems- rajesh sirModule1 flexibility-2-problems- rajesh sir
Module1 flexibility-2-problems- rajesh sir
SHAMJITH KM
 
Module3 direct stiffness- rajesh sir
Module3 direct stiffness- rajesh sirModule3 direct stiffness- rajesh sir
Module3 direct stiffness- rajesh sir
SHAMJITH KM
 
Module3 direct stiffness- rajesh sir
Module3 direct stiffness- rajesh sirModule3 direct stiffness- rajesh sir
Module3 direct stiffness- rajesh sir
SHAMJITH KM
 
Antiderivatives: Power, Sum and Difference
Antiderivatives: Power, Sum and DifferenceAntiderivatives: Power, Sum and Difference
Antiderivatives: Power, Sum and Difference
RivenBarquilla
 
RS-12-Calculating-Reliability-of-a-Measure.ppt
RS-12-Calculating-Reliability-of-a-Measure.pptRS-12-Calculating-Reliability-of-a-Measure.ppt
RS-12-Calculating-Reliability-of-a-Measure.ppt
DonnaJanePedros1
 
REJECTION REGIONxxxxxxxxxxxxxxxxxxxxxx.pptx
REJECTION REGIONxxxxxxxxxxxxxxxxxxxxxx.pptxREJECTION REGIONxxxxxxxxxxxxxxxxxxxxxx.pptx
REJECTION REGIONxxxxxxxxxxxxxxxxxxxxxx.pptx
mantilejoshua05
 
Experimental design
Experimental designExperimental design
Experimental design
metalkid132
 

Similar to Chi square goodness of fit (20)

Module1 flexibility-2-problems- rajesh sir
Module1 flexibility-2-problems- rajesh sirModule1 flexibility-2-problems- rajesh sir
Module1 flexibility-2-problems- rajesh sir
 
Module1 flexibility-2-problems- rajesh sir
Module1 flexibility-2-problems- rajesh sirModule1 flexibility-2-problems- rajesh sir
Module1 flexibility-2-problems- rajesh sir
 
BKS-MidsemPPT.pptx
BKS-MidsemPPT.pptxBKS-MidsemPPT.pptx
BKS-MidsemPPT.pptx
 
Module1 flexibility-1- rajesh sir
Module1 flexibility-1- rajesh sirModule1 flexibility-1- rajesh sir
Module1 flexibility-1- rajesh sir
 
Module1 flexibility-1- rajesh sir
Module1 flexibility-1- rajesh sirModule1 flexibility-1- rajesh sir
Module1 flexibility-1- rajesh sir
 
Module3 direct stiffness- rajesh sir
Module3 direct stiffness- rajesh sirModule3 direct stiffness- rajesh sir
Module3 direct stiffness- rajesh sir
 
Module3 direct stiffness- rajesh sir
Module3 direct stiffness- rajesh sirModule3 direct stiffness- rajesh sir
Module3 direct stiffness- rajesh sir
 
Antiderivatives: Power, Sum and Difference
Antiderivatives: Power, Sum and DifferenceAntiderivatives: Power, Sum and Difference
Antiderivatives: Power, Sum and Difference
 
RS-12-Calculating-Reliability-of-a-Measure.ppt
RS-12-Calculating-Reliability-of-a-Measure.pptRS-12-Calculating-Reliability-of-a-Measure.ppt
RS-12-Calculating-Reliability-of-a-Measure.ppt
 
Abimael Kevin_Armas Paul_Vega Joaquín_Viscaíno Marcos_taller2_p2
Abimael Kevin_Armas Paul_Vega Joaquín_Viscaíno Marcos_taller2_p2Abimael Kevin_Armas Paul_Vega Joaquín_Viscaíno Marcos_taller2_p2
Abimael Kevin_Armas Paul_Vega Joaquín_Viscaíno Marcos_taller2_p2
 
REJECTION REGIONxxxxxxxxxxxxxxxxxxxxxx.pptx
REJECTION REGIONxxxxxxxxxxxxxxxxxxxxxx.pptxREJECTION REGIONxxxxxxxxxxxxxxxxxxxxxx.pptx
REJECTION REGIONxxxxxxxxxxxxxxxxxxxxxx.pptx
 
Master's Thesis: A Formal Study of Moessner's Sieve
Master's Thesis: A Formal Study of Moessner's SieveMaster's Thesis: A Formal Study of Moessner's Sieve
Master's Thesis: A Formal Study of Moessner's Sieve
 
On generating functions of biorthogonal polynomials
On generating functions of biorthogonal polynomialsOn generating functions of biorthogonal polynomials
On generating functions of biorthogonal polynomials
 
About testing the hypothesis of equality of two bernoulli
About testing the hypothesis of equality of two bernoulliAbout testing the hypothesis of equality of two bernoulli
About testing the hypothesis of equality of two bernoulli
 
Lec002 math1 Fall 2021.pdf
Lec002 math1 Fall 2021.pdfLec002 math1 Fall 2021.pdf
Lec002 math1 Fall 2021.pdf
 
Control system stability root locus
Control system stability root locusControl system stability root locus
Control system stability root locus
 
Calculating Reliability.pdf
Calculating Reliability.pdfCalculating Reliability.pdf
Calculating Reliability.pdf
 
Experimental design
Experimental designExperimental design
Experimental design
 
Module I CSAS_105152.pdf
Module I CSAS_105152.pdfModule I CSAS_105152.pdf
Module I CSAS_105152.pdf
 
LearningQ: A Large-scale Dataset for Educational Question Generation (ICWSM 2...
LearningQ: A Large-scale Dataset for Educational Question Generation (ICWSM 2...LearningQ: A Large-scale Dataset for Educational Question Generation (ICWSM 2...
LearningQ: A Large-scale Dataset for Educational Question Generation (ICWSM 2...
 

More from Ken Plummer

More from Ken Plummer (20)

Diff rel gof-fit - jejit - practice (5)
Diff rel gof-fit - jejit - practice (5)Diff rel gof-fit - jejit - practice (5)
Diff rel gof-fit - jejit - practice (5)
 
Learn About Range - Copyright updated
Learn About Range - Copyright updatedLearn About Range - Copyright updated
Learn About Range - Copyright updated
 
Inferential vs descriptive tutorial of when to use - Copyright Updated
Inferential vs descriptive tutorial of when to use - Copyright UpdatedInferential vs descriptive tutorial of when to use - Copyright Updated
Inferential vs descriptive tutorial of when to use - Copyright Updated
 
Diff rel ind-fit practice - Copyright Updated
Diff rel ind-fit practice - Copyright UpdatedDiff rel ind-fit practice - Copyright Updated
Diff rel ind-fit practice - Copyright Updated
 
Normal or skewed distributions (inferential) - Copyright updated
Normal or skewed distributions (inferential) - Copyright updatedNormal or skewed distributions (inferential) - Copyright updated
Normal or skewed distributions (inferential) - Copyright updated
 
Normal or skewed distributions (descriptive both2) - Copyright updated
Normal or skewed distributions (descriptive both2) - Copyright updatedNormal or skewed distributions (descriptive both2) - Copyright updated
Normal or skewed distributions (descriptive both2) - Copyright updated
 
Nature of the data practice - Copyright updated
Nature of the data practice - Copyright updatedNature of the data practice - Copyright updated
Nature of the data practice - Copyright updated
 
Nature of the data (spread) - Copyright updated
Nature of the data (spread) - Copyright updatedNature of the data (spread) - Copyright updated
Nature of the data (spread) - Copyright updated
 
Mode practice 1 - Copyright updated
Mode practice 1 - Copyright updatedMode practice 1 - Copyright updated
Mode practice 1 - Copyright updated
 
Nature of the data (descriptive) - Copyright updated
Nature of the data (descriptive) - Copyright updatedNature of the data (descriptive) - Copyright updated
Nature of the data (descriptive) - Copyright updated
 
Dichotomous or scaled
Dichotomous or scaledDichotomous or scaled
Dichotomous or scaled
 
Skewed less than 30 (ties)
Skewed less than 30 (ties)Skewed less than 30 (ties)
Skewed less than 30 (ties)
 
Skewed sample size less than 30
Skewed sample size less than 30Skewed sample size less than 30
Skewed sample size less than 30
 
Ordinal (ties)
Ordinal (ties)Ordinal (ties)
Ordinal (ties)
 
Ordinal and nominal
Ordinal and nominalOrdinal and nominal
Ordinal and nominal
 
Relationship covariates
Relationship   covariatesRelationship   covariates
Relationship covariates
 
Relationship nature of data
Relationship nature of dataRelationship nature of data
Relationship nature of data
 
Number of variables (predictive)
Number of variables (predictive)Number of variables (predictive)
Number of variables (predictive)
 
Levels of the iv
Levels of the ivLevels of the iv
Levels of the iv
 
Independent variables (2)
Independent variables (2)Independent variables (2)
Independent variables (2)
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
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
 

Recently uploaded (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.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...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
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 ...
 

Chi square goodness of fit

  • 1. What is a Chi-Square Test of Goodness of Fit?
  • 2. Questions of goodness of fit have become increasingly important in modern statistics.
  • 3. Questions of goodness of fit juxtapose complex observed patterns against hypothesized or previously observed patterns to test overall and specific differences among them.
  • 5. Observed Hypothesized Difference If the difference is small then the FIT IS GOOD
  • 6. Observed Hypothesized Difference If the difference is small then the FIT IS GOOD Observed Hypothesized Difference
  • 7. Observed Hypothesized Difference If the difference is small then the FIT IS GOOD Observed Hypothesized Difference For example:
  • 8. Observed Hypothesized Difference If the difference is small then the FIT IS GOOD Observed Hypothesized Difference For example: 51% Females 50% Females 1%
  • 10. Observed Hypothesized Difference If the difference is BIG then the FIT IS NOT GOOD
  • 11. Observed Hypothesized Difference If the difference is BIG then the FIT IS NOT GOOD Observed Hypothesized Difference
  • 12. Observed Hypothesized Difference If the difference is BIG then the FIT IS NOT GOOD Observed Hypothesized Difference For example:
  • 13. Observed Hypothesized Difference If the difference is BIG then the FIT IS NOT GOOD Observed Hypothesized Difference For example: 50% Females 22% Females 18%
  • 14. Here is an example:
  • 15. Here is an example: We want to know if a sample we have selected has the national percentages of a certain ethnic groups.
  • 16. Here is an example: We want to know if a sample we have selected has the national percentages of a certain ethnic groups. 2% of sample is made of members of this ethnic group 10% of the population is made of this ethnic group 8% Difference
  • 17. You will use certain statistical methods to determine if the goodness of fit is significant or not.
  • 18. You will use certain statistical methods to determine if the goodness of fit is significant or not. Here is an example:
  • 19. You will use certain statistical methods to determine if the goodness of fit is significant or not. Here is an example: Problem – The chair of a statistics department suspects that some of her faculty are more popular with students than others.
  • 20. There are three sections of introductory stats that are taught at the same time in the morning by Professors Cauforek, Kerr, and Rector.
  • 21. There are three sections of introductory stats that are taught at the same time in the morning by Professors Cauforek, Kerr, and Rector. 66 students are planning on enrolling in one of the three classes.
  • 22. What would you expect the number of enrollees to be in each class if popularity were not an issue?
  • 23. What would you expect the number of enrollees to be in each class if popularity were not an issue? Professor Cauforek Professor Kerr Professor Rector 22 22 22
  • 24. What would you expect the number of enrollees to be in each class if popularity were not an issue? Professor Cauforek Professor Kerr Professor Rector 22 22 22 This is our expected value.
  • 25. Now let’s see what was observed.
  • 26. Now let’s see what was observed. The number who enroll for each class was:
  • 27. Now let’s see what was observed. The number who enroll for each class was: Professor Cauforek Professor Kerr Professor Rector 31 25 10
  • 28. We will test the degree to which the observed data...
  • 29. We will test the degree to which the observed data... Professor Cauforek Professor Kerr Professor Rector 31 25 10
  • 30. We will test the degree to which the observed data... Professor Cauforek Professor Kerr Professor Rector 31 25 10 …fits the expected enrollments.
  • 31. We will test the degree to which the observed data... Professor Cauforek Professor Kerr Professor Rector 31 25 10 …fits the expected enrollments. Professor Cauforek Professor Kerr Professor Rector 22 22 22
  • 32. Here is the formula:
  • 33. Here is the formula:
  • 34. 푥2 = Σ (푂 − 퐸)2 퐸
  • 35. Where: 푥2 = Σ (푂 − 퐸)2 퐸
  • 36. Where: 푥2 = Σ (푂 − 퐸)2 퐸 풙ퟐ = 퐶ℎ푖 푆푞푢푎푟푒
  • 37. Where: 푥2 = Σ (푂 − 퐸)2 퐸 풙ퟐ = 퐶ℎ푖 푆푞푢푎푟푒 풙ퟐ = Σ (푂 − 퐸)2 퐸
  • 38. 횺 = 푆푢푚 표푓
  • 39. 횺 = 푆푢푚 표푓 푥2 = 횺 (푂 − 퐸)2 퐸
  • 41. 퐎 = 표푏푠푒푟푣푒푑 푠푐표푟푒 푥2 = Σ (푶 − 퐸)2 퐸
  • 42. 퐎 = 표푏푠푒푟푣푒푑 푠푐표푟푒 푥2 = Σ (푶 − 퐸)2 퐸 Professor Cauforek Professor Kerr Professor Rector 31 25 10
  • 43. 퐎 = 표푏푠푒푟푣푒푑 푠푐표푟푒 푥2 = Σ (푶 − 퐸)2 퐸 Professor Cauforek Professor Kerr Professor Rector 31 25 10
  • 45. 푬 = 푒푥푝푒푐푡푒푑 푠푐표푟푒 푥2 = Σ (푂 − 푬)2 퐸
  • 46. 푬 = 푒푥푝푒푐푡푒푑 푠푐표푟푒 푥2 = Σ (푂 − 푬)2 퐸 Professor Cauforek Professor Kerr Professor Rector 22 22 22
  • 47. 푬 = 푒푥푝푒푐푡푒푑 푠푐표푟푒 푥2 = Σ (푂 − 푬)2 퐸 Professor Cauforek Professor Kerr Professor Rector 22 22 22
  • 48. 푬 = 푒푥푝푒푐푡푒푑 푠푐표푟푒 푥2 = Σ (푂 − 퐸)2 푬 Professor Cauforek Professor Kerr Professor Rector 22 22 22
  • 49. Here is the null-hypothesis:
  • 50. Here is the null-hypothesis: There is no significant difference between the expected and the observed number of students enrolled in three stats professors’ classes.
  • 51. Now we will compute the 푥2 value and compare it with the 푥2 critical value.
  • 52. Now we will compute the 푥2 value and compare it with the 푥2 critical value. • If the value exceeds the critical value, then we will reject the null-hypothesis.
  • 53. Now we will compute the 푥2 value and compare it with the 푥2 critical value. • If the value exceeds the critical value, then we will reject the null-hypothesis. • If the value DOES NOT exceed the critical value, then we will fail to reject the null-hypothesis.
  • 54. Let’s compute the 푥2 value.
  • 55. Let’s compute the 푥2 value. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10
  • 56. Let’s compute the 푥2 value. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = 횺 (푂 − 퐸)2 퐸
  • 57. Let’s compute the 푥2 value. OR Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = 횺 (푂 − 퐸)2 퐸
  • 58. Let’s compute the 푥2 value. OR Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = 횺 (푂 − 퐸)2 퐸 푥2 = (푂 − 퐸)2 퐸 + (푂 − 퐸)2 퐸 + (푂 − 퐸)2 퐸
  • 59. Let’s compute the 푥2 value. Expected 22 22 22 Observed 31 25 10 OR 푥2 = Professor Cauforek Professor Kerr Professor Rector (푂 − 퐸)2 퐸 + (푂 − 퐸)2 퐸 + (푂 − 퐸)2 퐸 푥2 = 횺 (푂 − 퐸)2 퐸
  • 60. Let’s input each professor’s data into the equation.
  • 61. Let’s input each professor’s data into the equation. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10
  • 62. Let’s input each professor’s data into the equation. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = (ퟑퟏ − 퐸)2 퐸 + (푂 − 퐸)2 퐸 + (푂 − 퐸)2 퐸
  • 63. Let’s input each professor’s data into the equation. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = (31 − ퟐퟐ)2 퐸 + (푂 − 퐸)2 퐸 + (푂 − 퐸)2 퐸
  • 64. Let’s input each professor’s data into the equation. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = (31 − 22)2 ퟐퟐ + (푂 − 퐸)2 퐸 + (푂 − 퐸)2 퐸
  • 65. Let’s input each professor’s data into the equation. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = (31 − 22)2 22 + (ퟐퟓ − 퐸)2 퐸 + (푂 − 퐸)2 퐸
  • 66. Let’s input each professor’s data into the equation. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = (31 − 22)2 22 + (25 − ퟐퟐ)2 ퟐퟐ + (푂 − 퐸)2 퐸
  • 67. Let’s input each professor’s data into the equation. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = (31 − 22)2 22 + (25 − 22)2 22 + (ퟏퟎ − 퐸)2 퐸
  • 68. Let’s input each professor’s data into the equation. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = (31 − 22)2 22 + (25 − 22)2 22 + (10 − ퟐퟐ)2 ퟐퟐ
  • 69. Now for the calculation:
  • 70. Now for the calculation: 푥2 = (31 − 22)2 22 + (25 − 22)2 22 + (10 − 22)2 22
  • 71. Now for the calculation: 푥2 = (ퟗ)2 22 + (25 − 22)2 22 + (10 − 22)2 22
  • 72. Now for the calculation: 푥2 = ퟖퟏ 22 + (25 − 22)2 22 + (10 − 22)2 22
  • 73. Now for the calculation: 푥2 = 81 22 + (ퟑ)2 22 + (10 − 22)2 22
  • 74. Now for the calculation: 푥2 = 81 22 + ퟗ 22 + (10 − 22)2 22
  • 75. Now for the calculation: 푥2 = 81 22 + ퟗ 22 + (−ퟏퟐ)2 22
  • 76. Now for the calculation: 푥2 = 81 22 + 9 22 + ퟏퟒퟒ 22
  • 77. Convert the fractions into decimals: 푥2 = 81 22 + 9 22 + ퟏퟒퟒ 22
  • 78. Convert the fractions into decimals: 푥2 = 81 22 + 9 22 + 144 22
  • 79. Convert the fractions into decimals: 푥2 = ퟑ. ퟕ + 9 22 + 144 22
  • 80. Convert the fractions into decimals: 푥2 = 3.7 + ퟎ. ퟒ + 144 22
  • 81. Convert the fractions into decimals: 푥2 = 3.7 + 0.4 + ퟔ. ퟓ
  • 82. Sum the terms: 푥2 = 3.7 + 0.4 + 6.5
  • 83. Sum the terms: 푥2 = 10.6
  • 84. As a contrasting example note what the 푥2 value would be if the observed and expected values were more similar: Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 24 22 20
  • 85. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 24 22 20 푥2 = (푂 − 퐸)2 퐸 + (푂 − 퐸)2 퐸 + (푂 − 퐸)2 퐸
  • 86. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 24 22 20 푥2 = (푂 − ퟐퟐ)2 ퟐퟐ + (푂 − ퟐퟐ)2 ퟐퟐ + (푂 − ퟐퟐ)2 ퟐퟐ
  • 87. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 24 22 20 푥2 = (ퟐퟒ − 22)2 22 + (ퟐퟐ − 22)2 22 + (ퟐퟎ − 22)2 22
  • 88. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 24 22 20 푥2 = (ퟐ)2 22 + (ퟎ)2 22 + (−ퟐ)2 22
  • 89. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 24 22 20 푥2 = ퟒ 22 + ퟎ 22 + ퟒ 22
  • 90. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 24 22 20 푥2 = ퟎ. ퟐ + ퟎ. ퟎ + ퟎ. ퟐ
  • 91. Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 24 22 20 푥2 = ퟎ. ퟒ
  • 92. So the moral of the story is that the closer the expected and observed values are to one another, the smaller the Chi-square value or the greater the goodness of fit (as seen below).
  • 93. So the moral of the story is that the closer the expected and observed values are to one another, the smaller the Chi-square value or the greater the goodness of fit (as seen below). Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10
  • 94. So the moral of the story is that the closer the expected and observed values are to one another, the smaller the Chi-square value or the greater the goodness of fit (as seen below). Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = ퟏퟎ. ퟔ
  • 95. On the other hand, the farther the expected and observed values are from one another the smaller the Chi-square value or the greater the goodness of fit (as seen below).
  • 96. On the other hand, the farther the expected and observed values are from one another the smaller the Chi-square value or the greater the goodness of fit (as seen below). Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10
  • 97. On the other hand, the farther the expected and observed values are from one another the smaller the Chi-square value or the greater the goodness of fit (as seen below). Professor Cauforek Professor Kerr Professor Rector Expected 22 22 22 Observed 31 25 10 푥2 = ퟏퟎ. ퟔ
  • 98. Now we determine if a 푥2 of 10.6 exceeds the critical 푥2 for terms.
  • 99. To calculate the 푥2 critical we first must determine the degrees of freedom as well as set the probability level.
  • 100. To calculate the 푥2 critical we first must determine the degrees of freedom as well as set the probability level. The probability or alpha level means the probability of a type 1 error we are willing to live with (i.e., this is the probability of being wrong when we reject the null hypothesis).
  • 101. To calculate the 푥2 critical we first must determine the degrees of freedom as well as set the probability level. The probability or alpha level means the probability of a type 1 error we are willing to live with (i.e., this is the probability of being wrong when we reject the null hypothesis). Generally this value is 0.5 which is like saying we are willing to be wrong 5 out of 100 times (0.05) before we will reject the null-hypothesis.
  • 102. Degrees of Freedom are calculated by taking the number of groups and subtracting them by 1. (Three groups minus 1 = 2)
  • 103. We now have all of the information we need to determine the critical 푥2.
  • 104. We now have all of the information we need to determine the critical 푥2. We go to the Chi-Square Distribution Table and locate the degrees of freedom.
  • 105. We now have all of the information we need to determine the critical 푥2. We go to the Chi-Square Distribution Table and locate the degrees of freedom. df 0.100 0.050 0.025 1 2.71 3.84 5.02 2 4.61 5.99 7.38 3 6.25 7.82 9.35 4 7.78 9.49 11.14 5 9.24 11.07 12.83 6 10.64 12.59 14.45 7 12.02 14.07 16.10 8 13.36 15.51 17.54 9 14.68 16.92 19.20 … … … …
  • 106. We now have all of the information we need to determine the critical 푥2. We go to the Chi-Square Distribution Table and locate the degrees of freedom. And then we locate the probability or alpha level: df 0.100 0.050 0.025 1 2.71 3.84 5.02 2 4.61 5.99 7.38 3 6.25 7.82 9.35 4 7.78 9.49 11.14 5 9.24 11.07 12.83 6 10.64 12.59 14.45 7 12.02 14.07 16.10 8 13.36 15.51 17.54 9 14.68 16.92 19.20 … … … …
  • 107. We now have all of the information we need to determine the critical 푥2. We go to the Chi-Square Distribution Table and locate the degrees of freedom. And then we locate the probability or alpha level: df 0.100 0.050 0.025 1 2.71 3.84 5.02 2 4.61 5.99 7.38 3 6.25 7.82 9.35 4 7.78 9.49 11.14 5 9.24 11.07 12.83 6 10.64 12.59 14.45 7 12.02 14.07 16.10 8 13.36 15.51 17.54 9 14.68 16.92 19.20 … … … …
  • 108. We now have all of the information we need to determine the critical 푥2. We go to the Chi-Square Distribution Table and locate the degrees of freedom. And then we locate the probability or alpha level: df 0.100 0.050 0.025 1 2.71 3.84 5.02 2 4.61 5.99 7.38 3 6.25 7.82 9.35 4 7.78 9.49 11.14 5 9.24 11.07 12.83 6 10.64 12.59 14.45 7 12.02 14.07 16.10 8 13.36 15.51 17.54 9 14.68 16.92 19.20 … … … … Where these two values intersect in the table we find the critical 푥2.
  • 109. We now have all of the information we need to determine the critical 푥2. We go to the Chi-Square Distribution Table and locate the degrees of freedom. And then we locate the probability or alpha level: df 0.100 0.050 0.025 1 2.71 3.84 5.02 2 4.61 5.99 7.38 3 6.25 7.82 9.35 4 7.78 9.49 11.14 5 9.24 11.07 12.83 6 10.64 12.59 14.45 7 12.02 14.07 16.10 8 13.36 15.51 17.54 9 14.68 16.92 19.20 … … … … Where these two values intersect in the table we find the critical 푥2.
  • 110. We now have all of the information we need to determine the critical 푥2. We go to the Chi-Square Distribution Table and locate the degrees of freedom. And then we locate the probability or alpha level: df 0.100 0.050 0.025 1 2.71 3.84 5.02 2 4.61 5.99 7.38 3 6.25 7.82 9.35 4 7.78 9.49 11.14 5 9.24 11.07 12.83 6 10.64 12.59 14.45 7 12.02 14.07 16.10 8 13.36 15.51 17.54 9 14.68 16.92 19.20 … … … … Where these two values intersect in the table we find the critical 푥2.
  • 111. Since the chi-square goodness of fit value (10.6) exceeds the critical 푥2 (5.99) we will reject the null hypothesis:
  • 112. Since the chi-square goodness of fit value (10.6) exceeds the critical 푥2 (5.99) we will reject the null hypothesis: There is no significant difference between the expected and the observed number of students enrolled in three stats professors’ classes.
  • 113. Since the chi-square goodness of fit value (10.6) exceeds the critical 푥2 (5.99) we will reject the null hypothesis: There is no significant difference between the expected and the observed number of students enrolled in three stats professors’ classes.
  • 114. Since the chi-square goodness of fit value (10.6) exceeds the critical 푥2 (5.99) we will reject the null hypothesis: There is no significant difference between the expected and the observed number of students enrolled in three stats professors’ classes. There actually is a significant difference.
  • 116. In summary, Questions of goodness of fit juxtapose observed patterns against hypothesized to test overall and specific differences among them.
  • 117. In summary, Questions of goodness of fit juxtapose observed patterns against hypothesized to test overall and specific differences among them. Observed Hypothesized Difference