SlideShare a Scribd company logo
1 of 10
Further Maths
Regression Analysis



             K McMullen 2012
Regression Analysis

The process of fitting a straight line to bivariate
data is known as linear regression
   This can be done either by:
      Calculating and plotting the least squares
      regression line
      Drawing the three median line

A regression analysis involves a range of
statistics to summarise the relationship between
two numerical variables


                                            K McMullen 2012
Regression Analysis

Included in a regression analysis:
   Scatterplot: form, direction, outliers
   Correlation coefficient: measures strength
   Regression line: models the relationship
   Interpreting slope and y-intercept
   Coefficient of determination: measures the
   predictive power of the relationship
   Residual plot: tests linearity
   Final report



                                       K McMullen 2012
Regression Analysis

We have already covered:
   Scatterplot
   Correlation coefficient (r)
   Coefficient of determination (r2)

What we will cover here:
   Regression line
   Interpreting slope and y-intercept
   Residual plots



                                        K McMullen 2012
Regression Analysis
Least Squares Regression Line (also referred to as
Regression Line)
   The least squares line is like the mean- it is a line that
   best fits the data
   The line balances out the data values on either side of
   the line
   The distance between the data value and the
   regression line is known as the residual
   The least squares line is the line where the sum of the
   squares of the residuals is the least (we take the
   squares so that the negative residuals don’t cancel out
   the positive residuals- remember that squaring a
   negative makes a positive)
                                              K McMullen 2012
Regression Analysis
The equation of the least squares regression line
is given by:




                                     K McMullen 2012
Regression Analysis
Interpreting slope: remember that the slope
indicates what happens to the DV as the IV
increases (as x increases y either increases
(positive gradient) or decreases (negative
gradient)
   Comment: “On average, the DV will
   increase/decrease by slope for every 1 increase
   in IV”
     Eg. On average, life expectancies (DV) in countries
     will decrease by 1.44years for an increase in birth
     rate (x) of one birth per 1000 people.


                                          K McMullen 2012
Regression Analysis
Interpreting intercept: the regression line gives us
the value of the y-intercept and what the DV is
when the IV is 0.
      Comment: “On average, when IV is 0 the DV is
      intercept”
        Eg. On average, the life expectancy for countries with
        a zero birth rate is 105.4 years




                                               K McMullen 2012
Regression Analysis
The residual plot: shows how far the data values are from the
regression line
    The regression line basically becomes the line x=0 and the data
    values remain the same distance away from this line (basically
    think of moving the regression line and all the data values so
    that the line is now horizontal- the data values remain the same
    distance away from the line)
    Remember:
       Residual value= data value- predicted value

If a residual plot is randomly scattered and the residual values
are close to 0 then we can confirm our assumption of a linear
relationship

Comment: “The assumption that there is a linear relationship
between IV and DV is confirmed by the residual plot”



                                                     K McMullen 2012
Regression Analysis
Extrapolation and interpolation: we use the
regression line to predict values where:
   Extrapolation: is where we predict outside the
   range of data
   Interpolation is where we predict inside the range
   of data




                                        K McMullen 2012

More Related Content

What's hot

More on slopes
More on slopesMore on slopes
More on slopes
masljr
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
Elkana Rorio
 
Scatter plots
Scatter plotsScatter plots
Scatter plots
Ms. Jones
 
Turning Multivariable Models Into Interactive Animated Simulations
Turning Multivariable Models Into Interactive Animated SimulationsTurning Multivariable Models Into Interactive Animated Simulations
Turning Multivariable Models Into Interactive Animated Simulations
Tom Loughran
 

What's hot (20)

Simple regression and correlation
Simple regression and correlationSimple regression and correlation
Simple regression and correlation
 
Simple & Multiple Regression Analysis
Simple & Multiple Regression AnalysisSimple & Multiple Regression Analysis
Simple & Multiple Regression Analysis
 
Simple linear regression project
Simple linear regression projectSimple linear regression project
Simple linear regression project
 
Regression analysis in excel
Regression analysis in excelRegression analysis in excel
Regression analysis in excel
 
Assumptions of Linear Regression - Machine Learning
Assumptions of Linear Regression - Machine LearningAssumptions of Linear Regression - Machine Learning
Assumptions of Linear Regression - Machine Learning
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
 
More on slopes
More on slopesMore on slopes
More on slopes
 
Linear regression without tears
Linear regression without tearsLinear regression without tears
Linear regression without tears
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Machine Learning Algorithm - Linear Regression
Machine Learning Algorithm - Linear RegressionMachine Learning Algorithm - Linear Regression
Machine Learning Algorithm - Linear Regression
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Regression analysis and its type
Regression analysis and its typeRegression analysis and its type
Regression analysis and its type
 
Presentation on regression analysis
Presentation on regression analysisPresentation on regression analysis
Presentation on regression analysis
 
2.4 Scatterplots, correlation, and regression
2.4 Scatterplots, correlation, and regression2.4 Scatterplots, correlation, and regression
2.4 Scatterplots, correlation, and regression
 
Regression analysis by akanksha Bali
Regression analysis by akanksha BaliRegression analysis by akanksha Bali
Regression analysis by akanksha Bali
 
Scatter plots
Scatter plotsScatter plots
Scatter plots
 
Turning Multivariable Models Into Interactive Animated Simulations
Turning Multivariable Models Into Interactive Animated SimulationsTurning Multivariable Models Into Interactive Animated Simulations
Turning Multivariable Models Into Interactive Animated Simulations
 
Regression
RegressionRegression
Regression
 
004
004004
004
 
004
004004
004
 

Viewers also liked (9)

Types of functions2
Types of functions2Types of functions2
Types of functions2
 
Methods7 exponential equations
Methods7  exponential equationsMethods7  exponential equations
Methods7 exponential equations
 
Työhyvinvointi (1)
Työhyvinvointi (1)Työhyvinvointi (1)
Työhyvinvointi (1)
 
Methods8 trigonometric functions
Methods8  trigonometric functionsMethods8  trigonometric functions
Methods8 trigonometric functions
 
cartesian plane by : joe olivare
cartesian plane by : joe olivarecartesian plane by : joe olivare
cartesian plane by : joe olivare
 
Methods1 relations and functions
Methods1 relations and functionsMethods1 relations and functions
Methods1 relations and functions
 
13.cartesian coordinates
13.cartesian coordinates13.cartesian coordinates
13.cartesian coordinates
 
Cartesian plane
Cartesian planeCartesian plane
Cartesian plane
 
Cartesian coordinate plane
Cartesian coordinate planeCartesian coordinate plane
Cartesian coordinate plane
 

Similar to Further7 regression analysis

Further6 displaying bivariate data
Further6  displaying bivariate dataFurther6  displaying bivariate data
Further6 displaying bivariate data
kmcmullen
 
regression-linearandlogisitics-220524024037-4221a176 (1).pdf
regression-linearandlogisitics-220524024037-4221a176 (1).pdfregression-linearandlogisitics-220524024037-4221a176 (1).pdf
regression-linearandlogisitics-220524024037-4221a176 (1).pdf
lisow86669
 
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docxFSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
budbarber38650
 

Similar to Further7 regression analysis (20)

ML-UNIT-IV complete notes download here
ML-UNIT-IV  complete notes download hereML-UNIT-IV  complete notes download here
ML-UNIT-IV complete notes download here
 
Regression
RegressionRegression
Regression
 
Regression
RegressionRegression
Regression
 
Unit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxUnit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptx
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
 
Simple Linear Regression detail explanation.pdf
Simple Linear Regression detail explanation.pdfSimple Linear Regression detail explanation.pdf
Simple Linear Regression detail explanation.pdf
 
Further6 displaying bivariate data
Further6  displaying bivariate dataFurther6  displaying bivariate data
Further6 displaying bivariate data
 
Simple Linear Regression explanation.pptx
Simple Linear Regression explanation.pptxSimple Linear Regression explanation.pptx
Simple Linear Regression explanation.pptx
 
REGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptxREGRESSION METasdfghjklmjhgftrHODS1.pptx
REGRESSION METasdfghjklmjhgftrHODS1.pptx
 
regression-linearandlogisitics-220524024037-4221a176 (1).pdf
regression-linearandlogisitics-220524024037-4221a176 (1).pdfregression-linearandlogisitics-220524024037-4221a176 (1).pdf
regression-linearandlogisitics-220524024037-4221a176 (1).pdf
 
Linear and Logistics Regression
Linear and Logistics RegressionLinear and Logistics Regression
Linear and Logistics Regression
 
Regression analysis algorithm
Regression analysis algorithm Regression analysis algorithm
Regression analysis algorithm
 
Module 2_ Regression Models..pptx
Module 2_ Regression Models..pptxModule 2_ Regression Models..pptx
Module 2_ Regression Models..pptx
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
 
Simple linear regression (Updated).pptx
Simple linear regression (Updated).pptxSimple linear regression (Updated).pptx
Simple linear regression (Updated).pptx
 
Correlation and Regression ppt
Correlation and Regression pptCorrelation and Regression ppt
Correlation and Regression ppt
 
Chapter05
Chapter05Chapter05
Chapter05
 
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docxFSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 

More from kmcmullen

Further 9 similar triangles
Further 9  similar trianglesFurther 9  similar triangles
Further 9 similar triangles
kmcmullen
 
Further8 data transformation
Further8  data transformationFurther8  data transformation
Further8 data transformation
kmcmullen
 
Methods6 modulus function
Methods6  modulus functionMethods6  modulus function
Methods6 modulus function
kmcmullen
 
Further5 normal distribution
Further5  normal distributionFurther5  normal distribution
Further5 normal distribution
kmcmullen
 
Methods5 transformations
Methods5  transformationsMethods5  transformations
Methods5 transformations
kmcmullen
 
Methods3 types of functions1
Methods3  types of functions1Methods3  types of functions1
Methods3 types of functions1
kmcmullen
 
Further4 box plots, 5 number summary and outliers
Further4  box plots, 5 number summary and outliersFurther4  box plots, 5 number summary and outliers
Further4 box plots, 5 number summary and outliers
kmcmullen
 
Further3 summarising univariate data
Further3  summarising univariate dataFurther3  summarising univariate data
Further3 summarising univariate data
kmcmullen
 
Further1 types of data
Further1  types of dataFurther1  types of data
Further1 types of data
kmcmullen
 
Further2 displaying univariate data
Further2  displaying univariate dataFurther2  displaying univariate data
Further2 displaying univariate data
kmcmullen
 
Methods2 polynomial functions
Methods2 polynomial functionsMethods2 polynomial functions
Methods2 polynomial functions
kmcmullen
 

More from kmcmullen (12)

Further 9 similar triangles
Further 9  similar trianglesFurther 9  similar triangles
Further 9 similar triangles
 
Further8 data transformation
Further8  data transformationFurther8  data transformation
Further8 data transformation
 
Methods6 modulus function
Methods6  modulus functionMethods6  modulus function
Methods6 modulus function
 
Further5 normal distribution
Further5  normal distributionFurther5  normal distribution
Further5 normal distribution
 
Methods5 transformations
Methods5  transformationsMethods5  transformations
Methods5 transformations
 
Methods3 types of functions1
Methods3  types of functions1Methods3  types of functions1
Methods3 types of functions1
 
Further4 box plots, 5 number summary and outliers
Further4  box plots, 5 number summary and outliersFurther4  box plots, 5 number summary and outliers
Further4 box plots, 5 number summary and outliers
 
Further3 summarising univariate data
Further3  summarising univariate dataFurther3  summarising univariate data
Further3 summarising univariate data
 
Further1 types of data
Further1  types of dataFurther1  types of data
Further1 types of data
 
Further2 displaying univariate data
Further2  displaying univariate dataFurther2  displaying univariate data
Further2 displaying univariate data
 
Methods2 polynomial functions
Methods2 polynomial functionsMethods2 polynomial functions
Methods2 polynomial functions
 
Methods1 relations and functions
Methods1  relations and functionsMethods1  relations and functions
Methods1 relations and functions
 

Recently uploaded

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Recently uploaded (20)

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Further7 regression analysis

  • 2. Regression Analysis The process of fitting a straight line to bivariate data is known as linear regression This can be done either by: Calculating and plotting the least squares regression line Drawing the three median line A regression analysis involves a range of statistics to summarise the relationship between two numerical variables K McMullen 2012
  • 3. Regression Analysis Included in a regression analysis: Scatterplot: form, direction, outliers Correlation coefficient: measures strength Regression line: models the relationship Interpreting slope and y-intercept Coefficient of determination: measures the predictive power of the relationship Residual plot: tests linearity Final report K McMullen 2012
  • 4. Regression Analysis We have already covered: Scatterplot Correlation coefficient (r) Coefficient of determination (r2) What we will cover here: Regression line Interpreting slope and y-intercept Residual plots K McMullen 2012
  • 5. Regression Analysis Least Squares Regression Line (also referred to as Regression Line) The least squares line is like the mean- it is a line that best fits the data The line balances out the data values on either side of the line The distance between the data value and the regression line is known as the residual The least squares line is the line where the sum of the squares of the residuals is the least (we take the squares so that the negative residuals don’t cancel out the positive residuals- remember that squaring a negative makes a positive) K McMullen 2012
  • 6. Regression Analysis The equation of the least squares regression line is given by: K McMullen 2012
  • 7. Regression Analysis Interpreting slope: remember that the slope indicates what happens to the DV as the IV increases (as x increases y either increases (positive gradient) or decreases (negative gradient) Comment: “On average, the DV will increase/decrease by slope for every 1 increase in IV” Eg. On average, life expectancies (DV) in countries will decrease by 1.44years for an increase in birth rate (x) of one birth per 1000 people. K McMullen 2012
  • 8. Regression Analysis Interpreting intercept: the regression line gives us the value of the y-intercept and what the DV is when the IV is 0. Comment: “On average, when IV is 0 the DV is intercept” Eg. On average, the life expectancy for countries with a zero birth rate is 105.4 years K McMullen 2012
  • 9. Regression Analysis The residual plot: shows how far the data values are from the regression line The regression line basically becomes the line x=0 and the data values remain the same distance away from this line (basically think of moving the regression line and all the data values so that the line is now horizontal- the data values remain the same distance away from the line) Remember: Residual value= data value- predicted value If a residual plot is randomly scattered and the residual values are close to 0 then we can confirm our assumption of a linear relationship Comment: “The assumption that there is a linear relationship between IV and DV is confirmed by the residual plot” K McMullen 2012
  • 10. Regression Analysis Extrapolation and interpolation: we use the regression line to predict values where: Extrapolation: is where we predict outside the range of data Interpolation is where we predict inside the range of data K McMullen 2012