Docsity

Test Statistic, P-values - Introduction to Statistical Methods | STAT 301, Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
26 October
Test Statistic
X2 =
∑
i=1
k(observed counti−expected counti)2
expected counti
X2 has an approximately chi-squared distribution with df = k – 1 (for k categories), assuming a
large sample size (expected counts ≥ 5 in each category)
Notation: X2 ~ χ2 (k – 1) ≡ χk - 12
The chi-squared distribution
Is positively (or right) skewed
Is always non-negative (X2 ≥ 0)
Has a shape determined by the degrees of freedom. It approaches a normal distribution
as the degrees of freedom increase.
P-values
P-values = P(χk – 12 ≥ X2)
Reject H0 if P-value < α (always true)
Here we always have a right-tailed test
P-values come from Table 8
Bounded between two values
Ex: k = 15 X2 = 24
df = 15 – 1 = 14
p-value = P(χ14
2 ≥ 24)
.045 < P(χ142 ≥ 24) < .05
p-value
∈
(.045, .05)
What if we have bivariate categorical data?
For each subject (experimental unit), two different categorical variables are collected.
2 possible questions of interest
Do populations differ based on particular categorical variable?
Does knowledge of one category provide information about the other?
Depends on how data was collected
Use contingency tables to help us answer these questions

Partial preview of the text

Download Test Statistic, P-values - Introduction to Statistical Methods | STAT 301 and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

26 October Test Statistic

X^2 = ∑

i = 1

k ( observed count

i − expected^ counti )

2

expected counti

X^2 has an approximately chi-squared distribution with df = k – 1 (for k categories), assuming a large sample size (expected counts ≥ 5 in each category) Notation: X^2 ~ χ^2 (k – 1) ≡ χk - 1^2 The chi-squared distribution Is positively (or right) skewed Is always non-negative (X^2 ≥ 0) Has a shape determined by the degrees of freedom. It approaches a normal distribution as the degrees of freedom increase. P-values P-values = P(χk – 1^2 ≥ X^2 ) Reject H 0 if P-value < α (always true) Here we always have a right-tailed test P-values come from Table 8 Bounded between two values Ex: k = 15 X^2 = 24 df = 15 – 1 = 14 p-value = P(χ 142 ≥ 24) .045 < P(χ 142 ≥ 24) <.

p-value ∈ (.045, .05)

What if we have bivariate categorical data? For each subject (experimental unit), two different categorical variables are collected. 2 possible questions of interest Do populations differ based on particular categorical variable? Does knowledge of one category provide information about the other? Depends on how data was collected Use contingency tables to help us answer these questions