• IB
  • IB Docs (2) Team
    Logout
  • Maths
  • Biology
  • Chemistry
  • Physics
  • Combined Science
  • English Language
  • Geography
  • Other Subjects
GCSE Maths
Edexcel Topic QuestionsRevision NotesPast PapersPast Papers Questions
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
GCSE Chemistry
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Gateway Topic QuestionsRevision NotesPast Papers
GCSE Physics
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsRevision NotesPast Papers
OCR Gateway Topic QuestionsRevision NotesPast Papers
GCSE Combined Science
Edexcel Combined: Biology Topic QuestionsRevision NotesPast Papers
Edexcel Combined: Chemistry Topic QuestionsRevision 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
OCR Gateway Combined: Chemistry Revision Notes
OCR Gateway Combined: Physics Revision Notes
GCSE English Language
AQA Revision NotesPractice PapersPast Papers
Edexcel Past Papers
OCR Past Papers
GCSE Geography
AQA Topic QuestionsRevision Notes
Edexcel Topic Questions
GCSE Other Subjects
AQA English LiteratureBusinessComputer ScienceEconomicsFurther MathsGeographyHistoryPsychologySociologyStatistics
Edexcel English LiteratureBusinessComputer ScienceGeographyHistoryPsychologyStatistics
OCR English LiteratureBusinessComputer ScienceEconomicsPsychology
OCR Gateway GeographyHistory
  • Maths
  • Biology
  • Chemistry
  • Physics
  • Double Science
  • Economics
  • English Language
  • Geography
  • Other 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 2020-2022 Topic QuestionsRevision NotesPast Papers
CIE 2023-2025 Topic QuestionsRevision NotesPast Papers
IGCSE Chemistry
Edexcel Topic QuestionsRevision NotesPast Papers
CIE 2020-2022 Topic QuestionsRevision NotesPast Papers
CIE 2023-2025 Topic QuestionsRevision NotesPast Papers
IGCSE Physics
Edexcel Topic QuestionsRevision NotesPast Papers
CIE 2020-2022 Topic QuestionsRevision NotesPast Papers
CIE 2023-2025 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 Economics
CIE Topic QuestionsRevision NotesPast Papers
IGCSE English Language
CIE Revision NotesPractice PapersPast Papers
Edexcel Past Papers
IGCSE Geography
CIE Revision NotesTopic QuestionsPast Papers
Edexcel Topic QuestionsRevision NotesPast Papers
IGCSE Other Subjects
CIE Additional MathsEnglish LiteratureBusinessComputer ScienceHistorySociology
Edexcel English LiteratureBusinessComputer ScienceHistoryFurther Maths
  • Maths
  • Biology
  • Chemistry
  • Physics
  • English Language
  • Other 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 Topic QuestionsRevision 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
OCR Revision Notes
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 BusinessComputer ScienceEconomicsEnglish LiteratureFurther MathsGeographyHistoryPsychologySociology
Edexcel BusinessEconomicsEnglish LiteratureFurther MathsGeographyHistoryPsychology
OCR BusinessComputer ScienceEconomicsEnglish LiteratureFurther Maths AGeographyHistoryPsychologySociology
CIE Further Maths
  • Maths
  • Biology
  • Chemistry
  • Physics
  • English Language
  • Economics
  • Further Maths
  • Psychology
  • Other 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 2Decision 1
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 Economics
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Topic QuestionsPast Papers
OCR Past Papers
CIE Past Papers
A Level Further Maths
Edexcel Topic QuestionsRevision NotesPast Papers
AQA Past Papers
OCR Past Papers
CIE Past Papers
Edexcel IAL Past Papers
A Level Psychology
AQA Topic QuestionsRevision NotesPast Papers
CIE Past Papers
Edexcel Past Papers
OCR Past Papers
Edexcel IAL Past Papers
A Level Other Subjects
AQA BusinessComputer ScienceEconomicsEnglish LiteratureGeographyHistorySociology
CIE BusinessComputer ScienceEconomicsEnglish LiteratureGeographySociology
Edexcel BusinessEconomics AEnglish LiteratureGeographyHistory
OCR BusinessComputer ScienceEconomicsEnglish LiteratureGeographyHistorySociology
Edexcel IAL English LiteratureGeography
CIE IAL History
  • Biology
  • Chemistry
  • Physics
  • Other Subjects
O Level Biology
CIE Topic QuestionsPast Papers
O Level Chemistry
CIE Topic QuestionsPast Papers
O Level Physics
CIE Topic QuestionsPast Papers
O Level Other Subjects
CIE Additional MathsMaths D
  • Maths
  • Biology
  • Chemistry
  • Physics
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
  • Maths
  • Biology
  • Chemistry
  • Physics
  • Economics
IB Maths
Maths: AA HL Topic QuestionsRevision NotesPractice Papers
Maths: AI HL Topic QuestionsRevision NotesPractice Papers
Maths: AA SL Topic QuestionsRevision NotesPractice Papers
Maths: AI SL Topic QuestionsRevision NotesPractice Papers
IB Biology
Biology: SL Topic QuestionsRevision NotesPractice Papers
Biology: HL Topic QuestionsRevision NotesPractice Papers
IB Chemistry
Chemistry: SL Topic QuestionsRevision NotesPractice Papers
Chemistry: HL Topic QuestionsRevision NotesPractice Papers
IB Physics
Physics: SL Topic QuestionsRevision NotesPractice Papers
Physics: HL Topic QuestionsRevision NotesPractice Papers
IB Economics
Economics: SL Revision Notes

DP IB Maths: AI SL

Revision Notes

Home / IB / Maths: AI SL / DP / Revision Notes / 4. Statistics & Probability / 4.2 Correlation & Regression / 4.2.3 Linear Regression


4.2.3 Linear Regression


Linear Regression

What is linear regression?

  • If strong linear correlation exists on a scatter diagram then the data can be modelled by a linear model
    • Drawing lines of best fit by eye is not the best method as it can be difficult to judge the best position for the line
  • The least squares regression line is the line of best fit that minimises the sum of the squares of the gap between the line and each data value
    • This is usually called the regression line of y on x
    • It can be calculated by looking at the vertical distances between the line and the data values
  • The regression line of y on x is written in the form space y equals a x plus b
  • a is the gradient of the line
    • It represents the change in y for each individual unit change in x
      • If a is positive this means y increases by a for a unit increase in x
      • If a is negative this means y decreases by |a| for a unit increase in x
  • b is the y – intercept
    • It shows the value of y when x is zero
  • You are expected to use your GDC to find the equation of the regression line
    • Enter the bivariate data and choose the model “ax + b”
    • Remember the mean point left parenthesis x with bar on top comma space y with bar on top right parenthesis will lie on the regression line

How do I use a regression line?

  • The equation of the regression line can be used to decide what type of correlation there is if there is no scatter diagram
    • If a is positive then the data set has positive correlation
    • If a is negative then the data set has negative correlation
  • The equation of the regression line can also be used to predict the value of a dependent variable (y) from an independent variable (x)
    • The equation should only be used to make predictions for y
      • Using a y on x line to predict x is not always reliable
    • Making a prediction within the range of the given data is called interpolation
      • This is usually reliable
      • The stronger the correlation the more reliable the prediction
    • Making a prediction outside of the range of the given data is called extrapolation
      • This is much less reliable
    • The prediction will be more reliable if the number of data values in the original sample set is bigger

Exam Tip

  • Once you calculate the values of a and b store then in your GDC
    • This means you can use the full display values rather than the rounded values when using the linear regression equation to predict values
    • This avoids rounding errors

Worked Example

Barry is a music teacher. For 7 students, he records the time they spend practising per week (x hours) and their score in a test (y %).

Time (x)

2

5

6

7

10

11

12

Score (y)

11

49

55

75

63

68

82

a)
Write down the equation of the regression line of y on x, giving your answer in the form y equals a x plus b where a and b are constants to be found.

4-2-3-ib-ai-sl-linear-regression-a-we-solution

b)
Give an interpretation of the value of a.

4-2-3-ib-ai-sl-linear-regression-b-we-solution

c)
Another of Barry’s students practises for 15 hours a week, estimate their score. Comment on the validity of this prediction.

4-2-3-ib-ai-sl-linear-regression-c-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
                                                                                                                      Daniel Finlay

                                                                                                                      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 Logout

                                                                                                                      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

                                                                                                                       
                                                                                                                      © IB Documents (2) Team & u/aimlesskr
                                                                                                                      IBO was not involved in the production of, and does not endorse, the resources created by Save My Exams.