Exercises
ex-fsp-ch18-01
EasyCalls arrive at a switchboard as a Poisson process with rate 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.
Convert time to hours: 10 min = 1/6 hour.
For (b), use .
(a) No calls in 10 minutes
. .
(b) At least 2 calls in 15 minutes
. .
ex-fsp-ch18-02
EasyInter-arrival times of a Poisson process are measured and found to have mean 0.5 seconds. What is ? What is for the next inter-arrival time ?
.
Find $\lambda$
arrivals/second.
Tail probability
.
ex-fsp-ch18-03
EasyTwo independent Poisson processes have rates and . Find the probability that the next event comes from process 1.
The minimum of two independent exponentials is exponential with rate .
The probability the minimum is from source is .
Probability of process 1 being first
.
ex-fsp-ch18-04
MediumProve that the sum of i.i.d. Exp inter-arrival times has a Gamma distribution:
Use the moment generating function: .
The MGF of the sum of i.i.d. RVs is the product of their MGFs.
MGF approach
, . This is the MGF of a Gamma distribution.
Verify by inversion
The Gamma PDF is for . Its MGF is . Since MGFs uniquely determine distributions, .
ex-fsp-ch18-05
MediumLet be a Poisson process with rate . Prove that given , the arrival times are distributed as the order statistics of i.i.d. Uniform random variables.
Compute the joint density of conditional on .
The conditional density should be on .
Joint density
The joint density of the first arrival times is on . The conditional density given restricts to and divides by : on . This is exactly the joint density of the order statistics of i.i.d. Uniform random variables.
ex-fsp-ch18-06
MediumA non-homogeneous Poisson process has intensity for (modeling diurnal traffic with period 24 hours). Find and .
.
Mean count over 24 hours
.
Mean count over first 6 hours
.
ex-fsp-ch18-07
MediumWrite the generator matrix for a CTMC with three states 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.
Each row of sums to zero.
Solve with .
Generator matrix
$
Balance equations
... (i) ... (ii) ... (iii)
From (ii): . Substituting into (i): . Then . From (iii): . , , .
ex-fsp-ch18-08
MediumFor the two-state CTMC with generator , compute by diagonalizing . Verify that and has rows equal to the stationary distribution.
Eigenvalues: , .
Eigendecomposition
Eigenvalues: , . Right eigenvectors: , . , .
Matrix exponential
.
At : . As : each row .
ex-fsp-ch18-09
MediumAn M/M/1 queue has arrival rate and service rate . Find: (a) the stationary distribution, (b) in steady state, (c) the mean sojourn time , (d) the 95th percentile of the sojourn time.
The sojourn time of an M/M/1 queue is Exp.
(a) Stationary distribution
. .
(b) Tail probability
.
(c) Mean sojourn time
time units.
(d) 95th percentile
The sojourn time is Exp Exp. . Set : time units.
ex-fsp-ch18-10
MediumUse 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 . What fraction of time is the server idle?
where is the total mean number in system.
Server idle fraction = .
Mean in queue
. The mean number being served is . .
Server idle fraction
, so the server is idle 10% of the time.
ex-fsp-ch18-11
MediumAn M/M/1/K queue has , , . Note that . Find the stationary distribution and the blocking probability.
For : .
Stationary distribution
. .
Blocking probability
.
About 21.9% of arriving customers are lost. Despite , the finite buffer ensures stability — but at the cost of significant loss.
ex-fsp-ch18-12
HardProve the PASTA property: Poisson Arrivals See Time Averages. Specifically, show that for a CTMC with Poisson arrivals at rate independent of the chain, the fraction of arrivals finding the chain in state equals (the time-average fraction in state ).
The key is the independent-increment property of the Poisson process.
Condition on the chain state at the arrival instant.
Statement
Let arrivals occur at times of a Poisson process independent of . Define the fraction of arrivals in state : .
Proof
Since the Poisson process has independent increments and is independent of , the arrival times are "random observers" of the chain. Formally, by independence. In steady state, .
By the strong law applied to the i.i.d. (by the Poisson property) indicators : a.s.
The essential point is that Poisson arrivals are "memoryless observers" — they do not synchronize with the chain's state transitions. Non-Poisson arrivals can be correlated with the state and may see a biased view.
ex-fsp-ch18-13
HardConsider a birth-death process with and (the M/M/ queue). Show that the stationary distribution is Poisson with parameter .
Use the birth-death formula: .
Apply the birth-death formula
.
Normalize
. So and , which is Poisson.
ex-fsp-ch18-14
HardUse the Erlang-B formula to show that the blocking probability satisfies the recursion: This recursion is numerically stable and avoids computing large factorials.
Let . Express in terms of the partial sums.
Define the partial sums
Let . Then . Note .
Derive the recursion
. Also . So . Inverting: .
ex-fsp-ch18-15
HardA cellular system has voice channels and receives an offered load of Erlangs. Compute the Erlang-B blocking probability using the recursion from Exercise 14.
Start with and iterate for .
Recursive computation
. . . Continuing iteratively (each step is a single multiply and divide): , , , , .
Interpretation
With 20 channels, about 1.07% of calls are blocked. This is below the standard 2% Grade of Service target. If the offered load increases to 16 Erlangs, — still within the target.
ex-fsp-ch18-16
HardFor an queue with Erlangs and servers, find: (a) the Erlang-C waiting probability, (b) the mean waiting time in the queue , (c) the probability that a customer waits more than 2 service times.
.
Given waiting, the conditional wait is Exp.
(a) Erlang-C
. The Erlang-C formula gives (by numerical computation): .
(b) Mean waiting time
. With (WLOG, measuring time in service times): service times.
(c) Tail probability
.
ex-fsp-ch18-17
HardShow that the Erlang-B formula is insensitive to the service time distribution: it depends only on the mean (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.
The M/G/c/c system is a special case of an insensitive symmetric queue.
Use the reversibility of the Markov process and the observation that the departure process from a loss system depends only on the mean service time.
Sketch of insensitivity proof
The key insight is that in a loss system, the state is just the number of busy servers . The transition rates between states depend only on the arrival rate and the overall departure rate from state , which is regardless of the service time distribution (as long as the mean is ).
More formally, the M/G/c/c queue can be analyzed using the theory of symmetric queues (Kelly, 1979). A queue is symmetric if the service discipline treats all customers identically, and in a loss system this is automatic (no queueing). For symmetric queues, the stationary distribution depends on the service time distribution only through its mean. Therefore: regardless of the service time distribution.
This is why Erlang-B is used so widely: the formula is robust to misspecification of the service time distribution.
ex-fsp-ch18-18
ChallengeDerive the Pollaczek-Khinchine mean value formula for the M/G/1 queue: where , is the coefficient of variation of the service time, and . Show that it reduces to for exponential service.
Use the decomposition and the fact that .
For Exp: , .
Embedded Markov chain approach (sketch)
Consider the queue length at the -th departure. This is an embedded DTMC. Using the relation between arrivals during a service time and the queue evolution, one derives (via generating functions): .
Express in terms of $C_s$
. . .
Exponential case
For : . .
ex-fsp-ch18-19
ChallengeConsider a network of two M/M/1 queues in tandem: customers arrive at queue 1 (rate , server rate ), then proceed to queue 2 (server rate ). By Jackson's theorem, the joint stationary distribution is the product of the marginals: where . Verify this by checking that it satisfies the global balance equations.
Write the generator for the 2D birth-death chain .
Check that the total rate out of times equals the total rate in.
Global balance for state $(n_1, n_2)$ with $n_1 \geq 1, n_2 \geq 1$
Rate out: . Rate in: .
Using :
- since . Wait — , so .
- . Let us be more careful. . Hmm, . So ...
Let us redo cleanly. . and , so the product is .
- .
Total rate in: = rate out.
ex-fsp-ch18-20
ChallengeA wireless base station has identical channels. Calls arrive as a Poisson process with rate . Call durations are exponential with mean . Blocked calls are lost (Erlang-B model). The operator wants a blocking probability of at most 1%.
(a) If Erlangs, use the Erlang-B recursion to find the minimum . (b) Show that for large , the required number of servers is approximately , where is the inverse Gaussian tail function. (This is the Jagerman approximation.)
For (a), iterate the Erlang-B recursion starting from .
For (b), use the normal approximation to the Poisson: for large , the Poisson distribution is approximately .
(a) Numerical computation
Using the recursion with : Iterating from : , , , .
So channels are needed for .
(b) Normal approximation
The Erlang-B blocking probability for large can be approximated by noting that the Poisson distribution is approximately normal: (after proper continuity correction and accounting for the truncation).
Setting : , so .
For , : . , so . The approximation slightly overestimates (exact: ), but gives the right scaling: .