Coordinated with Fredrik podcast

All of Them

0:00
33:36
Spola tillbaka 15 sekunder
Spola framåt 15 sekunder

After More Ways Than Atoms. Thirty-four minutes on one quarter of an hour at my house, planned 135 times before it happened: where a chance lives, why a forecast has to be quicker than the weather and better than “no change”, why one house is harder to forecast than a whole country, and where in a forecast a plan should stand. A conversation with Lily. I built the planner in my house myself; its name is Energyplan, my company, Sourceful, owns it, and what is inside it stays inside. Both voices are generated, mine included, and the script was written with Claude Opus 5.5.

I want to tell you about one quarter of an hour: five o’clock on the afternoon of Sunday the fifteenth of November, at my house. Nothing special happened in it. The home battery gave the house a little power.

Before it happened, the planner in my house planned it 135 times. It is a small computer that plans the home battery and the car, a quarter of an hour at a time. The first plan came a whole day earlier, on the Saturday, and wanted the battery about eighty percent full at five. When five o’clock came, it was at about twenty. So which plan was right? All of them.

I built that planner myself. Its name is Energyplan, my company, Sourceful, owns it, and what is inside it stays inside. So, without giving marks to my own work, here is what I mean. Each plan was the best answer the planner had for what it knew at that moment. Most came with a proof of how close they were to the best possible. Some ran out of time before they could show it.

In More Ways Than Atoms we pretended to know tomorrow exactly, and still found more ways to run one car and one home battery tonight than there are atoms in the universe. Now we stop pretending.

In what you know

About two hundred years ago, the French mathematician Laplace asked how sure you can be that the sun will rise tomorrow. If all you know is history, about five thousand years of it, you have counted some 1.8 million mornings with a sunrise on every one, and his rule gives a bet of about 1.8 million to one. In his next sentence, the one everybody leaves out, he says the number is far too low for anyone who knows why the sun rises. Counting is what you do when you know nothing else. Earlier in the book he says it plainly: probability is “relative, in part to this ignorance, in part to our knowledge.” Look out of the window and the number changes. The sun doesn’t.

Back to the pot of coins from part one. The first player to win three tosses takes all sixty-four coins, and the game stops at two to one. The leader wins in three of the four ways the last two tosses could go, so Pascal gives him forty-eight and the other player sixteen. Yet no game played to the end pays forty-eight. Every finished game pays sixty-four, or nothing. The forty-eight is the value of standing at two to one, given what you know: the coin is fair, and nobody knows the next toss. Learn that the coin is bent and the forty-eight changes, while the coins on the table stay put. A plan is a move made from such a position, not its value, but both belong to what you know. Neither belongs to what happens.

Five past one

At five past one that Sunday, the next day’s prices reached my house. Until then the plan’s horizon, how far ahead it can see, stopped at midnight, where the known prices stopped. Now it could see a cheap night ahead, so it made sense to use the battery at five, when power was dear, and fill it again in the night. One plan earlier, the quarter at five had crept up to ninety-one percent. At five past one, the plan said fifty-eight.

Nothing in the world changed at five past one. What changed was what the plan knew. The chance of rain isn’t in the sky. It’s in what you know. Prices come from a market. The sun, the house and when the car comes home come from forecasts. So where does a forecast come from?

Faster than the weather

During the First World War, behind the lines in France, Lewis Richardson did arithmetic. A Quaker who would not fight, he drove an ambulance and did his sums between runs. He wanted to forecast the weather from physics alone. He took a day in May, years before, with good measurements of the air over middle Europe, and worked out by hand what it should do in the next six hours. “My office was a heap of hay in a cold rest billet,” he wrote. It took him most of six weeks, and the answer was terrible: the pressure rising by 145 millibars in six hours, most of the gap between the lowest and highest pressure ever measured on Earth. On the real day the barometer hardly moved.

Long after his death, a mathematician in Dublin reran the sums on a computer, got the same wild number, then smoothed the starting data, and the barometer stood almost still. The method was right. The trouble was where he started, like reading a kitchen scale the second the flour goes in, while the number still jumps. He also wrote down a dream: “Perhaps some day in the dim future it will be possible to advance the computations faster than the weather advances... But that is a dream.”

In 1950 a team spent weeks feeding punched cards into a machine that filled a room, and made the first computer weather forecast. A forecast one day ahead took about a day to compute; they were “just able to keep pace with the weather.” Richardson showed his wife each of their maps beside one that said no change, and asked which looked better. The computer won on the whole, by a little. Those are the two tests, and they have never gone away: a forecast has to run faster than the weather, and it has to beat “no change”.

A short memory

The forecast in my house doesn’t start from physics. Nobody has written down the equations of a household. It has learned from the house’s own days. Put plainly, a model is a short memory of the past that you hope still holds. What’s inside mine stays inside, like the rest of the planner.

To judge it, ask Richardson’s wife’s question: does it beat the lazy answer? For a house that is “same as yesterday”, what it used at the same hour the day before. Over ten days in November my house’s forecast missed by about seven hundred watts on average, and “same as yesterday” by about eight hundred and fifty. So it is better by about a fifth, and only a fifth, an hour ahead or a day ahead. About as proud as Richardson’s wife would let me be.

Why not make it cleverer? Because then it remembers things that won’t happen again, like a friend who tips every one of last weekend’s football results right and is no better than you at next weekend’s. A model can learn the past so well that it learns the noise, the bits that were only chance. That is overfitting. So never grade a model on the days it learned from. Test it on days it has never seen, and on days that come after, because those are the only days it will ever meet.

At three twenty-seven, the plan said thirty-eight percent. The house kept surprising it, and each time the planner made a new plan.

Clouds and people

In the winter of 1961, at MIT, Edward Lorenz ran a toy weather on a computer the size of a desk. One day he restarted a run halfway by typing in a number from the printout. The printout had rounded it, and the machine kept more digits, so he was off by about a part in four thousand, and went for a coffee. When he came back, the new run had followed the old one for a while, then drifted, and after a few pretend months the two weathers had nothing in common. In a system like the air, a tiny difference at the start grows until it is the whole forecast. People later called that chaos. Today the forecasts you can really use for a single day reach about ten days.

The sun on my roof has the same limit. That Sunday the forecast said thick cloud all morning. Just after half past nine the clouds broke, and in a few minutes the panels went from a trickle to over four kilowatts. A satellite can already see the cloud that will shade my roof this afternoon. Tomorrow’s cloud doesn’t exist yet. The sun is sharp close up and blurry far away.

The house is the opp…



This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit frahlg.substack.com

Fler avsnitt från "Coordinated with Fredrik"