Question

In: Statistics and Probability

Suppose you ran your elevator simulation program N times with different random number seeds to generate...

Suppose you ran your elevator simulation program N times with different random number seeds to generate N independent measurements of the average travel time
X1, X2,⋅⋅⋅, XN


a. State the correct formula for the 95% confidence interval for the global average travel time across all N runs assuming that each run of your simulation program was long enough to assume that the average travel times across different runs have an i.i.d. normal distribution. [HINT: Remember to use the t-distribution, because your formula only has access to the sample variance.]

b. Suppose you increase the total number of runs, N, from 9 to 36. How does that affect the confidence interval in part (a), assuming the sample mean and sample variance do not change significantly.

c. Now suppose you must reduce the width of the confidence interval to 1/10th of its size when N = 36. Estimate how many additional runs of your simulation will be needed to satisfy this requirement.

Solutions

Expert Solution

Solution

Back-up Theory

Given X ~ N(μ, σ2),

100(1 - α) % Confidence Interval for μ, when σ is not known is: Xbar ± (tn- 1, α /2)s/√n ………… (1)

where

Xbar = sample mean,

tn – 1, α /2 = upper (α /2)% point of t-distribution with (n - 1) degrees of freedom,

s = sample standard deviation and

n = sample size.

Now to work out the solution,

Part (a)

Vide (1),

the correct formula for the 95% confidence interval for the global average travel time across all N runs assuming that each run of your simulation program was long enough to assume that the average travel times across different runs have an i.i.d. normal distribution

= Xbar ± (tn- 1, 0.025)s/√n   Answer

Part (b)

Vide (1), width of the Confidence Interval = 2(tn- 1, α /2)s/√n

When n = 9, the width, W1 = 2 x 2.306s/3 [t8, 0.025 from standard t-distribution table]

When n = 36, the width, W2 = 2 x 2.030s/6 [t35, 0.025 Using Excel Function: Statistical TINV]

So, W2/W1 = 0.4402

=> when the sample size increases from 9 to 36,

the width of the confidence interval reduces by 56%. Answer

Part (c)

Continuing the same analysis as in Part (b), we want n such that:

{2(tn- 1, 0.025)s/√n}/(2 x 2.030s/6) = 1/10 = 0.1

Or, (tn- 1, 0.025)/√n = 0.0338

Solution to the above is obtained using Excel calculations and the value of n is 3350 Answer

Excel Calculations Details

α = 0.05

t = t(n - 1, α/2)

n

n - 1

√n

t

t/√n

36

35

6

2.030107915

0.338351

100

99

10

1.9842169

0.198422

500

499

22.36068

1.964729307

0.087865

1000

999

31.6227766

1.962341416

0.0620547

2000

1999

44.7213595

1.96115137

0.0438527

3000

2999

54.7722558

1.960755267

0.0357983

3500

3499

59.1607978

1.960642148

0.0331409

3400

3399

58.30952

1.960662108

0.033625

3,350

3,349

57.87918

2

0.033875

DONE


Related Solutions

In java Modify your finished guessNumber.java program to include a random number generator to generate the...
In java Modify your finished guessNumber.java program to include a random number generator to generate the guessed number (from 1 to 10). use the Random class to generate a random number between a range of integers. In your program include an if … then statement to check if the number you entered is bigger or smaller than the guessed number, and display a message. Also included is a counter to keep track on how many times the user has guessed,...
Using pseudocode design a number guessing game program. The program should generate a random number and...
Using pseudocode design a number guessing game program. The program should generate a random number and then ask the user to guess the number. Each time the user enters his or her guess, the program should indicate it was too high or too low. The game is over when the user correctly guesses the number. When the game ends, the program should display the number of guesses that the user made.
For this problem, you will write a program using two queues. Generate n random numbers between...
For this problem, you will write a program using two queues. Generate n random numbers between 10 and 100 (both inclusive), where n>9. The value of n should be taken as input from the user and n should be >9. The numbers could be duplicated. Enqueue all these numbers to the first queue. The objective is to find the numbers whose sum of digits is odd and enqueue them to the second queue. The remaining numbers (whose sum of digits...
package week_2; import java.util.Random; import static input.InputUtils.*; /** * Your program should generate a random number...
package week_2; import java.util.Random; import static input.InputUtils.*; /** * Your program should generate a random number between 0 and 9, and challenge the user to guess the number. Write a loop that asks the user to guess a number that the computer is thinking of. Print a success message if they guess correctly. If the user does not guess correctly, tell the user that they need to guess higher, or lower, and ask the user to try again. The user...
Elevators generally break down at random times and for different reasons. Elevator maintenance contractors must have...
Elevators generally break down at random times and for different reasons. Elevator maintenance contractors must have trained service personnel to provide routine and emergency service. Shan On Elevator has 200 service personnel to maintain 1,000 elevators. a. Suppose that Shan On has received a contract to maintain an additional 1,000 elevators. Do you expect that Shan On will need to double service personnel? Why or why not? b. Does the example in (a) illustrate economies of scale or scope? c....
Write a Java program to generate random numbers in the following range a. 1 <=n <=...
Write a Java program to generate random numbers in the following range a. 1 <=n <= 3 b. 1 <= n <= 200 c. 0 <= n <= 9 d. 1000 <= n <= 2112 e. -1 <= n <= 5 JAVA PROGRAMMING
Write a Java program that implements the Number Guessing Game: 1. First generate a random number...
Write a Java program that implements the Number Guessing Game: 1. First generate a random number (int) between 0 and 100, call it N 2. Read user input (a guess) 3. check the number, if it's smaller than N, output "The number is larger than that" 4. If the input is larger than N, output "The number is smaller than that" 5. If the input is equal to N, output " You got it!", and exit 6. Repeat until the...
Write a program that uses a custom function to generate a specified number of random integers...
Write a program that uses a custom function to generate a specified number of random integers in a specified range. This custom function should take three arguments; the number of integers to generate, the lower limit for the range, and the upper limit for the range. Values for these arguments should be entered by the user in main. The custom function should display the random integers on one line separated by single spaces. The function should also report how many...
In this program, you will generate a random “sentence” constructed of random “words”. Quotes are used...
In this program, you will generate a random “sentence” constructed of random “words”. Quotes are used in the preceding sentence because the “words” will mostly be nonsense words that do not exist in the English language. Step 1. The average number of words in an English sentence is about 17 words. First generate a pseudorandom number NW between 10 and 20 for the number of words in your random “sentence”. Use srand( ) to set the initial value in the...
Given n. Write a program in PYTHON to Generate all numbers with number of digits equal...
Given n. Write a program in PYTHON to Generate all numbers with number of digits equal to n, such that the digit to the right is greater than the left digit (ai+1 > ai). E.g. if n=3 (123,124,125,……129,234,…..789)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT