Mr.Anas Lahrichi
 WALT : Correction of Homework
 Quiz 4
 Use of residuals to compute error in prediction.
Lesson 15/16
 Practice in interpreting residual data
 Residual Plots
 WILF : A lesson won’t make sense unless you always
review what we have done before
 TIB :Whenever predicting,having a percent error helps
determine the confidence
 Apologies for delay in grading quiz 3, you’ll
have it by next session.
 My next office hours are Tuesday 16th
October.
 A linear model is represented with the form
of equation : 𝑦 = 𝑚𝑥 + 𝑏
 Residual : Difference between predicted and
actual y-values
 Residual = actual y-value – predictedy-value
 To interpret the residuals,we need to square
each one and add them up => The least
squares line
 The line of best fit to a linear relationship is
the one that has the smallest sum of squared
residuals
 min( 𝑟𝑒𝑠𝑖𝑑𝑢𝑎𝑙𝑠
2
)
 Khanacademy skills posted on classroom
 Spread the chairs
 Individual , no discussion
 Any attempt at cheating will result in a 0
 Knowing the residuals,we can calculate the
error of prediction
 Small residuals => Good fit => Low error in
prediction
 Big residuals => Bad fit => Big error in
prediction
11th octoberalg2
11th octoberalg2
 Answer on the worksheet handed out per group
• Listen carefully to the instructions
• Take 10 minutes to do the exercises.
• Stay focused
• Voice level 1 discussions (no excessive noise)
• Raise your hand quietly for questions and wait for
me to come
11th octoberalg2
11th octoberalg2
 When a least squares line is used to calculate
a predicted value, the prediction error can be
measured by residual
 On the graph, the residuals are the vertical
distances of the points from the least squares
line.
 The residuals give us an idea how close a
prediction might be when the least squares
line is used to make a prediction for a value
that is not included in the data set.
 We’ll practice computing
residuals,interpreting them and even
graphing them.
 Let’s consider an example together
 Terminology :
 The curb weight of a car is the weight of the
car without luggage or passengers.
 Fuel efficiency : how many miles per gallon
11th octoberalg2
11th octoberalg2
 Will the residual for the car whose curb
weight is 𝟐5.33 hundred pounds be positive
or negative? Roughly what is the value of the
residual for this point?
 Positive residual of 𝟑 mpg; the actual value is
approximately 𝟑 units above the line.
 Will the residual for the car whose curb
weight is 𝟐7 hundred pounds be positive or
negative? Roughly what is the value of the
residual for this point?
 Negative residual of −𝟔 mpg; the actual value
is 𝟔 units below the line.
11th octoberalg2
 With a lot of data,these residual tables could
get very lengthy,Is there any easier way ?
 Yes,through graphing
 What do we call a graph of residuals ?
 Residual Plot
 What is the usefulness of a residual plot ?
 It shows how predictive the model is.
 What does a good predictive model mean ?
 Low error in prediction
11th octoberalg2
 We plot residuals on y-axis for each x value
 We add the horizontal line at 0 and leave
space for both positive and negative residuals
11th octoberalg2
 By reading the residual plot, you should be
able to guess what the original data looks
like.
 It is crucial to understand the mechanism
with which we compute residuals.
 Video :
https://www.youtube.com/watch?v=EB5a_vE
Nd5Q
Student Warning
1
Warning 2 Demerit
 Do not talk unless you have
permission (Raise your hand)
 No talking back (Come see in end
of class)
 Stay focused and on task
 Respect your classmates and
teacher
 Be prepared
 You are expected to do your homework on the
due date (no excuses)
 Every time you miss a homework you get a
strike,after 3 your parents are informed
 Not doing your homework will negatively affect
your grade in participation and quizzes
 The corrected quiz as well as rubrics will be posted on
Engrade.
 An individual assesment means no discussion at all. Any
talking will result in a 0.
 If you missed a quiz/test, you are responsible to come to
office hours to retake it.
 Come see me right after class or office hours to discuss
your copy, do not bring it up inside class.
 Any copy written in pencil cannot be considered for re-
grading, use a pen.

More Related Content

PPTX
Fast basic math - multiply numbers with 11
PPT
Proportion
PPT
4 1 ratio
KEY
Integers
KEY
Integers
PPTX
November 5, 2015
PPTX
For...next loop structure
Fast basic math - multiply numbers with 11
Proportion
4 1 ratio
Integers
Integers
November 5, 2015
For...next loop structure

What's hot (10)

PPTX
Sec. 8.7
PPTX
Skill25 algebraic fractions
PPTX
Skill9 scale drawings
PPT
104 05 Integers Lesson
PPTX
Unit 4 review irrational numbers
PDF
Ratios and proportions
PPTX
Scientific notation
PPTX
Assignment problem
PPTX
Skill5 order of operations
PPT
Chapter 2.1
Sec. 8.7
Skill25 algebraic fractions
Skill9 scale drawings
104 05 Integers Lesson
Unit 4 review irrational numbers
Ratios and proportions
Scientific notation
Assignment problem
Skill5 order of operations
Chapter 2.1
Ad

Similar to 11th octoberalg2 (20)

PPTX
5th octoberalg2
PPTX
9th octoberalg2
PDF
Interpreting Regression Results - Machine Learning
PPT
15.Simple Linear Regression of case study-530 (2).ppt
PPTX
Linear regression by Kodebay
PPTX
rugs koco.pptx
PPTX
Week5-TU [Autosaved].pptx Statistics at Uoft
PPT
Introduction to Machine Learning STUDENTS.ppt
PPTX
Simple Linear Regression.pptx
PPT
Data Analysison Regression
PPTX
Simple egression.pptx
PDF
Lecture 3 - Linear Regression
PPTX
Machine Learning Unit 3 Semester 3 MSc IT Part 2 Mumbai University
PPT
18-21 Principles of Least Squares.ppt
PPTX
Linear Regression.pptx
PPTX
Regression_JAMOVI.pptx- Statistical data analysis
PDF
Linear Regression in R
PPTX
14. Regression_RcOMMANDER .pptx
PPT
Linear regression
PPTX
Linear Regression Algorithm | Linear Regression in R | Data Science Training ...
5th octoberalg2
9th octoberalg2
Interpreting Regression Results - Machine Learning
15.Simple Linear Regression of case study-530 (2).ppt
Linear regression by Kodebay
rugs koco.pptx
Week5-TU [Autosaved].pptx Statistics at Uoft
Introduction to Machine Learning STUDENTS.ppt
Simple Linear Regression.pptx
Data Analysison Regression
Simple egression.pptx
Lecture 3 - Linear Regression
Machine Learning Unit 3 Semester 3 MSc IT Part 2 Mumbai University
18-21 Principles of Least Squares.ppt
Linear Regression.pptx
Regression_JAMOVI.pptx- Statistical data analysis
Linear Regression in R
14. Regression_RcOMMANDER .pptx
Linear regression
Linear Regression Algorithm | Linear Regression in R | Data Science Training ...
Ad

More from Anas Lahrichi (20)

PPTX
Drive thru project presentation
PPTX
automotive radiator process chart flow
PPTX
Design for manufacturing ppt anas lahrichi
PPTX
Pd holisitc knowledge 19th sep meeting
PPTX
Advisory curriculum
PPTX
advisory : developing personal power
PPTX
advisory : improving well being
PPTX
Advisory session 18th dec gathering information
PPTX
27thseptemberalg2
PPTX
25thseptemberalg2
PPTX
27thseptember8thgrade
PPTX
3rd octoberalg2
PPTX
1st october8thgrade
PPTX
1st octoberalg2
PPTX
3rd october8thgrade
PPTX
28thseptember7thgrade [autosaved]
PPTX
27thseptember7thgrade2
PPTX
10thoctober7thgrade
PPTX
1st october8thgrade (1)
PPTX
26thseptember7thgrade
Drive thru project presentation
automotive radiator process chart flow
Design for manufacturing ppt anas lahrichi
Pd holisitc knowledge 19th sep meeting
Advisory curriculum
advisory : developing personal power
advisory : improving well being
Advisory session 18th dec gathering information
27thseptemberalg2
25thseptemberalg2
27thseptember8thgrade
3rd octoberalg2
1st october8thgrade
1st octoberalg2
3rd october8thgrade
28thseptember7thgrade [autosaved]
27thseptember7thgrade2
10thoctober7thgrade
1st october8thgrade (1)
26thseptember7thgrade

Recently uploaded (20)

PPTX
Module on health assessment of CHN. pptx
PPTX
Macbeth play - analysis .pptx english lit
PDF
The TKT Course. Modules 1, 2, 3.for self study
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PDF
Farming Based Livelihood Systems English Notes
PDF
Journal of Dental Science - UDMY (2022).pdf
PPTX
UNIT_2-__LIPIDS[1].pptx.................
PDF
plant tissues class 6-7 mcqs chatgpt.pdf
PDF
English Textual Question & Ans (12th Class).pdf
PDF
Nurlina - Urban Planner Portfolio (english ver)
PDF
semiconductor packaging in vlsi design fab
PDF
Journal of Dental Science - UDMY (2020).pdf
PPT
REGULATION OF RESPIRATION lecture note 200L [Autosaved]-1-1.ppt
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
Civil Department's presentation Your score increases as you pick a category
PDF
0520_Scheme_of_Work_(for_examination_from_2021).pdf
PPTX
2025 High Blood Pressure Guideline Slide Set.pptx
PDF
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
PDF
International_Financial_Reporting_Standa.pdf
PDF
M.Tech in Aerospace Engineering | BIT Mesra
Module on health assessment of CHN. pptx
Macbeth play - analysis .pptx english lit
The TKT Course. Modules 1, 2, 3.for self study
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
Farming Based Livelihood Systems English Notes
Journal of Dental Science - UDMY (2022).pdf
UNIT_2-__LIPIDS[1].pptx.................
plant tissues class 6-7 mcqs chatgpt.pdf
English Textual Question & Ans (12th Class).pdf
Nurlina - Urban Planner Portfolio (english ver)
semiconductor packaging in vlsi design fab
Journal of Dental Science - UDMY (2020).pdf
REGULATION OF RESPIRATION lecture note 200L [Autosaved]-1-1.ppt
Environmental Education MCQ BD2EE - Share Source.pdf
Civil Department's presentation Your score increases as you pick a category
0520_Scheme_of_Work_(for_examination_from_2021).pdf
2025 High Blood Pressure Guideline Slide Set.pptx
fundamentals-of-heat-and-mass-transfer-6th-edition_incropera.pdf
International_Financial_Reporting_Standa.pdf
M.Tech in Aerospace Engineering | BIT Mesra

11th octoberalg2

  • 2.  WALT : Correction of Homework  Quiz 4  Use of residuals to compute error in prediction. Lesson 15/16  Practice in interpreting residual data  Residual Plots  WILF : A lesson won’t make sense unless you always review what we have done before  TIB :Whenever predicting,having a percent error helps determine the confidence
  • 3.  Apologies for delay in grading quiz 3, you’ll have it by next session.  My next office hours are Tuesday 16th October.
  • 4.  A linear model is represented with the form of equation : 𝑦 = 𝑚𝑥 + 𝑏  Residual : Difference between predicted and actual y-values  Residual = actual y-value – predictedy-value  To interpret the residuals,we need to square each one and add them up => The least squares line
  • 5.  The line of best fit to a linear relationship is the one that has the smallest sum of squared residuals  min( 𝑟𝑒𝑠𝑖𝑑𝑢𝑎𝑙𝑠 2 )
  • 6.  Khanacademy skills posted on classroom
  • 7.  Spread the chairs  Individual , no discussion  Any attempt at cheating will result in a 0
  • 8.  Knowing the residuals,we can calculate the error of prediction  Small residuals => Good fit => Low error in prediction  Big residuals => Bad fit => Big error in prediction
  • 11.  Answer on the worksheet handed out per group • Listen carefully to the instructions • Take 10 minutes to do the exercises. • Stay focused • Voice level 1 discussions (no excessive noise) • Raise your hand quietly for questions and wait for me to come
  • 14.  When a least squares line is used to calculate a predicted value, the prediction error can be measured by residual  On the graph, the residuals are the vertical distances of the points from the least squares line.  The residuals give us an idea how close a prediction might be when the least squares line is used to make a prediction for a value that is not included in the data set.
  • 15.  We’ll practice computing residuals,interpreting them and even graphing them.  Let’s consider an example together  Terminology :  The curb weight of a car is the weight of the car without luggage or passengers.  Fuel efficiency : how many miles per gallon
  • 18.  Will the residual for the car whose curb weight is 𝟐5.33 hundred pounds be positive or negative? Roughly what is the value of the residual for this point?  Positive residual of 𝟑 mpg; the actual value is approximately 𝟑 units above the line.  Will the residual for the car whose curb weight is 𝟐7 hundred pounds be positive or negative? Roughly what is the value of the residual for this point?  Negative residual of −𝟔 mpg; the actual value is 𝟔 units below the line.
  • 20.  With a lot of data,these residual tables could get very lengthy,Is there any easier way ?  Yes,through graphing  What do we call a graph of residuals ?  Residual Plot  What is the usefulness of a residual plot ?  It shows how predictive the model is.  What does a good predictive model mean ?  Low error in prediction
  • 22.  We plot residuals on y-axis for each x value  We add the horizontal line at 0 and leave space for both positive and negative residuals
  • 24.  By reading the residual plot, you should be able to guess what the original data looks like.  It is crucial to understand the mechanism with which we compute residuals.  Video : https://www.youtube.com/watch?v=EB5a_vE Nd5Q
  • 26.  Do not talk unless you have permission (Raise your hand)  No talking back (Come see in end of class)  Stay focused and on task  Respect your classmates and teacher  Be prepared
  • 27.  You are expected to do your homework on the due date (no excuses)  Every time you miss a homework you get a strike,after 3 your parents are informed  Not doing your homework will negatively affect your grade in participation and quizzes
  • 28.  The corrected quiz as well as rubrics will be posted on Engrade.  An individual assesment means no discussion at all. Any talking will result in a 0.  If you missed a quiz/test, you are responsible to come to office hours to retake it.  Come see me right after class or office hours to discuss your copy, do not bring it up inside class.  Any copy written in pencil cannot be considered for re- grading, use a pen.