Menu Close

Replacement problems: UPSC Statistics Optional PYQ Solutions (1996–2023)

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

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

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 (p) 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 tt is then p1=0.10,p2=0.15,p3=0.25,p4=0.20,p5=0.30.p_1=0.10,\ p_2=0.15,\ p_3=0.25,\ p_4=0.20,\ p_5=0.30 . We also take the usual convention that when the group replacement is made at the end of week TT, the bulbs that failed during weeks 1,…,T1,\dots,T have been replaced individually.

Expected number of failures each week (N0=1000N_0=1000 new bulbs): Nt=N0pt+N1pt−1+…+Nt−1p1.N_t=N_0p_t+N_1p_{t-1}+\dots+N_{t-1}p_1 .

  • N1=1000(0.10)=100N_1=1000(0.10)=100
  • N2=1000(0.15)+100(0.10)=160N_2=1000(0.15)+100(0.10)=160
  • N3=1000(0.25)+100(0.15)+160(0.10)=281N_3=1000(0.25)+100(0.15)+160(0.10)=281
  • N4=1000(0.20)+100(0.25)+160(0.15)+281(0.10)=277.1N_4=1000(0.20)+100(0.25)+160(0.15)+281(0.10)=277.1
  • N5=1000(0.30)+100(0.20)+160(0.25)+281(0.15)+277.1(0.10)=429.86N_5=1000(0.30)+100(0.20)+160(0.25)+281(0.15)+277.1(0.10)=429.86

Individual replacement only. Mean life =∑tpt=0.10+0.30+0.75+0.80+1.50=3.45=\sum tp_t=0.10+0.30+0.75+0.80+1.50=3.45 weeks. In the long run, failures per week =1000/3.45=289.86=1000/3.45=289.86, so cost per week=289.86×$3=$869.57.\text{cost per week}=289.86\times\$3=\$869.57 .

Group replacement every TT weeks (individual replacements at $3, then all 1000 at $1):

TT NTN_T 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 T=4T=4, 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.

2023 · Paper II · Q2c · 20 marks

↑ Back to the question list

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?

2022 · Paper II · Q3a · 20 marks

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: 100+95+64+45+37+32+27+21+13+3=437.100+95+64+45+37+32+27+21+13+3=437 . To maintain a strength of 50, the annual recruitment must be 50437×100=11.44≈12 chemists per year\frac{50}{437}\times100=11.44\approx\boxed{12\text{ chemists per year}} (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 8×43750=69.98\times\frac{437}{50}=69.9. 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 5+32−5.932≈5.85+\tfrac{32-5.9}{32}\approx5.8 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.

↑ Back to the question list

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?

2019 · Paper II · Q3b · 15 marks

Solution

Failures per month. From the cumulative percentages, the probability of failing in month tt is p1=0.10,p2=0.15,p3=0.25,p4=0.30,p5=0.20.p_1=0.10,\ p_2=0.15,\ p_3=0.25,\ p_4=0.30,\ p_5=0.20 . With N0=1000N_0=1000 and Nt=∑k=1tNt−kpkN_t=\sum_{k=1}^tN_{t-k}p_k:

  • N1=100N_1=100
  • N2=150+10=160N_2=150+10=160
  • N3=250+15+16=281N_3=250+15+16=281
  • N4=300+25+24+28.1=377.1N_4=300+25+24+28.1=377.1
  • N5=200+30+40+42.15+37.71=349.86N_5=200+30+40+42.15+37.71=349.86

Individual replacement only. Mean life =∑tpt=0.10+0.30+0.75+1.20+1.00=3.35=\sum tp_t=0.10+0.30+0.75+1.20+1.00=3.35 months; failures per month =1000/3.35=298.5=1000/3.35=298.5; cost 298.5×₹10=₹2,985.07 per month.298.5\times₹10=₹2{,}985.07\text{ per month}.

Group replacement every TT months (₹10 per individual replacement, ₹2.50 per bulb for the group):

TT NTN_T 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 T=2T=2, 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.

↑ Back to the question list

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?

2013 · Paper II · Q4a · 10 marks

Solution

Method. If the truck is replaced at the end of year nn, the total cost is T(n)=C−Sn+∑t=1nMt,T(n)=C-S_n+\sum_{t=1}^nM_t , where C=₹30,00,000C=₹30{,}00{,}000, SnS_n is the resale price and MtM_t the maintenance cost in year tt. Money value is ignored. We replace at the nn that minimises the average annual cost A(n)=T(n)/nA(n)=T(n)/n.

(Amounts in ₹ lakh.)

Year nn MnM_n ∑Mt\sum M_t SnS_n C−SnC-S_n T(n)T(n) A(n)A(n)
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.

↑ Back to the question list

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.

2012 · Paper II · Q1b · 12 marks

Solution

Set-up. Let CC be the purchase price, SS the (constant) scrap value, and R(t)R(t) the maintenance cost per unit time at age tt, an increasing function of tt. If the machine is replaced at age TT, the total cost over its life is K(T)=C−S+∫0TR(t)dt,K(T)=C-S+\int_0^TR(t)\,dt, and the average cost per unit time is A(T)=K(T)T=1T[C−S+∫0TR(t)dt].A(T)=\frac{K(T)}T=\frac1T\left[C-S+\int_0^TR(t)\,dt\right].

Minimise A(T)A(T). Differentiate: A′(T)=−1T2[C−S+∫0TR(t)dt]+R(T)T=1T[R(T)−A(T)].A'(T)=-\frac1{T^2}\left[C-S+\int_0^TR(t)\,dt\right]+\frac{R(T)}T=\frac1T\big[R(T)-A(T)\big]. Setting A′(T)=0A'(T)=0: R(T)=A(T)=1T[C−S+∫0TR(t)dt].\boxed{R(T)=A(T)=\frac1T\left[C-S+\int_0^TR(t)\,dt\right]}. That is, the average cost is a minimum when the current maintenance cost R(T)R(T) equals the average cost to date A(T)A(T).

It is a minimum. Differentiating TA′(T)=R(T)−A(T)T\,A'(T)=R(T)-A(T): A′(T)+TA″(T)=R′(T)−A′(T).A'(T)+T\,A''(T)=R'(T)-A'(T). At the stationary point A′(T)=0A'(T)=0, so A″(T)=R′(T)/T>0A''(T)=R'(T)/T>0 because RR is increasing. Hence the stationary point is a minimum.

Interpretation. For TT below the optimum, R(T)<A(T)R(T)<A(T) and A′(T)<0A'(T)<0: keeping the machine longer lowers the average cost (the fixed cost C−SC-S is spread over more time). Once the current running cost rises above the average, A′(T)>0A'(T)>0 and the average starts to rise. So the machine should be replaced when R(T)=A(T)R(T)=A(T).

(In discrete time, the corresponding rule is: replace at the end of year nn if the next year’s running cost Rn+1R_{n+1} exceeds the average cost A(n)A(n), and keep it if Rn+1<A(n)R_{n+1}<A(n).)

✓ 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.

↑ Back to the question list

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?

2012 · Paper II · Q4a · 30 marks

Solution

Method. Replacement at the end of year nn costs, in total, purchase price − resale price + total maintenance: T(n)=5000−Sn+∑t=1nMt,T(n)=5000-S_n+\sum_{t=1}^nM_t, A(n)=T(n)n.A(n)=\frac{T(n)}n . We choose nn to minimise A(n)A(n).

Year nn MnM_n ∑Mt\sum M_t SnS_n 5000−Sn5000-S_n T(n)T(n) A(n)A(n)
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 n=4n=4. 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 A(5)>A(4)A(5)>A(4).)

✓ Checked by computer We checked in Python: average annual costs 3000, 2800, 2733.33, 2700, 2740, 2816.67 for n = 1 … 6.

↑ Back to the question list

Explain the replacement policy for item whose running cost increases with time but value of money changes with constant rate during the period.

2010 · Paper II · Q1f · 12 marks

Solution

Situation. A machine costs CC; its running cost in year ii is RiR_i, increasing with ii; the scrap value is negligible. Money has a value: a rupee spent one year later is worth v=1/(1+r)v=1/(1+r) today, where rr is the rate of interest (constant). Costs are paid at the beginning of each year. We want the age nn at which to replace the machine (by an identical one), repeating the cycle indefinitely.

Present worth of all future costs. One cycle of nn years costs, in present-value terms at its start, P(n)=C+R1+R2v+R3v2+…+Rnvn−1=C+∑i=1nRivi−1.P(n)=C+R_1+R_2v+R_3v^2+\dots+R_nv^{n-1}=C+\sum_{i=1}^nR_iv^{i-1}. Cycles start at times 0,n,2n,…0,n,2n,\dots, so the present worth of the infinite sequence of replacements is PW(n)=P(n)(1+vn+v2n+…)=P(n)1−vn.PW(n)=P(n)\left(1+v^n+v^{2n}+\dots\right)=\frac{P(n)}{1-v^n}.

Optimal nn. We choose nn to minimise PW(n)PW(n). nn is optimal if PW(n)≤PW(n−1)PW(n)\le PW(n-1) and PW(n)≤PW(n+1)PW(n)\le PW(n+1). Working these out gives the rule: Rn≤W(n)≤Rn+1,R_n\ \le\ W(n)\ \le\ R_{n+1}, whereW(n)=C+∑i=1nRivi−1∑i=1nvi−1=P(n)(1−v)1−vn.\text{where}\quad W(n)=\frac{C+\sum_{i=1}^nR_iv^{i-1}}{\sum_{i=1}^nv^{i-1}}=\frac{P(n)(1-v)}{1-v^n}. W(n)W(n) 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. PW(n+1)−PW(n)≥0PW(n+1)-PW(n)\ge0 simplifies (multiplying by (1−vn)(1−vn+1)>0(1-v^n)(1-v^{n+1})>0) to Rn+1vn(1−vn)≥P(n)vn(1−v)R_{n+1}v^n(1-v^n)\ge P(n)\,v^n(1-v), i.e. Rn+1≥W(n)R_{n+1}\ge W(n). Similarly PW(n−1)≥PW(n)PW(n-1)\ge PW(n) gives Rn≤W(n−1)R_n\le W(n-1), which (since W(n)W(n) is a weighted average of W(n−1)W(n-1) and RnR_n) is equivalent to Rn≤W(n)R_n\le W(n).

Replacement policy.

  1. Do not replace while next year’s running cost is less than the weighted average cost to date: if Rn+1<W(n)R_{n+1}<W(n), keep the machine.
  2. Replace at the end of year nn when Rn+1>W(n)R_{n+1}>W(n), i.e. when the running cost of the next year exceeds the weighted average of all costs so far.
  3. In practice, tabulate vi−1v^{i-1}, Rivi−1R_iv^{i-1}, P(n)P(n), ∑vi−1\sum v^{i-1} and W(n)W(n) year by year and stop at the first nn for which W(n)<Rn+1W(n)<R_{n+1}; W(n)W(n) is then a minimum.

Special case. As r→0r\to0 (v→1v\to1), W(n)→(C+∑Ri)/nW(n)\to\big(C+\sum R_i\big)/n, 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.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

At time zero, all items in a system are new. Each item has a probability p of failing immediately before the end of the first month of life, and a probability q=1−p 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 f(x) at the end of month x is given by f(x)=N1+q[−(−q)x+1] where N is the number of items in the system.

2010 · Paper II · Q2b · 20 marks

Solution

Note on the question. The formula should read f(x)=N1+q[1−(−q)x+1];f(x)=\frac{N}{1+q}\Big[1-(-q)^{x+1}\Big]; the “1 −” is missing in the printed version. Here f(x)f(x) is the expected number of replacements (failures) at the end of month xx, with f(0)=Nf(0)=N (the original NN new items).

Recurrence. Each item lives 1 month with probability pp and 2 months with probability q=1−pq=1-p. The items failing at the end of month xx are

  • items installed at the end of month x−1x-1 that fail after 1 month: expected number pf(x−1)p\,f(x-1), and
  • items installed at the end of month x−2x-2 that fail after 2 months: expected number qf(x−2)q\,f(x-2).

So f(x)=pf(x−1)+qf(x−2),f(x)=p\,f(x-1)+q\,f(x-2), x≥2,x\ge2, with f(0)=Nf(0)=N and f(1)=Npf(1)=Np (only the original items can fail at the end of month 1).

Solve the difference equation. Try f(x)=λxf(x)=\lambda^x: λ2=pλ+q\lambda^2=p\lambda+q, i.e. λ2−pλ−(1−p)=0\lambda^2-p\lambda-(1-p)=0, which factorises as (λ−1)(λ+q)=0(check: λ2+(q−1)λ−q=λ2−pλ−q).(\lambda-1)(\lambda+q)=0\qquad(\text{check: }\lambda^2+(q-1)\lambda-q=\lambda^2-p\lambda-q). Roots λ=1\lambda=1 and λ=−q\lambda=-q. Hence f(x)=A+B(−q)x.f(x)=A+B(-q)^x .

Constants. x=0:A+B=N;x=1:A−Bq=Np.x=0:\ A+B=N;\qquad x=1:\ A-Bq=Np . Subtracting, B(1+q)=N(1−p)=NqB(1+q)=N(1-p)=Nq, so B=Nq1+qB=\dfrac{Nq}{1+q} and A=N−B=N1+qA=N-B=\dfrac N{1+q}.

Result. f(x)=N1+q+Nq1+q(−q)x=N1+q[1−(−q)x+1].f(x)=\frac N{1+q}+\frac{Nq}{1+q}(-q)^x=\frac N{1+q}\Big[1-(-q)^{x+1}\Big]. ∎

Check. x=0x=0: 1−(−q)1=1+q1-(-q)^1=1+q, so f(0)=N1+q(1+q)=Nf(0)=\frac N{1+q}(1+q)=N. x=1x=1: N1+q(1−q2)=N(1−q)=Np\frac N{1+q}(1-q^2)=N(1-q)=Np. x=2x=2: N1+q(1+q3)=N(1−q+q2)\frac N{1+q}(1+q^3)=N(1-q+q^2), and from the recurrence f(2)=p⋅Np+qN=N(p2+q)=N(1−q+q2)f(2)=p\cdot Np+qN=N(p^2+q)=N(1-q+q^2). ✓

Long run. Since 0<q<10<q<1, (−q)x+1→0(-q)^{x+1}\to0 and f(x)→N1+qf(x)\to\dfrac N{1+q}, which equals N/(mean life)N/\text{(mean life)} because the mean life is p+2q=1+qp+2q=1+q.

✓ 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.

↑ Back to the question list

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 r 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.

2009 · Paper II · Q3a · 15 marks

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 rr per year. Let CC be the cost, RiR_i the running cost in year ii (paid at the start of the year), and v=1/(1+r)v=1/(1+r) the discount factor. The present worth of the costs of one cycle of nn years is P(n)=C+∑i=1nRivi−1P(n)=C+\sum_{i=1}^nR_iv^{i-1}, and of an infinite sequence of such cycles PW(n)=P(n)/(1−vn)PW(n)=P(n)/(1-v^n). The optimal nn minimises PW(n)PW(n), which leads to the rule Rn≤W(n)≤Rn+1,R_n\le W(n)\le R_{n+1}, W(n)=C+∑i=1nRivi−1∑i=1nvi−1:W(n)=\frac{C+\sum_{i=1}^nR_iv^{i-1}}{\sum_{i=1}^nv^{i-1}} : replace the item at the end of year nn when the next year’s running cost exceeds the weighted average W(n)W(n) of the costs to date. (With r=0r=0 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: A(n)=60000−Sn+∑t=1nRtn.A(n)=\frac{60000-S_n+\sum_{t=1}^nR_t}{n}.

Year nn RnR_n ∑Rt\sum R_t SnS_n 60000−Sn60000-S_n Total cost A(n)A(n)
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 n=5n=5. 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.

↑ Back to the question list

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.

2004 · Paper II · Q3b · 15 marks

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

  • CC = purchase (capital) cost,
  • SS = scrap (resale) value after nn years (often taken constant),
  • RtR_t = running and maintenance cost in year tt, increasing in tt.

If the item is replaced at the end of year nn, the total cost incurred is T(n)=C−S+∑t=1nRt,T(n)=C-S+\sum_{t=1}^nR_t , and the average annual cost is A(n)=T(n)n=C−S+∑t=1nRtn.A(n)=\frac{T(n)}n=\frac{C-S+\sum_{t=1}^nR_t}n . Since money keeps its value, we simply minimise A(n)A(n).

Optimal rule. nn is optimal if A(n)≤A(n+1)A(n)\le A(n+1) and A(n)≤A(n−1)A(n)\le A(n-1).

  • A(n+1)−A(n)=Rn+1−A(n)n+1A(n+1)-A(n)=\dfrac{R_{n+1}-A(n)}{n+1} (when SS is constant), so A(n)≤A(n+1)⇔Rn+1≥A(n)A(n)\le A(n+1)\iff R_{n+1}\ge A(n).
  • Similarly A(n)≤A(n−1)⇔Rn≤A(n−1)A(n)\le A(n-1)\iff R_n\le A(n-1), equivalently Rn≤A(n)R_n\le A(n).

Hence the item should be replaced at the end of year nn when Rn≤A(n)≤Rn+1:R_n\le A(n)\le R_{n+1}: 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 R(t)R(t) per unit time, A(T)=1T[C−S+∫0TR(t)dt]A(T)=\frac1T\big[C-S+\int_0^TR(t)\,dt\big] and A′(T)=1T[R(T)−A(T)]A'(T)=\frac1T[R(T)-A(T)], so the optimum is where R(T)=A(T)R(T)=A(T): 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: RtR_t, cumulative ∑Rt\sum R_t, C−SnC-S_n, T(n)T(n) and A(n)A(n), and pick the year with the least A(n)A(n).

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).

