# Wait long, buy low

**Computer Science**Level 3

To use the "Wait long, buy low" strategy, one buys gas once per month on the first day that the price is unlikely to be lower in a run of 30 days. If the price doesn't satisfy that condition in the first 29 days, then you buy gas on the 30th day, regardless of its price.

What is the average amount (in dollars) that you pay for gas per gallon in any given month?

**Assumptions and Details**

- For simplicity, let \(p_G\) be the Gaussian \(\displaystyle p_G(g) = \dfrac{1}{\sqrt{2\pi \sigma_G}} \exp\left[{-\frac{\left(g-\bar{g}\right)}{2\sigma_G^2}}\right]\) where \(\bar{g}=$3.00\), and \(\sigma_G = $0.25\).
- An event \(E\) is unlikely if \(p(E)<0.5\).