SlideShare a Scribd company logo
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
 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
 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
 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.
 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
 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
 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

What's hot (10)

Sec. 8.7
Sec. 8.7Sec. 8.7
Sec. 8.7
 
Skill25 algebraic fractions
Skill25 algebraic fractionsSkill25 algebraic fractions
Skill25 algebraic fractions
 
Skill9 scale drawings
Skill9 scale drawingsSkill9 scale drawings
Skill9 scale drawings
 
104 05 Integers Lesson
104 05 Integers Lesson104 05 Integers Lesson
104 05 Integers Lesson
 
Unit 4 review irrational numbers
Unit 4 review   irrational numbersUnit 4 review   irrational numbers
Unit 4 review irrational numbers
 
Ratios and proportions
Ratios and proportionsRatios and proportions
Ratios and proportions
 
Scientific notation
Scientific notationScientific notation
Scientific notation
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Skill5 order of operations
Skill5 order of operationsSkill5 order of operations
Skill5 order of operations
 
Chapter 2.1
Chapter 2.1Chapter 2.1
Chapter 2.1
 

Similar to 11th octoberalg2

G6 m4-g-lesson 24-t
G6 m4-g-lesson 24-tG6 m4-g-lesson 24-t
G6 m4-g-lesson 24-t
mlabuski
 
G6 m1-a-lesson 8-t
G6 m1-a-lesson 8-tG6 m1-a-lesson 8-t
G6 m1-a-lesson 8-t
mlabuski
 
Proportion
ProportionProportion
Proportion
tvierra
 
Estimating square roots
Estimating square rootsEstimating square roots
Estimating square roots
Cindy Smith
 
Estimating square roots
Estimating square rootsEstimating square roots
Estimating square roots
Cindy Smith
 
Estimating square roots
Estimating square rootsEstimating square roots
Estimating square roots
Cindy Smith
 
Chapter 3 - Problem Solving.pdf
Chapter 3 - Problem Solving.pdfChapter 3 - Problem Solving.pdf
Chapter 3 - Problem Solving.pdf
MinaSaflor
 
Math 009 Final Examination Spring, 2015 1 Answer Sheet M.docx
Math 009 Final Examination Spring, 2015 1 Answer Sheet M.docxMath 009 Final Examination Spring, 2015 1 Answer Sheet M.docx
Math 009 Final Examination Spring, 2015 1 Answer Sheet M.docx
andreecapon
 
G6 m1-a-lesson 8-t
G6 m1-a-lesson 8-tG6 m1-a-lesson 8-t
G6 m1-a-lesson 8-t
mlabuski
 
G6 m1-a-lesson 8-t
G6 m1-a-lesson 8-tG6 m1-a-lesson 8-t
G6 m1-a-lesson 8-t
mlabuski
 
Page 1 of 7  Pre‐calculus 12 Final Assignment (22 mark.docx
Page 1 of 7  Pre‐calculus 12 Final Assignment (22 mark.docxPage 1 of 7  Pre‐calculus 12 Final Assignment (22 mark.docx
Page 1 of 7  Pre‐calculus 12 Final Assignment (22 mark.docx
bunyansaturnina
 

Similar to 11th octoberalg2 (20)

Module 1 solving inequalities notes
Module 1 solving inequalities notesModule 1 solving inequalities notes
Module 1 solving inequalities notes
 
G6 m4-g-lesson 24-t
G6 m4-g-lesson 24-tG6 m4-g-lesson 24-t
G6 m4-g-lesson 24-t
 
3rd octoberalg2
3rd octoberalg23rd octoberalg2
3rd octoberalg2
 
G6 m1-a-lesson 8-t
G6 m1-a-lesson 8-tG6 m1-a-lesson 8-t
G6 m1-a-lesson 8-t
 
Proportion
ProportionProportion
Proportion
 
Ratios and Proportions.pdf
Ratios and Proportions.pdfRatios and Proportions.pdf
Ratios and Proportions.pdf
 
Estimating square roots
Estimating square rootsEstimating square roots
Estimating square roots
 
Estimating square roots
Estimating square rootsEstimating square roots
Estimating square roots
 
Estimating square roots
Estimating square rootsEstimating square roots
Estimating square roots
 
9th octoberalg2
9th octoberalg29th octoberalg2
9th octoberalg2
 
Chapter 3 - Problem Solving.pdf
Chapter 3 - Problem Solving.pdfChapter 3 - Problem Solving.pdf
Chapter 3 - Problem Solving.pdf
 
Using Excel to Build Understanding AMATYC 2015
Using Excel to Build Understanding AMATYC 2015Using Excel to Build Understanding AMATYC 2015
Using Excel to Build Understanding AMATYC 2015
 
Essentials of machine learning algorithms
Essentials of machine learning algorithmsEssentials of machine learning algorithms
Essentials of machine learning algorithms
 
Math 009 Final Examination Spring, 2015 1 Answer Sheet M.docx
Math 009 Final Examination Spring, 2015 1 Answer Sheet M.docxMath 009 Final Examination Spring, 2015 1 Answer Sheet M.docx
Math 009 Final Examination Spring, 2015 1 Answer Sheet M.docx
 
G6 m1-a-lesson 8-t
G6 m1-a-lesson 8-tG6 m1-a-lesson 8-t
G6 m1-a-lesson 8-t
 
G6 m1-a-lesson 8-t
G6 m1-a-lesson 8-tG6 m1-a-lesson 8-t
G6 m1-a-lesson 8-t
 
ML Study Jams - Session 3.pptx
ML Study Jams - Session 3.pptxML Study Jams - Session 3.pptx
ML Study Jams - Session 3.pptx
 
Regresión
RegresiónRegresión
Regresión
 
Page 1 of 7  Pre‐calculus 12 Final Assignment (22 mark.docx
Page 1 of 7  Pre‐calculus 12 Final Assignment (22 mark.docxPage 1 of 7  Pre‐calculus 12 Final Assignment (22 mark.docx
Page 1 of 7  Pre‐calculus 12 Final Assignment (22 mark.docx
 
Introduction to simulating data to improve your research
Introduction to simulating data to improve your researchIntroduction to simulating data to improve your research
Introduction to simulating data to improve your research
 

More from Anas Lahrichi

More from Anas Lahrichi (20)

Drive thru project presentation
Drive thru project presentationDrive thru project presentation
Drive thru project presentation
 
automotive radiator process chart flow
 automotive radiator process chart flow automotive radiator process chart flow
automotive radiator process chart flow
 
Design for manufacturing ppt anas lahrichi
Design for manufacturing ppt anas lahrichiDesign for manufacturing ppt anas lahrichi
Design for manufacturing ppt anas lahrichi
 
Pd holisitc knowledge 19th sep meeting
Pd holisitc knowledge 19th sep meetingPd holisitc knowledge 19th sep meeting
Pd holisitc knowledge 19th sep meeting
 
Advisory curriculum
Advisory curriculumAdvisory curriculum
Advisory curriculum
 
advisory : developing personal power
 advisory : developing personal power advisory : developing personal power
advisory : developing personal power
 
advisory : improving well being
advisory : improving well beingadvisory : improving well being
advisory : improving well being
 
Advisory session 18th dec gathering information
Advisory session 18th dec gathering informationAdvisory session 18th dec gathering information
Advisory session 18th dec gathering information
 
27thseptemberalg2
27thseptemberalg227thseptemberalg2
27thseptemberalg2
 
25thseptemberalg2
25thseptemberalg225thseptemberalg2
25thseptemberalg2
 
27thseptember8thgrade
27thseptember8thgrade27thseptember8thgrade
27thseptember8thgrade
 
5th octoberalg2
5th octoberalg25th octoberalg2
5th octoberalg2
 
1st october8thgrade
1st october8thgrade1st october8thgrade
1st october8thgrade
 
1st octoberalg2
1st octoberalg21st octoberalg2
1st octoberalg2
 
3rd october8thgrade
3rd october8thgrade3rd october8thgrade
3rd october8thgrade
 
28thseptember7thgrade [autosaved]
28thseptember7thgrade [autosaved]28thseptember7thgrade [autosaved]
28thseptember7thgrade [autosaved]
 
27thseptember7thgrade2
27thseptember7thgrade227thseptember7thgrade2
27thseptember7thgrade2
 
10thoctober7thgrade
10thoctober7thgrade10thoctober7thgrade
10thoctober7thgrade
 
1st october8thgrade (1)
1st october8thgrade (1)1st october8thgrade (1)
1st october8thgrade (1)
 
26thseptember7thgrade
26thseptember7thgrade26thseptember7thgrade
26thseptember7thgrade
 

Recently uploaded

Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 

Recently uploaded (20)

How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Keeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security ServicesKeeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security Services
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 

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
  • 9.
  • 10.
  • 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
  • 12.
  • 13.
  • 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
  • 16.
  • 17.
  • 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.
  • 19.
  • 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
  • 21.
  • 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
  • 23.
  • 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.