Video Icons Click on the following icons throughout the presentation to take you to a video
Chi-Square Distributions
Chi-Square Test
RECAP
RECAP
The X 2 Goodness of Fit Test
The X 2 Goodness of Fit Test
The X 2 Goodness of Fit Test The chi-square test for goodness-of-fit uses frequency data from a sample to test hypotheses about the shape or proportions of a population. Each individual in the sample is classified into one category on the scale of measurement. The data, called observed frequencies , simply count how many individuals from the sample are in each category.
The X 2 Goodness of Fit Test The null hypothesis specifies the proportion of the population that should be in each category. The proportions from the null hypothesis are used to compute expected frequencies that describe how the sample would appear if it were in perfect agreement with the null hypothesis.
The X 2 Goodness of Fit Test
The X 2 Goodness of Fit Test
The X 2 Goodness of Fit Test
Understanding the Test Rock-Paper-Scissors
Understanding the Test Rock-Paper-Scissors ROCK PAPER SCISSORS 66 39 14 How would we test whether all of these categories are equally likely?
Understanding the Test Hypothesis Testing State Hypotheses Calculate a statistic, based on your sample data Create a distribution of this statistic, as it would be observed if the null hypothesis were true Measure how extreme your test statistic from (2) is, as compared to the distribution generated in (3) test statistic
Hypotheses Let p i denote the proportion in the i th category. H : All p i s are the same H a : At least one p i differs from the others OR H : Every p i = 1/3 H a : At least one p i ≠ 1/3 Understanding the Test
Test Statistic Why can’t we use the familiar formula to get the test statistic? More than one sample statistic More than one null value We need something a bit more complicated… Understanding the Test
Observed Counts The observed counts are the actual counts observed in the study ROCK PAPER SCISSORS Observed 66 39 14 Example
Expected Counts The expected counts are the expected counts if the null hypothesis were true For each cell, the expected count is the sample size (n) times the null proportion, p i Example
Rock-Paper-Scissors ROCK PAPER SCISSORS Observed 66 39 14 Expected Example
Rock-Paper-Scissors ROCK PAPER SCISSORS Observed 66 39 14 Expected 39.7 39.7 39.7 Example
Chi-Square Statistic A test statistic is one number, computed from the data, which we can use to assess the null hypothesis The chi-square statistic is a test statistic for categorical variables: Example
What Next? We have a test statistic. What else do we need to perform the hypothesis test? A distribution of the test statistic assuming H is true How do we get this? Distributional Theory Example
To calculate the p-value for a chi-square test, we always look in the upper tail Why? Values of the χ 2 are always positive The higher the χ 2 statistic is, the farther the observed counts are from the expected counts, and the stronger the evidence against the null Upper-Tail P-Values
The X 2 Goodness of Fit Test
The X 2 Goodness of Fit Test
The X 2 Goodness of Fit Test
The X 2 Goodness of Fit Test
The X 2 Goodness of Fit Test
The X 2 Goodness of Fit Test
Summary
Example – Starter Copy and complete. Show all steps
GDC
Solution
Exercise
ANSWERS
Exercise
ANSWERS
Exercise
ANSWERS
Example
Stating the Null and Alternative Hypothesis
Solution
Solution
Limitations
Example
Solution
Test Your Understanding
Exercise
Solution
Exercise
Solution
The X 2 Goodness of Fit Test
Example
STARTER - Test Your Understanding
Solution
Example
Test Your Understanding
ANSWERS
IB Exam Questions
Solution
GOF: Normal Distribution
GOF: Normal Distribution
GOF: Normal Distribution
GOF: Normal Distribution
GOF: Normal Distribution
GDC
ANSWERS
Exercise
Exercise
Exercise
Answers
IB Exam Questions
Solution
IB Exam Questions
Solution
IB Exam Questions
Solution
Solution
GOF: Binomial Distribution A binomial distribution can be thought of as simply the probability of a SUCCESS or FAILURE outcome in an experiment or survey that is repeated multiple times. The binomial is a type of distribution that has two possible outcomes (the prefix “ bi ” means two, or twice). For example, a coin toss has only two possible outcomes: heads or tails and taking a test could have two possible outcomes: pass or fail.