Linear Regression
Scatterplot: Regression Line: Correlation: A line that describes how a response variable y changes as an explanatory variable x changes. Used to predict the values of y for a given value of x. r-value Measures the strength and direction of the linear relationship between two quantitative variables Always between -1 and 1. Shows the relationship between two quantitative variables measured on the same graph. Each point is an (x,y) coordinate Form: y = a + bx *be sure to label x- & y –axis and 2 points!
Interpretations Slope: Correlation: direction, strength, linearxy There is a direction, strength, linear of association between x and y Direction: Direction: positive or negative Strength: Strength: Strong, Moderate, or Weak Linear: Linear: *if scatterplot appears to be linear, it is linear Form: y = a + bx a = y-intercept b = slope unitx increase/decreaseby For each unit increase in x, there is an approximate increase/decrease of b in y.
Example 1: The following data are advertised horsepower and expected gas mileage for several 2007 vehicles a) Create a scatterplot of these data b) Find the regression line and correlation. c) Interpret the slope and correlation. VehicleHorsepowerHighway Gas Mileage (MPG) Audi A BMW Buick LaCrosse20030 Chevy Cobalt14832 Chevy Trailblazer29122 Ford Expedition30020 GMC Yukon29521 Honda Civic14040 Honda Accord16634 Hyundai Elantra13838 Lexus IS Lincoln Navigator30018 Mazda Tribute21225 Toyota Camry15834 VW Beetle15030
Calculator Screens—Create Scatterplot 1)Enter data into L1 and L2 2)Create Scatterplot using L1 and L2 3)Zoom – 9: ZoomStat
Calculator Screens–Regression Line 1)STAT -- CALC 2)8: LinReg (a+ bx) XList: L1 Ylist: L2 3) Calculate
Example 1: a) Create a scatterplot of these data b) Find the regression line and correlation. y = x r = -.87 Slope: For each unit increase in horsepower, there is an approximate decrease of.086 miles per gallon in Highway Gas Mileage. Correlation: There is a strong, negative linear relationship between horsepower and gas mileage.
Example 2: The data for 11 stand mixers is given below. a)Create a scatterplot of the data. b)Find the regression line and correlation. c)Interpret slope and correlation. d)Find the price for a mixer that weighs 20 pounds. y= x r =.74 Slope: For each 1-pound increase in weight, there is an approximate increase of $12.53 in price. Correlation: There is a positive, moderate linear relationship between weight and price. y = (20) = $229.89Approximately $ Weight (pounds)Price (dollars)