↑ Back to the question list

Outline two different types of replacement models.

2001 · Paper II · Q1e · 12 marks

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 CC, resale value SnS_n and running costs RtR_t, the average annual cost is A(n)=[C−Sn+∑t=1nRt]/nA(n)=\big[C-S_n+\sum_{t=1}^nR_t\big]/n. Replace at the age nn that minimises A(n)A(n) — i.e. when next year’s running cost first exceeds the average cost to date (Rn≤A(n)≤Rn+1R_n\le A(n)\le R_{n+1}); in continuous time when R(T)=A(T)R(T)=A(T).
  • Money value changing (interest rate rr, v=1/(1+r)v=1/(1+r)): minimise the present worth of the infinite chain of replacements P(n)/(1−vn)P(n)/(1-v^n) with P(n)=C+∑Rivi−1P(n)=C+\sum R_iv^{i-1}; replace when Rn+1R_{n+1} exceeds the weighted average W(n)=P(n)/∑vi−1W(n)=P(n)\big/\sum v^{i-1}.
  • 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 ptp_t of failing in period tt, and failure may cause extra loss.

  • Individual replacement: replace each item when it fails. Long-run failures per period =N/μ=N/\mu (mean life μ=∑tpt\mu=\sum tp_t), cost per period =Nc1/μ=Nc_1/\mu.
  • Group replacement: replace all items at fixed intervals TT, and individual failures in between. With NtN_t the expected failures in period tt (Nt=∑kNt−kpkN_t=\sum_kN_{t-k}p_k), the average cost is c1∑t=1TNt+c2NT,\frac{c_1\sum_{t=1}^TN_t+c_2N}{T}, where c1c_1 is the individual and c2c_2 the group cost per item (c2<c1c_2<c_1). Choose the TT with the least average cost, and adopt group replacement if this is less than Nc1/μNc_1/\mu.
  • Rule: group replace at the end of period TT 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.

↑ Back to the question list

The purchase cost of an equipment is C and f(x),(x≥0) 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 C=50 and f(x)=3x2+5,x≥0.

2001 · Paper II · Q3c · 20 marks

Solution

General policy. If the equipment is replaced at age TT, the total cost of one cycle is the purchase cost plus the maintenance accumulated up to TT (salvage value zero): K(T)=C+∫0Tf(x)dx.K(T)=C+\int_0^Tf(x)\,dx . The average cost per unit time is A(T)=1T[C+∫0Tf(x)dx].A(T)=\frac1T\left[C+\int_0^Tf(x)\,dx\right]. Differentiating, A′(T)=−1T2[C+∫0Tf(x)dx]+f(T)T=f(T)−A(T)T.A'(T)=-\frac{1}{T^2}\left[C+\int_0^Tf(x)dx\right]+\frac{f(T)}T=\frac{f(T)-A(T)}T . Setting A′(T)=0A'(T)=0: f(T)=A(T)=1T[C+∫0Tf(x)dx].f(T)=A(T)=\frac1T\left[C+\int_0^Tf(x)\,dx\right]. Optimal policy: replace the equipment when its current maintenance cost f(T)f(T) equals the average cost per unit time up to that age. If ff is increasing, A″(T)=f′(T)/T>0A''(T)=f'(T)/T>0 at this point, so it is a minimum.

The case C=50C=50, f(x)=3x2+5f(x)=3x^2+5. ∫0T(3x2+5)dx=T3+5T,\int_0^T(3x^2+5)\,dx=T^3+5T, A(T)=50+T3+5TT=50T+T2+5.A(T)=\frac{50+T^3+5T}T=\frac{50}T+T^2+5 . A′(T)=−50T2+2T=0A'(T)=-\frac{50}{T^2}+2T=0 ⇒T3=25\Longrightarrow\ T^3=25 ⇒T=251/3≈2.92.\Longrightarrow\ \boxed{T=25^{1/3}\approx2.92}. Check with the rule: f(T)=3T2+5f(T)=3T^2+5 and A(T)=50T+T2+5A(T)=\frac{50}T+T^2+5 are equal when 2T2=50T2T^2=\frac{50}T, i.e. T3=25T^3=25. ✓ A″(T)=100T3+2>0A''(T)=\frac{100}{T^3}+2>0, so it is a minimum.

Minimum average cost: A(2.924)=502.924+8.550+5≈30.65A(2.924)=\frac{50}{2.924}+8.550+5\approx30.65 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.

↑ Back to the question list

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.

1999 · Paper II · Q7c · 20 marks

Solution

Failures per week. The probabilities of failing in weeks 1–5 are pt=0.10,0.15,0.25,0.30,0.20p_t=0.10,0.15,0.25,0.30,0.20. Suppose there are N=1000N=1000 bulbs (the decision does not depend on NN). With Nt=∑kNt−kpkN_t=\sum_kN_{t-k}p_k: N1=100,N2=160,N3=281,N4=377.1,N5=349.86.N_1=100,\quad N_2=160,\quad N_3=281,\quad N_4=377.1,\quad N_5=349.86 . (N4=300+25+24+28.1N_4=300+25+24+28.1; N5=200+30+40+42.15+37.71N_5=200+30+40+42.15+37.71.)

Individual replacement only. Mean life =∑tpt=0.1+0.3+0.75+1.2+1.0=3.35=\sum tp_t=0.1+0.3+0.75+1.2+1.0=3.35 weeks. Failures per week =1000/3.35=298.5=1000/3.35=298.5, at Re 1 each: Re 298.51 per week.

Group replacement every TT weeks (Re 1 per individual replacement, Re 0.25 per bulb for the group):

TT NTN_T 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 T=2T=2, 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.

↑ Back to the question list

Specify a few replacement policies.

1996 · Paper II · Q12a · 20 marks

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:

  1. 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: Rn≤C−Sn+∑t≤nRtn≤Rn+1.R_n\le\frac{C-S_n+\sum_{t\le n}R_t}{n}\le R_{n+1}.
  2. Replacement with discounting. When money has a time value (interest rr), replace when next year’s running cost exceeds the weighted (discounted) average of costs, Rn+1>W(n)=[C+∑Rivi−1]/∑vi−1R_{n+1}>W(n)=\big[C+\sum R_iv^{i-1}\big]/\sum v^{i-1}.
  3. 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.
  4. Individual replacement (items that fail suddenly). Replace each item only when it fails; cost per period =Nc1/μ=Nc_1/\mu, where μ\mu is the mean life.
  5. Group (preventive) replacement. Replace all items together at fixed intervals TT, whether failed or not, and individual failures in between; choose TT to minimise [c1∑t≤TNt+c2N]/T\big[c_1\sum_{t\le T}N_t+c_2N\big]/T. Group replacement is better when the group cost per item is much less than the individual cost and failures cause extra losses.
  6. Block / age replacement (reliability). Age replacement: replace an item on failure or on reaching a set age TT, whichever comes first. Block replacement: replace at fixed calendar times regardless of age (like group replacement for one item).
  7. Replacement on deterioration in performance (opportunity cost): replace when efficiency falls so much that the lost output costs more than replacement.
  8. 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.

↑ Back to the question list

More on Optimization Techniques

Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1996–2023. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted