Question

rpois(1, 14) (Language R) is run repeatedly in order to create a bus schedule. A number...

rpois(1, 14) (Language R)

is run repeatedly in order to create a bus schedule. A number generated on each run is the

time, in minutes, between two buses. For example, if the generated numbers are 15, 20, 11, etc.

then there will be a bus at midnight, then at 12:15, 12:35, 12:46, etc. With a schedule

generated by the rpois(1, 14) code, what is the average wait time for a traveler arriving at the

bus stop, in minutes? (The 12:15, 12:35, 12:46 is just an example, the real schedule is not

known, it is only known that it was generated by the given code.) Please round to three

decimal places, if applicable.

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

The numbers generated are having a Poisson distribution with lambda = 14

so the mean obtained will be close to 14

R code to do simulation for 100000 times

#empty vector to store schedule time values
schedule_time = c()
#Genrating and storing scheduled time
for(i in 1:100000){
time=rpois(1,14)
schedule_time[i]=time
}
mean(schedule_time)

-------------------------------------------------------------

mean obtained

>mean(schedule_time)
[1] 13.99995

Add a comment
Know the answer?
Add Answer to:
rpois(1, 14) (Language R) is run repeatedly in order to create a bus schedule. A number...
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
  • C. In Regular Bus City, there is a shuttle bus that goes between Stop A and Stop B, with no stops...

    Question D C. In Regular Bus City, there is a shuttle bus that goes between Stop A and Stop B, with no stops in between. The bus is perfectly punctual and arrives at Stop A at precise five minute intervals (6:00, 6:05, 6:10, 6:15, etc.) day and night, at which point it immediately picks up all passengers waiting. Citizens of Regular Bus City arrive at Stop A at Poisson random times, with an average of 5 passengers arriving every minute,...

  • 1. Identify the names of the run scripts that are executed in run level 1 when...

    1. Identify the names of the run scripts that are executed in run level 1 when the system starts up [hint: These scripts begin with ‘S’]. 2. Identify the names of the scripts that are executed in run level 5 when the system is going down [hint: These scripts begin with ‘K’]. 3. What is the default run-level on the cs.franklin.edu machine (answer is in the /etc/inittab file)? 4. What command does the cs.franklin.edu machine execute during a detected power-failure...

  • Queuing Exercise 1 Suppose you are operating a medical care center for a large factory. Workers...

    Queuing Exercise 1 Suppose you are operating a medical care center for a large factory. Workers come to the center if they become ill during working hours or if they have an accident requiring medical care. Table below is a history of 30 workers arriving at the clinic over a period of about eight hours. The left part of the table shows the actual times of arrival, when the patients actually started service (met with the doctor), and when they...

  • Question 14 Item 14 (1) Language experts have long observed that children are better at mastering...

    Question 14 Item 14 (1) Language experts have long observed that children are better at mastering a second language than adults. (2) People who learn another language as kids can sound like native speakers, but adult language learners often make noticeable grammatical mistakes. (3) But when exactly in a person’s life does it become difficult to master the rules that govern a language? (4) While previous theories speculated that people can only acquire a new language at a young age,...

  • This lab will create a digital clock based on nested FOR loops for hours, minutes, and...

    This lab will create a digital clock based on nested FOR loops for hours, minutes, and seconds, and a WHILE loop for doing over and over so that your clock works for all year long without interruption. Note: If a group of students is interested, we could create a real digital wall-mounted clock to be placed in our classroom, so I can keep track of the time during my lectures. The actual clock would be based on the LED Strip...

  • QUESTION 1 . ______________ allow(s) a computer to invoke procedures that use resources on another computer...

    QUESTION 1 . ______________ allow(s) a computer to invoke procedures that use resources on another computer Pervasive computing Remote procedure calls (RPCs) Cloud computing Global computing QUESTION 2 The simplest example of a neural net is the: CPu perceptron systolic array supervised learning network QUESTION 3 The first company in the world to manufacture and sell what it identifies as a quantum computer is: D-Wave Computers Cray Google Intel QUESTION 4 A ______________ is a collection of distributed workstations that...

  • 1) The image shows a completed schedule C using the cash method. Complete schedule C using...

    1) The image shows a completed schedule C using the cash method. Complete schedule C using the ACCRUAL method. 2) Are there any differences between the 2018 and 2019 forms? SCHEDULE C (Form 1040) Profit or Loss From Business (Sole Proprietorship) •Go to www.irs.gov/Schedulec for instructions and the latest information. OMB No. 1545-0074 2018 Department of the Treasury Internal Revenue Service (99) Name of proprietor RICK GRIME Attachment Attach to Form 1040, 1040NR, or 1041; partnerships generally must file Form...

  • How do i write the pseudocode for this java code? First, write out pseudocode, and then create a program to help you by accomplishing the following tasks: :  Use command line interface to ask the use...

    How do i write the pseudocode for this java code? First, write out pseudocode, and then create a program to help you by accomplishing the following tasks: :  Use command line interface to ask the user to input the following. ○ How many apples are on hand ○ How many apples should be in stock ○ How many oranges are on hand ○ How many oranges should be in stock  Perform an operation to determine how many of...

  • #1 Toss Results 1 25 5 - 49 N 3 ZG 3 So 3 3 Z...

    #1 Toss Results 1 25 5 - 49 N 3 ZG 3 So 3 3 Z 22 6 S1 2 4 3 28 6 5 2 52 5 29 6 6 6 5 30 54 2 7 2 31 5 SS 4 8 4 32 56 5 9 1 33 الما 57 lo 34 58 11 4 t 35 59 G N 12 36 2 60 6 13 5 37 3 19 4 38 Outcome fozquency 15 39 - 16...

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