Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Chi-square Goodness of Fit Test - Lecture Notes | PSYC 201, Study notes of Psychology

Material Type: Notes; Class: PSYCH RESEARCH I; Subject: Psychology; University: Radford University; Term: Unknown 1989;

Typology: Study notes

Pre 2010

Uploaded on 02/12/2009

koofers-user-pf9-1
koofers-user-pf9-1 🇺🇸

4.5

(2)

10 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chi-square Goodness of Fit Test
The chi-square test is designed to test differences whether one frequency is different
from another frequency. The chi-square test is designed for use with data on a nominal
scale, when all you know about people is the category they're in.
The chi-square test gives you a way of comparing the results that you should get if the
number of passengers has no effect on the frequency of stopping to the results you
actually got.
For example:
Having a coin come up heads or tails is a variable on a nominal scale. Heads is a
different category from tails.
If we flipped a coin 20 times how many times should it come up tails? [10]
Say the actual number of tails was 18. Is this number far enough away from 10 for you
to be suspicious that the coin was rigged. The chi-square test tests whether the odds
are less than 5% of getting 18 tails when you know that 10 tails is what you would
expect to get.
What we're going to do is to calculate a value for the chi-square statistic and then
compare it to a value for chi-square that we can look up in the back of the stats book.
That number will tell you how large the calculated value has to be in order to be
confident that the result was not just due to chance.
To calculate the value for chi-square for the coin data you need to know what
frequencies you would expect to get. 10 heads and 10 tails. You know that the actual
values were 2 heads and 18 tails.
To get chi-square:
1. For every possible outcome, subtract the expected frequency from the
observed, or actual, frequency.
2 - 10 = -8
18 - 10 = 8
2. Now square each of these differences:
64
64
3. Divide each of these squared differences by the original expected frequency
for that cell:
pf3
pf4
pf5

Partial preview of the text

Download Chi-square Goodness of Fit Test - Lecture Notes | PSYC 201 and more Study notes Psychology in PDF only on Docsity!

Chi-square Goodness of Fit Test

The chi-square test is designed to test differences whether one frequency is different from another frequency. The chi-square test is designed for use with data on a nominal scale, when all you know about people is the category they're in.

The chi-square test gives you a way of comparing the results that you should get if the number of passengers has no effect on the frequency of stopping to the results you actually got.

For example :

Having a coin come up heads or tails is a variable on a nominal scale. Heads is a different category from tails.

If we flipped a coin 20 times how many times should it come up tails? [10]

Say the actual number of tails was 18. Is this number far enough away from 10 for you to be suspicious that the coin was rigged. The chi-square test tests whether the odds are less than 5% of getting 18 tails when you know that 10 tails is what you would expect to get.

What we're going to do is to calculate a value for the chi-square statistic and then compare it to a value for chi-square that we can look up in the back of the stats book. That number will tell you how large the calculated value has to be in order to be confident that the result was not just due to chance.

To calculate the value for chi-square for the coin data you need to know what frequencies you would expect to get. 10 heads and 10 tails. You know that the actual values were 2 heads and 18 tails.

To get chi-square:

  1. For every possible outcome, subtract the expected frequency from the observed, or actual, frequency.

2 - 10 = - 18 - 10 = 8

  1. Now square each of these differences:

64 64

  1. Divide each of these squared differences by the original expected frequency for that cell:
  1. Add these numbers up. This gives you the value for chi-square. [12.8]

The equation for calculating Chi-square is thus…

2

The steps for calculating in table for are…

f(o) f(e) f(o) - f(e) [f(o) - f(e)]^2 [f(o) - f(e)]^2 / f(e)

Heads 2 10 -8 64 6.

Tails 18 10 +8 64 6.

Χ^2 = 12.

To get the critical value for Chi-square:

  1. You need to know the number of degrees of freedom. This is equal to number of possible categories minus one. [2-1 = 1]
  2. You need to know which column to look the value up in. If you are going to use 5% as the odds of the frequencies being different by chance, look the number up in the .05 column.

[3,48]

In this example, the number for chi-square that we calculated was larger than the comparison number we looked up in the book. This tells us that there is less a 5% chance that the percentages are different by chance. So you might decide that the coin is rigged.

APA format for writing the conclusion statement is:

The frequencies of the “tails” option in the coin flips is significantly greater from what one would expect to get by chance, Χ^2 (1, N = 20) = 12.8, p < .05.

A Chi-square test when there is one variable is often referred to as a Goodness of Fit Test.

bottom left: (30)(25) / 50 = 750/50 = 15

bottom right: (30)(25) / 50 = 750/50 = 15

  • Once you have the expected frequencies, the calculation for chi-square is exactly the same except that you have four rows in the calculations instead of two.

f(o) - f(e) [f(o) - f(e)]^2 [f(o) - f(e)]^2 / f(e)

Stop – no pass 5 - 10 = -5 25 2. Stop -- pass 5 - 10 = 5 25 2. No stop – no pass 20 - 15 = 5 25 1. No Stop -- pass 10 - 15 = -5 25 1.


You compare this observed value for chi-square against a comparison value you look up in the chi-square table.

You still use the .05 column because we're using 5% as the odds we're using to make our decision. The number of degrees of freedom to use is found from the following equation:

df = (# of rows - 1)(# of columns - 1)

In this case we have (2-1)(2-1) = (1)(1) = 1, giving us a comparison value of 3.84.

We can say that the percentages found in the first column are significantly different from the percentages found in the second column.

Drivers on a cell phone are significantly less likely to stop at a stop sign than drivers not talking on a cell phone, Χ^2 (1, N = 50) = 8.34, p < .05.

Chi-Square Practice Problems

For each of the problems below, …

a. Please state both the null and alternative hypotheses for this question. b. Provide the decision rule for making this decision. Use an alpha level of .05. c. Show all of the work necessary to calculate the appropriate statistic. d. What conclusion are you allowed to draw? Write a conclusions sentence in APA format (i.e., it includes the appropriate statistical information).

  1. From Thorne (1989): At a state university, the student population is approximately one- third male and two-thirds female. Over a two-day period the gender of each student entering the student union is recorded, with the following results: males, 452; females,
    1. Determine whether males and females are as likely to enter the union as would be predicted on the basis of their percentage in the student population.
  2. A chimpanzee was trained to make same-different judgments about pairs of stimuli. For pictures of objects, the animal was correct on 23 out of 24 trials. Did the chimp perform significantly better than chance?
  3. From Sprinthall (1990). A researcher is interested in whether or not a significant trend exists regarding the popularity of certain work shifts among police officers. A random sample of 60 police officers is selected from a large metropolitan police force. The officers are asked to indicate which of three work shifts they preferred. The results show that 40 officers prefer the first shift, 10 prefer the second shirt, and 10 prefer the third shift. Do the results deviate significantly from what would be expected due to chance?
  4. A professor wants to determine whether her department should keep the requirement of college algebra as a prerequisite for an Introductory Statistics course. Accordingly, she allows some students to register for the course on a pass-fail basis regardless of whether or not they have had the prerequisite. Of the 70 students in the class, 40 have had algebra and 30 have not. At the end of the semester, the professor compares the number of students passing or failing the class with whether or not they had algebra. The results are presented blow. Are students more likely to pass the course if they have taken college algebra?

Pass Fail

Algebra | 34 | 6 | |_______|_______| No algebra | 12 | 18 | |_______|_______|

  1. In a study of intraspecific aggression (aggression directed toward other members of the

Decision rule: If Χ^2 ≥ +3.84 or if Χ^2 ≤ -3.84, reject HO.

Conclusion sentence: Students are more likely to pass the course if they have taken college algebra, Χ^2 (1, N = 70) = 15.39, p < .05.

  1. HO: The two species do not differ significantly in terms of intraspecific aggression. H1: The two species differ significantly in terms of intraspecific aggression.

Decision rule: If Χ^2 ≥ +3.84 or if Χ^2 ≤ -3.84, reject HO.

Conclusion sentence: The two species differ significantly in terms of intraspecific aggression, Χ^2 (1, N = 48) = 10.02, p < .05.

  1. HO: The antipsychotic is not significantly more effective in preventing relapse than the placebo. H1: The antipsychotic is significantly more effective in preventing relapse than the placebo.

Decision rule: If Χ^2 ≥ +3.84 or if Χ^2 ≤ -3.84, reject HO.

Conclusion sentence: The antipsychotic is significantly more effective in preventing relapse than the placebo, Χ^2 (1, N = 3195) = 364.32, p < .05.