Maths-AI----Goodness-of-Fit.pptx goodness

MichaelZardalian 5 views 112 slides Oct 29, 2025
Slide 1
Slide 1 of 112
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71
Slide 72
72
Slide 73
73
Slide 74
74
Slide 75
75
Slide 76
76
Slide 77
77
Slide 78
78
Slide 79
79
Slide 80
80
Slide 81
81
Slide 82
82
Slide 83
83
Slide 84
84
Slide 85
85
Slide 86
86
Slide 87
87
Slide 88
88
Slide 89
89
Slide 90
90
Slide 91
91
Slide 92
92
Slide 93
93
Slide 94
94
Slide 95
95
Slide 96
96
Slide 97
97
Slide 98
98
Slide 99
99
Slide 100
100
Slide 101
101
Slide 102
102
Slide 103
103
Slide 104
104
Slide 105
105
Slide 106
106
Slide 107
107
Slide 108
108
Slide 109
109
Slide 110
110
Slide 111
111
Slide 112
112

About This Presentation

Goodness of fit


Slide Content

STARTER https://blogs.sas.com/content/iml/2017/02/20/proportion-of-colors-mandms.html

STARTER

Solution

Maths AI SL Chi Square Goodness of Fit Test

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.

GOF: Binomial Distribution

Exercise

GOF: Binomial Distribution

GDC

GDC

Answers

Example

ANSWERS

ANSWERS

Test Your Understanding

ANSWERS

Test Your Understanding

ANSWERS

Exercise

ANSWERS

ANSWERS

IB Exam Questions

Solution

IB Exam Questions

Solution

IB Exam Questions page 135

IB Exam Questions

Solution

Solution

IB Exam Questions page 106

IB Exam Questions

Solution
Tags