Concept explainers
Speed and density The following data relate traffic Density (measured as number of cars per mile) and the average Speed of traffic (in mph) on city highways. The data were collected at the same location at 10 different times randomly selected within a span of 3 months.
Density | Speed | |
69 | 25.4 | |
56 | 32.5 | |
62 | 28.6 | |
119 | 11.5 | |
84 | 21.3 | |
74 | 22.1 | |
73 | 22.3 | |
90 | 18.5 | |
38 | 37.2 | |
22 | 44.6 | |
Mean | 68.7 | 26.4 |
SD | 27.07 | 9.64 |
- a) Describe the relationship between Speed and Density.
- b) Fit a model to predict Speed from Density. Comment on the appropriateness of the model.
- c) If the traffic density is 56 cars/mile and you observe a speed of 32.5 mph, what is the residual? What is the residual for an observed speed of 36.1 mph with a traffic density of 20 cars/mile?
- d) Which of the two residuals in part c is more unusual? Explain.
- e) A new data point has come in. For this observation, Density = 125 cars/mile and Speed = 55 mph. What would happen to the slope and the
correlation if this point were included? - f) Predict the speed of traffic for a density of 200 cars/mile. Is your prediction reasonable? Explain briefly.
- g) If you standardize both variables, what equation predicts the standardized speed from the standardized density?
- h) If you standardize both variables, what equation predicts the standardized density from the standardized speed?
a.
Explain the relationship between speed and density.
Explanation of Solution
Given info:
The data related to the speed and density of traffic at the same location of a city at 10 different times within a span of 3 months.
Calculation:
Scatterplot:
Software procedure:
Step by step procedure to draw scatterplot using MINITAB software is given as,
- Choose Graph > Scatterplot.
- Choose Simple, and then click OK.
- In Y-variables, enter the column of Speed.
- In X-variables enter the column of Density.
- Click OK.
Output using MINITAB software is given as,
The relation between speed and density is strong, negative and linear. Thus, the association between speed and density is associated with lower speeds.
b.
Obtain a linear model to predict speed from density and comment on the appropriateness of the model.
Answer to Problem 4E
The regression equation of linear model is
Explanation of Solution
Calculation:
Linear regression model:
A linear regression model is given as
Regression
Software procedure:
Step by step procedure to get the output using MINITAB software is given as,
- Choose Stat > Regression > Regression > Fit Regression Model.
- Under Responses, enter the column of Speed.
- Under predictors, enter the columns of Density.
- Click OK.
Output using MINITAB software is given below:
Thus, the regression equation of linear model is
The fitted scatterplot of re-expressed data exhibits a linear pattern. Thus, there is a strong and negative linear association between speed and density of traffic
The coefficient of determination (
In the given output,
Thus, the percentage of variation in the observed values of speed of traffic that is explained by the regression is 96.7%, which indicates that 96.7% of the variability in speed is explained by the variability in density using linear regression model.
The conditions for a residual plot that is well fitted for the data are,
- There should not any bend, which would violate the straight enough condition.
- There must not any outlier, which, were not clear before.
- There should not any change in the spread of the residuals from one part to another part of the plot.
Residual plot:
Software procedure:
Step by step procedure to get the output using MINITAB software is given as,
- Choose Stat > Regression > Regression > Fit Regression Model.
- Under Responses, enter the column of Speed.
- Under Continuous predictors, enter the columns of Density.
- In Graphs, under Residuals for plots choose Regular.
- Under Residuals plots choose Individuals plots and select box of Residuals versus fits.
- Click OK.
Output using MINITAB software is given below:
In residual plot, there is no bend or pattern, which can violate the straight enough condition and there is no change in the spread of the residuals from one part to another part of the plot.
Thus, a linear model is appropriated.
c.
Find the residual of a traffic, having density and observed speed of 56 cars/mile and 32.5 mph, respectively.
Find the residual of another traffic, having density and observed speed of 20 cars/mile and 36.1 mph, respectively.
Answer to Problem 4E
The residual of a traffic, having density and observed speed of 56 cars/mile and 32.5 mph, respectively is 1.65 mph and the residual of a traffic, having density and observed speed of 20 cars/mile and 36.1 mph, respectively is –7.36 mph.
Explanation of Solution
Calculation:
Assume x be the predictor variable and y be the response variable, of a regression analysis. Then, the predicted value of the response variable is
Residual:
The residual is defined as
If the observed value is less than predicted value then the residual will be negative and if the observed value is greater than predicted value then the residual will be positive.
From the previous part b. it is found that the regression equation of linear model is
The predicted speed of a traffic having density of 56 cars/mile is,
Thus, the predicted speed of a traffic having density of 56 cars/mile is 30.8532 mph.
It is known, that actual speed of a traffic having density of 56 cars/mile is 32.5 mph.
The value of the residual is,
Thus, the residual of a traffic, having density and observed speed of 56 cars/mile and 32.5 mph, respectively is 1.65 mph.
The predicted speed of a traffic having density of 20 cars/mile is,
Thus, the predicted speed of a traffic having density of 20 cars/mile is 43.46 mph.
It is known, that actual speed of a traffic having density of 20 cars/mile is 36.1 mph.
The value of the residual is,
Thus, the residual of a traffic, having density and observed speed of 20 cars/mile and 36.1 mph, respectively is –7.36 mph.
d.
Find the unusual residual.
Answer to Problem 4E
Second residual is more unusual residual.
Explanation of Solution
From previous part c. it is found that residual of a traffic, having density and observed speed of 56 cars/mile and 32.5 mph, respectively is 1.65 mph and the residual of a traffic, having density and observed speed of 20 cars/mile and 36.1 mph, respectively is –7.36 mph.
Thus, it is clear that the second residual value is far away from the predicted value. Therefore, second residual is more unusual residual.
e.
Explain about slope and the correlation if the new point
Explanation of Solution
The new point
In another words, shallower slope and weaker correlation are closer to 0 as they are both started as negative quantity.
Thus, technically slope and correlation becomes higher.
f.
Predict the speed of traffic for a density of 200 cars/mile.
Explain whether the prediction is reasonable.
Answer to Problem 4E
The predicted speed of a traffic having density of 200 cars/mile is –19.6 mph.
Explanation of Solution
Calculation:
The predicted speed of a traffic having density of 200 cars/mile is,
Thus, the predicted speed of a traffic having density of 200 cars/mile is –19.6 mph.
This result is not meaningful as the value of the speed comes as negative quantity, which cannot be possible. Moreover, the given car density of 200 cars/mile is far beyond from the observed values.
Thus, the prediction is not reasonable.
g.
Find the equation to predict the standardized speed from the standardized density if both the variables are standardized.
Answer to Problem 4E
The equation to predict the standardized speed from the standardized density is
Explanation of Solution
Calculation:
z-score:
The z-score of a random variable x is defined as
Correlation coefficient:
Software Procedure:
Step by step procedure to obtain the correlation coefficient of the data using the MINITAB software:
- Choose Stat > Basic Statistics > Correlation.
- In Variables, enter the column of Speed and Density.
- Click OK in all dialogue boxes.
Output using the MINITAB software is given below:
Thus, the correlation confident for speed and density is –0.984.
It is known that, the slope
Now, for the predictor variable x and response variable y also scarify the regression equation
Consider, the mean of the predictor variable x is
Subtract the equation
Using the formula
In this problem, as speed is the predictor variable (x) and density of traffic is response variable (y) with the correlation coefficient of
h.
Find the equation to predict the standardized density from the standardized speed if both the variables are standardized.
Answer to Problem 4E
The equation to predict the standardized density from the standardized speed is
Explanation of Solution
Calculation:
From the previous part g. it is found that the correlation confident for speed and density is –0.984. In addition correlation is same regardless of the direction of prediction.
Consider, the mean of the predictor variable x is
Subtract the equation
Using the formula
In this problem, as density is the predictor variable (x) and speed of traffic is response variable (y) with the correlation coefficient of
Want to see more full solutions like this?
Chapter CR Solutions
Intro Stats, Books a la Carte Edition (5th Edition)
- Functions and Change: A Modeling Approach to Coll...AlgebraISBN:9781337111348Author:Bruce Crauder, Benny Evans, Alan NoellPublisher:Cengage LearningBig Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin HarcourtGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw Hill
- Holt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGAL