Question

A highway department is studying the relationship between traffic flow and speed. The following model has been hypothesized.

c. Estimate the traffic flow in vehicles per hour at a speed of 39 miles per hour (to 2 decimals).

The estimated value is = ____ (to 2 decimals)

99% Confidence interval = ( , ) (to 2 decimals)

99% Prediction interval = ( , ) (to 2 decimals)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Sol:

use lm fucntion in R to fit a linear model

predict function to get 99% confidence and prediction intervals

Rcode:

df1 =read.table(header = TRUE, text ="
Y   X2   X1
1257   1225   35
1330   1600   40
1227   1225   35
1336   2025   45
1350   3025   55
1125   900   30

"
)
df1
linmod <- lm(Y~X1+X2,data=df1)
round(coefficients(linmod),4)
attach(df)
summary(linmod)
newdata=data.frame(X1=39,X2=1521)
predict(linmod,newdata,interval="confidence",level=0.99)
predict(linmod,newdata,interval="predict",level=0.99)

Output::


Call:
lm(formula = Y ~ X1 + X2, data = df1)

Residuals:
1 2 3 4 5 6
18.199 16.248 -11.801 -20.513 4.529 -6.662

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -187.1382 236.5376 -0.791 0.4866
X1 63.2733 11.3875 5.556 0.0115 *
X2 -0.6438 0.1325 -4.860 0.0166 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 20.17 on 3 degrees of freedom
Multiple R-squared: 0.9674,   Adjusted R-squared: 0.9456
F-statistic: 44.47 on 2 and 3 DF, p-value: 0.005894

ANSWERS(a)

bo=  -187.1382

b1= 63.2733

b2=   -0.6438

ANSWERS(b)

F= 44.4709

p= 0.0059

P<0.01

The relationship is significant

Solution-c:

round(predict(linmod,newdata,interval="confidence",level=0.99),2)
round(predict(linmod,newdata,interval="predict",level=0.99),2)

Ouptut:

round(predict(linmod,newdata,interval="confidence",level=0.99),2)
fit lwr upr
1 1301.34 1234.21 1368.46
> round(predict(linmod,newdata,interval="predict",level=0.99),2)
fit lwr upr
1 1301.34 1165.76 1436.91

estimated value=1301.34

99% Confidence interval =( 1234.21, 1368.46)

99% Prediction interval =( 1165.76 1436.91)

Add a comment
Know the answer?
Add Answer to:
c. Estimate the traffic flow in vehicles per hour at a speed of 39 miles per...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A highway department is studying the relationship between traffic flow and speed. The following model has...

    A highway department is studying the relationship between traffic flow and speed. The following model has been hypothesized where ytraffic flow in vehicles per hour x vehicle speed in miles per hour The following data were collected during rush hour for six highways leading out of the city Traffic Flow (y) 1306 1398 1240 1154 1445 1227 Vehicle Speed (T) 35 50 35 25 50 30 a. Develop an estimated regression equation for the data The regression equation is: 1...

  • A highway department is studying the relationship between traffic flow and speed. The following m...

    A highway department is studying the relationship between traffic flow and speed. The following model has been hypothesized where y traffic flow in vehicles per hour x vehicle speed in miles per hour The following data were collected during rush hour for six highways leading out of the city Traffic Flow (y) 1,256 1,330 1,226 1,335 1,350 1,125 Vehicle Speed (x) 35 35 50 25 Enter negative values as negative, if necessary a. Show the estimated regression equation (to 3...

  • A highway department is studying the relationship between traffic flow and speed. The following model has...

    A highway department is studying the relationship between traffic flow and speed. The following model has been hypothesized: y = β0 + β1x + ε where y = traffic flow in vehicles per hour x = vehicle speed in miles per hour. The following data were collected during rush hour for six highways leading out of the city. Traffic Flow (y) Vehicle Speed (x) 1,257 35 1,327 40 1,226 30 1,333 45 1,350 50 1,122 25 In working further with...

  • CENGAGE | MINDTAP Q Search this course Julia Chapter 16 Assignment A highway department is studying...

    CENGAGE | MINDTAP Q Search this course Julia Chapter 16 Assignment A highway department is studying the relationship between traffic flow and speed. The following model has been hypothesized. y = Bo+ B 1x + B 2x2 + € where y = traffic flow in vehicles per hour x = vehicle speed in miles per hour The following data were collected during rush hour for six highways leading out of the city. Traffic Flow (y) Vehicle Speed (x) 1,257 1,329...

  • A statistical program is recommended. A highway department is studying the relationship between traffic flow and...

    A statistical program is recommended. A highway department is studying the relationship between traffic flow and speed. The following model has been hypothesized: у %3DВо + В,х +е where y traffic flow in vehicles per hour x = vehicle speed in miles per hour The following data were collected during rush hour for six highways leading out of the city Traffic Flow Vehicle Speed (x) (y) 1,257 35 40 1,327 1,226 30 1,333 45 50 1,350 1,122 25 In working...

  • 6, Traffic Shockwave theory (15%) Vehicles approaching an signalized intersection are traveling at speed 40 miles...

    6, Traffic Shockwave theory (15%) Vehicles approaching an signalized intersection are traveling at speed 40 miles per hour and the density is about 40 vehicle/miles/lane (vehicle arrival). The red light last about 40 sec. If the saturation flow is 1900 vehhr/lane with a density of 52 veh/miles/hour (queue discharging). and the jam density is 120 veh/mile lane, please determine: a. the queue length at the end of the red light: b. the maximum queue length: c. The time it takes...

  • 6.3 ) In a traffic survey where speeds of vehicles are measured, it is desired to...

    6.3 ) In a traffic survey where speeds of vehicles are measured, it is desired to determine the mean vehicle speed to within t1 kph (kilometre per hour) with 99% confidence. From a preliminary study, the standard deviation of the vehicle speed is found to be 3.58 kph. Assume that all observations are independent; determine the number of observations required. (2) I 150 observations were taken, what would be the confidence level associated with the interval of ±1 kph of...

  • 8) The flow of traffic in vehicles per hour is show in the diagram. Solve the...

    8) The flow of traffic in vehicles per hour is show in the diagram. Solve the system 380 430 450 12 420 540 400 420 470

  • The figure shows the flow of traffic (in vehicles per hour) through a network of streets....

    The figure shows the flow of traffic (in vehicles per hour) through a network of streets. (Assume a = 100 and b = 400.) X1 a X4 (a) Solve this system for Xi, i = 1, 2, 3, 4. (If the system has an infinite number of solutions, express x1, x2, x3, and x4 in terms of the parameter t.) (x1, x2, x3, x4) = (b) Find the traffic flow when X4 = 0. (X1, X2, X3, X4) (c) Find...

  • The figure shows the flow of traffic (in vehicles per hour) through a network of streets....

    The figure shows the flow of traffic (in vehicles per hour) through a network of streets. (Assume a = 100 and 400.) b XI a 33 X4 (a) Solve this system for Xi 1, 2, 3, 4. (If the system has an infinite number of solutions, express X1, X2, Xy, and x4 in terms of the parameter t.) (X1, X2, X3, X4) (b) Find the traffic flow when X4 = 0. (X1, X2, X3, X4) = (c) Find the traffic...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT