# Shared Gas: A 'Tragedy' of the Commons

My wife and I live in a twenty eight unit condominium which shares the cost of natural gas. Each unit has its own gas fireplace which we find is sufficient to heat our unit all year long, without resorting to electric baseboard heaters. This makes for an interesting problem in game theory: at what price level can we expect the residents to switch from heating with gas to heating with electricity?

The problem is only interesting when the cost of heating with gas is on the same order as electric heat. If one source is *much* cheaper than the other then it is the rational choice. As I write this the cost of gas is roughly (if I did the math right!) 3/4 the cost of electricity (measured in dollars per unit of energy). This neglects some issues such as efficiency of turning the energy into heat, etc. but at least it gives us a ballpark figure. Clearly, the problem is relevant.

I'm going to demonstrate two solutions to the problem. The first ignores game theory and gives a trivial, intuitive result. The second, using game theory, gives a more likely–and drastically worse–result.

## Solution 1: Self-consistency

First, some definitions:

\(T\) | total heating cost over some fixed period (eg. one year), |

\(N\) | number of units in condo (eg. \(N=28\)), |

\(E\) | total units of energy used to heat home, |

\(f\) | ratio of gas price rate to electricity rate (eg. \(f=3/4\)), |

\(r_e\) | cost per unit energy for electricity, |

\(r_g\) | cost per unit energy for gas (\(r_g=f r_e\)), and |

\(g\) | fraction of heat generated by gas, for a single resident (between zero and one). |

Ok, to state it mathematically, we want to find the fraction \(g\) which minimizes the total cost \(T\) each resident spends. For this first solution, we assume each resident is going to do the same thing because they all want to minimize \(T\).

So each resident's cost for electric heat is \((1-g) E r_e\) and the total cost of gas for the entire building is \(N g E r_g\), which is split uniformly between the \(N\) condos. So the total cost to each condo is \[ T = (1-g) E r_e + g E r_g = E r_e [1+(f-1)g]. \]

So what would each resident choose for \(g\) in order to minimize \(T\)? Simple: if \(f<1\) then choose \(g=1\) and if \(f>1\) then choose \(g=0\). This just means the rational way to heat your home is with whichever source is cheaper. That seems obvious doesn't it?

## Solution 2: Game theoretic

If you agree with the first solution this one might surprise you. Again, we need a few definitions. Instead of everybody applying the same behaviour \(g\), lets consider what **I** should do as a resident versus what everybody else is doing:

\(g_\text{me}\) | the fraction \(g\) for me, as a resident, or |

\(g_\text{other}\) | the fraction \(g\) averaged over all other residents. |

Now there are three costs: my electricity, \((1-g_\text{me}) E r_e\), my gas, \(g_\text{me} E r_g\), and everybody else's gas, \((N-1) g_\text{other} E r_g\). As before, these last two terms are shared by all \(N\) residents so my total cost is \[ \begin{array}{rl} T & = (1-g_\text{me}) E r_e + [g_\text{me} E r_g + (N-1) g_\text{other} E r_g]/N \\ & = E r_e [1+(N-1) g_\text{other} f / N + (f/N - 1) g_\text{me}]. \end{array} \]

Notice that I only have control over my own actions, \(g_\text{me}\). I can't hope to influence other people's behaviour so \(g_\text{other}\) is effectively constant, independent of what I do. So, to minimize T all I can do is try to minimize the very last term \((f/N - 1) g_\text{me}\). This is achieved with \(g_\text{me}=1\) when \(f<N\) and \(g_\text{me}=0\) when \(f>N\).

## Tragedy of the commons

Compare these two solutions: the first says I should use gas only if it is cheaper than electricity, but the second says I should keep using it until it is \(N\) times more expensive than electricity! (\(N=28\) in my building.)

If that's the optimal behaviour for me, then the same should hold for every resident in the building. So, when \(1<f<N\) we are all going to be paying more for heating than we need to! Strange but true. This dilemma is known as the tragedy of the commons. It happens because nobody can improve their situation by changing their behaviour unless everyone else changes, too.

Fortunately, there are ways to get around this kind of dilemma. What you have to do is change the rules of the game. For example, if the price of gas got too high we could have an emergency strata meeting to vote on the option of shutting off the gas to the entire building. (Other, less totalitarian solutions are probably also available…)

— *Rik Blok 2002*