Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 2 fuera de 5 páginas
Notas de lectura

Chi Squared Tests

Document preview thumbnail
Vista previa 2 fuera de 5 páginas

An intro to Chi-Squared Tests

Vista previa del contenido

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‬

Información del documento

Estudio
Subido en
7 de enero de 2025
Número de páginas
5
Escrito en
2024/2025
Tipo
Notas de lectura
Profesor(es)
Olivia podolak lewandowska
Contiene
Todas las clases
$5.71

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
32
Última venta
-



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes