Cookies

We use cookies to improve your experience on our website By continuing to browse the site you are agreeing to our use of cookies.
Our privacy policy

Save My Exams Logo
  • GCSE
  • IGCSE
  • AS
  • A Level
  • O Level
  • Pre U
  • IB
  • Login
  •  
MathsBiologyChemistryPhysicsCombined ScienceEnglish LanguageOther Subjects
GCSE > Maths
Edexcel Topic QuestionsRevision NotesPast PapersPast Papers (old spec)
AQA Topic QuestionsRevision NotesPast Papers
OCR Topic QuestionsRevision NotesPast Papers
GCSE > Biology
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Gateway Topic QuestionsRevision NotesPast Papers
CCEA Topic QuestionsPast Papers
GCSE > Chemistry
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Gateway Topic QuestionsRevision NotesPast Papers
CCEA Topic QuestionsPast Papers
GCSE > Physics
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Gateway Topic QuestionsRevision NotesPast Papers
CCEA Topic QuestionsPast Papers
GCSE > Combined Science
Edexcel Combined: Biology Revision NotesPast Papers
Edexcel Combined: Chemistry Revision NotesPast Papers
Edexcel Combined: Physics Revision NotesPast Papers
AQA Combined: Biology Topic QuestionsRevision NotesPast Papers
AQA Combined: Chemistry Topic QuestionsRevision NotesPast Papers
AQA Combined: Physics Topic QuestionsRevision NotesPast Papers
OCR Gateway Combined: Biology Topic QuestionsRevision Notes
GCSE > English Language
AQA Revision NotesPractice PapersPast Papers
Edexcel Past Papers
OCR Past Papers
GCSE > Other Subjects
AQA English LiteratureBusiness StudiesComputer ScienceEconomicsGeographyHistoryPsychologySociology
Edexcel English LiteratureBusiness StudiesComputer ScienceGeographyHistoryPsychology
OCR English LiteratureBusiness StudiesComputer ScienceEconomicsPsychology
OCR Gateway GeographyHistory
MathsBiologyChemistryPhysicsDouble ScienceEnglish LanguageOther Subjects
IGCSE > Maths
Edexcel Topic QuestionsRevision NotesPast PapersBronze-Silver-Gold Questions
CIE (Extended) Topic QuestionsRevision NotesPast Papers
CIE (Core) Topic QuestionsPast Papers
IGCSE > Biology
Edexcel Topic QuestionsRevision NotesPast Papers
CIE Topic QuestionsRevision NotesPast Papers
IGCSE > Chemistry
Edexcel Topic QuestionsRevision NotesPast Papers
CIE Topic QuestionsRevision NotesPast Papers
IGCSE > Physics
Edexcel Topic QuestionsRevision NotesPast Papers
CIE Topic QuestionsRevision NotesPast Papers
IGCSE > Double Science
Edexcel Double: Biology Topic QuestionsRevision NotesPast Papers
Edexcel Double: Chemistry Topic QuestionsRevision NotesPast Papers
Edexcel Double: Physics Topic QuestionsRevision NotesPast Papers
IGCSE > English Language
CIE Revision NotesPractice PapersPast Papers
Edexcel Past Papers
IGCSE > Other Subjects
CIE English LiteratureBusinessComputer ScienceEconomicsGeographyHistorySociology
Edexcel English LiteratureBusinessComputer ScienceGeographyHistory
MathsBiologyChemistryPhysicsEnglish LanguageOther Subjects
AS > Maths
Edexcel Pure MathsMechanicsStatistics
AQA Pure MathsMechanicsStatistics
OCR Pure MathsMechanicsStatistics
CIE Pure 1Pure 2MechanicsProbability & Statistics 1
Edexcel IAS Pure 1Pure 2MechanicsStatistics
AS > Biology
AQA Topic QuestionsRevision NotesPast Papers
OCR Revision NotesPast Papers
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Revision Notes
AS > Chemistry
Edexcel Revision Notes
AQA Topic QuestionsRevision NotesPast Papers
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Revision Notes
AS > Physics
Edexcel Revision Notes
AQA Topic QuestionsRevision NotesPast Papers
OCR Revision NotesPast Papers
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Revision Notes
AS > English Language
AQA Past Papers
Edexcel Past Papers
OCR Past Papers
AS > Other Subjects
AQA Business StudiesComputer ScienceEconomicsEnglish LiteratureGeographyHistoryPsychologySociology
Edexcel Business StudiesEconomicsEnglish LiteratureGeographyHistoryPsychology
OCR Business StudiesComputer ScienceEconomicsEnglish LiteratureGeographyHistoryPsychologySociology
MathsBiologyChemistryPhysicsEnglish LanguageOther Subjects
A Level > Maths
Edexcel Pure MathsMechanicsStatistics
AQA Pure MathsMechanicsStatistics
OCR Pure MathsMechanicsStatistics
CIE Pure 1Pure 3MechanicsProbability & Statistics 1Probability & Statistics 2
Edexcel IAL Pure 1Pure 2Pure 3Pure 4Mechanics 1Mechanics 2Statistics 1Statistics 2
A Level > Biology
Edexcel Topic QuestionsPast Papers
Edexcel A (SNAB) Revision Notes
AQA Topic QuestionsRevision NotesPast Papers
OCR Topic QuestionsRevision NotesPast PapersGold Questions
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Topic QuestionsRevision NotesPast Papers
A Level > Chemistry
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Topic QuestionsRevision NotesPast PapersGold Questions
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Topic QuestionsRevision NotesPast Papers
A Level > Physics
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Topic QuestionsRevision NotesPast Papers
CIE 2019-2021 Topic QuestionsRevision NotesPast Papers
CIE 2022-2024 Topic QuestionsRevision NotesPast Papers
Edexcel IAL Topic QuestionsRevision NotesPast Papers
A Level > English Language
AQA Past Papers
CIE Past Papers
Edexcel Past Papers
OCR Past Papers
Edexcel IAL Past Papers
A Level > Other Subjects
AQA Business StudiesComputer ScienceEconomicsEnglish LiteratureGeographyHistoryPsychologySociology
CIE BusinessComputer ScienceEconomicsEnglish LiteratureGeographyPsychologySociology
Edexcel Business StudiesEconomicsEnglish LiteratureGeographyHistoryPsychology
OCR Business StudiesComputer ScienceEconomicsEnglish LiteratureGeographyHistoryPsychologySociology
Edexcel IAL English LiteratureGeographyPsychology
CIE IAL History
BiologyChemistryPhysics
O Level > Biology
CIE Topic QuestionsPast Papers
O Level > Chemistry
CIE Topic QuestionsPast Papers
O Level > Physics
CIE Topic QuestionsPast Papers
MathsBiologyChemistryPhysics
Pre U > Maths
CIE Topic QuestionsPast Papers
Pre U > Biology
CIE Topic QuestionsPast Papers
Pre U > Chemistry
CIE Topic QuestionsPast Papers
Pre U > Physics
CIE Topic QuestionsPast Papers
MathsBiologyChemistryPhysics
IB > Maths
Maths: AA HL Topic QuestionsRevision Notes
Maths: AI HL Topic QuestionsRevision Notes
Maths: AA SL Topic QuestionsRevision NotesPractice Papers
Maths: AI SL Topic QuestionsRevision NotesPractice Papers
IB > Biology
Biology: SL Topic QuestionsRevision Notes
Biology: HL Topic QuestionsRevision Notes
IB > Chemistry
Chemistry: SL Topic QuestionsRevision Notes
Chemistry: HL Topic QuestionsRevision Notes
IB > Physics
Physics: SL Topic QuestionsRevision Notes
Physics: HL Revision Notes

Up to 33% off discounts extended!

Ace your exams with up to 33% off our Annual and Quarterly plans for a limited time only. T&Cs apply.


Ok, hide this.

IB DP Maths: AI SL

Revision Notes

Home / DP / Maths: AI SL / IB / Revision Notes / 4. Statistics & Probability / 4.7 Hypothesis Testing / 4.7.3 Goodness of Fit Test


4.7.3 Goodness of Fit Test


Chi-Squared GOF: Uniform

What is a chi-squared goodness of fit test for a uniform distribution?

  • A chi-squared (chi squared) goodness of fit test is used to test data from a sample which suggests that the population has a uniform distribution
    • This means all outcomes are equally likely

What are the steps for a chi-squared goodness of fit test for a uniform distribution?

  • STEP 1: Write the hypotheses
    • H0 : Variable X can be modelled by a uniform distribution
    • H1 : Variable X cannot be modelled by a uniform distribution
      • Make sure you clearly write what the variable is and don’t just call it X
  • STEP 2: Calculate the degree of freedom for the test
    • For k outcomes
    • Degree of freedom is nu equals k minus 1
  • STEP 3: Calculate the expected frequencies
    • Divide the total frequency N by the number of outcomes k
  • STEP 4: Enter the frequencies and the degree of freedom into your GDC
    • Enter the observed and expected frequencies as two separate lists
    • Your GDC will then give you the χ² statistic and its p-value
    • The χ² statistic is denoted as chi subscript c a l c end subscript superscript 2
  • STEP 5: Decide whether there is evidence to reject the null hypothesis
    • EITHER compare the χ² statistic with the given critical value
      • If χ² statistic > critical value then reject H0
      • If χ² statistic < critical value then accept H0
    • OR compare the p-value with the given significance level
      • If p-value < significance level then reject H0
      • If p-value > significance level then accept H0
  • STEP 6: Write your conclusion
    • If you reject H0
      • There is sufficient evidence to suggest that variable X does not follow a uniform distribution
      • Therefore this suggests that the data is not uniformly distributed
    • If you accept H0
      • There is insufficient evidence to suggest that variable X does not follow a uniform distribution
      • Therefore this suggests that the data is uniformly distributed

Worked Example

A car salesman is interested in how his sales are distributed and records his sales results over a period of six weeks. The data is shown in the table.

Week

1

2

3

4

5

6

Number of sales

15

17

11

21

14

12

A chi squared goodness of fit test is to be performed on the data at the 5% significance level to find out whether the data fits a uniform distribution.

a)
Find the expected frequency of sales for each week if the data were uniformly distributed.

4-7-3-ib-ai-sl-gof-uniform-a-we-solution

b)
Write down the null and alternative hypotheses.

4-7-3-ib-ai-sl-gof-uniform-b-we-solution

c)
Write down the number of degrees of freedom for this test.

4-7-3-ib-ai-sl-gof-uniform-c-we-solution

d)
Calculate the p-value.

4-7-3-ib-ai-sl-gof-uniform-d-we-solution

e)
State the conclusion of the test. Give a reason for your answer.

4-7-3-ib-ai-sl-gof-uniform-e-we-solution

Chi-Squared GOF: Binomial

What is a chi-squared goodness of fit test for a binomial distribution?

  • A chi-squared (chi squared) goodness of fit test is used to test data from a sample suggesting that the population has a binomial distribution
    • You will be given the value of p for the binomial distribution

What are the steps for a chi-squared goodness of fit test for a binomial distribution?

  • STEP 1: Write the hypotheses
    • H0 : Variable X can be modelled by the binomial distribution straight B left parenthesis n comma space p right parenthesis
    • H1 : Variable X cannot be modelled by the binomial distribution straight B left parenthesis n comma space p right parenthesis
      • Make sure you clearly write what the variable is and don’t just call it X
      • State the values of n and p clearly
  • STEP 2: Calculate the degrees of freedom for the test
    • For k outcomes
    • Degree of freedom is nu equals k minus 1
  • STEP 3: Calculate the expected frequencies
    • Find the probability of the outcome using the binomial distribution straight P left parenthesis X equals x right parenthesis
    • Multiply the probability by the total frequency straight P left parenthesis X equals x right parenthesis cross times N
  • STEP 4: Enter the frequencies and the degree of freedom into your GDC
    • Enter the observed and expected frequencies as two separate lists
    • Your GDC will then give you the χ² statistic and its p-value
    • The χ² statistic is denoted as chi subscript c a l c end subscript superscript 2
  • STEP 5: Decide whether there is evidence to reject the null hypothesis
    • EITHER compare the χ² statistic with the given critical value
      • If χ² statistic > critical value then reject H0
      • If χ² statistic < critical value then accept H0
    • OR compare the p-value with the given significance level
      • If p-value < significance level then reject H0
      • If p-value > significance level then accept H0
  • STEP 6: Write your conclusion
    • If you reject H0
      • There is sufficient evidence to suggest that variable X does not follow the binomial distribution straight B left parenthesis n comma space p right parenthesis
      • Therefore this suggests that the data does not follow straight B left parenthesis n comma space p right parenthesis
    • If you accept H0
      • There is insufficient evidence to suggest that variable X does not follow the binomial distribution straight B left parenthesis n comma space p right parenthesis
      • Therefore this suggests that the data follows straight B left parenthesis n comma space p right parenthesis

Worked Example

A stage in a video game has three boss battles. 1000 people try this stage of the video game and the number of bosses defeated by each player is recorded.

Number of bosses defeated

0

1

2

3

Frequency

490

384

111

15

A chi squared goodness of fit test at the 5% significance level is used to decide whether the number of bosses defeated can be modelled by a binomial distribution with a 20% probability of success.

a)
State the null and alternative hypotheses.

4-7-3-ib-ai-sl-gof-binomial-a-we-solution

b)
Assuming the binomial distribution holds, find the expected number of people that would defeat exactly one boss.

t9ph9q9z_4-7-3-ib-ai-sl-gof-binomial-b-we-solution

c)
Calculate the p-value for the test.

3sGACCT3_4-7-3-ib-ai-sl-gof-binomial-c-we-solution

d)
State the conclusion of the test. Give a reason for your answer.opxxE5_K_4-7-3-ib-ai-sl-gof-binomial-d-we-solution

Chi-Squared GOF: Normal

What is a chi-squared goodness of fit test for a normal distribution?

  • A chi-squared (chi squared) goodness of fit test is used to test data from a sample suggesting that the population has a normal distribution
    • You will be given the value of μ and σ for the normal distribution

What are the steps for a chi-squared goodness of fit test for a normal distribution?

·     STEP 1: Write the hypotheses

    • H0 : Variable X can be modelled by the normal distribution straight N left parenthesis mu comma space sigma squared right parenthesis
    • H1 : Variable X cannot be modelled by the normal distribution straight N left parenthesis mu comma space sigma squared right parenthesis
      •  Make sure you clearly write what the variable is and don’t just call it X
      • State the values of μ and σ clearly

  • STEP 2: Calculate the degrees of freedom for the test
    • For k outcomes
    • Degree of freedom is nu equals k minus 1
  • STEP 3: Calculate the expected frequencies
    •  Find the probability of the outcome using the normal distribution straight P left parenthesis a less than X less than b right parenthesis
      •  Beware of unbounded inequalities straight P left parenthesis X less than b right parenthesis or straight P left parenthesis X greater than a right parenthesis
    •  Multiply the probability by the total frequency straight P left parenthesis a less than X less than b right parenthesis cross times N
  •  STEP 4: Enter the frequencies and the degree of freedom into your GDC
    • Enter the observed and expected frequencies as two separate lists
    • Your GDC will then give you the χ² statistic and its p-value
    • The χ² statistic is denoted as chi subscript c a l c end subscript superscript 2
  • STEP 5: Decide whether there is evidence to reject the null hypothesis
    • EITHER compare the χ² statistic with the given critical value
      • If χ² statistic > critical value then reject H0
      • If χ² statistic < critical value then accept H0
    • OR compare the p-value with the given significance level
      • If p-value < significance level then reject H0
      • If p-value > significance level then accept H0
  •  STEP 6: Write your conclusion
    •  If you reject H0
      • There is sufficient evidence to suggest that variable X does not follow the normal distribution straight N left parenthesis mu comma space sigma squared right parenthesis
      • Therefore this suggests that the data does not follow straight N left parenthesis mu comma space sigma squared right parenthesis
    • If you accept H0
      •  There is insufficient evidence to suggest that variable X does not follow the normal distribution straight N left parenthesis mu comma space sigma squared right parenthesis
      •  Therefore this suggests that the data follows straight N left parenthesis mu comma space sigma squared right parenthesis

Worked Example

300 marbled ducks in Quacktown are weighed and the results are shown in the table below.

Mass (g)

Frequency

m less than 470

10

470 less or equal than m less than 520

158

520 less or equal than m less than 570

123

m greater or equal than 570

9

A chi squared goodness of fit test at the 10% significance level is used to decide whether the mass of a marbled duck can be modelled by a normal distribution with mean 520 g and standard deviation 30 g.

a)
Calculate the expected frequencies, giving your answers correct to 2 decimal places.

4-7-3-ib-ai-sl-gof-normal-a-we-solution

b)
Write down the null and alternative hypotheses.

4-7-3-ib-ai-sl-gof-normal-b-we-solution

c)
Calculate the chi squared statistic.

4-7-3-ib-ai-sl-gof-normal-c-we-solution

d)
Given that the critical value is 6.251, state the conclusion of the test. Give a reason for your answer.

4-7-3-ib-ai-sl-gof-normal-d-we-solution



  • 1. Number & Algebra
    • 1.1 Number Toolkit
      • 1.1.1 Standard Form
        • 1.1.2 Exponents & Logarithms
          • 1.1.3 Approximation & Estimation
            • 1.1.4 GDC: Solving Equations
            • 1.2 Sequences & Series
              • 1.2.1 Language of Sequences & Series
                • 1.2.2 Arithmetic Sequences & Series
                  • 1.2.3 Geometric Sequences & Series
                    • 1.2.4 Applications of Sequences & Series
                    • 1.3 Financial Applications
                      • 1.3.1 Compound Interest & Depreciation
                        • 1.3.2 Amortisation & Annuities
                      • 2. Functions
                        • 2.1 Linear Functions & Graphs
                          • 2.1.1 Equations of a Straight Line
                          • 2.2 Further Functions & Graphs
                            • 2.2.1 Functions
                              • 2.2.2 Graphing Functions
                                • 2.2.3 Properties of Graphs
                                • 2.3 Modelling with Functions
                                  • 2.3.1 Linear & Piecewise Models
                                    • 2.3.2 Quadratic & Cubic Models
                                      • 2.3.3 Exponential Models
                                        • 2.3.4 Direct & Inverse Variation
                                          • 2.3.5 Sinusoidal Models
                                            • 2.3.6 Strategy for Modelling Functions
                                          • 3. Geometry & Trigonometry
                                            • 3.1 Geometry Toolkit
                                              • 3.1.1 Coordinate Geometry
                                                • 3.1.2 Arcs & Sectors
                                                • 3.2 Geometry of 3D Shapes
                                                  • 3.2.1 3D Coordinate Geometry
                                                    • 3.2.2 Volume & Surface Area
                                                    • 3.3 Trigonometry
                                                      • 3.3.1 Pythagoras & Right-Angled Triganometry
                                                        • 3.3.2 Non Right-Angled Trigonometry
                                                          • 3.3.3 Applications of Trigonometry & Pythagoras
                                                          • 3.4 Voronoi Diagrams
                                                            • 3.4.1 Voronoi Diagrams
                                                              • 3.4.2 Toxic Waste Dump Problem
                                                            • 4. Statistics & Probability
                                                              • 4.1 Statistics Toolkit
                                                                • 4.1.1 Sampling & Data Collection
                                                                  • 4.1.2 Statistical Measures
                                                                    • 4.1.3 Frequency Tables
                                                                      • 4.1.4 Linear Transformations of Data
                                                                        • 4.1.5 Outliers
                                                                          • 4.1.6 Univariate Data
                                                                            • 4.1.7 Interpreting Data
                                                                            • 4.2 Correlation & Regression
                                                                              • 4.2.1 Bivariate data
                                                                                • 4.2.2 Correlation Coefficients
                                                                                  • 4.2.3 Linear Regression
                                                                                  • 4.3 Probability
                                                                                    • 4.3.1 Probability & Types of Events
                                                                                      • 4.3.2 Conditional Probability
                                                                                        • 4.3.3 Sample Space Diagrams
                                                                                        • 4.4 Probability Distributions
                                                                                          • 4.4.1 Discrete Probability Distributions
                                                                                            • 4.4.2 Expected Values
                                                                                            • 4.5 Binomial Distribution
                                                                                              • 4.5.1 The Binomial Distribution
                                                                                                • 4.5.2 Calculating Binomial Probabilities
                                                                                                • 4.6 Normal Distribution
                                                                                                  • 4.6.1 The Normal Distribution
                                                                                                    • 4.6.2 Calculations with Normal Distribution
                                                                                                    • 4.7 Hypothesis Testing
                                                                                                      • 4.7.1 Hypothesis Testing
                                                                                                        • 4.7.2 Chi-squared Test for Independence
                                                                                                          • 4.7.3 Goodness of Fit Test
                                                                                                            • 4.7.4 The t-test
                                                                                                          • 5. Calculus
                                                                                                            • 5.1 Differentiation
                                                                                                              • 5.1.1 Introduction to Differentiation
                                                                                                                • 5.1.2 Applications of Differentiation
                                                                                                                  • 5.1.3 Modelling with Differentiation
                                                                                                                  • 5.2 Integration
                                                                                                                    • 5.2.1 Trapezoid Rule: Numerical Integration
                                                                                                                      • 5.2.2 Introduction to Integration
                                                                                                                        • 5.2.3 Applications of Integration


                                                                                                                        DOWNLOAD PDF

                                                                                                                      Author: Daniel

                                                                                                                      Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.


                                                                                                                      Save My Exams Logo
                                                                                                                      Resources
                                                                                                                      Home Join Support

                                                                                                                      Members
                                                                                                                      Members Home Account Login

                                                                                                                      Company
                                                                                                                      About Us Contact Us Jobs Terms Privacy Facebook Twitter

                                                                                                                      Quick Links
                                                                                                                      GCSE Revision Notes IGCSE Revision Notes A Level Revision Notes Biology Chemistry Physics Maths 2022 Advance Information

                                                                                                                       
                                                                                                                      © Copyright 2015-2022 Save My Exams Ltd. All Rights Reserved.
                                                                                                                      IBO was not involved in the production of, and does not endorse, the resources created by Save My Exams.