Homework 8 Unit 2 review assignment


Category: You will Instantly receive a download link for .zip solution file upon Payment


5/5 - (5 votes)

1. Let X represent the outcome of a roll of a 20-sided die numbered 1 to 20. The values of X between
a = 1 to b = 20 follows a discrete uniform probability distribution, with a expected value of a+b
a variance of b
12 .
Suppose you roll this die 33 times. Let S be the sum of these 33 rolled values, and let random variable
Y represent the mean of these 33 values minus the overall mean of 10.5:
Y =
− 10.5.
Determine the probability that
(a) Y is less than −0.5
(b) Y is less than −2.5
hints: use the central limit theorem, and if U ∼ Normal(µ, s2
), and V = U + c, then
V ∼ Normal(µ + c, s2
) (adding c shifts only the mean, and does not affect either the shape or the
Let Z be a standard normal random variable. Determine the probability that
(c) Z is less than −0.5
(d) Z is less than −2.5
Simulate 10000 values for Y (by drawing 33 random values from an appropriate discrete uniform
distribution) and calculate the proportion of these 10000 values that are
(e) less than −0.5
(f) less than −2.5
Use the following command in R to help with your simulation: ceiling(runif(33, 0, 20)) which
will get 33 random rolls of this 20-sided die. Feel free to use code given to you on previous assignments
(or check out the provided code, hw8code.R).
2. In Happyland, the weather each day is characterized by these three states: let state 1=a sunny day,
state 2=a cloudy day, and state 3=a rainy day.
The weather from one day to the next follows these transition probabilities:
• If today is sunny, the probability it is sunny tomorrow is .4, and the probability it is rainy
tomorrow is .2.
• If today is cloudy, the probability it is sunny tomorrow is .5, and there is equal remaining probability that it is cloudy or rainy tomorrow.
• If today is rainy, the probability that is rainy again tomorrow is .25, with no chance of it being
sunny tomorrow.
Use the concept of steady-state probabilities to get the probability of a rainy day this time next year
in Happyland. Your answer should be in the form of a fraction.
You may check your work via simulation, but this is not required.
Stat 330-A 1
Homework 8 Unit 2 review assignment due April 2
3. Suppose that the average number of telephone calls arriving at the switchboard of a small corporation
is 30 calls per hour. Assume that the arriving calls follows a Poisson process.
(a) What is the probability that no calls will arrive in a 3-minute period?
(b) What is the probability that four or more calls will arrive in a 5-minute interval?
(c) What is the probability that one minute will pass before the next incoming call?
(d) If you need to go refill your coffee, which will take two minutes to do, what is the probability you
will have missed at most two calls during that trip to the coffeemaker? (Hint: find the probability
that the third incoming call occurs after two minutes.)
4. A university barbershop. The campus barbershop has only one barber but unlimited chairs for waiting
customers. No matter how many customers are in the shop, arriving customers always choose to wait.
• The customers arrive according to a Poisson process. The average time between arrivals is 30
• The lone barber completes serving a customer at a rate of x per hour, where x is the number of
customers in the barbershop.
Assume that inter-arrival times and service times are independent exponential random variables.
(a) Draw a state diagram with possible states and corresponding birth/death rates. Since there are
an infinite number of states, show enough states to show the pattern or arrival and service rates.
(b) What is the (large t) probability that the shop is empty? (Note: e
x =
(c) Let X be number of customers in the store. Determine the “large t” probability function for the
different states of X. What probability distribution is this, and what is the value of the parameter
in that distribution?
(d) What is the (“large t”) probability that a customer arrives when the barbershop has more than
two persons waiting?
(e) What is the expected number of customers in the barbershop at any time (for “large t” time)?
hint: Use the properties of the known probability distribution.
5. Baron 7.14. Instead of answering the book questions, make a table of the theoretical values versus
simulation values for these quantities:
r, π0, π1, π2,
πk, E(X), V ar(X), E(Xs), E(Xw), E(R), E(S), E(W)
For this problem, use the provided R code hw8code.R to simulate the performance of this queuing
system. Your simulation should have a sample of 25000 time values, as currently set up in the code
(drawing 25% of the 100000 arrivals). You will need to change the rate parameters at the beginning
of the code to match this queuing system.
6. Baron 7.23. I think this is a neat problem–it provides a way to analyze how many users are on your
website at any time by modeling visitor arrival and departures as Poisson processes.
Answer the two questions (a, b) in the book.
In addition, simulate this queuing system using the provided code (using 25000 time values, as in #5.)
(c) Report your simulated estimates from the R code for π0, mean number of visitors, variance of the
number of visitors, and the mean visit time.
(d) Comment on what the distribution of visitors on the website looks like (see histogram generated
by the code).
Stat 330-A 2