SlideShare a Scribd company logo
1 of 15
LINE OF BEST FIT
Lesson
Here starts
the lesson!
Table of
Contents!
Overview
EQUATION OF A LINE
Assignment
Desmos Classroom
Line of Best Fit
Standards and Lesson
Objectives
Summarize, represent, and interpret data on two
categorical and quantitative variables
6. Represent data on two quantitate variables on
a scatter plot, and describe how the variables
are related*
a. Fit a function to the data; use functions
fitted to data to solve problems in the context
of the data. Use given functions or choose a
function suggested by the context. Emphasize
linear, quadratic, and exponential models. *
b. Informally asses the fit of a function by
plotting and analyzing residuals. *
c. Fit a linear function for a scatter plot that
suggest a linear association. *
About the Topic
We will introduce two different
ways of approaching line of best
fit. An informal way and a formal
way.
01
OVERVIEW
What does it mean to be
the line of best fit?
In linear regressions it is assumed that
the relationship between two quantitative
variables x and y is modeled through a
linear equation.
● The equation of a line as we know is
Y= mx+b
● In which m is the slope and b our y-
intercept.
● Slope represented by rise over run,
or in other words the change in y
over change in x
● Y – intercept is the value of y when
x=0.
Introduction
—Israelmore Ayivor
“Life is a linear equation in which
you can't cross multiply! If you
think you can do it, you can do it.
If you think you can't do it, you
can't do it. It's a simple formula!”
Linear regression,
understanding line of best
fit, residuals
● Finding a line that is the best fit
to the data.
● Determining if the line found is the
line of best fit.
● Understanding the relationship this
line creates between the two
quantitative variables.
● Once the line of best fit has been
determined we are able to predict a
quantity of the response variable
given the explanatory variable.
What Is This
Topic About?
Definition of
Concepts
Linear Regression
The statistical method for
fitting a line to data where
the relationship of two
variables, x and y, can be
modeled by a straight line
with some residuals
Residuals
The difference between
the observed value of
the dependent variable
and the predicted
variable,
Residual = y-y*
X and Y variable
X represents the explanatory
variable and the Y
represents the response
variable.
Scatterplot
This graph shows the
relationship between the
two quantitative variables
measured.
Practical Uses
of This Subject Businesses
Linear regression
helps business
understand
relationship of
advertising spending
and revenue
Medical Research
Linear regression is
often used to see
relationship between
different drug
dosages and blood
pressure, sugar
levels, etc.
STOP
Let’s see some
statistics live.
What does this video portray?
How is it related to what we
are learning?
https://www.youtube.com/watch?v=jbkSRLYSojo&t=218s
How to determine if a line
is THE line of best fit
Step 1 Step 2 Step 3 Step 4
Find the
equation of the
line (eyed)
Determine if
the sum is the
minimum
Find the
residuals of
the data
Take the sum of
the square of
the residuals
Ex. The
guessed line.
4. Found the residuals of the line
Graph of residuals on the guessed line
5. Calculated the sum of the squares of
the residuals, result of 10.9.
0
2
4
6
0 5 10 15
Time
awake
(min)
Times woken up
Time awake in middle of night
(minutes)
1. Interpret scatter plot: Relationship of time awake (in
minutes) given the number of times woken up.
2. We eye (guess) a line of best fit and plot it (black line)
3. Calculate the estimated line of best fit, using y=mx+b,
in which case we use two points (2,1), (7,1.8) to find
m and b.
𝑚 =
𝑦2−𝑦1
𝑥2−𝑥1
=
1.8−1
7−2
=
0.8
5
= 0.16
1.8 = 0.16 7 + 𝑏
𝑏 = 0.68
𝑦∗
= 0.16𝑥 + 0.68
X-Values Y-Values
1 0
2 1
3 2
4 0.5
5 3
6 0.5
7 1.8
8 0.7
9 4
10 2
Ex. The line of
best fit.
0
2
4
6
0 5 10 15
Time
awake
(min)
Times woken up
Times woken up in middle of sleep
(minutes)
Most calculators have a linear regression feature
that helps calculate the line of best fit for a set of
data. In which case provides you with the equation
of the line with the minimum sum of squared
residuals. For our data set above, the line of best
fit is described by
𝑦 = 0.205𝑥 + 0.42
The sum of the residuals of this respected
line equaled to 10.726, which is only 0.2
away from the one we eyed. Therefore, we
can conclude that although going through
the most points is not the best method to
approach it also is not the worse.
Graph of the residuals of The line of best fit
Let us wrap up by
making a prediction?
• We now have a line of best fit for
the data we observed,
𝑦 = 0.205𝑥 + 0.42
• Let us create a prediction to
understand the relationship of this
data.
• Allow x to be 10, what does this
mean?
• What is the value of y? What is the
interpretation of y?
If we have x = 10, meaning we woke up
a total of 10 times in the night, thanks
to the line of best fit we can predict how
long we were awake. We find that
y = 2.42, meaning that if we woke up a
total of 10 times at night we were
awake for a total of 2.42 minutes.
There is positive relationship on the
number of times we wake up in the
middle of the night with the total time
we are awake during the night.
Let us now organize
all that we have
learned today using a
KWL chart.
I ask that each student fill out this
chart. I will be providing you with a
clean copy right now. I want a minimum
of three take always for each column. I
will be providing you with an example
of what I am asking, but you cannot
steal what is on the KWL chart I
created.
In-Class Activity
Hey, students!
Go to student.desmos.com

