Ask someone what changed the way scientists think about prediction, and very few will say a butterfly. But that's more or less what happened. Somewhere between a work of science fiction about time-traveling dinosaur hunters and a weather model that refused to repeat itself, an idea took hold that would go on to explain everything from turbulence in a mountain stream to why your flight got delayed because of a storm three states away.

Chaos theory says that within the apparent randomness of chaotic, complex systems, there are underlying patterns — interconnectedness, constant feedback loops, repetition, self-similarity, fractals, and self-organization. The butterfly effect, an underlying principle of chaos, describes how a small change in one state of a deterministic nonlinear system can result in large differences in a later state. There is, in other words, a sensitive dependence on initial conditions. Get the starting point wrong by even a hair, and the system you're trying to predict can end up somewhere completely unrecognizable.

“A Sound of Thunder" is a science fiction short story by American writer Ray Bradbury, first published in Collier's magazine on June 28, 1952. This story is often credited with the origin of the term Butterfly Effect. The plot goes as follows: in the year 2055, time travel has become a practical reality, and the company Time Safari Inc. offers wealthy adventurers the chance to travel back in time to hunt extinct species such as dinosaurs. A hunter named Eckels pays $10,000 to join a hunting party that will travel back 66 million years to a guided safari to kill a Tyrannosaurus rex.

When the party arrives in the past, Travis (the hunting guide) and Lesperance (Travis's assistant) warn Eckels and the two other hunters, Billings and Kramer, about the necessity of minimizing the events they change before they go back, since even the smallest alterations to the distant past could snowball into catastrophic changes in history. Travis explains that the hunters are obliged to stay on a levitating path to avoid disrupting the environment, and that any deviation will be punished with hefty fines. Prior to the hunt, Time Safari scouts had been sent back to select and tag their prey — an animal that would have died within minutes anyway, and whose death had been calculated to have minimal effect on the future.

Although Eckels is initially excited about the hunt, when the monstrous beast approaches, he loses his nerve. He panics and runs back to the time machine through the forest. The hunting party then kills the T-Rex and returns to the future. Travis asks the people at the company if everything was ok, and they nod in affirmation — but things don't feel the same to anyone. The words of English were spelled differently. The president was someone else.

Eckels panics and searches himself for all the things he could have disturbed in the past, and that's when he finds, in his mud-laden boots, a butterfly — beautiful and crushed, but dead. Somehow, the death of this little butterfly has resulted in catastrophic changes in the future. Eckels begs Travis to take him back to the past so he could fix what he ruined, but Travis objects, saying it could only result in even more paradoxes. On hearing this, Eckels sits down and starts to cry, eyes closed. When he hears Travis taking the safety off his rifle, and when he opens his eyes, all he could hear was “a sound of thunder”.

The phrase ‘A butterfly flaps its wings in Tokyo and a Tornado occurs in Texas’ is a common phrase that shows how this theory has fascinated people for generations. What's interesting is that Bradbury wrote his story in 1952 — nearly two decades before chaos theory found its formal, mathematical vocabulary. In 1961, the meteorologist Edward Lorenz was running a weather simulation on an early computer, and midway through a run he decided to re-enter a set of numbers to repeat a sequence instead of starting the whole thing over. To save himself some typing, he rounded one value from 0.506127 down to 0.506 — a difference so small it seemed irrelevant. When the simulation finished, the new weather pattern had nothing in common with the original. A rounding error six decimal places deep had rewritten the entire forecast. Lorenz had stumbled onto the same idea Bradbury had already written into fiction: that in certain systems, tiny, seemingly meaningless changes in the starting conditions don't stay tiny. They compound, they fork, and they eventually produce a completely different outcome.

“If this intellect were vast enough to submit the data to analysis
Then the future, just like the past would be present before its eyes”
— P S Laplace

Laplace's idea, written more than a century before Lorenz ever touched a computer, is called Laplace's Demon — the notion that a sufficiently powerful intellect, given the exact position and momentum of every particle in the universe, could calculate the entire future and the entire past with certainty. It's a beautiful thought experiment, and chaos theory is precisely what breaks it. The butterfly effect showed that the predictability of any chaotic system can only be accurate if the number of variables at play is very small, and the initial condition for each variable is accurate to every single decimal place — accuracy to an infinite number of decimal places, which is practically impossible. This is the reason why it is easier to predict the motion of celestial bodies than it is to predict the weather on the planet a week out. Planets move under the influence of a handful of forces we understand precisely. Weather has pressure, moisture, wind speed, particulate presence, ocean temperature, and dozens of other variables all tangled together, each one nudging the others in ways that are impossible to fully separate.

You don't need a supercomputer to see this for yourself. Set up a double pendulum — a rod swinging from a rod — and release it twice from what looks like exactly the same starting angle. Within a few seconds, the two pendulums are swinging in completely different patterns, even though nothing about the setup changed except an angle too small for the human eye to notice. Financial markets behave the same way, which is why economists can build models that explain yesterday's crash perfectly and still fail to predict tomorrow's. So does the human heart, whose rhythm looks chaotic on a monitor right up until the irregularity becomes dangerous. Once you start looking for this pattern, you notice it everywhere: in traffic that jams for no visible reason, in epidemics that stall in one town and explode in the next, in a dripping tap whose rhythm never quite repeats.

Chaos theory, however, tells us that if chaotic systems are left to repeat themselves over time, we would notice the underlying patterns — fractals, deterministic properties — which can be predicted by taking the correct initial conditions over the right time scale. The butterfly effect and chaos theory together somewhat make the possibility of time travel in the future just a fantasy — change one thing in the past, however small, and there's no guaranteeing which version of the present you'd return to. But humans are still a very young species. We may, in the future, acquire the ability to measure and produce all the variables with perfect accuracy, and find a way around the barriers physics currently puts in our way. Until then, we have to find a way to keep our civilization going despite the unpredictability baked into it, and chaos theory will keep serving us the same way it does now — in cryptography algorithms, in biological sciences, in the models we use to plan for disasters we can't quite see coming.

What I keep coming back to, whenever I think about this theory, is how it quietly rewires the way you look at your own decisions. We like to imagine our lives as a series of big, deliberate turning points — the job you took, the person you married, the city you moved to. But chaos theory suggests the smaller moments matter just as much, precisely because you can't tell in advance which ones they'll be. A conversation you almost skipped. A train you almost missed. A message you nearly didn't send. None of them feel like butterflies at the time. It's only looking backward that you can see the storm they eventually became.