100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

Chi Squared Tests

Rating
-
Sold
-
Pages
5
Uploaded on
07-01-2025
Written in
2024/2025

An intro to Chi-Squared Tests

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
January 7, 2025
Number of pages
5
Written in
2024/2025
Type
Class notes
Professor(s)
Olivia podolak lewandowska
Contains
All classes

Subjects

Content preview

Chi-Squared Tests‬


‭➔‬‭goodness-of-fit test is used for 1 independent variable‬
‭➔‬‭x‭2‬ ‬ ‭test of independence is used for 2 variables‬

‭The X‬‭2‬ ‭Goodness-of-fit Test‬
‭➔‬‭an extension of the binomial test‬
‭◆‬ ‭essentially testing if own probabilities matches expected set‬
‭➔‬‭comparing observed distribution to the expected distribution‬
‭◆‬ ‭opposed to a single observation against the expected distribution‬
‭➔‬‭tests probability of observing specific number of frequencies for 2/more categories‬
‭◆‬ ‭relative to expected frequency‬
‭◆‬ ‭tests the extent to which an observed pattern of observations (frequencies)‬
‭conforms/fits the expected pattern‬
‭●‬ ‭how well do the observed frequencies “fit” with the expected frequencies‬
‭➔‬‭Example:‬‭A gas station owner believes an equal number‬‭of customers prefer to buy gasoline on‬
‭every day of the week. A manager at the service station disagrees with the owner and claims that‬
‭the number of customers who prefer to buy gasoline on each day of the week varies. The owner‬
‭surveyed 739 customers over time to record each customer’s preferred day of the week. The data‬
‭are summarized in the table below.‬


‭Mon‬ ‭Tues‬ ‭Wed‬ ‭Thur‬ ‭Fri‬ ‭Sat‬ ‭Sun‬

‭Freq.‬ ‭103‬ ‭103‬ ‭126‬ ‭103‬ ‭111‬ ‭96‬ ‭97‬


‭-‬ ‭the expected it the number of people surveyed divided by the number of days in the week‬
‭-‬ ‭ = 105.5‬
‭➔‬‭x‬ ‭goodness-of-fit test is a non-parametric test (just‬‭adding frequencies)‬
‭2‬


‭◆‬ ‭doesn’t rely on estimating population parameters‬
‭◆‬ ‭doesn’t require‬‭typical‬‭parametric assumptions‬
‭➔‬‭x‭2‬ ‬ ‭goodness-of-fit test assumptions‬
‭◆‬ ‭the IV consists of mutually exclusive and exhaustive categories‬
‭◆‬ ‭independence of observations‬
‭●‬ ‭on observation only fits into one subject‬
‭○‬ ‭i.e. a person that comes to the gas station on friday can’t go any other day‬
‭◆‬ ‭expected frequencies for each category is 5/more‬

, ‭●‬ ‭due to the x‬‭2‬ ‭statistics being calculated using frequencies (continuous measure)‬
‭and approximates continuous variable when N is large‬
‭○‬ ‭small N = a weird chi-squared distribution‬
‭➔‬‭formula‬‭:‬‭∑(observed frequency - expected frequency)‬‭2‬ ‭/ expected frequency‬
‭◆‬ ‭used for both goodness-of-fit and test of independence‬
‭◆‬ ‭finding the difference between observed and expected because it shows how much the‬
‭observed deviates from the expected‬
‭●‬ ‭squared because would otherwise be 0‬
‭◆‬ ‭divided by the expected frequency because it standardizes the difference between‬
‭observed|observed‬
‭●‬ ‭planned a dinner party expecting 5 guests, but 3 extra people show up is different‬
‭when you plan a house party for 80 and 3 extra people show up‬
‭➔‬‭the formula could also be rewritten using probabilities‬
‭◆‬ ‭N‬‭∑(P‬‭Oi‬ ‭- P‬‭Ei‬‭)‭2‬ ‬ ‭/ P‬‭Ei‬
‭●‬ ‭P‬‭Oi‬ ‭= probabilities of observed‬
‭●‬ ‭P‬‭Ei‬ ‭= probabilities of expected‬
‭●‬ ‭N = total number of observations‬
‭➔‬‭increase N increases the X‬‭2‭,‬ increasing the likelihood‬‭of reject the H0 (null)‬
‭◆‬ ‭type 1 error‬
‭◆‬ ‭hence the need for the equivalent of an effect size for X‬‭2‬
‭➔‬‭E = N/K = 739/7 = 105.57 (*don’t round, keep up to 4 decimal places for the exam)‬
‭➔‬‭X‬‭2‬ ‭= [(103 - 105.57)‬‭2‬ ‭/ 105.57] + [(103 - 105.57)‬‭2‬ ‭/ 105.57] + [(126 - 105.57)‬‭2‬ ‭/ 105.57] +‬
‭[(103 - 105.57)‬‭2‬ ‭/ 105.57] + [(111 - 105.57)‬‭2‬ ‭/ 105.57]‬‭+ [(96 -105.57)‬‭2‬ ‭/ 105.57] [(97‬
‭-105.57)‬‭2‬ ‭/ 105.57]‬
‭◆‬ ‭= 5.98‬
‭➔‬‭the calculated score will never be a negative (if it is a negative it usually means forgot to square)‬
‭◆‬ ‭because this test is not around the mean and is one-tailed, the distribution will always be‬
‭on the positive side (still looking at whether the score falls within the 5% significance‬
‭range)‬
‭➔‬‭as number of groups being looked at increases, the critical value also increases‬
‭➔‬‭degree of freedom = k -1‬
‭◆‬ ‭k= number of groups‬
$5.33
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
sobikaaravi

Get to know the seller

Seller avatar
sobikaaravi University of Toronto
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
10 months
Number of followers
0
Documents
32
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions