All 14 questions UPSC has asked on replacement problems in the Statistics Optional (Paper II, Optimization Techniques) from 1996 to 2023, 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):
2023 · 2c 2022 · 3a 2019 · 3b 2013 · 4a 2012 · 1b 2012 · 4a 2010 · 1f 2010 · 2b 2009 · 3a 2004 · 3b 2001 · 1e 2001 · 3c 1999 · 7c 1996 · 12a
A factory has 1000 bulbs installed. Cost of individual replacement is US$3 while cost of that of group replacement is US$1 per bulb respectively. It is decided to replace all the bulbs simultaneously at fixed interval and also to replace the individual bulbs that fall in between. Determine the optimum replacement policy. Failure probability are given below:
| Week | 1 | 2 | 3 | 4 | 5 |
| Failure probability () | 0.10 | 0.25 | 0.50 | 0.70 | 1.00 |
Solution
Note on the question. The “failure probabilities” increase to 1.00, so we read them as cumulative probabilities of failure by the end of each week. The probability of failing in week is then We also take the usual convention that when the group replacement is made at the end of week , the bulbs that failed during weeks have been replaced individually.
Expected number of failures each week ( new bulbs):
Individual replacement only. Mean life weeks. In the long run, failures per week , so
Group replacement every weeks (individual replacements at $3, then all 1000 at $1):
| Cumulative failures | Total cost | Average cost per week | ||
|---|---|---|---|---|
| 1 | 100 | 100 | 300 + 1000 = 1300 | 1300.00 |
| 2 | 160 | 260 | 780 + 1000 = 1780 | 890.00 |
| 3 | 281 | 541 | 1623 + 1000 = 2623 | 874.33 |
| 4 | 277.1 | 818.1 | 2454.3 + 1000 = 3454.3 | 863.58 |
| 5 | 429.86 | 1247.96 | 3743.88 + 1000 = 4743.88 | 948.78 |
Optimum policy. The average weekly cost is least, $863.58, when , and this is below the $869.57 of individual replacement only. So all the bulbs should be replaced together every 4 weeks, with individual replacement of bulbs that fail in between. (The saving is small, about $6 a week.)
✓ Checked by computer We checked in Python (exact fractions): the expected failures N₁…N₅ = 100, 160, 281, 277.1, 429.86, mean life 3.45 weeks, individual-only cost $869.57 a week, and the group-policy averages 1300, 890, 874.33, 863.58, 948.78.
It is planned to raise a research team to a strength of 50 chemists, which is to be maintained. The wastage of recruits depends on their length of service which is as follows:
| Year | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| Total percentage who have left by the end of year | 5 | 36 | 55 | 63 | 68 | 73 | 79 | 87 | 97 | 100 |
What is the required number of recruitments per year necessary to maintain the required strength? There are 8 senior posts for which the length of service is the main criterion. What is the average length of service after which the next entrant expects promotion to one of these posts?
Solution
Survivors. Of every 100 recruits, the number still in service at the start of each year of service (100 minus the percentage that have left by the end of the previous year):
| Year of service | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| Left by end of year (%) | 5 | 36 | 55 | 63 | 68 | 73 | 79 | 87 | 97 | 100 |
| In service during the year (per 100) | 100 | 95 | 64 | 45 | 37 | 32 | 27 | 21 | 13 | 3 |
Recruitment needed. If 100 are recruited every year, then in the steady state the strength is the sum of the survivors of all past intakes: To maintain a strength of 50, the annual recruitment must be (on average 11.44; recruiting 12 a year gives slightly more than 50).
Promotion to the 8 senior posts. The 8 senior posts go to the 8 longest-serving chemists. With 100 recruits a year (strength 437), the corresponding number is . Counting from the longest service downwards:
| Service of at least | 9 yrs | 8 yrs | 7 yrs | 6 yrs | 5 yrs |
|---|---|---|---|---|---|
| Number (per 100 recruited a year) | 3 | 16 | 37 | 64 | 96 |
64 people have completed 6 years, but 69.9 are needed; the extra 5.9 come from those in their 6th year (who have completed 5 years). So a new entrant can expect promotion to a senior post after about 5 years of service, i.e. during his 6th year (roughly years).
✓ Checked by computer We checked in Python: survivors per 100 recruits sum to 437, so 50 × 100/437 = 11.44 recruits a year; the 8 senior posts correspond to the top 69.9 of 437, which falls in the 6th year of service.
The following mortality rates have been observed for a special type of lightbulbs:
| Month | 1 | 2 | 3 | 4 | 5 |
| Percent failing at the end of month | 10 | 25 | 50 | 80 | 100 |
In an industrial unit, there are 1000 special types of bulbs in use, and it costs ₹ 10 to replace an individual bulb which was burnt out. If all the bulbs were replaced simultaneously, it would cost ₹ 2.50 per bulb. It is proposed to replace all the bulbs at fixed intervals, whether or not they have burnt out, and to continue replacing burnt-out bulbs as they fail. At what interval of time should the manager replace all the bulbs?
Solution
Failures per month. From the cumulative percentages, the probability of failing in month is With and :
Individual replacement only. Mean life months; failures per month ; cost
Group replacement every months (₹10 per individual replacement, ₹2.50 per bulb for the group):
| Cumulative failures | Total cost (₹) | Average per month (₹) | ||
|---|---|---|---|---|
| 1 | 100 | 100 | 1000 + 2500 = 3500 | 3500.00 |
| 2 | 160 | 260 | 2600 + 2500 = 5100 | 2550.00 |
| 3 | 281 | 541 | 5410 + 2500 = 7910 | 2636.67 |
| 4 | 377.1 | 918.1 | 9181 + 2500 = 11681 | 2920.25 |
| 5 | 349.86 | 1267.96 | 12679.6 + 2500 = 15179.6 | 3035.92 |
Decision. The minimum average cost, ₹2,550 a month, occurs at , and it is less than ₹2,985 for individual replacement alone. The manager should replace all the bulbs every 2 months, replacing burnt-out bulbs individually in between.
✓ Checked by computer We checked in Python (exact fractions): N₁…N₅ = 100, 160, 281, 377.1, 349.86, mean life 3.35 months, individual-only cost ₹2,985.07 a month, and the group-policy averages 3500, 2550, 2636.67, 2920.25, 3035.92.
A truck owner finds from his past records that the maintenance cost of a truck (whose purchase price is Rs. 30,00,000) during the first 8 years of its life and the resale price at the end of each year is as follows:
| Year | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| Maintenance Cost (Rs.) | 360000 | 480000 | 600000 | 720000 | 840000 | 960000 | 1080000 | 1200000 |
| Resale Price (Rs.) | 2000000 | 1500000 | 1000000 | 800000 | 700000 | 600000 | 500000 | 400000 |
In which year is the replacement due?
Solution
Method. If the truck is replaced at the end of year , the total cost is where , is the resale price and the maintenance cost in year . Money value is ignored. We replace at the that minimises the average annual cost .
(Amounts in ₹ lakh.)
| Year | ||||||
|---|---|---|---|---|---|---|
| 1 | 3.6 | 3.6 | 20 | 10 | 13.6 | 13.60 |
| 2 | 4.8 | 8.4 | 15 | 15 | 23.4 | 11.70 |
| 3 | 6.0 | 14.4 | 10 | 20 | 34.4 | 11.47 |
| 4 | 7.2 | 21.6 | 8 | 22 | 43.6 | 10.90 |
| 5 | 8.4 | 30.0 | 7 | 23 | 53.0 | 10.60 |
| 6 | 9.6 | 39.6 | 6 | 24 | 63.6 | 10.60 |
| 7 | 10.8 | 50.4 | 5 | 25 | 75.4 | 10.77 |
| 8 | 12.0 | 62.4 | 4 | 26 | 88.4 | 11.05 |
Decision. The average annual cost is least, ₹10.6 lakh, if the truck is replaced at the end of the 5th or the 6th year (the two are equally good). It rises after the 6th year: the maintenance in year 7 (₹10.8 lakh) exceeds the average cost to date (₹10.6 lakh). So the replacement is due at the end of the 5th year, and must be made no later than the end of the 6th year.
✓ Checked by computer We checked in Python: the average annual cost (purchase − resale + cumulative maintenance)/n is 13.6, 11.7, 11.47, 10.9, 10.6, 10.6, 10.77, 11.05 lakh for n = 1 … 8.
The cost of maintenance of a machine is given as an increasing function of time and its scrap value is constant. If time is measured continuously, then show that the average cost will be minimized by replacing the machine when the average cost to date becomes equal to the current maintenance cost.
Solution
Set-up. Let be the purchase price, the (constant) scrap value, and the maintenance cost per unit time at age , an increasing function of . If the machine is replaced at age , the total cost over its life is and the average cost per unit time is
Minimise . Differentiate: Setting : That is, the average cost is a minimum when the current maintenance cost equals the average cost to date .
It is a minimum. Differentiating : At the stationary point , so because is increasing. Hence the stationary point is a minimum.
Interpretation. For below the optimum, and : keeping the machine longer lowers the average cost (the fixed cost is spread over more time). Once the current running cost rises above the average, and the average starts to rise. So the machine should be replaced when .
(In discrete time, the corresponding rule is: replace at the end of year if the next year’s running cost exceeds the average cost , and keep it if .)
✓ Proof checked step by step Every step was checked: A(T) = [C − S + ∫₀ᵀ R(t)dt]/T, A′(T) = 0 gives R(T) = A(T), and the second-order condition holds because R is increasing.
The following table gives the maintenance cost per year and the resale price in ₹ of a certain machine whose purchase price is ₹ 5,000:
| Year | Maintenance cost | Resale price |
| 1 | 1500 | 3500 |
| 2 | 1600 | 2500 |
| 3 | 1800 | 1700 |
| 4 | 2100 | 1200 |
| 5 | 2500 | 800 |
| 6 | 2900 | 500 |
In which year is the replacement due?
Solution
Method. Replacement at the end of year costs, in total, purchase price − resale price + total maintenance: We choose to minimise .
| Year | ||||||
|---|---|---|---|---|---|---|
| 1 | 1500 | 1500 | 3500 | 1500 | 3000 | 3000.00 |
| 2 | 1600 | 3100 | 2500 | 2500 | 5600 | 2800.00 |
| 3 | 1800 | 4900 | 1700 | 3300 | 8200 | 2733.33 |
| 4 | 2100 | 7000 | 1200 | 3800 | 10800 | 2700.00 |
| 5 | 2500 | 9500 | 800 | 4200 | 13700 | 2740.00 |
| 6 | 2900 | 12400 | 500 | 4500 | 16900 | 2816.67 |
Decision. The average annual cost is least, ₹2,700, at . So the machine should be replaced at the end of the 4th year. (Check: the 5th year’s maintenance, ₹2,500, plus the further fall in resale value makes the average rise; equivalently .)
✓ Checked by computer We checked in Python: average annual costs 3000, 2800, 2733.33, 2700, 2740, 2816.67 for n = 1 … 6.
Explain the replacement policy for item whose running cost increases with time but value of money changes with constant rate during the period.
Solution
Situation. A machine costs ; its running cost in year is , increasing with ; the scrap value is negligible. Money has a value: a rupee spent one year later is worth today, where is the rate of interest (constant). Costs are paid at the beginning of each year. We want the age at which to replace the machine (by an identical one), repeating the cycle indefinitely.
Present worth of all future costs. One cycle of years costs, in present-value terms at its start, Cycles start at times , so the present worth of the infinite sequence of replacements is
Optimal . We choose to minimise . is optimal if and . Working these out gives the rule: is the weighted average of the costs (the discounted total cost divided by the discounted number of years), i.e. the equivalent constant annual payment.
Sketch of the derivation. simplifies (multiplying by ) to , i.e. . Similarly gives , which (since is a weighted average of and ) is equivalent to .
Replacement policy.
- Do not replace while next year’s running cost is less than the weighted average cost to date: if , keep the machine.
- Replace at the end of year when , i.e. when the running cost of the next year exceeds the weighted average of all costs so far.
- In practice, tabulate , , , and year by year and stop at the first for which ; is then a minimum.
Special case. As (), , the ordinary average annual cost, and the rule reduces to the familiar one: replace when the next year’s running cost exceeds the average annual cost to date.
✓ Derivation checked step by step Every step was checked: the present worth P(n) = C + Σ R_i v^(i−1) of costs over a replacement cycle, the annual-equivalent W(n) = P(n)(1 − v)/(1 − vⁿ), and the bracketing rule on the weighted average.
At time zero, all items in a system are new. Each item has a probability of failing immediately before the end of the first month of life, and a probability of failing immediately before the end of the second month (i.e., all items fail by the end of the second month). If all items are replaced as they fail, then show that the expected number of failures at the end of month is given by where is the number of items in the system.
Solution
Note on the question. The formula should read the “1 −” is missing in the printed version. Here is the expected number of replacements (failures) at the end of month , with (the original new items).
Recurrence. Each item lives 1 month with probability and 2 months with probability . The items failing at the end of month are
- items installed at the end of month that fail after 1 month: expected number , and
- items installed at the end of month that fail after 2 months: expected number .
So with and (only the original items can fail at the end of month 1).
Solve the difference equation. Try : , i.e. , which factorises as Roots and . Hence
Constants. Subtracting, , so and .
Result. ∎
Check. : , so . : . : , and from the recurrence . ✓
Long run. Since , and , which equals because the mean life is .
✓ Proof checked step by step Every step was checked: the renewal recurrence f(x) = p f(x − 1) + q f(x − 2), its general solution A + B(−q)^x, the constants from f(0) = N and f(1) = Np, and the formula for x = 0, 1, 2.
What is replacement problem? How would you determine the replacement policy of items whose maintenance cost increases with time and money carries a rate of interest per year? An auto owner finds from his past record that the cost per year of an auto whose purchase cost is Rs. 60,000 is as given below:
| Year | Running cost (Rs.) | Resale value (Rs.) |
| 1 | 10000 | 30000 |
| 2 | 12000 | 15000 |
| 3 | 14000 | 7500 |
| 4 | 18000 | 3750 |
| 5 | 23000 | 2000 |
| 6 | 28000 | 2000 |
| 7 | 34000 | 2000 |
| 8 | 40000 | 2000 |
Determine at what time is its replacement due.
Solution
Replacement problem. Items such as machines, vehicles and equipment deteriorate with use (running and maintenance costs rise, efficiency and resale value fall), or fail suddenly (bulbs, valves). A replacement problem is to decide when to replace them so that the total (or average) cost of buying, running and maintaining is minimum.
Maintenance cost increasing with time, money at interest per year. Let be the cost, the running cost in year (paid at the start of the year), and the discount factor. The present worth of the costs of one cycle of years is , and of an infinite sequence of such cycles . The optimal minimises , which leads to the rule replace the item at the end of year when the next year’s running cost exceeds the weighted average of the costs to date. (With this is the ordinary average-cost rule.)
The auto. No rate of interest is given, so we use the average annual cost with resale value:
| Year | Total cost | |||||
|---|---|---|---|---|---|---|
| 1 | 10000 | 10000 | 30000 | 30000 | 40000 | 40000.00 |
| 2 | 12000 | 22000 | 15000 | 45000 | 67000 | 33500.00 |
| 3 | 14000 | 36000 | 7500 | 52500 | 88500 | 29500.00 |
| 4 | 18000 | 54000 | 3750 | 56250 | 110250 | 27562.50 |
| 5 | 23000 | 77000 | 2000 | 58000 | 135000 | 27000.00 |
| 6 | 28000 | 105000 | 2000 | 58000 | 163000 | 27166.67 |
| 7 | 34000 | 139000 | 2000 | 58000 | 197000 | 28142.86 |
| 8 | 40000 | 179000 | 2000 | 58000 | 237000 | 29625.00 |
Decision. The average annual cost is least, ₹27,000, at . The running cost in year 6 (₹28,000) exceeds this average, so the auto should be replaced at the end of the 5th year.
✓ Checked by computer We checked in Python: average annual costs 40000, 33500, 29500, 27562.5, 27000, 27166.67, 28142.86, 29625 for n = 1 … 8.
What are replacement problems? Discuss such a problem in which items deteriorate with time and the value of money remains the same as per passage of time.
Solution
Replacement problems. Most equipment either deteriorates gradually (machines, vehicles: running and maintenance costs increase and resale value falls with age) or fails suddenly (bulbs, tubes, resistors). Replacement theory decides when to replace such items so as to minimise the total or average cost, balancing the cost of new equipment against the rising cost of keeping old equipment (or the cost of unexpected failures). Typical problems: replacement of items that deteriorate (with or without considering the value of money), replacement of items that fail completely (individual versus group replacement), and staffing problems (recruitment and promotion).
Items that deteriorate; value of money constant. Let
- = purchase (capital) cost,
- = scrap (resale) value after years (often taken constant),
- = running and maintenance cost in year , increasing in .
If the item is replaced at the end of year , the total cost incurred is and the average annual cost is Since money keeps its value, we simply minimise .
Optimal rule. is optimal if and .
- (when is constant), so .
- Similarly , equivalently .
Hence the item should be replaced at the end of year when do not replace while the next year’s running cost is less than the average annual cost to date; replace when it becomes greater.
Continuous time. With running cost per unit time, and , so the optimum is where : replace when the current running cost equals the average cost to date.
In practice. If the resale value varies with age, tabulate year by year: , cumulative , , and , and pick the year with the least .
Example. A machine costs ₹5,000 with maintenance 1500, 1600, 1800, 2100, 2500, 2900 and resale 3500, 2500, 1700, 1200, 800, 500 in years 1–6: the averages are 3000, 2800, 2733, 2700, 2740, 2817, so it should be replaced after 4 years.
✓ Derivation checked step by step Every step was checked: A(n) = [C − S + Σ R_t]/n, the conditions A(n) ≤ A(n ± 1) give R_n ≤ A(n) ≤ R_{n+1}, and the continuous-time analogue R(T) = A(T).
Outline two different types of replacement models.
Solution
1. Replacement of items that deteriorate gradually (machines, vehicles). Their running and maintenance costs rise and their resale value falls with age, but they do not fail suddenly.
- Money value constant: with purchase cost , resale value and running costs , the average annual cost is . Replace at the age that minimises — i.e. when next year’s running cost first exceeds the average cost to date (); in continuous time when .
- Money value changing (interest rate , ): minimise the present worth of the infinite chain of replacements with ; replace when exceeds the weighted average .
- Choice between machines: compare the weighted average (or present worth) of their costs.
2. Replacement of items that fail suddenly (bulbs, valves, transistors). Their life is random, with probabilities of failing in period , and failure may cause extra loss.
- Individual replacement: replace each item when it fails. Long-run failures per period (mean life ), cost per period .
- Group replacement: replace all items at fixed intervals , and individual failures in between. With the expected failures in period (), the average cost is where is the individual and the group cost per item (). Choose the with the least average cost, and adopt group replacement if this is less than .
- Rule: group replace at the end of period if the cost of individual replacements in the next period exceeds the average cost per period to date.
(Other models: staffing/recruitment problems, where people leave with known probabilities, are treated like sudden-failure models.)
✓ Answer checked step by step Every point was checked against the standard replacement models (gradual deterioration, with and without discounting; sudden failure, individual versus group) and their optimality rules.
The purchase cost of an equipment is C and denotes the maintenance cost function, where x is the age of the equipment. Assuming the salvage value to be zero, obtain an optimal replacement policy. Also determine the optimal replacement time when and .
Solution
General policy. If the equipment is replaced at age , the total cost of one cycle is the purchase cost plus the maintenance accumulated up to (salvage value zero): The average cost per unit time is Differentiating, Setting : Optimal policy: replace the equipment when its current maintenance cost equals the average cost per unit time up to that age. If is increasing, at this point, so it is a minimum.
The case , . Check with the rule: and are equal when , i.e. . ✓ , so it is a minimum.
Minimum average cost: per unit time.
So the equipment should be replaced when it is about 2.92 units of time old.
✓ Derivation checked step by step Every step was checked: A(T) = [C + ∫₀ᵀ f(x)dx]/T, A′(T) = 0 ⇔ f(T) = A(T); for f(x) = 3x² + 5 and C = 50 this gives T³ = 25, T ≈ 2.924, with A(T) = f(T) ≈ 30.65.
The following mortality rates have been observed for a certain type of light bulbs:
| During week no. | 1 | 2 | 3 | 4 | 5 |
| Proportion of bulbs failing | 0.10 | 0.15 | 0.25 | 0.30 | 0.20 |
Decide on the best replacement policy, it being given that Re. 1.00 and Re. 0.25 are the costs of individual and group replacement per bulb respectively.
Solution
Failures per week. The probabilities of failing in weeks 1–5 are . Suppose there are bulbs (the decision does not depend on ). With : (; .)
Individual replacement only. Mean life weeks. Failures per week , at Re 1 each: Re 298.51 per week.
Group replacement every weeks (Re 1 per individual replacement, Re 0.25 per bulb for the group):
| Cumulative failures | Total cost (Re) | Average per week (Re) | ||
|---|---|---|---|---|
| 1 | 100 | 100 | 100 + 250 = 350 | 350.00 |
| 2 | 160 | 260 | 260 + 250 = 510 | 255.00 |
| 3 | 281 | 541 | 541 + 250 = 791 | 263.67 |
| 4 | 377.1 | 918.1 | 918.1 + 250 = 1168.1 | 292.03 |
| 5 | 349.86 | 1267.96 | 1267.96 + 250 = 1517.96 | 303.59 |
Best policy. The least average cost, Re 255 per week (for 1000 bulbs), occurs at , and it is less than Re 298.51 for individual replacement. So it is best to replace all the bulbs every 2 weeks, and replace failed bulbs individually in between. (Per bulb: Re 0.255 a week against Re 0.2985.)
✓ Checked by computer We checked in Python (exact fractions): N₁…N₅ = 100, 160, 281, 377.1, 349.86, mean life 3.35 weeks, individual-only cost Re 298.51 a week, and group-policy averages 350, 255, 263.67, 292.03, 303.59.
Specify a few replacement policies.
Solution
Replacement policies. A replacement policy states when an item (or a group of items) should be replaced, so that the total cost of acquisition, operation, maintenance and failure is minimum. Commonly used policies:
- Replace at the optimal age (items that deteriorate). Replace a machine when its average annual cost is least, i.e. when next year’s running cost first exceeds the average cost to date:
- Replacement with discounting. When money has a time value (interest ), replace when next year’s running cost exceeds the weighted (discounted) average of costs, .
- Choice between alternative machines. Compare the present worth of costs (or the equivalent annual cost) of each machine over its optimal life, and choose the cheaper.
- Individual replacement (items that fail suddenly). Replace each item only when it fails; cost per period , where is the mean life.
- Group (preventive) replacement. Replace all items together at fixed intervals , whether failed or not, and individual failures in between; choose to minimise . Group replacement is better when the group cost per item is much less than the individual cost and failures cause extra losses.
- Block / age replacement (reliability). Age replacement: replace an item on failure or on reaching a set age , whichever comes first. Block replacement: replace at fixed calendar times regardless of age (like group replacement for one item).
- Replacement on deterioration in performance (opportunity cost): replace when efficiency falls so much that the lost output costs more than replacement.
- Staffing (mortality) policies. Recruit and promote people so as to maintain a given strength, using the probabilities of leaving at each length of service.
The best policy is found by computing the long-run average (or discounted) cost of each alternative and choosing the smallest.
✓ Answer checked step by step Every point was checked against the standard replacement policies used in replacement theory.
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, 1996–2023. Solutions: Optional Province. Found an error? Tell us.

