Presentation is loading. Please wait.

Presentation is loading. Please wait.

The following data represents the amount of Profit (in thousands of $) made by a trucking company dependent on gas prices. Gas $1.901.952.102.501.802.402.05.

Similar presentations


Presentation on theme: "The following data represents the amount of Profit (in thousands of $) made by a trucking company dependent on gas prices. Gas $1.901.952.102.501.802.402.05."— Presentation transcript:

1 The following data represents the amount of Profit (in thousands of $) made by a trucking company dependent on gas prices. Gas $1.901.952.102.501.802.402.05 Calories420300220120500180433 1.Construct and Describe the Scatterplot for this data. 2.Find the Least Square Regression Line

2 RESIDUALS (also called Errors) The vertical distances from the observed y values and the predicted y on the line are called Residuals. Residual = Observed y – Predicted y Value Residual =

3 xy 250 348 530 Calculating Residuals Find the Residuals for each of the three values. 52 45 31 -2 3

4 A Residual Plot is a scatter plot where the Residual values are on the y-axis and are plotted against the explanatory variable x (or ). Used to determine if the model (the equation) fits the data. Why do we want to calculate Residuals?????

5 A Residual Plot that reveals NO Pattern signifies that the model is a GOOD FIT. A Residual Plot that reveals any Pattern signifies that the model should NOT be used for the data. Random scattered points. The Linear Equation is a Good Model. A Pattern is Observed. The Linear Equation is NOT a good Model. Increasing Pattern. The line is NOT a good Model for larger values of x.

6 Fast food is often considered unhealthy because of the amount of fat and calories in it. Does the amount of Fat content contribute to the number of calories a food product contains? Fat (g)19313435392643 Calories92013001310960118011001260 1.Interpret the residual plot.

7 Calculating Residuals Fat (g)19313435392643 Calories92013001310960118011001260 997.61131.21164.6 1175.8 1220.3 1075.5 1264.9 -77.6168.8145.4 -215.8 -40.324.5 -4.9 xyxy Residual plot: The scatter plot depicts a random scatter of points = the model FITS the data well Residual plot:

8 Fat (g)19313435392643 Calories92013001310960118011001260 Residual plot: The scatter plot depicts a random scatter of points = the model FITS the data well Residual plot:

9 Finding the Least Squares Regression Model from summary statistics :

10 Here are the summary statistics for the number of hurricanes that have formed per year over the past 100 years and for Temperature of the ocean each year for the same time period. We would like to use ocean temperature to predict number of hurricanes. a.) Find the Least squares regression line AND interpret a and b in contexts to the problem.. means.d. Temperature of the Ocean (degrees Fahrenheit) 623.8 r = 0.94 Number of Hurricanes 116.2

11 Homework: Page 192: 1, 38, 42, 43

12

13

14

15 xy 050 148 230 340 420 535 610 712 Calculating Residuals49.83 44.35 38.86 33.37 27.88 22.39 16.91 11.42 0.17 3.65 -8.86 6.63 -7.88 12.61 -6.91 0.58

16 Does adding a fuel additive help gasoline mileage in automobiles? Use Linear Regression to analyze the following data: Amount of STP fuel additive added to the gas tank (in ounces) = x Recorded gas mileage = y 1. Graph the Scatterplot Describe the direction, form and strength. 2. Find the Residuals for all 10 points. Plot them & interpret them. 3. Find the Least Squares Regression Line. In contents to the problem, interpret the meaning of ‘y-int’ and ‘slope’. 4. What is the regression line Correlation Coefficient value? What does this value indicate in relation to the data? 5. What is the Coefficient of Determination value? What does this value indicate in relation to the data? 6. Predict the gas mileage after adding 15 ounces of fuel additive. 7. Find the predicted gas mileage after adding 100 ounces. X46810121316202224 Y1314.415.31616.115.81717.517.619.1

17 R 2 : 91.8% of the variation in the predicted gas milage is attributed by the amount of additive added to the tank. Regression model: Gas Milage = 12.898 + 0.243(Add.) Slope: For every additional ounce of Additive the model predicts an additional 0.243 miles per gallon. y-intercept: If the tank contained NO Gas Additive the car would still get 12.898 mpg. Correlation: r = 0.958 Very strong positive linear relationship. R2:R2: Regression model: Slope: y-intercept: Correlation: Residual plot: The scatter plot depicts a random scatter of points = the model FITS the data well Residual plot:

18 WARM-UP Is there an association between how much a baseball team pays its players (Average in millions) and the team winning percentage? Find AND interpret r and R 2. Team Average Win PCT N.Y. Yankees 4.34 64.0 Boston 3.61 57.4 Texas 3.63 44.4 Arizona 3.11 60.5 Los Angeles 3.64 56.8 New York Mets 3.63 46.6 Atlanta 3.01 63.1 Seattle 3.21 57.4 Cleveland 2.63 45.7 San Francisco 2.89 59.0 Toronto 2.65 48.1 Chicago Cubs 2.70 41.4 St. Louis 2.8459.9 St. Louis 2.84 59.9 Examine Graph ŷ = 38.953 + 4.725x r = 0.31 R 2 = 9.8%

19 R-Sq. = 0.098 = 9.8% 9.8% of the variation in the predicted values of Winning Percent is attributed to the salaries of the players. 90.2% of that variation is attributed by other factors.

20 1. Graph the Scatterplot Describe the direction, form and strength. 2. Find the Residuals for all 10 points. Plot them & interpret them. 3. Find the Least Squares Regression Line. In contents to the problem, interpret the meaning of ‘a’ and ‘b’. 4. What is the regression line Correlation Coefficient value? What does this value indicate in relation to the data? 5. What is the Coefficient of Determination value? What does this value indicate in relation to the data? 6.Predict the gas mileage after adding 15 ounces of fuel additive. 7.Find the predicted gas mileage after adding 100 ounces. This is called EXTRAPOLATION when you make predictions for data outside your range.


Download ppt "The following data represents the amount of Profit (in thousands of $) made by a trucking company dependent on gas prices. Gas $1.901.952.102.501.802.402.05."

Similar presentations


Ads by Google