Exercises

ex-fsp-ch18-01

Easy

Calls arrive at a switchboard as a Poisson process with rate λ=12\lambda = 12 calls/hour. Find the probability that (a) no calls arrive in a 10-minute interval, (b) at least 2 calls arrive in a 15-minute interval.

ex-fsp-ch18-02

Easy

Inter-arrival times of a Poisson process are measured and found to have mean 0.5 seconds. What is λ\lambda? What is P(T>1)\mathbb{P}(T > 1) for the next inter-arrival time TT?

ex-fsp-ch18-03

Easy

Two independent Poisson processes have rates λ1=5\lambda_1 = 5 and λ2=3\lambda_2 = 3. Find the probability that the next event comes from process 1.

ex-fsp-ch18-04

Medium

Prove that the sum Sn=T1+T2++TnS_n = T_1 + T_2 + \cdots + T_n of i.i.d. Exp(λ)(\lambda) inter-arrival times has a Gamma(n,λ)(n, \lambda) distribution: fSn(t)=λntn1eλt(n1)!,t>0.f_{S_n}(t) = \frac{\lambda^n t^{n-1} e^{-\lambda t}}{(n-1)!}, \quad t > 0.

ex-fsp-ch18-05

Medium

Let {N(t)}\{N(t)\} be a Poisson process with rate λ\lambda. Prove that given N(t)=nN(t) = n, the nn arrival times S1,,SnS_1, \ldots, S_n are distributed as the order statistics of nn i.i.d. Uniform(0,t)(0, t) random variables.

ex-fsp-ch18-06

Medium

A non-homogeneous Poisson process has intensity λ(t)=3+2sin(πt/12)\lambda(t) = 3 + 2\sin(\pi t/12) for t0t \geq 0 (modeling diurnal traffic with period 24 hours). Find E[N(24)]\mathbb{E}[N(24)] and E[N(6)N(0)]\mathbb{E}[N(6) - N(0)].

ex-fsp-ch18-07

Medium

Write the generator matrix G\mathbf{G} for a CTMC with three states {0,1,2}\{0, 1, 2\} where:

  • State 0 transitions to state 1 at rate 2 and to state 2 at rate 1.
  • State 1 transitions to state 0 at rate 3.
  • State 2 transitions to state 0 at rate 4 and to state 1 at rate 1. Find the stationary distribution.

ex-fsp-ch18-08

Medium

For the two-state CTMC with generator G=(ααββ)\mathbf{G} = \begin{pmatrix} -\alpha & \alpha \\ \beta & -\beta \end{pmatrix}, compute P(t)=eGt\mathbf{P}(t) = e^{\mathbf{G} t} by diagonalizing G\mathbf{G}. Verify that P(0)=I\mathbf{P}(0) = \mathbf{I} and limtP(t)\lim_{t\to\infty}\mathbf{P}(t) has rows equal to the stationary distribution.

ex-fsp-ch18-09

Medium

An M/M/1 queue has arrival rate λ=6\lambda = 6 and service rate μ=10\mu = 10. Find: (a) the stationary distribution, (b) P(N5)\mathbb{P}(N \geq 5) in steady state, (c) the mean sojourn time WW, (d) the 95th percentile of the sojourn time.

ex-fsp-ch18-10

Medium

Use Little's law to find the mean number of customers in the queue (excluding the one in service) for an M/M/1 queue with ρ=0.9\rho = 0.9. What fraction of time is the server idle?

ex-fsp-ch18-11

Medium

An M/M/1/K queue has λ=5\lambda = 5, μ=4\mu = 4, K=10K = 10. Note that ρ=5/4=1.25>1\rho = 5/4 = 1.25 > 1. Find the stationary distribution and the blocking probability.

ex-fsp-ch18-12

Hard

Prove the PASTA property: Poisson Arrivals See Time Averages. Specifically, show that for a CTMC {X(t)}\{X(t)\} with Poisson arrivals at rate λ\lambda independent of the chain, the fraction of arrivals finding the chain in state jj equals πj\pi_j (the time-average fraction in state jj).

ex-fsp-ch18-13

Hard

Consider a birth-death process with λn=λ\lambda_n = \lambda and μn=nμ\mu_n = n\mu (the M/M/\infty queue). Show that the stationary distribution is Poisson with parameter A=λ/μA = \lambda/\mu.

ex-fsp-ch18-14

Hard

Use the Erlang-B formula to show that the blocking probability satisfies the recursion: B(A,c)=AB(A,c1)c+AB(A,c1),B(A,0)=1.B(A, c) = \frac{A \cdot B(A, c-1)}{c + A \cdot B(A, c-1)}, \qquad B(A, 0) = 1. This recursion is numerically stable and avoids computing large factorials.

ex-fsp-ch18-15

Hard

A cellular system has c=20c = 20 voice channels and receives an offered load of A=15A = 15 Erlangs. Compute the Erlang-B blocking probability using the recursion from Exercise 14.

ex-fsp-ch18-16

Hard

For an M/M/cM/M/c queue with A=10A = 10 Erlangs and c=12c = 12 servers, find: (a) the Erlang-C waiting probability, (b) the mean waiting time in the queue WqW_q, (c) the probability that a customer waits more than 2 service times.

ex-fsp-ch18-17

Hard

Show that the Erlang-B formula B(A,c)B(A, c) is insensitive to the service time distribution: it depends only on the mean 1/μ1/\mu (not on the distribution shape). Specifically, consider the M/G/c/c queue and show that the stationary distribution of the number of busy servers is the same as for M/M/c/c.

ex-fsp-ch18-18

Challenge

Derive the Pollaczek-Khinchine mean value formula for the M/G/1 queue: L=ρ+ρ2(1+Cs2)2(1ρ),L = \rho + \frac{\rho^2(1 + C_s^2)}{2(1-\rho)}, where ρ=λE[S]\rho = \lambda \mathbb{E}[S], Cs=σS/E[S]C_s = \sigma_S/\mathbb{E}[S] is the coefficient of variation of the service time, and σS2=Var(S)\sigma_S^2 = \text{Var}(S). Show that it reduces to L=ρ/(1ρ)L = \rho/(1-\rho) for exponential service.

ex-fsp-ch18-19

Challenge

Consider a network of two M/M/1 queues in tandem: customers arrive at queue 1 (rate λ\lambda, server rate μ1\mu_1), then proceed to queue 2 (server rate μ2\mu_2). By Jackson's theorem, the joint stationary distribution is the product of the marginals: π(n1,n2)=(1ρ1)ρ1n1(1ρ2)ρ2n2,\pi(n_1, n_2) = (1-\rho_1)\rho_1^{n_1} \cdot (1-\rho_2)\rho_2^{n_2}, where ρi=λ/μi\rho_i = \lambda/\mu_i. Verify this by checking that it satisfies the global balance equations.

ex-fsp-ch18-20

Challenge

A wireless base station has cc identical channels. Calls arrive as a Poisson process with rate λ\lambda. Call durations are exponential with mean 1/μ1/\mu. Blocked calls are lost (Erlang-B model). The operator wants a blocking probability of at most 1%.

(a) If A=λ/μ=20A = \lambda/\mu = 20 Erlangs, use the Erlang-B recursion to find the minimum cc. (b) Show that for large AA, the required number of servers is approximately cA+AQ1(Btarget)c \approx A + \sqrt{A}\,Q^{-1}(B_{\text{target}}), where Q1Q^{-1} is the inverse Gaussian tail function. (This is the Jagerman approximation.)