As part of a study on transportation safety, the U.S. Department of Transportation collected data on...

60.1K

Verified Solution

Question

Basic Math

As part of a study on transportation safety, the U.S. Departmentof Transportation collected data on the number of fatal accidentsper 1000 licenses and the percentage of licensed drivers under theage of 21 in a sample of 42 cities. Data collected over a one-yearperiod follow. These data are contained in the file named“Safety.csv”.

1- Find the sample mean and standard deviation for eachvariable. Round your answers to the nearest thousandth.

2- Use the function lm() in R to run a simple linear regressionmodel on the data provided. Use the function summary() in R togenerate the regression output. Use the function aov() in R togenerate the corresponding ANOVA table. You ought to be able todetermine which is the dependent variable and which is theindependent variable in this SLR model.

Please copy your R code andthe result and paste them here.

3- Write down the estimated regression function below andprovide a practical interpretation of the coefficient of theindependent variable.

4- Please find a 95% confidence interval for the coefficient ofthe independent variable and provide a practical interpretation ofthis interval.

5- At the 5% level of significance, is there a significantrelationship between the two variables? Why or why not?

6- What is the value of the coefficient of determination forthis simple linear regression model? Provide a brief interpretationof this value.

7- Use the information from the ANOVA table to compute thestandard error of estimate, a.k,a, residual standard error. Thisvalue must match the residual standard error in the regressionsummary.

8- What is the point estimate of the expectednumber of fatal accidents per 1000 licenses if there are 10%drivers under age in a city?

9- Suppose we want to develop a 95% confidence interval for theaverage number of fatal accidents per 1000 licenses for all thecities with 10% of drivers under age 21. What is the estimate ofthe standard deviation for this confidence interval?

10-Suppose we want to develop a 95% confidence interval for theaverage number of fatal accidents per 1000 licenses for all thecities with 10% of drivers under age 21. Compute the t value andthe margin of error needed for this confidence interval.

Please copy your R code andthe result and paste them here.

11-Provide a 95% confidence interval for the average number offatal accidents per 1000 licenses for all the cities with 10% ofdrivers under age 21 and a practical interpretation to thisconfidence interval.

12- Suppose we want to develop a 95% prediction interval for thenumber of fatal accidents per 1000 licenses for a city with 10% ofdrivers under age 21. What is the estimate of the standarddeviation for this prediction interval?

13- Suppose we want to develop a 95% prediction interval for thenumber of fatal accidents per 1000 licenses for a city with 10% ofdrivers under age 21. Compute the margin of error needed for thisprediction interval.

14- Provide a 95% prediction interval for the number of fatalaccidents per 1000 licenses for a city with 10% of drivers underage 21 and a practical interpretation to this predictioninterval.'

PS: I do appreciate your help but please do not simplycopy and paste the irrelevant answer

Safety.csv

Percent Under 21Fatal Accidents per 1000
132.962
120.708
80.885
121.652
112.091
172.627
183.83
80.368
131.142
80.645
91.028
162.801
121.405
91.433
100.039
90.338
111.849
122.246
142.855
142.352
111.294
174.1
82.19
163.623
152.623
90.835
80.82
142.89
81.267
153.224
101.014
100.493
141.443
183.614
101.926
141.643
162.943
121.913
152.814
132.634
90.926
173.256

Answer & Explanation Solved by verified expert
3.9 Ratings (536 Votes)
First import the given dataset safteycsv in to RThen run the following Rcodeattachsafteyx safteyPercent Under 21 independent variabley safteyFatal Accidents per 1000 dependent variableAns 1Rcode for finding sample means and standard deviations of bothvariablessamplemeanx meanx sample mean for Percent Under21samplemeanxsdx sdx standard deviation for Percent Under 21sdxsamplemeany meany sample mean for Fatal Accidents per1000samplemeanysdy sdy standard deviation for Fatal Accidents per1000sdyThen the outputPercent Under 21 xFatal    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students