
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)
- Exercise 6-6 (Algo) (LO6-3) The director of admissions at Kinzua University in Nova Scotia estimated the distribution of student admissions for the fall semester on the basis of past experience. Admissions Probability 1,100 0.5 1,400 0.4 1,300 0.1 Click here for the Excel Data File Required: What is the expected number of admissions for the fall semester? Compute the variance and the standard deviation of the number of admissions. Note: Round your standard deviation to 2 decimal places.arrow_forward1. Find the mean of the x-values (x-bar) and the mean of the y-values (y-bar) and write/label each here: 2. Label the second row in the table using proper notation; then, complete the table. In the fifth and sixth columns, show the 'products' of what you're multiplying, as well as the answers. X y x minus x-bar y minus y-bar (x minus x-bar)(y minus y-bar) (x minus x-bar)^2 xy 16 20 34 4-2 5 2 3. Write the sums that represents Sxx and Sxy in the table, at the bottom of their respective columns. 4. Find the slope of the Regression line: bi = (simplify your answer) 5. Find the y-intercept of the Regression line, and then write the equation of the Regression line. Show your work. Then, BOX your final answer. Express your line as "y-hat equals...arrow_forwardApply STATA commands & submit the output for each question only when indicated below i. Generate the log of birthweight and family income of children. Name these new variables Ibwght & Ifaminc. Include the output of this code. ii. Apply the command sum with the detail option to the variable faminc. Note: you should find the 25th percentile value, the 50th percentile and the 75th percentile value of faminc from the output - you will need it to answer the next question Include the output of this code. iii. iv. Use the output from part ii of this question to Generate a variable called "high_faminc" that takes a value 1 if faminc is less than or equal to the 25th percentile, it takes the value 2 if faminc is greater than 25th percentile but less than or equal to the 50th percentile, it takes the value 3 if faminc is greater than 50th percentile but less than or equal to the 75th percentile, it takes the value 4 if faminc is greater than the 75th percentile. Include the outcome of this code…arrow_forward
- solve this on paperarrow_forwardApply STATA commands & submit the output for each question only when indicated below i. Apply the command egen to create a variable called "wyd" which is the rowtotal function on variables bwght & faminc. ii. Apply the list command for the first 10 observations to show that the code in part i worked. Include the outcome of this code iii. Apply the egen command to create a new variable called "bwghtsum" using the sum function on variable bwght by the variable high_faminc (Note: need to apply the bysort' statement) iv. Apply the "by high_faminc" statement to find the V. descriptive statistics of bwght and bwghtsum Include the output of this code. Why is there a difference between the standard deviations of bwght and bwghtsum from part iv of this question?arrow_forwardAccording to a health information website, the distribution of adults’ diastolic blood pressure (in millimeters of mercury, mmHg) can be modeled by a normal distribution with mean 70 mmHg and standard deviation 20 mmHg. b. Above what diastolic pressure would classify someone in the highest 1% of blood pressures? Show all calculations used.arrow_forward
- Write STATA codes which will generate the outcomes in the questions & submit the output for each question only when indicated below i. ii. iii. iv. V. Write a code which will allow STATA to go to your favorite folder to access your files. Load the birthweight1.dta dataset from your favorite folder and save it under a different filename to protect data integrity. Call the new dataset babywt.dta (make sure to use the replace option). Verify that it contains 2,998 observations and 8 variables. Include the output of this code. Are there missing observations for variable(s) for the variables called bwght, faminc, cigs? How would you know? (You may use more than one code to show your answer(s)) Include the output of your code (s). Write the definitions of these variables: bwght, faminc, male, white, motheduc,cigs; which of these variables are categorical? [Hint: use the labels of the variables & the browse command] Who is this dataset about? Who can use this dataset to answer what kind of…arrow_forwardApply STATA commands & submit the output for each question only when indicated below İ. ii. iii. iv. V. Apply the command summarize on variables bwght and faminc. What is the average birthweight of babies and family income of the respondents? Include the output of this code. Apply the tab command on the variable called male. How many of the babies and what share of babies are male? Include the output of this code. Find the summary statistics (i.e. use the sum command) of the variables bwght and faminc if the babies are white. Include the output of this code. Find the summary statistics (i.e. use the sum command) of the variables bwght and faminc if the babies are male but not white. Include the output of this code. Using your answers to previous subparts of this question: What is the difference between the average birthweight of a baby who is male and a baby who is male but not white? What can you say anything about the difference in family income of the babies that are male and male…arrow_forwardA public health researcher is studying the impacts of nudge marketing techniques on shoppers vegetablesarrow_forward
- The director of admissions at Kinzua University in Nova Scotia estimated the distribution of student admissions for the fall semester on the basis of past experience. Admissions Probability 1,100 0.5 1,400 0.4 1,300 0.1 Click here for the Excel Data File Required: What is the expected number of admissions for the fall semester? Compute the variance and the standard deviation of the number of admissions. Note: Round your standard deviation to 2 decimal places.arrow_forwardA pollster randomly selected four of 10 available people. Required: How many different groups of 4 are possible? What is the probability that a person is a member of a group? Note: Round your answer to 3 decimal places.arrow_forwardWind Mountain is an archaeological study area located in southwestern New Mexico. Potsherds are broken pieces of prehistoric Native American clay vessels. One type of painted ceramic vessel is called Mimbres classic black-on-white. At three different sites the number of such sherds was counted in local dwelling excavations. Test given. Site I Site II Site III 63 19 60 43 34 21 23 49 51 48 11 15 16 46 26 20 31 Find .arrow_forward
- Holt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGALFunctions and Change: A Modeling Approach to Coll...AlgebraISBN:9781337111348Author:Bruce Crauder, Benny Evans, Alan NoellPublisher:Cengage LearningGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw Hill
- Big Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin Harcourt



