Presentation on theme: "LSRL Least Squares Regression Line"— Presentation transcript:
1 LSRL Least Squares Regression Line Chapter 5LSRLLeast Squares Regression Line
2 Bivariate datax – variable: is the independent or explanatory variabley- variable: is the dependent or response variableUse x to predict y
3 Be sure to put the hat on the y - (y-hat) means the predicted yb – is the slopeit is the approximate amount by which y increases when x increases by 1 unita – is the y-interceptit is the approximate height of the line when x = 0in some situations, the y-intercept has no meaningBe sure to put the hat on the y
4 Least Squares Regression Line LSRL The line that gives the best fit to the data setThe line that minimizes the sum of the squares of the deviations from the line
6 What is the sum of the deviations from the line? Will it always be zero?Use a calculator to find the line of best fit(0,0)(3,10)(6,2)6Find y - y-3The line that minimizes the sum of the squares of the deviations from the line is the LSRL.-3Sum of the squares = 54
7 Interpretations Slope: For each unit increase in x, there is an approximate increase/decrease of b in y.Correlation coefficient:There is a direction, strength, linear of association between x and y.
8 The ages (in months) and heights (in inches) of seven children are given. xyFind the LSRL.Interpret the slope and correlation coefficient in the context of the problem.
9 Correlation coefficient: Predicted heights = (age in months)Correlation coefficient:There is a strong, positive, linear association between the age and height of children.Slope:For an increase in age of one month, there is an approximate increase of .34 inches in heights of children.
10 Predict the height of a child who is 4.5 years old. The ages (in months) and heights (in inches) of seven children are given.xyPredict the height of a child who is 4.5 years old.Predict the height of someone who is 20 years old.38.5 inchesGraph, find lsrl, also examine mean of x & yinches or 8.5 feet?
11 Interpolation (good): Using a regression line for estimating predicted values between known values.
12 Extrapolation (bad)The LSRL should not be used to predict y for values of x outside the data set.It is unknown whether the pattern observed in the scatterplot continues outside this range.
13 For these data, this is the best equation to predict y from x. The ages (in months) and heights (in inches) of seven children are given.The LSRL isCan this equation be used to estimate the age of a child who is 50 inches tall?Calculate: LinReg L2,L1For these data, this is the best equation to predict y from x.Do you get the same LSRL?However, statisticians will always use this equation to predict x from y
14 Will this point always be on the LSRL? The ages (in months) and heights (in inches) of seven children are given.xyCalculate x & y and sx and sy :Plot the point (x, y) on the scatterplot.Graph, find lsrl, also examine mean of x & yWill this point always be on the LSRL?
15 The correlation coefficient and the LSRL are both non-resistant measures.
16 Slope = correlation coefficient (st. dev. of y / st.dev. of x) Formulas – on chartPredicted y = y-intercept + slope(x)Slope formulaY-intercept = mean of y – slope (mean of x)Slope = correlation coefficient (st. dev. of y / st.dev. of x)
17 The following statistics are found for the variables posted speed limit and the average number of accidents.Find the LSRL & predict the number of accidents for a posted speed limit of 50 mph.
18 b0 = 18 - .7228(40) = -10.92 For LSRL need slope and y-intercept: Predicted # of accidents = .723(posted speed limit) – 10.92
19 Describe the relationship between the two variables: SleepScore82592872110268.5186.5165.511291967.523242720Describe the relationship between the two variables:(Score = a + b (Hours of Sleep))What is the equation for the LSRL?What is the slope of this line? Interpret the slope in the context of the problem. What are the units?If a student got 10 hours of sleep the night before the exam, use the linear equation to approximate her score on the ACT.
20 Example: The average annual cost per person due to traffic delays for 70 US cities in 2000 was $ with a standard deviation of $ The peak period average freeway speed is mph with a standard deviation of mph. The correlation between cost per person and freeway speed is Write a regression model to estimate costs per person associated with traffic delays.====r =
21 c) The regression model is Price = 9.564 + 122.74 size Example: A scatterplot of house prices (in thousands of dollars) vs. house size (in thousands of square feet) shows a relationship that is straight, with only moderate scatter and no outliers. The correlation between house price and house size is 0.85.If a house is 1 SD above the mean in size (making it about 2170 sq ft), how many SDs above the mean would you predict its sale price to be?b) What would you predict about the sale price of a house that’s 2 SDs below average in size?c) The regression model is Price = sizeWhat does the slope of mean?d) What are the units?e) How much can a homeowner expect the value of his house to increase if he builds on an additional 2000 sq ft?f) How much would you expect to pay for a house of 3000 sq ft?