More Related Content

What's hot

Linear equations rev - copy
Linear equations rev - copyLinear equations rev - copy
Linear equations rev - copyYash Jain
 
Classical relations and fuzzy relations
Classical relations and fuzzy relationsClassical relations and fuzzy relations
Classical relations and fuzzy relationsBaran Kaynak
 
Linear Equations
Linear EquationsLinear Equations
Linear Equationsrfant
 
統計(人間科学のための基礎数学)
統計(人間科学のための基礎数学)統計(人間科学のための基礎数学)
統計(人間科学のための基礎数学)Masahiro Okano
 
Linear equation in two variables
Linear equation in two variablesLinear equation in two variables
Linear equation in two variablesAbhaya Gupta
 
Liner equation two variables
Liner equation two variablesLiner equation two variables
Liner equation two variablesSiddu Lingesh
 
8.2 Equations W Two Variables
8.2 Equations W Two Variables8.2 Equations W Two Variables
8.2 Equations W Two VariablesJessca Lundin
 
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPTCLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT05092000
 
Systems of Linear Equations Graphing
 Systems of Linear Equations Graphing  Systems of Linear Equations Graphing
Systems of Linear Equations Graphing PLeach
 
Linear equations rev
Linear equations revLinear equations rev
Linear equations revYash Jain
 
Absolute Value Equations (Algebra 2)
Absolute Value Equations (Algebra 2)Absolute Value Equations (Algebra 2)
Absolute Value Equations (Algebra 2)rfant
 
Lesson 4a - permutation matrices
Lesson 4a - permutation matricesLesson 4a - permutation matrices
Lesson 4a - permutation matricesJonathan Templin
 
CMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: MatricesCMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: Matricesallyn joy calcaben
 
2.2 inverse of a matrix
2.2 inverse of a matrix2.2 inverse of a matrix
2.2 inverse of a matrixSelf-Employed
 

What's hot (19)

Linear equations rev - copy
Linear equations rev - copyLinear equations rev - copy
Linear equations rev - copy
 
Classical relations and fuzzy relations
Classical relations and fuzzy relationsClassical relations and fuzzy relations
Classical relations and fuzzy relations
 
Linear Equations
Linear EquationsLinear Equations
Linear Equations
 
Lesson 6 simultaneous
Lesson 6   simultaneousLesson 6   simultaneous
Lesson 6 simultaneous
 
統計(人間科学のための基礎数学)
統計(人間科学のための基礎数学)統計(人間科学のための基礎数学)
統計(人間科学のための基礎数学)
 
Linear equation in two variables
Linear equation in two variablesLinear equation in two variables
Linear equation in two variables
 
Liner equation two variables
Liner equation two variablesLiner equation two variables
Liner equation two variables
 
8.2 Equations W Two Variables
8.2 Equations W Two Variables8.2 Equations W Two Variables
8.2 Equations W Two Variables
 
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPTCLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT
 
Systems of Linear Equations Graphing
 Systems of Linear Equations Graphing  Systems of Linear Equations Graphing
Systems of Linear Equations Graphing
 
Course pack unit 5
Course pack unit 5Course pack unit 5
Course pack unit 5
 
Linear equations
Linear equationsLinear equations
Linear equations
 
Linear equations rev
Linear equations revLinear equations rev
Linear equations rev
 
FUZZY LOGIC
FUZZY LOGICFUZZY LOGIC
FUZZY LOGIC
 
MT102 Лекц-2
MT102 Лекц-2MT102 Лекц-2
MT102 Лекц-2
 
Absolute Value Equations (Algebra 2)
Absolute Value Equations (Algebra 2)Absolute Value Equations (Algebra 2)
Absolute Value Equations (Algebra 2)
 
Lesson 4a - permutation matrices
Lesson 4a - permutation matricesLesson 4a - permutation matrices
Lesson 4a - permutation matrices
 
CMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: MatricesCMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: Matrices
 
2.2 inverse of a matrix
2.2 inverse of a matrix2.2 inverse of a matrix
2.2 inverse of a matrix
 

Similar to Line of best fit lesson

Line of best fit lesson guided notes
Line of best fit lesson guided notesLine of best fit lesson guided notes
Line of best fit lesson guided notesReneeTorres11
 
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.docxbudbarber38650
 
REGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREREGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREShriramKargaonkar
 
Week 3-4 solutions
Week 3-4 solutionsWeek 3-4 solutions
Week 3-4 solutionsBrian Larson
 
Temporal disaggregation methods
Temporal disaggregation methodsTemporal disaggregation methods
Temporal disaggregation methodsStephen Bradley
 
Applications to Central Limit Theorem and Law of Large Numbers
Applications to Central Limit Theorem and Law of Large NumbersApplications to Central Limit Theorem and Law of Large Numbers
Applications to Central Limit Theorem and Law of Large NumbersUniversity of Salerno
 
PRML Chapter 1
PRML Chapter 1PRML Chapter 1
PRML Chapter 1Sunwoo Kim
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepDan Wellisch
 
Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...ANIRBANMAJUMDAR18
 
Bootcamp of new world to taken seriously
Bootcamp of new world to taken seriouslyBootcamp of new world to taken seriously
Bootcamp of new world to taken seriouslykhaled125087
 
How to draw a good graph
How to draw a good graphHow to draw a good graph
How to draw a good graphTarun Gehlot
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regressionpankaj8108
 

Similar to Line of best fit lesson (20)

Line of best fit lesson guided notes
Line of best fit lesson guided notesLine of best fit lesson guided notes
Line of best fit lesson guided notes
 
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 ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HEREREGRESSION ANALYSIS THEORY EXPLAINED HERE
REGRESSION ANALYSIS THEORY EXPLAINED HERE
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Week 3-4 solutions
Week 3-4 solutionsWeek 3-4 solutions
Week 3-4 solutions
 
Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Temporal disaggregation methods
Temporal disaggregation methodsTemporal disaggregation methods
Temporal disaggregation methods
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Regression
RegressionRegression
Regression
 
Applications to Central Limit Theorem and Law of Large Numbers
Applications to Central Limit Theorem and Law of Large NumbersApplications to Central Limit Theorem and Law of Large Numbers
Applications to Central Limit Theorem and Law of Large Numbers
 
Talk 2
Talk 2Talk 2
Talk 2
 
PRML Chapter 1
PRML Chapter 1PRML Chapter 1
PRML Chapter 1
 
regression.pptx
regression.pptxregression.pptx
regression.pptx
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
2 simple regression
2   simple regression2   simple regression
2 simple regression
 
Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...
 
Bootcamp of new world to taken seriously
Bootcamp of new world to taken seriouslyBootcamp of new world to taken seriously
Bootcamp of new world to taken seriously
 
How to draw a good graph
How to draw a good graphHow to draw a good graph
How to draw a good graph
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 

