Regression lines A line of best fit should: Go through ( x , y )

Slides:



Advertisements
Similar presentations
Regression To be able to calculate the regression line of y on x To be able to interpret the equation of the regression line By the end of the lesson you.
Advertisements

R Squared. r = r = -.79 y = x y = x if x = 15, y = ? y = (15) y = if x = 6, y = ? y = (6)
Linear regression and correlation
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Definition  Regression Model  Regression Equation Y i =  0 +  1 X i ^ Given a collection of paired data, the regression equation algebraically describes.
Equations of Lines; Building Linear Functions January 22, 2007.
The slope of a line. We define run to be the distance we move to the right and rise to be the corresponding distance that the line rises (or falls). The.
12.2 Functions and Graphs F(X) = x+4 where the domain is {-2,-1,0,1,2,3}
Linear Regression When looking for a linear relationship between two sets of data we can plot what is known as a scatter diagram. x y Looking at the graph.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
For the line that passes through points (-4, 3) and (-2, 4).
Identifying Conic Sections
Hyperbolas 9.3. Definition of a Hyperbola A hyperbola is the set of all points (x, y) in a plane, the difference of whose distances from two distinct.
1.8 Circles.
Whiteboardmaths.com © 2008 All rights reserved
Linear Regression Least Squares Method: an introduction.
EXAMPLE 3 Multiply polynomials vertically and horizontally a. Multiply – 2y 2 + 3y – 6 and y – 2 in a vertical format. b. Multiply x + 3 and 3x 2 – 2x.
Regression Lines. Today’s Aim: To learn the method for calculating the most accurate Line of Best Fit for a set of data.
9.2A- Linear Regression Regression Line = Line of best fit The line for which the sum of the squares of the residuals is a minimum Residuals (d) = distance.
9.2 Notes – Parabolas.
 Slope is the rate of change.  Vertical change rise Horizontal changerun.
Regression.
Objectives: Represent linear patterns with equations. Represent linear equations with graphs. Standards Addressed: G: Represent relationships with.
Objectives The student will be able to: 1. add and subtract polynomials.
Writing Equations of Lines. Find the equation of a line that passes through (2, -1) and (-4, 5).
CHAPTER Adding and subtracting polynomials.
STATISTICS 12.0 Correlation and Linear Regression “Correlation and Linear Regression -”Causal Forecasting Method.
Ellipse Notes. What is an ellipse? The set of all points, P, in a plane such that the sum of the distances between P and the foci is constant.
Linear Regression Line of Best Fit. Gradient = Intercept =
Method 3: Least squares regression. Another method for finding the equation of a straight line which is fitted to data is known as the method of least-squares.
White Board Review Game! Midpoint and Distance Problems.
Graphing Linear Equations 4.2 Objective 1 – Graph a linear equation using a table or a list of values Objective 2 – Graph horizontal or vertical lines.
Understanding Addition of Integers. a. For each example above, what is the distance between 2 and the sum? b. Does the sum lie to the right or left of.
10-8 Equations of Circles 1.Write the equation of a circle. 2.Graph a circle on the coordinate plane.
EXAMPLE 3 Multiply polynomials vertically and horizontally a. Multiply –2y 2 + 3y – 6 and y – 2 in a vertical format. b. Multiply x + 3 and 3x 2 – 2x +
LEAST – SQUARES REGRESSION
Linear Regression Special Topics.
The Lease Squares Line Finite 1.3.
Get out Ellipse: Notes Worksheet and complete #2 & #3 (Notes Sheet From Yesterday)
wanted sped coed Cocreator incohesive cohabitate
9/19/16 HOW to make a graph Objective: I will construct a graph from a data table and include all of the required parts of a graph. PAGE 11.
Simple Linear Regression - Introduction
Remember graphs are read from left to right like a book
AP Stats: 3.3 Least-Squares Regression Line
(x2,y2) (3,2) (x1,y1) (-4,-2).
VERTICAL LINE TEST GRAPHS can represent functions.
Ellipse Notes.
distance out from center distance up/down from center

Warm Up.
R Squared.
Least Squares Fitting A mathematical procedure for finding the best-fitting curve to a given set of points by minimizing the sum of the squares of the.
Equation Review Given in class 10/4/13.
Finding the Distance Between Two Points.
7.4 – The Method of Least-Squares
Section 2: Linear Regression.
Least-Squares Regression
Lesson 2.2 Linear Regression.
Regression All about going back (regressing) from the points to the function from which they came. We are looking at linear regression.
To add or subtract polynomials, combine like terms.
CALCULATING EQUATION OF LEAST SQUARES REGRESSION LINE
distance out from center distance up/down from center
Tuesday, September 29 Check HW Probs 3.13, 14, 20 (7-11-doubles)
This diagram helps explains why angles at a point add to 360o.
Equation Review.
R = R Squared
Unit 5 Lesson 1 Objective:
Objective: To write equations of lines.
Lesson 2.2 Linear Regression.
Regression and Correlation of Data
Presentation transcript:

Regression lines A line of best fit should: Go through ( x , y ) Minimise the distances to the line from the points PROBLEM: Some are + and some are – and when added give 0!!! Change second to minimise the squares of the distances to the line from the points

PROBLEM: Is the distance vertical or horizontal? x Why not both!! So we have 2 least-squares regression lines: y on x (vertical distances squared) x on y (horizontal distances squared) X on y IS NOT y on x rearranged!!!!!!!!!

REMEMBER Sxx = Σx2 – (Σx)2 n Syy = Σy2 – (Σy)2 n Sxy = Σxy – (Σx)(Σy)

x y x2 y2 xy 2 3 4 9 6 16 12 5 25 36 30 7 49 27 28 139 144 Sxx= 17.500 Syy= 13.333 Sxy= 13.000 b= 13/17.5= 0.7429 a = (28/6) –(0.743)(27/6) = 1.324 Equation for y on x y = 0.743x + 1.324

x y x2 y2 xy 2 3 4 9 6 16 12 5 25 36 30 7 49 27 28 139 144 Sxx= 17.500 Syy= 13.333 Sxy= 13.000 d = 13/13.333= 0.975 c = (27/6) –(0.975)(28/6) = -0.05 Equation of x on y x = 0.975y – 0.05