One categorical variable

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

6 Terms

1
New cards

ONE CATEGORICAL VARIABLE

2
New cards

What does the Pearson chi-square goodness-of-fit test evaluate?  (chisq.test() or goodnessOfFitTest())

It tests whether observed frequencies match a specified probability distribution.

  • H₀: observed data are consistent with the specified distribution

  • H₁: observed data are not consistent with the distribution

Typical use-case: are all levels of a categorical variable equally likely?

3
New cards

What are the null and alternative hypotheses?

  • H₀: all class probabilities are equal

  • H₁: not all class probabilities are equal

4
New cards

What is the chi-square test statistic, and how are degrees of freedom calculated?

O = observed frequency

E = expected frequency

  • Larger X² values correspond to a lower probability of H₀ being true

  • Degrees of freedom: k − 1

    • where k is the number of categories (levels of the categorical variable)

*exact rejection region depends on degrees of freedom

<p><strong>O</strong> = observed frequency</p><p><strong>E</strong> = expected frequency</p><ul><li><p>Larger X² values correspond to a lower probability of H₀ being true</p></li><li><p>Degrees of freedom: <strong>k − 1</strong></p><ul><li><p>where k is the number of categories (levels of the categorical variable)</p></li></ul></li></ul><p></p><p>*<span>exact rejection region depends on degrees of freedom</span></p>
5
New cards

What is Cohen’s W, and how is it interpreted (3)? - Effect size

Cohen’s W measures the size of the deviation from the expected distribution:

  • 0.10 = small effect

  • 0.30 = medium effect

  • 0.50 = large effect

*Larger values correspond to a larger deviation from the specified probability distribution under H0

6
New cards

What are the 2 assumptions of the chi-square goodness-of-fit test?

  • Expected frequencies are all at least 5 in each category

    • in case of violation: use the exact goodness of fit test

  • Observations are independent