QUESTION 1
Given a that arrivals in GCB follows a Poisson distribution with a
random average rate write a MATLAB programme to simulate
i) The graph of the probability distribution of arrivals
ii) The graph for the cumulative distribution
iii) The expected time
iv) Determine I, ii, and iii in (Q1) for the waiting time of the customers in the above bank given a random rate.
probability distribution of arrivals
Compute the probability distribution of arrivals with parameter lambda = 9.
x = 0:20;
y = poisspdf(x,9);
Plot the pdf with bars of width 1.
figure
bar(x,y,1)
xlabel('Observation')
ylabel('Probability')
Cumulative Distribution
Compute the cdf of thecumulative distribution with parameter lambda = 4.
x = 0:20;
y = poisscdf(x,10);
Plot the cdf.
figure
stairs(x,y)
xlabel('Observation')
ylabel('Cumulative Distribution')
Get Answers For Free
Most questions answered within 1 hours.