Homework5 STAT351 Spr22
Homework5 STAT351 Spr22
Include all work in a neat and well organized presentation. Grading is based on the quality,
thoroughness, and correctness of the work provided.
You do not need to print out this assignment; you may provide your work and answers on your own
separate paper (had written is sufficient).
Upload your solutions as a single PDF file to the “Homework 5” submission folder in our Canvas course.
Your submission should be titled “(your name) STAT351 Homework 5.”
_____________________________________________________________________________________
1. The number of requests for assistance received by a towing service is a Poisson process
with a mean rate of 5 calls per hour.
a. If the operator of the towing service takes a 30 minute break for lunch, what is the
probability that they do not miss any requests for assistance?
b. Calculate the probability of 4 calls in a 20-minute span.
c. Calculate the probability of 2 calls in each of two consecutive 10-minute spans.
d. Conjecture why your answers to b) and c) differ.
3. The length of time to failure (in hundreds of hours) for a transistor is a random variable X
with the CDF given below:
−𝑥 2
𝐹𝑋 (𝑥) = {1 − 𝑒 for 𝑥 ≥ 0
0 elsewhere
5. Matlab exercise.
Suppose that X1, X2, X3 are each Poisson(𝜆 = 5) independent random variables.
And let Y = maximum(X1, X2, X3).
Matlab code:
>>N=1000000;
>>lambda=5;
>>X1=poissrnd(lambda, [N,1]); % repeat these steps for X2 and X3.
For a discrete RV, you must be careful that the number of bins (i.e. columns on your
graph) aligns with the integer values in your data set. You want 1 integer in each bin. If
these are not aligned, you’ll see gaps or weird spikes on your graph.
You may have to try a couple until you get something you like.
A promising candidate is:
>>bins=max(Y)-min(Y)+1;
To create the labelled, normalized histogram you can use:
>> histogram(Y,bins,‘normalization’,’probability’)
>>title(‘Maximum of 3 Independent Poisson Random Variables’)
>>xlabel(‘Y’)
>>ylabel(‘Estimated PMF of Y’)
In addition, compute the mean and standard deviation of Y; the commands are:
mean(Y) and std(Y) respectively. Note these would be denoted 𝑌̅ and sY respectively
since they are based only on our sample results they are estimates of 𝜇𝑌 and 𝜎𝑌
respectively.