Unformatted text preview:

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL STOR 155 Introductory Statistics Lecture 8 Least Squares Regression 9 22 09 Lecture 8 1 Review Scatter plot Association form direction strength Just graphical not numerical Correlation Direction strength linear Properties Vertical and horizontal lines r 0 Correlation cannot tell the exact relationship 9 22 09 Lecture 8 2 Topics Least Squares Regression Regression lines Equation and interpretation of the line Prediction using the line Correlation and Regression Coefficient of Determination 9 22 09 Lecture 8 3 Age vs Mean Height 9 22 09 Lecture 8 4 To predict mean height at age 32 months 9 22 09 Lecture 8 5 Linear Regression Correlation measures the direction and strength of the linear relationship between two quantitative variables A regression line summarizes the relationship between two variables if the form of the relationship is linear describes how a response variable y changes as an explanatory variable x changes is often used as a mathematical model to predict the value of a response variable y based on a value of an explanatory variable x 9 22 09 Lecture 8 6 Equation of a straight Line A straight line relating y to x has an equation of the form y a bx x explanatory variable y response variable a y intercept b slope of the line 9 22 09 Lecture 8 7 How to fit a line 9 22 09 Lecture 8 8 Error 9 22 09 Lecture 8 9 Least Square Regression Line A line that makes the sum of the squares of the vertical distances of the data points from the line as small as possible Mathematically the line is determined by minimizing y a bx i 2 i over values of the pair a b 9 22 09 Lecture 8 10 Equation of the Least Squared Regression Line The least squares regression line of y on x is a bx y with slope and intercept b r sy sx a y bx 9 22 09 Lecture 8 11 Interpreting the Regression Line The slope b tells us that along the regression line a change of one standard deviation in x a change of r standard deviations in y a change of 1 unit in x b units in y The point x y is always on line why If both x and y are standardized the slope will be r the intercept will be 0 the origin 0 0 is on line why r and b have same sign 9 22 09 Lecture 8 12 Example Age vs Height 84 Height in centimeters 82 64 932 0 6348x y 80 78 76 17 5 20 22 5 25 27 5 30 Age in months x 23 5 y 79 85 r 0 9944 sx 3 606 s y 2 302 9 22 09 Lecture 8 b r sy sx a y bx 13 Prediction y a bx is a prediction when the explanatory variable x x What is the average height for a child who is 30 month old How about a 30 year old Do not extrapolate too much for prediction 9 22 09 Lecture 8 14 Correlation and Regression Both for linear relationship between two variables Same sign between b and r r does not depend on which is x and which is y But a regression line does causality 9 22 09 Lecture 8 15 Regression lines depend on x y or y x 9 22 09 Lecture 8 16 Coefficient of Determination r2 The square of the correlation r2 is the proportion of variation in the values of y that is explained by the regression model with x 0 r2 1 The larger r2 the stronger the linear relationship The closer r2 is to 1 the more confident we are in our prediction 9 22 09 Lecture 8 17 Age vs Height r2 0 9888 9 22 09 Lecture 8 18 Age vs Height r2 0 849 9 22 09 Lecture 8 19 Take Home Message Least Squares Regression Regression lines Equation and interpretation of the line Prediction using the line Correlation and Regression Coefficient of Determination 9 22 09 Lecture 8 20


View Full Document

UNC-Chapel Hill STOR 155 - Lecture 8- Least-Squares Regression

Documents in this Course
Exam 1

Exam 1

2 pages

Load more
Loading Unlocking...
Login

Join to view Lecture 8- Least-Squares Regression and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture 8- Least-Squares Regression and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?