---
title: Generation adequacy and reliability
heading: Will there be enough generation? Forced outage rates, capacity outage probability tables, loss-of-load probability and expectation, the one-day-in-ten-years standard, reserve margins and capacity credit
eyebrow: S10 · Lesson 33 · Generation adequacy and reliability
xp: 50
---

::: hook
Every generating unit breaks down now and then: a boiler tube leaks, a transformer fails, a turbine needs repair. These forced outages strike at random, and so do the hot afternoons that drive demand to its peak. Planning enough capacity is therefore a question of probability. How likely is it that the units still running can't cover the load? North American planners have long aimed for a loss of load no more often than one day in ten years. This lesson builds the tables and sums behind that target.
:::

::: play
- The stems are the probabilities of having k of 6 identical units out of service at once, each with a forced outage rate q set by the slider: the binomial distribution $\binom{6}{k}q^k(1 - q)^{6-k}$.
- With q = 5%, all six are available 73.5% of the time, one is out 23.2% of the time, and three or more are out only 0.22% of the time.
- Raise q and the distribution shifts right quickly: unreliable units need much larger reserve margins.
:::

```sim plot
view: graph
x: k = 0..6
y: P = 1e-9..1 log
samples: 7
slider: q = 0.01..0.2 = 0.05
plot: (step(0.5 - k) + 6*step(k - 0.5)*step(1.5 - k) + 15*step(k - 1.5)*step(2.5 - k) + 20*step(k - 2.5)*step(3.5 - k) + 15*step(k - 3.5)*step(4.5 - k) + 6*step(k - 4.5)*step(5.5 - k) + step(k - 5.5))*q^k*(1 - q)^(6 - k) | stems | label: probability of k units out
```

::: predict
## Five 100 MW units, each out 5% of the time at random, serve a 380 MW peak. If that peak lasted every day of the year, about how many days would some load go unserved?

- [ ] Under one day
- [ ] About two days
- [x] About eight days
- [ ] About forty days

::: reveal
Any two units out leaves 300 MW, short of 380, so the loss-of-load probability is $P(\ge 2\text{ out}) = 1 - 0.95^5 - 5(0.05)(0.95)^4 = 0.0226$, and 0.0226 × 365 = 8.2 days a year: eighty times the one-day-in-ten-years standard, despite a 32% reserve margin.
:::
:::

::: nameit
## Forced outages

A unit's **forced outage rate** (FOR) q is the long-run fraction of time it's unavailable when it should be running, typically 2 to 10%. Units are assumed to fail independently.

## The capacity outage probability table

List every possible amount of capacity out of service with its probability. For n identical units of size C,
$$P(k\text{ out}) = \binom{n}{k}q^k(1 - q)^{n-k}$$
and for mixed units the table is built one unit at a time: adding a unit of size C and outage rate q turns P(X out) into $(1 - q)P(X) + qP(X - C)$.

## Loss of load

For a daily peak load L, the **loss-of-load probability** is the chance that available capacity falls below L: the sum of the table's entries for outages larger than the installed capacity minus L. The **loss-of-load expectation** adds it up over the year's daily peaks,
$$\text{LOLE} = \sum_\text{days}P(\text{capacity} < L_d)$$
in days per year. The common planning standard is LOLE ≤ 0.1 day/year, one day in ten years. Related measures are the expected unserved energy and the loss-of-load hours.

## Reserves and capacity credit

The **reserve margin** is (installed capacity − peak)/peak; 15 to 20% has been typical, but the margin that meets the LOLE standard depends on the units' sizes and outage rates. A new resource's **capacity credit** (effective load carrying capability) is the extra peak load it lets the system serve at the same LOLE. Variable wind and solar earn credits well below their nameplate because their output is often low at the hours of greatest risk.
:::

::: example
## The five 100 MW units (FOR 5%) serve daily peaks of 380 MW on 100 days and 290 MW on the other 265. What is the LOLE?

::: solution
1. **At 380 MW.** Two or more units out cause a loss of load:
   $$P = 0.0226$$
2. **At 290 MW.** It takes three or more out (leaving 200 MW):
   $$\begin{aligned} P &= 1 - 0.7738 \\ &\quad - 0.2036 - 0.0214 \\ &= 0.00116 \end{aligned}$$
3. **LOLE.**
   $$\begin{aligned} \text{LOLE} &= 100 \times 0.0226 \\ &\quad + 265 \times 0.00116 \\ &= 2.26 + 0.31 \\ &= 2.57 \end{aligned}$$
   days per year.
4. **Compare with the standard.** That's still 26 times the standard. The high-load days dominate.

**Answer:** 2.57 days per year.
:::
:::

::: example
## A sixth identical unit is added. What is the LOLE now?

::: solution
1. **At 380 MW.** Three or more of six must be out:
   $$\begin{aligned} P &= 1 - 0.95^6 - 6(0.05)(0.95)^5 \\ &\quad - 15(0.05)^2(0.95)^4 \\ &= 0.00223 \end{aligned}$$
2. **At 290 MW.** Four or more must be out: $P = 8.6 \times 10^{-5}$.
3. **LOLE.**
   $$\begin{aligned} \text{LOLE} &= 100 \times 0.00223 \\ &\quad + 265 \times 0.000086 \\ &= 0.246 \end{aligned}$$
   day per year.
4. **Compare.** One more unit cut the risk tenfold, though it's still above 0.1: a seventh, or more reliable units, would be needed.

**Answer:** 0.246 day per year.
:::
:::

::: example
## A 100 MW unit with FOR 0.1 is added to a system whose only other unit is 200 MW with FOR 0.05. Build the capacity outage table.

::: solution
1. **Start from the 200 MW unit.** It gives 0 MW out with probability 0.95 and 200 MW out with 0.05.
2. **Add the new unit.**
   $$P'(X) = 0.9P(X) + 0.1P(X - 100)$$
3. **The table.** This gives:

| MW out | Probability |
|---|---|
| 0 | 0.855 |
| 100 | 0.095 |
| 200 | 0.045 |
| 300 | 0.005 |

4. **Check.** The probabilities sum to 1.
5. **Against a 150 MW load.** The system falls short whenever 200 MW or more is out: 0.05.

**Answer:** 0 MW out with probability 0.855, 100 MW 0.095, 200 MW 0.045 and 300 MW 0.005.
:::
:::

::: check
kind: parts
given: n = 4 | 6 | 10; q = 0.02 | 0.05 | 0.1

## A system has {n} identical units, each with forced outage rate {q}.

::: part
answer: (1 - q)^n
tolerance: 0.5%

### What's the probability all are available?

::: misses
- [any] $(1 - q)^n$.
:::
:::

::: part
answer: n*q*(1 - q)^(n - 1)
tolerance: 0.5%

### That exactly one is out?

::: misses
- [q*(1 - q)^(n - 1)] Any of the n units could be the one out.
- [any] $nq(1 - q)^{n-1}$.
:::
:::

::: part
answer: 1 - (1 - q)^n - n*q*(1 - q)^(n - 1)
tolerance: 1%

### That two or more are out?

::: misses
- [any] One minus the first two.
:::
:::
:::

::: check
kind: parts
given: q = 0.03 | 0.05 | 0.08; L = 310 | 380 | 450; D = 50 | 120 | 250

## Five 100 MW units (FOR {q}) serve a daily peak of {L} MW on {D} days a year, and much lighter loads otherwise.

::: part
answer: 1 - (1 - q)^5 - 5*q*(1 - q)^4
tolerance: 1%

### What's the loss-of-load probability on a peak day?

::: misses
- [any] Any two units out leaves 300 MW, below the peak.
:::
:::

::: part
answer: D*(1 - (1 - q)^5 - 5*q*(1 - q)^4)
unit: days
tolerance: 1%

### What LOLE do the peak days contribute per year?

::: misses
- [any] Days times the daily probability.
:::
:::
:::

::: check
kind: parts
given: C = 500 | 1200 | 3000; p = 1.1 | 1.18 | 1.3; let P = round(C/p)

## A system has {C} MW installed for a peak of {P} MW.

::: part
answer: (C - P)/P*100
unit: %
tolerance: 0.5%

### What is its reserve margin?

::: misses
- [(C - P)/C*100] The margin is relative to the peak, not the capacity.
- [any] (capacity − peak)/peak.
:::
:::
:::

::: check
kind: parts
given: a = 100 | 200; q = 0.05 | 0.1; b = 50 | 150; r = 0.02 | 0.08

## A {a} MW unit (FOR {q}) and a {b} MW unit (FOR {r}) make up a system.

::: part
answer: (1 - q)*(1 - r)
tolerance: 0.5%

### What's the probability of no capacity out?

::: misses
- [any] Both available.
:::
:::

::: part
answer: q*r
tolerance: 0.5%

### Of everything out?

::: misses
- [any] Both out.
:::
:::

::: part
answer: q*(1 - r) + r*(1 - q)
tolerance: 0.5%

### Of exactly one unit out (either)?

::: misses
- [q + r] That counts the both-out case twice.
- [any] Sum of the two single-outage terms.
:::
:::
:::

::: check
kind: parts
given: d = 0.5 | 2 | 10; h = 4 | 8

## A system's LOLE is {d} days per year, and each loss-of-load day averages {h} hours of shortfall.

::: part
answer: 0.1/d
tolerance: 0.5%

### By what factor must its risk fall to meet one day in ten years?

::: misses
- [any] 0.1 over the current LOLE.
:::
:::

