Question

In: Math

You started taking the bus to work. The local transit authority says that a bus should...

You started taking the bus to work. The local transit authority says that a bus should arrive at your bus stop every five minutes. After a while, you notice you spend a lot more than five minutes waiting for the bus, so you start to keep a record.

You spend the next two months recording how long it takes for the bus to arrive to the bus stop. This give a total of sixty observations that denote the number of minutes it took for the bus to arrive (rounded to the nearest minute). These observations are hosted at

   https://mattbutner.github.io/data/bus_stop_time.csv

Load these data into R as a data frame titled bus_stop_time

Create a histogram of the time_until_bus varaible. Would you say that five minutes is a reasonable guess for the average arrival time based on this picture alone?

Create 95% confidence interval for the bus arrival times using the Z distribution. Does 5 minutes fall within the 95% confidence interval?

How would you communicate your finding to the local transit authority?

Solutions

Expert Solution

Please see the complete R code below alsong with the results

The confidenc einterval is given as

mean +- z*sd/sqrt(n), where z = 1.96 from the z table , n is number of samples

bus_stop_time <- read.csv("https://mattbutner.github.io/data/bus_stop_time.csv",header=TRUE)

# histogram

hist(bus_stop_time$time_until_bus,col="skyblue")
abline(v = mean(bus_stop_time$time_until_bus),
col = "red",
lwd = 2)

## 95% confidence interval


## upper limit
mean(bus_stop_time$time_until_bus) + 1.96*sd(bus_stop_time$time_until_bus)/sqrt(nrow(bus_stop_time))


## lowerlimit
mean(bus_stop_time$time_until_bus) - 1.96*sd(bus_stop_time$time_until_bus)/sqrt(nrow(bus_stop_time))

The results are

> ## upper limit
> mean(bus_stop_time$time_until_bus) + 1.96*sd(bus_stop_time$time_until_bus)/sqrt(nrow(bus_stop_time))
[1] 6.31626
>
>
> ## lowerlimit
> mean(bus_stop_time$time_until_bus) - 1.96*sd(bus_stop_time$time_until_bus)/sqrt(nrow(bus_stop_time))
[1] 5.28374

Based on the histogram , it is reasonable to assume 5 minutes as the average arrival time as the mean line is close to 5

we are 95% confident that the true value of the average arrival time would lie in the interval 5.28 and 6.31

Hope this helps . Please rate


Related Solutions

The transit authority wants to increase its bus services. The transit authority would purchase 300 new...
The transit authority wants to increase its bus services. The transit authority would purchase 300 new energy-efficient buses. They would replace the 150 buses now in operation, doubling the size of the transit system. At a unit cost of $800,000 for each bus, the total expenditure would be $240 million. The projected salvage value of the old buses is $20,000 per bus, leaving $237 million to be financed by the transit authority. . The transit authority would purchase the buses,...
The City Transit Authority plans to hire 14 new bus drivers. From a group of 100...
The City Transit Authority plans to hire 14 new bus drivers. From a group of 100 qualified applicants, of whom 60 are men and 40 are women, 14 names are to be selected by lot. Suppose that Mary and John Lewis are among the 100 qualified applicants. (a) What is the probability that Mary's name will be selected? What is the probability that both Mary's and John's names will be selected? (Round your answer to four decimal places.) (b) If...
You are trying to decide between taking the bus to work or buying a car and...
You are trying to decide between taking the bus to work or buying a car and driving. Assume that a bus pass costs $100/month but that when you use the bus you also need to take a taxi to/from the bus stop at an additional cost of $120/month. You can buy a good used car for $5000. It will last for 5 years and be worthless at the end of that time. In addition, gas and parking cost $125/month. Your...
You work in a local authority business advice centre. One of your clients wishes to start...
You work in a local authority business advice centre. One of your clients wishes to start a business in the hospitality industry overseas. Advise your client on which mode of entry into international markets she should use. Justify by telling her the advantages and disadvantages of the proposed mode.
The Philadelphia Area Transit Authority wishes to estimate the proportion of central city workers that use public transportation to get to work.
The Philadelphia Area Transit Authority wishes to estimate the proportion of central city workers that use public transportation to get to work. A sample of 100 workers revealed that 64 used public transportation. Develop a 95% confidence interval for the population proportion.
What is federalism? Taking the issue of Sanctuary Cities- Should State and Local Government be compelled...
What is federalism? Taking the issue of Sanctuary Cities- Should State and Local Government be compelled comply with Federal Decrees concerning illegal immigration? Remember that immigration that is wholly within the powers of the Federal government by the Constitution. Argue your answer.
You started a company 5 years ago by taking a loan of $100,000. The APR on...
You started a company 5 years ago by taking a loan of $100,000. The APR on the loan is 12%. You agreed to make fixed payments every month for 10 years. Today, your 60th payment is due and you decide to make a double payment. (You paid twice what you were paying each month). You will continue to make single payments to pay the rest of the loan. By how many months your loan shortened? (According to the contract you...
How should our government (local, state, and federal) assist entrepreneurs in creating new jobs? Entreprenshp/Sm Bus...
How should our government (local, state, and federal) assist entrepreneurs in creating new jobs? Entreprenshp/Sm Bus Mgmt
Imagine that the local Chamber of Commerce where you live has learned that you are taking...
Imagine that the local Chamber of Commerce where you live has learned that you are taking this course. They have asked you to come and be a guest lecturer about health system reform; specifically they are very curious about the Patient Protection and Affordable Care Act (PPACA) of 2010. For this assignment, create a 9 ā€“ 12 slide PowerPoint solely related to healthcare reform. Be sure to focus on the PPACA. Use the notes section of the PowerPoint as needed.
explain how different levels of local government should work together in a crisis such as an...
explain how different levels of local government should work together in a crisis such as an earthquake, flood, terrorist attack or nee vitus. How can thesr efforts mitigate the crisis, and what would you recomment for each level of local government as the first response for the scenarios above? Make sure you describe the different levels of government and their functions related to the crisis.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT