Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Please teach me the R code. Thx. (10 marks) In recent years there has been a big push in supporting cyclists on the road. A

Please teach me the R code. Thx.

image text in transcribed
(10 marks) In recent years there has been a big push in supporting cyclists on the road. A lot of cities are opting to introduce bicycle lanes to promote cycling and also keep cyclists and drivers safe on the road. One city is interested in investigating whether there is an association between, X= distance between a cyclist and the roadway centre line and Y = the separation distance between the cyclist and a passing car. They collect data from ten streets with bike lanes. The distances in feet are given in the table. d) (2 marks) Use R to solve for the correlation coefcient. Interpret your value. (Your answer should include your R code and output.) (4 marks) Use R to solve for the line of best t. Use the R output to determine whether at a 5% level of signicance X is a statistically signicant factor in predicting Y. Clearly state the hypothesis being tested using the mathematical notation introduced in the course lessons. Your solution should also include a clear conclusion statement. i.e. in addition to your R code and R output your solution should include step 1 and step 4 of our hypothesis test procedures. (The p-value should be used to make your conclusion). Regardless of your results in part c), solve for the predicted separation distance between the cyclist and a passing car (Le 33) if the cyclist is: i) (1 marks) 10 feet from the roadway centre line? ii) (1 marks) 15 feet from the roadway centre line? (2 marks) In part i) of d) the distance between a cyclist and the roadway centre line is smaller than any of the values observed in the sample. Is this prediction accurate? Explain why or why not

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Accounting Tools for Business Decision Making

Authors: Paul D. Kimmel, Jerry J. Weygandt, Donald E. Kieso, Barbara Trenholm, Wayne Irvine

5th Canadian edition

978-1118024492

Students also viewed these Mathematics questions