Recently uploaded

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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...christianmathematics
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
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.pdfQucHHunhnh
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
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.pdfAdmir Softic
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
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
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Line of best fit lesson

  • 1. LINE OF BEST FIT Lesson Here starts the lesson!
  • 2. Table of Contents! Overview EQUATION OF A LINE Assignment Desmos Classroom Line of Best Fit Standards and Lesson Objectives Summarize, represent, and interpret data on two categorical and quantitative variables 6. Represent data on two quantitate variables on a scatter plot, and describe how the variables are related* a. Fit a function to the data; use functions fitted to data to solve problems in the context of the data. Use given functions or choose a function suggested by the context. Emphasize linear, quadratic, and exponential models. * b. Informally asses the fit of a function by plotting and analyzing residuals. * c. Fit a linear function for a scatter plot that suggest a linear association. * About the Topic We will introduce two different ways of approaching line of best fit. An informal way and a formal way.
  • 3. 01 OVERVIEW What does it mean to be the line of best fit?
  • 4. In linear regressions it is assumed that the relationship between two quantitative variables x and y is modeled through a linear equation. ● The equation of a line as we know is Y= mx+b ● In which m is the slope and b our y- intercept. ● Slope represented by rise over run, or in other words the change in y over change in x ● Y – intercept is the value of y when x=0. Introduction
  • 5. —Israelmore Ayivor “Life is a linear equation in which you can't cross multiply! If you think you can do it, you can do it. If you think you can't do it, you can't do it. It's a simple formula!”
  • 6. Linear regression, understanding line of best fit, residuals ● Finding a line that is the best fit to the data. ● Determining if the line found is the line of best fit. ● Understanding the relationship this line creates between the two quantitative variables. ● Once the line of best fit has been determined we are able to predict a quantity of the response variable given the explanatory variable. What Is This Topic About?
  • 7. Definition of Concepts Linear Regression The statistical method for fitting a line to data where the relationship of two variables, x and y, can be modeled by a straight line with some residuals Residuals The difference between the observed value of the dependent variable and the predicted variable, Residual = y-y* X and Y variable X represents the explanatory variable and the Y represents the response variable. Scatterplot This graph shows the relationship between the two quantitative variables measured.
  • 8. Practical Uses of This Subject Businesses Linear regression helps business understand relationship of advertising spending and revenue Medical Research Linear regression is often used to see relationship between different drug dosages and blood pressure, sugar levels, etc.
  • 9. STOP Let’s see some statistics live. What does this video portray? How is it related to what we are learning? https://www.youtube.com/watch?v=jbkSRLYSojo&t=218s
  • 10. How to determine if a line is THE line of best fit Step 1 Step 2 Step 3 Step 4 Find the equation of the line (eyed) Determine if the sum is the minimum Find the residuals of the data Take the sum of the square of the residuals
  • 11. Ex. The guessed line. 4. Found the residuals of the line Graph of residuals on the guessed line 5. Calculated the sum of the squares of the residuals, result of 10.9. 0 2 4 6 0 5 10 15 Time awake (min) Times woken up Time awake in middle of night (minutes) 1. Interpret scatter plot: Relationship of time awake (in minutes) given the number of times woken up. 2. We eye (guess) a line of best fit and plot it (black line) 3. Calculate the estimated line of best fit, using y=mx+b, in which case we use two points (2,1), (7,1.8) to find m and b. 𝑚 = 𝑦2−𝑦1 𝑥2−𝑥1 = 1.8−1 7−2 = 0.8 5 = 0.16 1.8 = 0.16 7 + 𝑏 𝑏 = 0.68 𝑦∗ = 0.16𝑥 + 0.68 X-Values Y-Values 1 0 2 1 3 2 4 0.5 5 3 6 0.5 7 1.8 8 0.7 9 4 10 2
  • 12. Ex. The line of best fit. 0 2 4 6 0 5 10 15 Time awake (min) Times woken up Times woken up in middle of sleep (minutes) Most calculators have a linear regression feature that helps calculate the line of best fit for a set of data. In which case provides you with the equation of the line with the minimum sum of squared residuals. For our data set above, the line of best fit is described by 𝑦 = 0.205𝑥 + 0.42 The sum of the residuals of this respected line equaled to 10.726, which is only 0.2 away from the one we eyed. Therefore, we can conclude that although going through the most points is not the best method to approach it also is not the worse. Graph of the residuals of The line of best fit
  • 13. Let us wrap up by making a prediction? • We now have a line of best fit for the data we observed, 𝑦 = 0.205𝑥 + 0.42 • Let us create a prediction to understand the relationship of this data. • Allow x to be 10, what does this mean? • What is the value of y? What is the interpretation of y? If we have x = 10, meaning we woke up a total of 10 times in the night, thanks to the line of best fit we can predict how long we were awake. We find that y = 2.42, meaning that if we woke up a total of 10 times at night we were awake for a total of 2.42 minutes. There is positive relationship on the number of times we wake up in the middle of the night with the total time we are awake during the night.
  • 14. Let us now organize all that we have learned today using a KWL chart. I ask that each student fill out this chart. I will be providing you with a clean copy right now. I want a minimum of three take always for each column. I will be providing you with an example of what I am asking, but you cannot steal what is on the KWL chart I created.
  • 15. In-Class Activity Hey, students! Go to student.desmos.com