All 37 questions UPSC has asked on queueing theory in the Statistics Optional (Paper II, Optimization Techniques) from 1995 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Optimization Techniques topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
- ✓ Proof checked step by step for “prove that” and “examine whether” questions, every step was checked against the definitions and the standard theorems.
- ✓ Derivation checked step by step for derivations and approximations, every step was checked, and the result was also tested numerically.
- ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2026 · 4c(ii) 2025 · 1e 2024 · 4a 2023 · 4c 2022 · 3b 2022 · 8b 2021 · 3a 2020 · 4b 2019 · 4b 2017 · 2b 2015 · 1d 2015 · 3c 2014 · 1d 2014 · 3a 2013 · 3a 2012 · 2c 2011 · 1b 2011 · 2b 2011 · 3b 2010 · 1b 2010 · 3b 2007 · 1e 2006 · 1e 2006 · 4c 2005 · 1e 2004 · 1e 2003 · 3c 2002 · 3c 2001 · 1f 1999 · 8a 1999 · 8b 1999 · 8c 1998 · 10a 1997 · 9c 1996 · 9b 1996 · 9c 1995 · 9a
In a local post office, a particular service is operated by one person. The arrival pattern of customers on a particular day follows a Poisson distribution with a mean arrival rate of 10 people per hour. Customers are served on a First-Come, First-Served (FCFS) basis and the service time is estimated to be exponentially distributed with an average time of 4 minutes. Determine: (I) Probability (there is no queue) (II) The average size of the queue (III) The expected waiting time in the queue (IV) Probability (a customer will spend less than 12 minutes in the queue)
Solution
Model. M/M/1 with per hour and mean service 4 minutes, so per hour; . In steady state .
(I) Probability that there is no queue. There is no queue when at most one customer is present (the one being served): (The probability that the system is completely empty is .)
(II) Average size of the queue. (The average length of the queues that actually form, .)
(III) Expected waiting time in the queue.
(IV) Probability of waiting less than 12 minutes in the queue. For M/M/1 (FCFS), . With min hour, :
✓ Checked by computer We checked in Python: with λ = 10 and μ = 15 per hour, P(n ≤ 1) = 5/9, Lq = 4/3, Wq = 8 minutes and P(Wq < 12 min) = 1 − (2/3)e⁻¹ = 0.7547.
On the average, 96 patients per 24-hour day require the service of an emergency clinic. Also, on the average, a patient requires 10 minutes of active attention. Assume that the facility can handle only one emergency at a time. Suppose that it costs the clinic ₹ 1,000 per patient treated to obtain an average serving time of 10 minutes, and that each minute of decrease in this average time would cost the clinic ₹ 100 per patient treated. How much would have to be budgeted by the clinic to decrease the average size of the queue from patients to patient?
Solution
Present situation. patients per hour; service 10 minutes, so per hour; .
Required service rate. We want : So per hour: the average service time must fall to minutes, a decrease of minutes.
Cost. Each minute of decrease costs ₹100 per patient, so the cost per patient becomes With 96 patients a day, the budget is compared with now. The clinic must budget ₹1,250 per patient (₹1,20,000 a day), an extra ₹24,000 a day.
✓ Checked by computer We checked in Python: λ = 4 and μ = 6 per hour give Lq = 4/3; Lq = 1/2 needs ρ = 1/2 (root of 2ρ² + ρ − 1 = 0), i.e. μ = 8 per hour, a 7.5-minute service.
A manually handled toll-booth has two tellers, who are each capable of handling an average of 60 vehicles per hour, with the actual service times exponentially distributed. Vehicles arrive at the booth according to a Poisson process, at an average rate of 100 per hour. Determine the following: (i) The probability that there are more than three vehicles in the booth at the same time (ii) The probability that a given teller is idle (iii) The probability that a vehicle spends more than 3 minutes in the booth.
Solution
Model. M/M/2: per hour, per hour per teller, . , .
Steady-state probabilities. , and for , : , .
(i) More than three vehicles in the booth.
(ii) A given teller is idle. The expected number of busy tellers is , so each teller is busy a fraction of the time and idle with probability (Check: both idle when ; one of the two idle when : .)
(iii) A vehicle spends more than 3 minutes in the booth. The probability of having to wait (Erlang C) is For M/M/c, the time in the system = waiting + service satisfies In minutes , , : About 41% of vehicles spend more than 3 minutes at the booth (the average time in the booth is hour minutes).
✓ Checked by computer We checked in Python and by simulation (400,000 vehicles): P₀ = 1/11, P(n > 3) = 625/1188 = 0.526, idle probability per teller 1/6, and P(W > 3 min) = 0.411 (simulation 0.416).
A departmental store operates with three checkout counters. To determine the number of counters in operation based on the number of customers, the manager uses the following schedule:
| Number of customers in store | Number of customers in operation |
| 1 to 3 | 1 |
| 4 to 6 | 2 |
| More than 6 | 3 |
Customers arrive in the counter(s) according to a Poisson distribution with a mean rate of 10 customers/hour. The average checkout time per customer is exponential with mean 12 minutes. Determine the steady state probability of customers in the checkout area.
Solution
Model. A birth–death queue with arrival rate per hour and, since checkout takes 12 minutes on average, a service rate of per hour per counter. The number of counters open depends on the number in the checkout area, so the total service rate is
Balance equations. In steady state , so :
- : ratio : , , .
- : ratio : .
- : ratio : .
Normalise. So and
Uses. ; two counters: ; three counters: ; all idle: .
✓ Checked by computer We checked in Python (exact fractions): the birth–death ratios 2, 2, 2, 1, 1, 1, then 2/3, give a normalising sum of 55, so p₀ = 1/55.
Explain the structure of a queuing system. Explain queuing system and obtain steady-state solution. Also calculate busy period distribution.
Solution
Structure of a queueing system.
- Input (arrival) process — the calling population (finite or infinite), the pattern of arrivals (inter-arrival time distribution: Poisson/exponential, constant, general), single or bulk arrivals, and customer behaviour (balking, reneging, jockeying).
- Queue discipline — the order of service: FCFS/FIFO, LCFS, service in random order, priority.
- Service mechanism — number of servers (channels), service time distribution, single or batch service, servers in series or parallel.
- Capacity — maximum number allowed in the system (finite or infinite).
These are summarised in Kendall’s notation .
M/M/1 system. Poisson arrivals at rate , exponential service at rate , one server, FCFS, unlimited capacity. Let . In an arrival occurs with probability and a service completion (if ) with probability . So
Steady state (, ): These give , and repeating down to this equals ; so and . From , : Hence , , , .
Busy period. A busy period starts when a customer arrives to an empty system and ends when the server next becomes idle. Let be its length and .
Functional equation. Condition on the first service time (exponential, ). During , a Poisson() number of customers arrive; each of them generates, in turn, a sub-busy period with the same distribution as (independent). So and With exponential service, and the root with (for ) is where .
Distribution. Inverting the transform, the busy period has density where is the modified Bessel function of the first kind.
Moments. and .
Check: the fraction of time busy is ✓.
✓ Derivation checked step by step Every step was checked: the M/M/1 balance equations and their geometric solution, and the busy-period transform B(s) = μ/(μ + s + λ − λB(s)), its root, mean 1/(μ − λ) and density.
Explain model and show that the steady-state arrival point system has a geometric distribution.
Solution
The G/M/1 model. Customers arrive at times with i.i.d. inter-arrival times having a general distribution (mean , Laplace–Stieltjes transform ). There is one server, service is exponential with rate , FCFS, unlimited waiting room; .
The number in the system is not Markov (the time since the last arrival matters), but at arrival instants it is. Let = number in the system just before the th arrival.
Embedded Markov chain. Between two arrivals, the customers present are served at rate (exponential, so completions form a Poisson process while the server is busy). Let = probability of exactly potential service completions during an inter-arrival time. Then and (everyone is served).
Stationary distribution. We look for . For : Try : So must satisfy
A root in . Let . It is increasing and convex on , with and , and So just below 1, while : the curve crosses the line at a unique .
Boundary equation. With , the equation holds automatically because the rows of the transition matrix sum to 1 and the other equations hold. Normalising, : So the number of customers found by an arrival has a geometric distribution.
Consequences. An arrival waits with probability ; given that it waits, the wait is exponential with rate ; , . For Poisson arrivals, and , recovering M/M/1. (Note: the arrival-point distribution differs from the time-average distribution for non-Poisson arrivals.)
✓ Derivation checked step by step Every step was checked: the embedded chain at arrival epochs, its transition probabilities via β_k, the trial solution π_j = (1 − σ)σʲ, the root σ = A*(μ(1 − σ)) in (0, 1) when ρ < 1, and the boundary equation.
Explain queuing system. Obtain Pollaczek-kinchine formula.
Solution
The M/G/1 system. Arrivals are Poisson with rate ; service times are i.i.d. with a general distribution (mean , variance ); one server; FCFS; infinite capacity; . The number in the system is not Markov in continuous time, but it is at departure instants.
Embedded Markov chain. Let be the number left behind by the th departing customer and the number of arrivals during the th service. Then The ’s are i.i.d., independent of , with (given , is Poisson(), so ).
Steady state. Let have the stationary distribution, so and have the same distribution.
- Taking expectations: , so . Note and .
- Squaring: . Taking expectations (with independent of ): So
Pollaczek–Khinchine formula. Since departures see the time-average distribution (they mirror arrivals, which see time averages by PASTA), using . Then by Little’s law
Special cases.
- M/M/1 (): ✓.
- M/D/1 (): , half that of M/M/1.
The formula shows that, for the same mean, more variable service times cause longer queues.
(The full distribution: the p.g.f. of is with ; see Q17.)
✓ Derivation checked step by step Every step was checked: the embedded chain at departures, E(A) = ρ and E(A²) = λ²E(S²) + ρ, the squaring argument, and the resulting formula; it reduces to ρ/(1 − ρ) for exponential service.
What do you understand by queuing theory? What are its advantages? Discuss the characteristics of model.
Solution
Queueing theory is the mathematical study of waiting lines. A queue forms when customers (people, machines, calls, jobs) arrive for service at a facility that cannot serve them all at once. Queueing theory models the arrival pattern, the service mechanism and the queue discipline, and derives measures such as the average number waiting, the average waiting time and the proportion of time the servers are idle. It was founded by A. K. Erlang (1909) for telephone traffic.
Advantages.
- It helps balance the cost of service against the cost of waiting — e.g. how many counters, tellers, repair crews or doctors to provide.
- It predicts the effect of changes (more servers, faster service, priority rules) without costly experiments.
- It gives simple formulas for performance measures, useful for planning and design (ports, toll plazas, hospitals, call centres, computer networks).
- It identifies bottlenecks and the effect of variability, improving customer satisfaction and use of resources.
- Where formulas fail, it guides simulation models.
Limitations: many real systems do not satisfy the assumptions (Poisson input, exponential service, steady state), and results for complex systems can be hard to obtain.
Characteristics of the M/M/1 model :
- Arrivals: Poisson with mean rate (exponential inter-arrival times, mean ), from an infinite population; no balking or reneging.
- Service: exponential with mean rate (mean service time ).
- One server; first-come-first-served; no limit on queue length.
- Steady state exists if the traffic intensity .
Results.
| Measure | Formula |
|---|---|
| in system | |
| Server idle / busy | / |
| Mean number in system | |
| Mean queue length | |
| Mean time in system | |
| Mean wait in queue | |
| Time in system distribution | exponential, rate |
| Probability of waiting |
The measures are linked by Little’s law, , . As the queue and waiting time grow without bound.
✓ Answer checked step by step Every point was checked against the standard M/M/1 results (Poisson input, exponential service, ρ < 1, p_n = (1 − ρ)ρⁿ and the measures L, L_q, W, W_q).
Explain queues and obtain Pollaczek-Khinchine formula.
Solution
(This is the same question as Q7 (2021, 3a) above. The worked solution is repeated here so that each question is complete.)
The M/G/1 system. Arrivals are Poisson with rate ; service times are i.i.d. with a general distribution (mean , variance ); one server; FCFS; infinite capacity; . The number in the system is not Markov in continuous time, but it is at departure instants.
Embedded Markov chain. Let be the number left behind by the th departing customer and the number of arrivals during the th service. Then The ’s are i.i.d., independent of , with (given , is Poisson(), so ).
Steady state. Let have the stationary distribution, so and have the same distribution.
- Taking expectations: , so . Note and .
- Squaring: . Taking expectations (with independent of ): So
Pollaczek–Khinchine formula. Since departures see the time-average distribution (they mirror arrivals, which see time averages by PASTA), using . Then by Little’s law
Special cases.
- M/M/1 (): ✓.
- M/D/1 (): , half that of M/M/1.
The formula shows that, for the same mean, more variable service times cause longer queues.
(The full distribution: the p.g.f. of is with ; see Q17.)
✓ Derivation checked step by step Every step was checked: the embedded chain at departures, E(A) = ρ and E(A²) = λ²E(S²) + ρ, the squaring argument, and the resulting formula; it reduces to ρ/(1 − ρ) for exponential service.
State how a queueing model is completely specified. In this context, explain the meanings of different symbols used in the queueing model . Obtain the steady-state equations under the model and find their solutions.
Solution
How a queueing model is specified. A queueing model is completely specified by Kendall’s (extended) notation where
- = arrival (inter-arrival time) distribution;
- = service time distribution;
- = number of parallel servers (channels);
- = maximum number allowed in the system (queue + service);
- = queue discipline (FIFO, LIFO, SIRO, priority);
- = size of the calling population (source).
Standard symbols: = Markovian (Poisson arrivals or exponential service), = deterministic (constant), = Erlang-, = general, = general independent.
means: Poisson arrivals, exponential service times, parallel identical servers, no limit on the number in the system, first-in-first-out service (and an infinite calling population).
: steady-state equations. Arrival rate , service rate . In a short time , for , the system reaches at from (no arrival, no departure), (one arrival) or (one departure): Letting and setting the derivatives to 0 (steady state):
Solution. From the second, (). The first can be written so is constant, equal to . Hence and . Since (needs ): From this: , , , .
✓ Derivation checked step by step Every step was checked: Kendall’s notation, the steady-state difference equations of M/M/1 and their solution p_n = (1 − ρ)ρⁿ.
For a queue system, compute– (i) expected number of customers in the system; (ii) expected queue length; (iii) expected (average) waiting time of a customer in the system.
Solution
With , (Q10):
(i) Expected number in the system.
(ii) Expected queue length. When customers are present, are waiting:
(iii) Expected waiting time in the system. By Little’s law : (Directly: an arrival finding present waits for exponential services, mean ; .) Also .
✓ Derivation checked step by step Every step was checked: L = Σ n(1 − ρ)ρⁿ = ρ/(1 − ρ), L_q = Σ (n − 1)p_n = ρ²/(1 − ρ), and W = L/λ = 1/(μ − λ).
Consider a single-server queue system with Poisson input and exponential service time. Suppose the mean arrival rate is 3 calling units per hour, the expected service time is 0.25 hour and the maximum permissible number of calling units in the system is two. Derive the steady-state probability distribution of the number of calling units in the system and also calculate the expected number in the system.
Solution
Model. M/M/1 with limited capacity : per hour, per hour, . Arrivals finding 2 in the system are lost.
Steady-state equations. So , , and in general for .
Solution. That is, , , .
Expected number in the system.
(So 24.3% of arriving units are turned away; the effective arrival rate is per hour, and the mean time in the system is hour minutes.)
✓ Checked by computer We checked in Python (exact fractions): with ρ = 3/4 and N = 2, p = (16/37, 12/37, 9/37) and L = 30/37 = 0.81.
To a single server queuing system, the arrivals of customers are according to a Poisson process at the rate of 2 customers per hour. The service time has exponential distribution with mean service time of 12 minutes per customer. The steady state probability distribution for the number of customers is given below:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 and above | |
| 0.08 | 0.1 | 0.4 | 0.2 | 0.2 | 0.02 | 0 |
Compute (i) the expected number of customers in the system and in the queue. (ii) the mean waiting time in the system and in the queue.
Solution
Note on the question. The given probabilities do not match an M/M/1 queue with and per hour (that would give ), and with this table the server would complete services an hour although only 2 arrive. We use the table as given, and Little’s law with the stated arrival rate per hour, as intended.
(i) Expected numbers. In the queue (one customer is in service whenever ):
(ii) Mean waiting times (Little’s law, ):
✓ Checked by computer We checked in Python: Σ n p_n = 2.4, L_q = L − (1 − p₀) = 1.48, and W = 1.2 h, W_q = 0.74 h by Little’s law with λ = 2.
For an queuing system, derive the set of steady-state difference equations and hence find the solution of the system. In a supermarket, the average arrival rate of customers is 5 every 30 minutes. The average time it takes to list and calculate the customers purchases at the cash desk is 4.5 minutes and this time is exponentially distributed. (i) How long will the customers expect to wait for service at the cash desk? (ii) What is the probability that the cashier is working?
Solution
Steady-state equations of . With arrival rate and service rate , considering the changes in : In steady state (, ): Solution. ; then , so , and normalising ():
The supermarket. per 30 minutes per hour; mean service 4.5 minutes, so per hour; .
(i) Expected wait for service. (Time at the cash desk in all: hour minutes.)
(ii) Probability that the cashier is working.
✓ Checked by computer We checked in Python: λ = 10 and μ = 40/3 per hour give ρ = 0.75 and W_q = ρ/(μ − λ) = 0.225 h = 13.5 minutes.
Four counters are being opened on the frontier of a country to check the passports and necessary papers of the tourists. The tourists choose the counter at random. If the arrivals at the frontier are Poisson at the rate and the service time is exponential with parameters , what is the steady state average queue at each counter?
Solution
Each counter is an M/M/1 queue. If a Poisson stream of rate is split at random among 4 counters (each tourist choosing a counter with probability , independently), each counter receives a Poisson stream of rate . Each counter serves at rate . So each counter is M/M/1 with
Average queue at each counter. The average number at each counter including the one being served is .
(Comment: if instead the 4 counters formed a single queue (M/M/4 with ), the average queue would be only about — random choice of counters is inefficient, because one counter may have a queue while another is idle.)
✓ Checked by computer Every step was checked: random splitting of a Poisson stream gives Poisson(λ/4) at each counter, so each is M/M/1 with ρ = 1/2, L_q = 1/2 and L = 1.
Arrivals at a telephone booth are considered to be according to a Poisson process with an average time of 10 minutes between two consecutive arrivals. The length of a phone call is assumed to be exponentially distributed with a mean of 3 minutes. What is the probability that a person coming to the booth will have to wait? What is the average length of the queues that form from time to time?
Solution
Data. Mean time between arrivals 10 minutes, so per minute; mean call 3 minutes, so per minute. . (M/M/1.)
Probability that an arrival has to wait. An arriving person must wait if the booth is busy:
Average length of the queues that form from time to time. This is the expected queue length given that a queue exists (at least one person waiting):
Derivation. , and , so .
(The overall average queue, counting the times when there is none, is person.)
✓ Checked by computer Every step was checked: λ = 0.1 and μ = 1/3 per minute give ρ = 0.3, P(wait) = 0.3 and the mean length of non-empty queues 1/(1 − ρ) = 1.43.
Describe briefly about the queue system . Obtain the expected number of persons in the system from .
Solution
The M/G/1 system. Poisson arrivals (rate ), general i.i.d. service times (mean , variance , Laplace–Stieltjes transform ), one server, FCFS, . The number left behind by departures forms an embedded Markov chain , where = arrivals during one service, with p.g.f. , , .
P.g.f. of the number in the system. In steady state (Pollaczek–Khinchine transform formula)
Expected number from . Write . Let and :
- , , ;
- , .
Differentiating twice, . At (with ): Hence (First differentiation: at gives , a consistency check.)
For exponential service, and ✓.
✓ Derivation checked step by step Every step was checked: the p.g.f. P(z) = (1 − ρ)(1 − z)K(z)/(K(z) − z), K′(1) = ρ, K″(1) = λ²E(S²), and the twice-differentiated identity giving P′(1).
Explain the economic cost project models used in queueing theory.
Solution
Idea. In a queueing system there are two opposing costs:
- the cost of providing service (servers’ wages, equipment), which rises with the service level; and
- the cost of waiting (customers’ lost time, idle machines, lost goodwill or business), which falls as service improves.
Cost (economic) models choose the service level — the service rate or the number of servers — to minimise the total expected cost per unit time
1. Optimal service rate (M/M/1). Let be the cost per unit time per unit of service rate and the cost of one customer waiting in the system per unit time. Then
2. Optimal number of servers (M/M/c). With = cost per server per unit time, Since is an integer, satisfies , i.e.
3. Choosing between alternatives. Compute the total cost (service charge plus cost of waiting machines or customers) for each option — e.g. a fast expensive repairman versus a slow cheap one — and choose the cheaper (Q21).
4. Aspiration-level (non-cost) models. When the waiting cost is hard to estimate, the manager sets limits such as “average wait at most ” and “server idle at most %”, and chooses the service level that meets both.
5. Other forms. Profit models (revenue from customers served minus costs) for finite-capacity systems where arrivals are lost; models that charge for customers lost (balking).
The optimum lies where the marginal saving in waiting cost equals the marginal increase in service cost.
✓ Answer checked step by step Every step was checked: TC(μ) = C_sμ + C_wλ/(μ − λ) minimised at μ* = λ + √(C_wλ/C_s), and the marginal condition on L(c) for the optimal number of servers.
A supermarket has 2 girls ringing up sales at the counters. If the service time for each customer is exponential with mean 4 minutes and if people arrive in a Poisson fashion at the rate of 10 per hour– (i) what is the probability of having to wait for service; (ii) what is the expected percentage of idle time for each girl?
Solution
Model. M/M/2: per hour, mean service 4 minutes so per hour per girl, ; , .
(i) Probability of having to wait. A customer waits if both girls are busy ():
(ii) Expected percentage of idle time for each girl. The expected number of busy girls is , so each is busy a fraction of the time and idle of the time. (Check: , since .)
✓ Checked by computer We checked in Python: M/M/2 with λ = 10, μ = 15 per hour gives P₀ = 1/2, P(wait) = 1/6 and idle fraction per server 1 − ρ = 2/3.
In queuing model, obtain the expression for the probability that there are units in the system at any time.
Solution
Assumptions. Poisson arrivals with rate ; exponential service with rate ; one server; FCFS; unlimited capacity and calling population. In a small interval : , ; more than one event has probability .
Equations. For , the system has at if it had and nothing happened, and an arrival, or and a departure: So
Steady state (): With : . Then , and by induction (if and , then ): Normalise (needs ): , so and The number in the system is geometric. If there is no steady state: the queue grows without bound.
✓ Derivation checked step by step Every step was checked: the transition probabilities in (t, t + h), the differential-difference equations, the steady-state recurrence and the geometric solution with p₀ = 1 − ρ.
A repairman is to be hired to repair machines that breakdown following a Poisson process with an average rate of four per hour. The cost of non-productive machine is Rs. 90 per hour. The company has the option of choosing either a fast repairman who charges Rs. 60 per hour and repairs machines at the rate of 7 per hour or a slow repairman who charges Rs. 30 per hour and repairs machines at the rate of 5 per hour. Taking the cost in to the consideration find which repairman should be hired.
Solution
Model. Breakdowns arrive as a Poisson process, per hour; repair times are exponential (M/M/1). The machines waiting or under repair are non-productive, on average machines. Hourly cost repairman’s charge .
| Fast repairman | Slow repairman | |
|---|---|---|
| Repair rate | 7 per hour | 5 per hour |
| Idle-machine cost | ₹120 | ₹360 |
| Repairman’s charge | ₹60 | ₹30 |
| Total cost per hour | ₹180 | ₹390 |
Decision. The fast repairman costs ₹180 an hour in all, against ₹390 for the slow one, a saving of ₹210 an hour (₹1,680 in an 8-hour day). Hire the fast repairman: his higher wage is more than repaid by the shorter downtime of the machines.
✓ Checked by computer We checked in Python: L = λ/(μ − λ) is 4/3 (fast) and 4 (slow); total hourly costs 60 + 90(4/3) = ₹180 and 30 + 90(4) = ₹390.
Describe M|G|1 and GI|M|1 queues. Derive the Pollaczek-Khinchin mean value formula for the average number of customers in M|G|1 queue.
Solution
M|G|1 queue. Poisson arrivals (rate ), service times i.i.d. with a general distribution (mean , variance ), one server, FCFS, . The queue length is studied through the Markov chain embedded at departure instants: if is the number left by the th departure and the arrivals during the next service, ( if ). Examples: a machine with constant or Erlang processing time, a checkout with variable service.
GI|M|1 queue. General i.i.d. inter-arrival times (mean , transform ), exponential service (rate ), one server. The chain is embedded at arrival instants ( = number found by the th arrival). The number found by an arrival is geometric, , where is the root of ; an arrival waits with probability , and . (See Q6.)
Pollaczek–Khinchin mean value formula for M|G|1. Given , the number of arrivals during a service is Poisson(), so In steady state and have the same distribution as .
- Means: , so .
- Squares: using , and independence of from , So , and with : (departing customers see the same distribution as the time average). Then , , . For exponential service () ; for constant service () .
✓ Derivation checked step by step Every step was checked: the embedded chains of M|G|1 (departures) and GI|M|1 (arrivals), E(A) = ρ, E(A²) = λ²E(S²) + ρ, and the squaring argument giving the P–K mean formula.
State the chief characteristics of a queuing process. For the queuing process (M/M/1 FCFS/), derive its steady state solution.
Solution
Chief characteristics of a queueing process.
- Arrival pattern — distribution of inter-arrival times (Poisson input is common), single or batch arrivals, size of the calling source.
- Service pattern — distribution of service times, single or batch service.
- Number of servers — one or several channels, in parallel or in series.
- Queue discipline — FCFS, LCFS, random, priority.
- System capacity — finite or infinite waiting room.
- Customer behaviour — balking (not joining a long queue), reneging (leaving after waiting), jockeying (switching queues).
M/M/1 (FCFS/∞): steady-state solution. Arrival rate , service rate , . Balancing the flow into and out of each state (or from the differential-difference equations with ): Rewrite as . The right side at equals ; hence for all , i.e. . Normalising, : Performance measures: , , , ; the server is busy a fraction of the time.
✓ Derivation checked step by step Every step was checked: the listed characteristics and the M/M/1 steady-state derivation leading to p_n = (1 − ρ)ρⁿ.
For the queuing model M/M/s: FCFS/ obtain (i) the mean queue length and (ii) the average number of units in the system.
Solution
Model. M/M/s: Poisson arrivals (rate ), exponential service (rate per server), parallel servers, FCFS, infinite capacity. Let and .
Probabilities. The service rate in state is for and for . The balance equations give
(i) Mean queue length. Only customers beyond the th wait. Put :
(ii) Average number in the system. On average servers are busy (Q25), so Then and (Little’s law). For : , , ✓.
✓ Derivation checked step by step Every step was checked: the M/M/s probabilities, L_q = Σ (n − s)p_n summed as a geometric derivative, and L = L_q + λ/μ.
What is an M/M/c queue? Show that the expected number of busy servers in an M/M/c queue in steady state is and that the expected number of idle servers is
Solution
M/M/c queue. Customers arrive in a Poisson stream (rate ), service times are exponential (rate for each server), there are identical servers in parallel sharing one queue, FCFS, and unlimited waiting room. With there is a steady state, with given by the birth–death formulas (service rate in state ).
Expected number of busy servers. When customers are present, servers are busy. In steady state, the balance equations for a birth–death process are So Since ,
Expected number of idle servers. ∎
Interpretation. Work arrives at rate (customers per unit time × mean service time), and in steady state it must be done at the same rate, so on average servers are busy; each server is busy a fraction of the time. (E.g. Q19: girls busy, each idle of the time.)
✓ Proof checked step by step Every step was checked: E(busy) = Σ min(n, c)p_n equals λ/μ by the balance equations λp_{n−1} = min(n, c)μp_n, and E(idle) = c − cρ.
What is queuing process? Obtain the probability generating function for the queue length of M/M/1 queueing model and obtain the mean queue size.
Solution
Queueing process. A queueing process consists of customers arriving at a service facility according to some pattern, waiting if the servers are busy, being served according to a discipline, and leaving. It is described by the arrival process, the service-time distribution, the number of servers, the queue discipline and the capacity. The state (number in the system) is a stochastic process; for M/M/1 it is a birth–death process.
P.g.f. from the steady-state equations. For M/M/1 (): Let . Multiply the th equation by and add all (): Multiply by and collect : The bracket factors as , so gives : the p.g.f. of the geometric law . The mean number in the system is .
Queue length. The number waiting is , so Mean queue size. (Check: , which at is .)
✓ Derivation checked step by step We checked in Python (sympy): Q(z) = (1 − ρ)(1 + ρ − ρz)/(1 − ρz) has Q(1) = 1, Q′(1) = ρ²/(1 − ρ), and the right coefficients; the generating-function steps were checked by hand.
Explain all the terms in the notation , , ; in the context of queues. Let be the steady state probability of n customers in the above queuing system. Show that , where .
Solution
Notation .
- First M: arrivals are Markovian — a Poisson process, i.e. exponential inter-arrival times.
- Second M: service times are exponential (Markovian).
- 1: a single server.
- FCFS: first-come-first-served queue discipline.
- First ∞: no limit on the number in the system (infinite waiting room).
- Second ∞: infinite calling population (source).
- : mean arrival rate (customers per unit time); is the mean time between arrivals.
- : mean service rate of the server; is the mean service time.
- : traffic intensity (utilisation), the long-run fraction of time the server is busy; steady state needs .
Proof that . The number in the system is a birth–death process with birth rate in every state and death rate in states . In steady state, the rate of flow out of each state equals the rate of flow in: Adding the equations for states gives the “cut” equations (the flow up across the boundary between and equals the flow down). Hence . Since and , ∎
✓ Proof checked step by step Every step was checked: the meaning of each symbol, the birth–death balance λp_{n−1} = μp_n, and the normalisation giving p_n = (1 − ρ)ρⁿ.
What are the elements of queueing theory? For the queueing model M/M/1 : FCFS/, derive the steady state solution. The arrivals at a counter in a bank occur in accordance with Poisson law at an average rate of 8 persons per hour. The duration of service of a customer has exponential distribution with a mean of 6 minutes. Find the probability that a customer (i) has to wait on arrival, (ii) finds 4 customers in the queue and (iii) has to spend less than 15 minutes in the bank. Estimate also the fraction of the total time for which the customer is busy. (It is given that ).
Solution
Elements of queueing theory. (1) The input or arrival process (calling population, arrival distribution, customer behaviour); (2) the service mechanism (service-time distribution, number of servers); (3) the queue discipline (FCFS, LCFS, priority, random); (4) the system capacity; (5) the output and performance measures — numbers in the queue and system, waiting times, server utilisation.
M/M/1 : FCFS/∞ — steady state. With , the balance equations and give , so and The time a customer spends in the system (FCFS) is exponential with rate : an arrival finding waits for exponential services, and is exponential().
The bank. per hour, per hour (mean 6 minutes), .
(i) Has to wait on arrival.
(ii) Finds 4 customers in the queue. Then 5 are in the bank (4 waiting + 1 in service):
(iii) Spends less than 15 minutes in the bank. exponential with rate per hour; 15 minutes hour:
Fraction of time the counter (cashier) is busy. i.e. 80% of the time. (The question’s “the customer is busy” must mean the server.)
✓ Checked by computer We checked in Python: λ = 8, μ = 10 per hour, ρ = 0.8; P(wait) = 0.8, P(n = 5) = 0.2 × 0.8⁵ = 0.0655, P(W < 15 min) = 1 − e^(−0.5) = 0.3935.
Describe a queueing system. State the measures of performance of the single server exponential queue.
Solution
A queueing system. Customers from a source (population) arrive at a service facility according to an arrival process. If all servers are busy they join a queue, and are selected for service by a queue discipline. After service (with some service-time distribution) they leave. The system may have a limited capacity, and customers may balk or renege.
Source → arrivals → queue → server(s) → departures.
It is described by Kendall’s notation — arrival distribution / service distribution / number of servers : capacity / discipline / source size.
Measures of performance of the single-server exponential queue (M/M/1, ):
| Measure | Value |
|---|---|
| Traffic intensity (server utilisation) | |
| Probability system idle | |
| Probability of in system | |
| Probability an arrival waits | |
| Probability of more than in system | |
| Mean number in system | |
| Mean number in queue | |
| Mean length of non-empty queues | |
| Mean time in system | |
| Mean waiting time in queue | |
| Time in system distribution | |
| Mean busy period |
They are linked by Little’s law , , and .
✓ Answer checked step by step Every point was checked against the standard M/M/1 performance measures and Little’s law.
For an M/M/1 queue, determine in steady state (i) the probability that, at any time, there are n units in the system, and (ii) the expected number of units in the system.
Solution
Steady state of M/M/1. Arrivals Poisson (), service exponential (), one server, .
(i) Probability of units. In a small interval , at most one arrival (probability ) or departure (probability if ) occurs. This gives In steady state the derivatives are 0: So is the same for all , and equals . Thus , , and from :
(ii) Expected number in the system. (Mean queue length ; mean time in the system .)
✓ Derivation checked step by step Every step was checked: the steady-state balance equations of M/M/1, p_n = (1 − ρ)ρⁿ, and L = Σ n p_n = ρ/(1 − ρ).
For the case of k channels, Poisson arrivals with mean arrival rate and exponential service time with mean service rate , determine in steady state: (i) the probability that all the channels are empty, and (ii) the probability that an arrival has to wait.
Solution
Model. M/M/: Poisson arrivals (rate ), exponential service (rate per channel), channels, one queue, FCFS. Let and .
Steady-state probabilities. With customers, channels work, so the service rate is () or (). The balance equations give
(i) Probability that all channels are empty. :
(ii) Probability that an arrival has to wait. An arrival waits if all channels are busy, i.e. (Poisson arrivals see time averages): (the Erlang C formula).
Example. , , (Q19): , .
✓ Derivation checked step by step Every step was checked: the M/M/k birth–death probabilities, the geometric tail sum giving p₀, and the Erlang C formula for P(n ≥ k).
Write notes on any three of the following (i) Discrete-time Markov Chains (ii) Transition Probability Matrix. (iii) G/M/1 and M/G/1 queues. (iv) Uses of SPSS.
Solution
We write notes on (i), (ii) and (iii).
(i) Discrete-time Markov chains. A sequence of random variables on a countable state space is a Markov chain if — the future depends on the past only through the present. It is homogeneous if these do not depend on . The chain is described by an initial distribution and the transition matrix. States are classified as communicating, closed, absorbing; recurrent (positive or null) or transient; periodic or aperiodic. For an irreducible, aperiodic, positive recurrent chain, , where is the stationary distribution. Uses: brand switching, weather, manpower planning, queues, inventories, genetics (Wright–Fisher), random walks, page-ranking.
(ii) Transition probability matrix. , . It is a stochastic matrix: , rows sum to 1. Properties:
- -step probabilities: (Chapman–Kolmogorov, ).
- State probabilities: .
- 1 is always an eigenvalue (with right eigenvector ); all eigenvalues satisfy .
- Regular if some ; then (all rows equal to ).
- A doubly stochastic matrix (columns also sum to 1) has the uniform stationary distribution (finite chain).
- An absorbing chain has the canonical form , with fundamental matrix .
(iii) M/G/1 and G/M/1 queues. Both are single-server queues where one of the two distributions is general, so the queue length is not itself Markov; Kendall’s embedded Markov chain method makes them tractable.
M/G/1: Poisson arrivals (rate ), general service time (mean , variance ), . Observe the number left behind at departure instants: , where is the number of arrivals during a service. Results (Pollaczek–Khinchine): The variance of service time increases congestion; M/D/1 () has half the M/M/1 queue.
G/M/1: general i.i.d. inter-arrival times (mean ), exponential service (rate ). Observe the number found by an arrival. The stationary distribution is geometric, where is the root of (it exists when ). The waiting time of an arrival is 0 with probability and otherwise exponential with rate , so . For Poisson arrivals , recovering M/M/1.
✓ Answer checked step by step Every point was checked against the standard definitions of Markov chains, transition matrices and the M/G/1 and G/M/1 queues (embedded chains, Pollaczek–Khinchine formula, the root σ).
Discuss queueing model and find the expected line length in the system.
Solution
(This is the same question as Q30 (1999, 8a) above. The worked solution is repeated here so that each question is complete.)
Steady state of M/M/1. Arrivals Poisson (), service exponential (), one server, .
(i) Probability of units. In a small interval , at most one arrival (probability ) or departure (probability if ) occurs. This gives In steady state the derivatives are 0: So is the same for all , and equals . Thus , , and from :
(ii) Expected number in the system. (Mean queue length ; mean time in the system .)
✓ Derivation checked step by step Every step was checked: the steady-state balance equations of M/M/1, p_n = (1 − ρ)ρⁿ, and L = Σ n p_n = ρ/(1 − ρ).
Explain the queueing system. For this system obtain the steady state distribution of the number of persons in the system and the average waiting time of a customer in steady state.
Solution
The M|M|1 system. Customers arrive in a Poisson stream (rate ), service times are exponential (rate ), there is one server, FCFS, unlimited waiting room; traffic intensity .
Steady-state distribution. The number in the system is a birth–death process (birth rate , death rate when ). In steady state the flow across each cut balances: for . So and, normalising,
Average waiting time. By PASTA, an arriving customer finds in the system with probability . It must wait for the customers ahead to be served: the one in service has a remaining time that is again exponential() (memoryless), and the others need full services. So its expected wait in the queue is : The average time in the system (wait + own service) is in agreement with Little’s law .
(Distribution: , and ; see Q37.)
✓ Derivation checked step by step Every step was checked: p_n = (1 − ρ)ρⁿ, the waiting time of an arrival finding n as a sum of n exponentials, and W_q = λ/(μ(μ − λ)).
Derive the steady-state results (probabilities, mean numbers and mean waiting times) for an M/M/s queue.
Solution
Model. M/M/s: arrivals Poisson (), service exponential ( per server), servers, single FCFS queue, unlimited capacity. Let and .
Probabilities. In state the departure rate is () or (). Balancing flows across each cut, : Normalising: Probability that an arrival must wait (all servers busy):
Mean numbers. The mean number of busy servers is (Q25), so
Mean waiting times (Little’s law):
Waiting-time distribution. : an arrival waits with probability , and then for an exponential time with rate .
Check (): , , , — the M/M/1 results.
Example. , , : , , , , hour minute.
✓ Derivation checked step by step Every step was checked: the M/M/s birth–death probabilities, p₀, L_q, L = L_q + λ/μ, W_q and W, and the reduction to M/M/1 when s = 1.
What is an imbedded Markov chain? For the M/G/1 queue identify the imbedded Markov chain.
Solution
Imbedded (embedded) Markov chain. Many queueing processes are not Markov in continuous time, because the future depends on how long the current service (or inter-arrival time) has already lasted. But if we observe the process only at suitably chosen instants (where the elapsed time is known — e.g. just after a departure, when a new service starts afresh), the sequence is a Markov chain. This discrete-time chain, picked out of the continuous process, is called an imbedded Markov chain. Its analysis (Kendall, 1951–53) gives the distribution of at those instants, and often in continuous time as well.
For the M/G/1 queue. Poisson arrivals (rate ), general service times (distribution ), one server.
- Instants: the departure epochs (times just after the th customer leaves).
- State: = number of customers left behind by the th departure.
- Recursion: if is the number arriving during the th service, (if the system is empty, the next service starts only when someone arrives).
- Why Markov: at a departure a new service starts afresh, and by the memoryless Poisson arrivals, is independent of the past and identically distributed, with
- Transition matrix: i.e. and for , .
The chain is irreducible and aperiodic, and positive recurrent iff . Its stationary distribution has the p.g.f. , , which gives the Pollaczek–Khinchine formula (Q7). Because arrivals are Poisson, this departure-epoch distribution equals the time-average distribution.
(For G/M/1 the imbedded chain is taken at arrival epochs instead; see Q6.)
✓ Answer checked step by step Every step was checked: the departure-epoch recursion X_{n+1} = X_n − U(X_n) + A_{n+1}, the Markov property from Poisson arrivals, and the transition probabilities k_j.
State the chief characteristics of a queueing process. For a queueing system derive the distribution of the waiting time in steady state conditions.
Solution
Chief characteristics of a queueing process: the arrival pattern (input), the service pattern, the number of servers, the queue discipline, the system capacity, and customer behaviour (balking, reneging, jockeying).
M|M|1 : (FIFO|∞|∞). Arrivals Poisson (), service exponential (), one server, , so .
Waiting time in the queue, . By PASTA an arrival finds customers with probability .
- If it does not wait: .
- If it waits for service completions (the residual service of the customer in service is again exponential() by the memoryless property). The sum of independent exponential() times has the Gamma density .
So for the density of is (using and ), that is Check: , and ✓.
Hence The waiting time given that the customer has to wait is exponential with rate .
Time in the system : a customer finding spends exponential() times, so is exponential with mean .
✓ Derivation checked step by step Every step was checked: PASTA, the Gamma(n, μ) wait given n ahead, the series summing to ρ(μ − λ)e^(−(μ−λ)t), and the resulting distribution of W_q and W.
More on Optimization Techniques
- All Statistics PYQ solutions, topic by topic
- Optimization Techniques topic-wise PYQs (questions only, for practice)
- Statistics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Statistics booklist
Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

