When a problem is computationally or mathematically difficult, a simulation can help get an approximate answer. Want to find the value of pi? Just throw a lot of (virtual) darts at a square!
The limits of light have been replaced: All matter is teleported to a random place!
How far is the average point displaced?
This rule of space should not be disregarded: You might teleport to exactly where you started.
Hint: Don't set your bar low. Use Monte-Carlo.
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