MSV 20: Residuals www.making-statistics-vital.co.uk.

Slides:



Advertisements
Similar presentations
Graphing Linear Equations By: Christine Berg Edited By: VTHamilton.
Advertisements

Gradients and Tangents = 6 Solution: = 2 difference in the x -values difference in the y -values x x e.g. Find the gradient of the line joining.
LIAL HORNSBY SCHNEIDER
Lines with Zero Slope and Undefined Slope
Quadrant II (x 0) Quadrant I (x > 0, y>0) ( -5, 3) x-axis Origin ( 0,0 ) Quadrant IV (x>0, y
Bell Work: Draw the figure that this net depicts..
Gradient Intercept y = mx + c. Gradient of a line Graphs y = mx + c x y y intercept: where the graph cuts the Y axis Gradient: the slope (steepness) of.
X and Y Intercepts. Definitions Intercept – the point where something intersects or touches.
5-7: Scatter Plots & Lines of Best Fit. What is a scatter plot?  A graph in which two sets of data are plotted as ordered pairs  When looking at the.
Copyright © Cengage Learning. All rights reserved. 5 Integrals.
In Chapters 2 and 3, you studied linear functions of the form f(x) = mx + b. A quadratic function is a function that can be written in the form of f(x)
Co-ordinate Geometry Learning Outcome: Calculate the distance between 2 points. Calculate the midpoint of a line segment.
The Power Rule  If we are given a power function:  Then, we can find its derivative using the following shortcut rule, called the POWER RULE:
Positive and Negative Numbers
Consecutive Task Task 1 Task 2 Task 3 Task 4 Task 5 Task 6 Task 7
Introduction Two equations that are solved together are called systems of equations. The solution to a system of equations is the point or points that.
Quadratics       Solve quadratic equations using multiple methods: factoring, graphing, quadratic formula, or square root principle.
Descriptive Methods in Regression and Correlation
Residuals and Residual Plots Most likely a linear regression will not fit the data perfectly. The residual (e) for each data point is the ________________________.
Basic Laws Of Math x
What are quadratic equations, and how can we solve them? Do Now: (To turn in) What do you know about quadratic equations? Have you worked with them before?
MSV 3: Most Likely Value
Graphing Linear Equations. Linear Equation An equation for which the graph is a line.
Section 6-2 Slope-Intercept Form. How to Graph a Linear Equation It must be in the slope – intercept form. Which is: y = mx + b slope y-intercept.
Slope-Intercept Form of an Equation © 2002 by Shawna Haider.
What is a Line? A line is the set of points forming a straight path on a plane The slant (slope) between any two points on a line is always equal A line.
Section 4.2 Least Squares Regression. Finding Linear Equation that Relates x and y values together Based on Two Points (Algebra) 1.Pick two data points.
The Straight Line.
Advanced Algebra 1. Slope-Intercept Form Point-Slope Form.
MSV 33: Measures of Spread
Gradient of a Curve: this is given by the gradient of the tangent
Copyright © Cengage Learning. All rights reserved. 4 Integrals.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 4 Section 2 – Slide 1 of 20 Chapter 4 Section 2 Least-Squares Regression.
Activity 1-7: The Overlapping Circles
Structures 3 Sat, 27 November : :00 Straight line graphs and solving linear equations graphically 11: :00 Solving simultaneous equations:
Mr Barton’s Maths Notes Graphs 2. Quadratics and Cubics
MSV 23: Balls in a Box
7.6 Phase Shift; Sinusoidal Curve Fitting
Adding Integers The University of Texas at Dallas.
Activity 2-15: Elliptic curves
Positive and Negative numbers. Negative numbers A positive or negative whole number, including zero, is called an integer. For example, –3 is an integer.
Graphing Rational Functions. What is a rational function? or.
Activity 2-5: Conics Take a point A, and a line not through A. Another point B moves so that it is always the same distance from.
MSV 18: The Coffee Problem
MSV 25: The Independent School
Chapter 16 Graphs. Learning Outcomes Draw straight line graphs Draw special horizontal & vertical graphs Recognise the gradient & y-intercept from an.
MSV 8: Sampling
Absolute Value and Translations Section 6-8. Notes The absolute value is the distance a number is away from zero. Because distance can never be negative.
2.1 Linear Functions and Models. Graphing Discrete Data We can graph the points and see if they are linear. Enter the data from example 1 into L1 and.
Velocity-Time Graphs SNC2D – Physics M. M. Couturier.
Chapter 3 Graphs and Functions. § 3.1 Graphing Equations.
Unit 4 Review! Objective: to review linear equations Common Core State Standards 8.EE.5; 8.EE.6; 8.EE.7; 8.EE.8.
Slope of a Line Slope Slope describes the slant or direction of a line.
Stationary/Turning Points How do we find them?. What are they?  Turning points are points where a graph is changing direction  Stationary points are.
MSV 38: Adding Two Poissons
MSV 13: The Colin and Phil Problem
Straight Line Graph.
Graphing Linear Equations
Scatter Plots Line of Best Fit
Graphing Equations and Inequalities
Co-ordinate Geometry Learning Outcome:
The Rectangular Coordinate System
Graphing Linear Equations
Lesson 5.3 How do you write linear equations in point-slope form?
Scatter Plots Line of Best Fit
KS4 Mathematics Linear Graphs.
Add and Subtract I can use materials or drawings to show how numbers fit together to 20. I can make organised lists showing the numbers that fit together.
العلاقات والدوال أ. ريما عباس ريض 152.
A8 Linear and real-life graphs
Presentation transcript:

MSV 20: Residuals

Enter the following points into Autograph (or another graphing package) and draw the scatter diagram. (1, 4), (2, 7), (3, 6), (4, 8), (5, 9) Autograph File Hyperlink msv/msv-20/msv-20.agg

Now enter the equation y = mx + c. (Autograph gives both m and c the value 1, and draws y = x + 1.) Would the sum of the y-on-x residuals here be positive or negative? Vary c using the Constant Controller. What happens to the sum of the y-on-x residuals?

Add the points on the line with x-coordinates 1, 2, 3, 4, and 5. Select the line, right-click, Enter point on curve... Now create vectors joining the points on the line to the scatter diagram points. Select each pair of points, right-click, Create vector... We can now see the residuals...

Consider the y-on-x residuals for the general line y = mx + c. Show that the sum of the y-on-x residuals here will be m - 5c. Draw the horizontal line y = m - 5c on your scatter diagram. Pick some value for m and vary c: can you always find a value of c so that the sum of the y-on-x residuals is equal to 0? Now pick some value for c and vary m: can you always find a value for m so that the sum of the y-on-x residuals is equal to 0?

What do the lines that give the sum of the y-on-x residuals equal to zero have in common? Can you prove this? Answer: a line gives the sum of the residuals to be 0 if and only if it through the ‘centroid’ of the scatter diagram points. What is the equation of the line with gradient m go through the ‘centroid’ of your scatter diagram points? Edit your line to be this. Now how can we choose m sensibly to make our line the line of best fit? (You will need to edit your horizontal line too.)

Select the points and the line together (using Shift) and right-click. Then ‘y-on-x residuals’ and ‘Draw squares’. We will say the line of best fit is the one that minimises the sum of the area of these squares. Watch the size of the squares change as we vary m.

Answers The scatter diagram with y = mx + c added looks like this: The sum of the y-on-x residuals is clearly positive here.  i = (4 - 2) + (7 - 3) + (6 - 4) + (8 - 5) + (9 - 6) = 14. It is easy to adjust c to give a diagram where the sum of the y on x residuals is clearly negative.

So presumably there is a value for c where the sum of the y-on-x residuals is zero? Taking y = mx + c, the sum of the y-on-x residuals here is  i = (4 - m - c)+(7 - 2m - c)+(6 - 3m - c)+ (8 - 4m - c)+(9 - 5m - c) = m - 5c. So if we add y = m - 5c to the diagram, it will show us the value of the sum of the y-on-x residuals for any particular m and c.

If the sum of the y-on-x residuals is zero, then the blue line and the x-axis will coincide. Playing with this situation shows that for any c, it is possible to find an m that gives the sum of the y-on-x residuals to be zero, and for any m, it is possible to find a c that gives the sum of the y-on-x residuals to be zero.

Is it true that any such line will go through the centroid of the data?

is written by Jonny Griffiths