Presentation is loading. Please wait.

Presentation is loading. Please wait.

Simple Linear Regression Relationships Between Quantitative Variables.

Similar presentations


Presentation on theme: "Simple Linear Regression Relationships Between Quantitative Variables."— Presentation transcript:

1 Simple Linear Regression Relationships Between Quantitative Variables

2 Scatterplot X-axis represents the number of games Y-axis represents the times at-bat. Each point represents a particular baseball player’s number of games played and number of times at- bat.

3 Scatterplots Explanatory variable (independent variable) is X Response variable (dependent variable) is Y Both must be quantitative! Look for a pattern in the scatterplot Ex: positive linear trend (association) Ex: negative linear trend (association) Ex. Curved trend (nonlinear)

4 Positive Linear Association Are Number of Home Runs and Number of Runs Batted In related? As the number of home runs increases, how does that effect the outcome of number of runs batted in?

5 Negative Linear Association It is believed that carbonation (depth) of concrete leads to corrosion of steel frame and thus reduces strength of concrete. What type of relationship appears to be modeled in this scatterplot?

6 Nonlinear Pattern in scatterplot does not resemble a straight line.

7 Nonlinear Pattern in scatterplot resembles a typical exponential decay. As the frying time increases, the moisture content decreases exponentially.

8 Y^ = y-intercept + (slope)  x Prisoners^ =.00552*Persons – 4800 b 0 =.00552 b 1 = -4800

9 y^ = y-intercept + (slope)  x Slope is the rate at which the y- variable is changing with respect to the x-variable increasing by 1 unit. Y-intercept is the value of y when the x-variable is equal to 0. It is also where the line crosses on the y- axis.

10 Using Least Squares Regression Line (Equation) Prisoners^ = – 4800 +.00552*Persons If there were 10,000,000 persons living in a state, predict the number of prisoners for that state?

11 Predicting rangein nautical miles fuelgphfuel use in gallons per hour range = – 210 + 1.09(fuelgph) What is the predicted range an airplane can travel consuming 3410 gallons per hour?

12 Residual  Error Consuming 3410 gallons per hour, the actual range traveled was 4988 miles. Our prediction calculated it to be 3506.9 miles. We underestimated! Residual = 4988 - 3506.9 = 1481.1

13 Residuals Residual is the distance between the observed (actual) value and the prediction value generated from least squares regression equation.

14 Residual Plot There should be no apparent pattern in the residual plot. Any pattern indicates that a linear model is not the best equation to use.

15 Correlation Coefficient, r r measures the strength of linear strength between the 2 variables. -1  r  1 Sign of r indicates direction of relationship; as magnitude indicates strength of relationship. Perfectly linear if r = -1 or 1. No units.

16 Correlation Coefficient Game  Go to www.stat.uiuc.edu/~stat100/cuwu/www.stat.uiuc.edu/~stat100/cuwu/  Select Games  Select Correlation  Correctly match the correlation coefficient r to the corresponding scatterplot.

17 Coefficient of Determination R 2 is the squared value of r, correlation coefficient. It represents the “proportion of variation in the linear model explained by the explanatory x-variable”.

18 Coefficient of Determination R 2 =.72. Therefore, 72% of the variation in the response variable (range) is explained by the explanatory variable (costph).

19 Investigate  Go to http://www.stat.uiuc.edu/~stat100/cuwu/ http://www.stat.uiuc.edu/~stat100/cuwu/  Select Data Applet  Select Baseball (data list on right)  Select Accept Data Set  Select Scatter Plot (at top of frame)  Check Regression and Residual (at left of frame)  Select At-Bats as X-variable and Hits as Y-variable  Click Up-Date at lower right corner  Now change variables and Up-Date! Observe the relationship between variables graphically and statistically.

20 Draw Your Regression Line Go to http://www.ruf.rice.edu/~lane/stat_sim/reg_by_e ye/index.html http://www.ruf.rice.edu/~lane/stat_sim/reg_by_e ye/index.html Select Begin Click in scatterplot at one end and drag to draw line Select your guess at r Select Show Minimum MSE Then select Draw Regression Line How close were you?

21 Influential Observation Go to http://www.stat.sc.edu/~west/javahtml/Regr ession.html http://www.stat.sc.edu/~west/javahtml/Regr ession.html Click pointer anywhere in scatterplot to create a new point, notice how it changes the least squares regression equation and the value of r. It is a point (usually with an extreme x value) that influences the least squares regression equation and correlation coefficient.

22 Causation vs. Correlation Confounding factors (variables) Causation is very difficult to prove and requires an extensive experiment. The response variable could be causing the explanatory variable to change. …


Download ppt "Simple Linear Regression Relationships Between Quantitative Variables."

Similar presentations


Ads by Google