::: part
answer: d*h
unit: h
tolerance: 0.5%

### About how many loss-of-load hours per year is that?

::: misses
- [any] Days times hours per event.
:::
:::
:::

::: check
kind: parts
given: N = 200 | 500; c = 15 | 30 | 50

## A {N} MW wind farm adds the same reliability as {c}% of its nameplate in perfectly reliable capacity.

::: part
answer: N*c/100
unit: MW
tolerance: 0.5%

### What is its capacity credit?

::: misses
- [any] Fraction times nameplate.
:::
:::
:::

::: check
kind: choice

## Why can a system meet a 20% reserve margin and still fail the one-day-in-ten-years standard?

- [ ] Reserve margins are always miscalculated
- [x] The margin counts installed capacity but not its reliability or granularity: a few large units with high outage rates, or wind and solar with low output at peak, leave a much higher chance of shortfall than the same megawatts in many small, reliable units
- [ ] The standard applies only to winter
- [ ] Reserve margins include imports twice

::: misses
- [1] The arithmetic is simple; the issue is what it leaves out.
- [3] It applies to every day of the year.
- [4] That's not the reason.
:::
:::

::: check
kind: derivation
vars: n = 2..12, q = 0.01..0.2

## A system has n identical units with outage rate q, and a loss of load occurs when two or more are out.

::: step
answer: (1 - q)^n + n*q*(1 - q)^(n - 1)

### What's the probability at most one is out?
:::

::: step
answer: 1 - (1 - q)^n - n*q*(1 - q)^(n - 1)

### What's the loss-of-load probability?
:::

::: step
answer: n*(n - 1)/2*q^2

### What does it approach for small q?
:::

::: right
Right. For reliable units the risk of k simultaneous outages goes as $q^k$: each extra unit of reserve buys a factor of roughly q.
:::
:::

::: check
kind: python

## Write `copt(units)`: a capacity outage probability table as a dict {MW out: probability} from a list of (size, FOR) pairs, built one unit at a time, and `lole(units, peaks)`: the sum over the daily peaks of the probability that available capacity is below each peak.

```python starter
def copt(units):
    return {0: 1.0}

def lole(units, peaks):
    return 0.0
```

```python solution
def copt(units):
    table = {0: 1.0}
    for size, q in units:
        new = {}
        for out, p in table.items():
            new[out] = new.get(out, 0.0) + p * (1 - q)
            new[out + size] = new.get(out + size, 0.0) + p * q
        table = new
    return table

def lole(units, peaks):
    total = sum(s for s, _ in units)
    table = copt(units)
    return sum(sum(p for out, p in table.items() if total - out < L) for L in peaks)
```

```python tests
t = copt([(200, 0.05), (100, 0.1)])
assert abs(t[0] - 0.855) < 1e-12 and abs(t[100] - 0.095) < 1e-12 and abs(t[200] - 0.045) < 1e-12 and abs(t[300] - 0.005) < 1e-12, "The worked table."
five = [(100, 0.05)] * 5
assert abs(lole(five, [380] * 100 + [290] * 265) - 2.566) < 1e-3, "Five units: 2.57 days per year."
six = [(100, 0.05)] * 6
assert abs(lole(six, [380] * 100 + [290] * 265) - 0.2459) < 1e-3, "Six units: 0.246 days per year."
```

::: right
Right. Real studies use the same recursion with hundreds of units and 8760 hourly loads; only the bookkeeping grows.
:::
:::

::: explain
## Why does adding one more unit cut a system's loss-of-load expectation by much more than its share of capacity would suggest?

::: model
A loss of load happens only when enough units are out at the same time that the rest can't cover the peak. With reliable units, the probability of several simultaneous outages falls very steeply with the number required, roughly as the outage rate raised to that number. Adding a unit means one more outage must coincide before load is lost, which multiplies the risk by about the outage rate, often a factor of ten or more, even though the unit adds only a modest fraction of the total capacity. That's also why adequacy depends on unit sizes: the same megawatts in fewer, larger units leave more risk.
:::
:::

::: practice
::: check
given: n = 3 | 8; q = 0.04 | 0.1
answer: n*q*(1 - q)^(n - 1)
tolerance: 0.5%

## Probability exactly one of {n} units (FOR {q}) is out?

::: misses
- [any] $nq(1 - q)^{n-1}$.
:::
:::

::: check
given: C = 900 | 2200; P = 750 | 1900
answer: (C - P)/P*100
unit: %
tolerance: 0.5%

## Reserve margin: {C} MW for a {P} MW peak?

::: misses
- [any] (C − P)/P.
:::
:::

::: check
given: p = 0.001 | 0.02; D = 60 | 300
answer: p*D
unit: days
tolerance: 0.5%

## LOLE from {D} days at daily LOLP {p}?

::: misses
- [any] Days × probability.
:::
:::
:::
