Download 3.2a notes A regression line is a line that describes how a response

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Choice modelling wikipedia , lookup

Least squares wikipedia , lookup

Time series wikipedia , lookup

Regression toward the mean wikipedia , lookup

Regression analysis wikipedia , lookup

Linear regression wikipedia , lookup

Coefficient of determination wikipedia , lookup

Transcript
3.2a notes
A regression line is a line that describes how a response variable y changes as an explanatory
variable x changes. We often use a regression line to predict the value of y for a given value of
x.
𝑦̂ = π‘Ž + 𝑏π‘₯
where 𝑦̂ (y hat) is the predicted value, b is a slope, and a is the y intercept.
Example 1: Used Hondas
The following data shows the number of miles driven and advertised price for 11 used Honda
CR-Vs from the 2002-2006 model years (prices found at www.carmax.com). The scatterplot
below shows a strong, negative linear association between number of miles and advertised cost.
The correlation is -0.874. The line on the plot is the regression line for predicting advertised
price based on number of miles.
Thousand
Miles
Driven
22
29
35
39
45
49
55
56
69
70
86
Cost
(dollars)
17998
16450
14998
13998
14599
14988
13599
14599
11998
14450
10998
Example 2: The regression line shown on the scatterplot is yΜ‚ = 18773 – 86.18x or
price ο€½ 18773 – 86.18(number of miles) .
3.2a notes
Identify the slope and y intercept of the regression line. Interpret each value in context.
Extrapolation: is the use of a regression line for prediction far outside the interval of values of
the explanatory variable x used to obtain the line. Such predications are often not accurate.
Example 3: Used Hondas
For the advertised price and number of miles data, the equation of the regression line is:
price ο€½ 18,773 – 86.18(thousands of miles) . Predict the asking price for a car with 50,000
miles. Substitute x = 50 into the regression line: price ο€½ 18,773 – 86.18(50) = $14,464. This is
illustrated in the figure below.
Example 4: Extrapolation and Used Hondas
Should we predict the asking price for a used 2002-2006 Honda CR-V with 250,000 miles? No!
We only have data for cars with between 22,000 and 86,000 miles. We don’t know if the linear
pattern will continue beyond these values. In fact, if we did predict the asking price for a car
with 250 thousand miles, it would be βˆ’$2772!