Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE ANSWER USING R CODES Each morning between 6:30 AM and 8:00 AM Naruto leaves the Atlanta suburb to drive to work. The time it

PLEASE ANSWER USING R CODES

Each morning between 6:30 AM and 8:00 AM Naruto leaves the Atlanta suburb to drive to work. The time it takes Naruto to drive to work (time) depends on the time he leaves home (leave), the number of traffic signals that he stops at (signals), and the number of cars that he has to wait for at his office parking lot (cars). Observations on these variables for the 239 working days in 2021 appear in the file OfficeTravel.csv. time is measured in minutes. leave is the number of minutes after 6:30 AM that Naruto departs. signals are the number of traffic lights he stops cars the number of cars that he has to wait for at his office parking lot

a.Test the following hypotheses:

I.The expected delay at a traffic signal is 1.8 minutes and the expected delay for each car in front of him at his parking lot is 3.2 mins

II.The expected delay at a traffic signal is half that of the expected delay from the number of cars

b.Naruto suspects that the later he leaves, the more likely he is to encounter cars ahead of him in the parking lot. Test this using an appropriate model.

c.Using the information you learn in parts (a) and (b), estimate the correct model for what affects Narutos total travel time to his office and interpret the results.

image text in transcribed

\begin{tabular}{|r|r|r|r|} \hline time & leave & \multicolumn{1}{l|}{ signals } & \multicolumn{1}{l|}{ cars } \\ \hline 40 & 33 & 8 & 0 \\ \hline 26 & 11 & 8 & 1 \\ \hline 40 & 16 & 6 & 1 \\ \hline 48 & 37 & 3 & 1 \\ \hline 47 & 16 & 6 & 1 \\ \hline 54 & 21 & 13 & 1 \\ \hline 29 & 15 & 4 & 0 \\ \hline 52 & 29 & 9 & 0 \\ \hline 59 & 46 & 7 & 0 \\ \hline 47 & 26 & 7 & 0 \\ \hline 34 & 20 & 3 & 1 \\ \hline 35 & 32 & 11 & 0 \\ \hline 36 & 14 & 7 & 0 \\ \hline 48 & 20 & 9 & 0 \\ \hline 42 & 16 & 7 & 0 \\ \hline 39 & 24 & 8 & 0 \\ \hline 38 & 23 & 11 & 0 \\ \hline 42 & 19 & 9 & 1 \\ \hline 39 & 19 & 10 & 1 \\ \hline 34 & 17 & 4 & 0 \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

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

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 2 Lncs 8056

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013th Edition

3642401724, 978-3642401725

More Books

Students also viewed these Databases questions