Least squares on the readings inside the window. More degrees, more freedom.
Symbolic Physical Laws DiscoveryFoundations
Module 1From predictive models to scientific laws
Why does science want equations, and not only good predictions? A curve that fits can still be wrong about the world. We trace how mathematics became the language of physics, from Archimedes to quantum mechanics, and how computers joined the search for equations. Then we look inside symbolic regression: the space of formulas it searches, how fast that space grows, the seven decisions between observations and an equation, and what makes an equation useful. A worked example with our own falling-ball data puts it to work, eight failure modes show how discoveries can be fake, and a ladder of five claims says how far an equation has climbed.
Key ideas, one per video
- Video 1A quartic and an exponential fit five minutes of our cooling cup; after an hour the exponential says 20.2 °C and the quartic almost half a million. Prediction is evidence, not the end point.
- Video 2With four operators and three leaves there are about 1.2 billion formulas with six operators; symbolic regression searches a designed language, so its rules and complexity measure must be reported.
- Video 3Both drag laws fit the first half second; three seconds in, linear says 19.1 m/s and quadratic 9.1, and the data say 9.0. Measure where candidates disagree, and attack your own equations.
Book: Chapter 1 of Computational Methods for Symbolic Physical Laws Discovery by Teddy Lazebnik (coming soon). The videos and slides follow the chapter’s topics in our own words, figures and simulations; nothing is copied from the book.
Watch
3 videos for this module, each about 8 to 15 minutes. Pick one from the list, and open the transcript to read along: each timestamp plays the video from there. The narration is generated with a voice clone of Teddy, used with his permission.
Video 1 · 12:22
A curve is not a law
Two formulas fit a cooling cup equally well. One of them is a law.
A quartic and an exponential fit five minutes of our cooling cup; after an hour the exponential says 20.2 °C and the quartic almost half a million. Prediction is evidence, not the end point.
TranscriptVideo 1
Two formulas, one data set. Here are some measurements: the temperature of a cup of coffee, every fifteen seconds, for five minutes. And here are two formulas that fit them. One is a flexible polynomial. The other is a simple exponential. On these points, the polynomial actually fits slightly better. Now ask both formulas the same question. How hot will the cup be in half an hour? The exponential says 23.5 degrees. The polynomial says almost 24,000 degrees. Same data, same quality of fit, very different claims about the world. This whole course lives in the gap between those two formulas. A curve that fits is not yet a law.
Welcome to the course. Welcome to Symbolic Physical Laws Discovery. I'm Teddy. In this course we'll learn how computers can help us find equations, and how to tell when an equation deserves to be called a law. The course follows my upcoming book, chapter by chapter. There are ten modules and twenty two long videos. Every module also has a slide deck, and a lab you can run in your browser. You don't need the book to follow along. Some calculus, a little statistics, and curiosity are enough. This first video is about the target. Before we search for equations, we should agree on what we're looking for. We'll start with history: how mathematics became the language of physics. Then we'll see where computers joined the story. Then we'll separate prediction from explanation. And we'll finish with a question. What does it take for a formula to earn the word law?
How mathematics became the language of physics. People measured the world long before physics existed. They counted, surveyed land, tracked the seasons, and predicted eclipses. The Greeks added something new: proof. A claim in geometry was not just calculated. It was demonstrated, step by step, from definitions. But for a long time, mathematics described nature without explaining it. Explaining was the job of natural philosophy: causes, purposes, why things change. Archimedes crossed that line. His law of the lever turns a plank, a pivot and two weights into a relation you can prove. Weight times distance on one side equals weight times distance on the other. Astronomy took a different path. Ptolemy built a system of circles riding on circles, and it predicted the positions of the planets remarkably well. This was called saving the phenomena: reproducing what you observe. Whether those circles actually existed up there was a separate question. Keep that distinction in mind, because it's the heart of this course. A model that calculates correctly is not the same as a theory of what is real. The work continued across the Islamic world. Ibn al-Haytham, for example, brought geometry and careful experiments together in the study of light and vision. In the sixteenth century, Copernicus put the Sun at the center, partly because it gave the planets a more coherent mathematical order. Then Kepler took Tycho Brahe's careful observations of Mars seriously. The best circular scheme missed them by about eight minutes of arc. That's about a quarter of the Moon's width in the sky. Kepler refused to ignore that tiny gap. He let the data break the circle, and he found the ellipse. Here is the lesson for us. A compact regularity is powerful because it changes which mechanisms are even plausible. Ellipses demanded a physical cause. In 1623, Galileo wrote that the book of nature is written in the language of mathematics. Mathematics had described nature for centuries. What changed was its job. It was becoming the method for finding the structure of physical processes, like falling bodies and flying cannonballs. In 1687, Newton's Principia completed the move. The same laws describe an apple falling from a tree and the Moon moving in its orbit. After Newton, a theory of motion that wasn't mathematical simply couldn't compete. The next two centuries made the language more abstract, and more portable. Lagrange rewrote mechanics so that one method handled many different machines. Fourier described how heat spreads, with differential equations. Now mathematics followed a whole field through space and time, not just a single body. Maxwell's equations united electricity, magnetism and light. Boltzmann showed that laws can be statistical, describing crowds of molecules rather than one trajectory. Then came relativity and quantum mechanics. Gravity became the geometry of spacetime. Particles became wave functions. Mathematics now shaped what physicists could even imagine nature to be. In 1960, Eugene Wigner called this the unreasonable effectiveness of mathematics. Why should equations invented by mathematicians fit the world so well? Philosophers of science added warnings. Karl Popper said a scientific claim must be testable, and it stays a conjecture however well it's supported. Thomas Kuhn showed that the standards of science change during revolutions. Nancy Cartwright argued that many laws work through idealization, and fit the messy world only approximately. So if a computer prints a short equation, what has it found? A pattern in a finite table? An idealized model? A real mechanism? Or our own assumptions, handed back to us? History is clear on one thing. The great equations didn't become great because they were short. They became great because they organized many phenomena, and kept predicting things correctly.
Computers join the search. After the Second World War, computers changed what a law means in practice. An equation could be known, and still its consequences were only reachable by simulation. Then came data intensive science. Telescopes, sensors and simulations started producing more data than anyone could read. And people asked a bolder question. Can a computer propose the equations themselves? Starting in the late 1970s, Pat Langley, Herbert Simon and their colleagues built programs called BACON. Given tables of planetary data, one of them rediscovered Kepler's third law. In the 1990s, genetic programming let computers evolve formulas of any shape. That's where symbolic regression grew up as a method. Later work showed that evolutionary search could recover the laws of moving systems, like pendulums, straight from measured motion. Today, deep learning predicts protein structures, proposes new crystals, and even helps control fusion plasmas. Impressive. But a powerful predictor is not automatically an explanation. Symbolic discovery sits in between. It uses computation to search, but it returns something you can read, test and argue with. An equation.
Prediction is not explanation. Back to the coffee. These measurements come from our own simulation: a cup at ninety degrees, in a twenty degree room, read with a little thermometer noise. The polynomial has five free coefficients. Its typical error on these points is about 0.30 degrees. The exponential has the room temperature built in, plus two numbers: the starting temperature and a rate. Its typical error is about 0.34 degrees. Slightly worse. If predicting these points were the only goal, you'd pick the polynomial and go home. So pause the video for a moment. What do you think each formula predicts after one hour? The exponential settles toward the room. After an hour it says about 20.2 degrees. The polynomial shoots off to almost half a million degrees. The exponential is more than a curve. It says the cup approaches the room temperature, and never passes it. And its rate has units of one over time. It's also the solution of a simple law: the cup cools at a rate proportional to how much warmer it is than the room. That's Newton's law of cooling. The polynomial implies no law at all. It just bends where the data told it to. Here's the standard machine learning recipe. Pick a family of models. Then choose the parameters that make the average loss on your data as small as possible. Notice what's missing. Nothing in that objective asks whether the model matches the process that produced the data. Two models with the same loss count as equally good, even if one respects physics and the other breaks it. That's fine when prediction is the goal. A weather forecast is valuable if it's right tomorrow, even if nobody can read its insides. But if you claim a mechanism, prediction is only one piece of the evidence. So let's separate five modeling goals, from the least demanding to the most demanding. Prediction: estimate outcomes you haven't seen. Explanation: understand why a fitted model behaves the way it does. Careful with that one. Explaining why a neural network made a prediction is not the same as explaining the phenomenon. System identification: recover the structure of a dynamical system, using a vocabulary of terms you chose in advance. Symbolic discovery: search for the equation itself, with its form free to vary. And mechanistic discovery: claim that the equation describes the process that actually produced the data. Each step up asks more of the evidence. Success on one step does not buy you the next. Here's the simplest version of the trap. Measure the sine of x, but only between minus one and one. The polynomial x minus x cubed over six matches it everywhere in that window. The worst miss is less than one hundredth. Now step outside. At x equal to pi, the sine is back at zero. The polynomial says minus two. Inside the window, the two are almost twins. Outside, they disagree completely. Extrapolation exposes the assumptions that interpolation hides. And here's the practical lesson. A hundred more points inside the window tell you almost nothing. A few points where the candidates disagree tell you a lot. For the coffee, a few readings after half an hour beat a hundred more in the first five minutes.
From curve to law. Data alone rarely pin down one explanation. Scientific knowledge does the rest of the work. Units, for example. If x is a length and y is a speed, then y equals x plus x squared adds things that simply can't be added. Symmetry: a law shouldn't depend on where you put the origin of your coordinates. Conservation: some quantities can't appear from nothing. Limits: a formula should behave sensibly when a variable gets very small, or very large. And shape. If a response must rise with pressure, prefer formulas that keep rising, between the data points and beyond them. These aren't checks you run at the very end. The best methods build them into the search itself. Suppose a search returns y equals a x over b plus x. It's compact, and it fits. Now look at the questions it lets you ask. Does y level off as x grows? Must a and b be positive? What units do they carry? Does the mechanism you believe in predict that leveling off? That's the real value of an equation. The algorithm proposed an object to reason about. It didn't finish the reasoning for you. So there's no magic error threshold where a fit becomes a law. Instead, there's a ladder of claims. At the bottom, a formula that predicts the data you have. Then an empirical regularity: it still holds when you repeat the experiment. Then a scientific hypothesis: it respects known constraints and survives a change of regime. Then a mechanism: it beats credible alternatives in experiments designed to tell them apart. And only at the top, a law, within a stated domain. Not at the moment an optimizer first prints an equation. Here's the working definition for this course. Computational symbolic discovery uses search, optimization and scientific constraints to produce explicit equations, as candidate descriptions of a phenomenon. The equation is a hypothesis. Its status depends on evidence beyond the search.
Recap and lab. Let's recap. Mathematics became the language of physics over two thousand years, and computers have now joined the search for equations. Prediction is evidence, not the end point. A curve that fits can still be wrong about the world, and the place to catch it is outside your data. In this module's lab, you'll fit a polynomial and a law to falling ball data, stretch the time window, and watch which one survives. Next video: what symbolic regression actually searches, and why that space is so astonishingly big. See you there.
From two numbers to a space of shapes. Fit a straight line to some points. What is the computer actually searching for? Two numbers: a slope and an intercept. That's it. Now let the computer also choose the shape of the formula. Maybe a square, maybe a logarithm, maybe a sine inside a fraction. That one change turns a smooth, friendly problem into a search through an astronomically large space. Today: what symbolic regression searches, how big that space is, and how to search it like a scientist. Three parts. First, what the search space is made of. Second, the workflow that takes us from observations to equations, in seven stages. And third, the properties that make an equation scientifically useful, not just accurate.
What the search space is made of. With a line, y equals a x plus b, the structure is fixed before you look at the data. One multiplication, one addition, two constants. Fitting means moving a and b until the error is smallest. Symbolic regression drops that assumption. Should x appear once, or squared? Should two variables be added, or multiplied? Is there an exponential in there, and what sits inside it? Only after the structure is chosen do the constants get their values. So the expressions themselves become the objects being optimized. One compact way to write the goal: find the formula f, from a language of allowed expressions, that minimizes the error on the data plus lambda times the complexity of f. That language, written as a curly H, is the quiet star of the equation. It's not all of mathematics. It's what you can build from the variables, constants, operators and rules you gave the algorithm. And the problem has two layers. Choosing a structure is discrete: a sine or no sine, a plus or a times. Fitting its constants is continuous. Symbolic regression has to do both, again and again. Computers store a formula as a tree. Take a damped oscillation: c, times e to the minus k t, times the sine of omega t. The leaves hold variables and constants. The inner nodes hold operations. To evaluate it, you work from the leaves up to the root. Now watch the two kinds of moves. Change a constant, and you edit one leaf. Change the structure, and a whole branch is replaced: the sine becomes a cosine, or the exponential disappears. So the search moves through a space of small programs, not over a smooth landscape of parameters. And that space is full of duplicates. x one plus x two, and x two plus x one, are different trees for the same function. x plus x is the same function as two times x. The log of a times b equals the log of a plus the log of b, whenever both are positive. Without care, a search can spend most of its effort rediscovering the same function in different clothes. So how big is this space? Let's count, with a tiny language. Four operators: plus, minus, times and divide. Three possible leaves: x, y, and a constant c. A tree with n operators has n plus one leaves. The number of tree shapes is a Catalan number. Then every operator slot has four choices, and every leaf has three. With one operator, there are 36 formulas. With two, 864. With three, almost 26,000. With six operators, about 1.2 billion. And that's a language with no sine, no exponential, and no second constant. Pause for a second. Allow ten operators. How long would it take to check every formula, at a million formulas per second? There are about 3.1 quadrillion of them. At a million per second, that's roughly ninety nine years. So a real system can't read every formula. It has to decide where to look. Constraints, typing rules and grammars help by removing whole regions before anything is evaluated. Picture an enormous library that you can't read book by book. Each search method is a strategy for choosing the next shelf. Evolutionary methods modify promising formulas and keep useful pieces. Sequential generators write a formula one symbol at a time. Tree search expands promising partial formulas. Neural methods learn, from earlier problems, which constructions tend to be useful. They can reach similar answers by very different routes. But remember this. Search strategy and search space are different things. The best strategy in the world can't find a formula its language can't express. Say the true signal is a sine wave, but your language only has plus, times, variables and constants. The search may return a polynomial that hugs the wave over a short stretch, with a tiny training error. That's not an optimization failure. The right equation was never available to be found. So you add the sine. But every new operator grows the space, and some bring trouble. A logarithm needs positive inputs. Division can blow up. An exponential can overflow. The operator list controls how many invalid and unstable candidates you invite in. A grammar gives finer control. Instead of letting any operator connect to anything, it defines which mathematical sentences are valid. For physics, the grammar can carry units. If v is a speed and t is a time, then v plus t is easy to build, and meaningless. A unit-aware grammar blocks it before it's ever evaluated. Think of units as a type system. Plus needs two arguments with the same units. Times combines them. Taking a time derivative removes one power of time. And this is knowledge working during discovery, not as a cosmetic check afterwards. Vocabulary choices go further. You can hand the search higher-level pieces, like a norm or a dot product, so that rotation-friendly formulas are short instead of deep and clumsy. Constants matter too. With no free constants, the search can't even scale a correct structure. With constants allowed everywhere, it can tune almost anything into a decent fit. Even complexity depends on the language. a plus a plus a is five nodes. Three times a is three nodes, if the number three is allowed. Same function, different measured complexity. That's why a single score, error plus lambda times complexity, is only a starting point. One lambda is one exchange rate between accuracy and simplicity. Here's our own example: thirty noisy points from a straight line, with candidates of growing complexity. A constant misses badly. The line, five nodes, has a validation error of 0.107. Add a sine with a fitted frequency, twelve nodes, and the training error drops. But on fresh data, the error rises to 0.122. A degree eight polynomial does worse still, at 0.149. The formulas that are best for their size form a front, the Pareto front. It keeps the trade-off visible, instead of hiding it inside one number. Here's the uncomfortable consequence. Two researchers can run symbolic regression on the same data, and ask different questions. One allows only arithmetic. Another adds sine, exponential and logarithm. A third forbids anything with inconsistent units. Same data, same loss, different candidates. So the algorithm discovered the equation is an incomplete sentence. Which variables? Which operators and constants? Which rules, which complexity measure, which budget? That's the description of your instrument. These assumptions are called search-space bias. Bias isn't a dirty word here. Discovery is impossible without assumptions. The requirement is to make them visible, and test what they do.
Seven stages from observations to equations. Part two. Symbolic discovery isn't an algorithm that eats a table and returns an equation. It's a workflow, and each step is a scientific decision. Seven stages: the question, the evidence, the language, the prior knowledge, the search, the comparison of candidates, and validation. And validation often sends you back to the start. Stage one, the question. Don't ask which package to run. Ask what mathematical relation would answer your scientific problem. Take measurements of a falling object. One person wants a static relation between speed and height. Another wants a differential equation for acceleration. A third wants a fast surrogate for a simulator. Same data, three different targets. Define the variables operationally. Is v an instant speed estimated from positions, a sensor reading, or an average? And state the scope. A law found at low speed in a lab shouldn't quietly claim to work at any speed. Stage two, the evidence. More data isn't automatically more information. Watch an oscillator thousands of times while it barely moves, and you learn a lot about small swings, and nothing about big ones. A small experiment at several amplitudes can tell nonlinear forces apart. Your data set isn't a neutral input file. It's an experimental representation of the phenomenon. Which regimes you sampled decides which equations you can tell apart. Stages three and four, the language and the knowledge. The language must be broad enough to contain the true mechanism, and narrow enough that the search means something. Knowledge can enter as hard rules, soft penalties, priors, unit types, symmetries, conservation laws, signs, or limits. A velocity equal to a length plus a time can be rejected before any constant is tuned. But priors can be wrong. If you force a response to keep rising because every measurement so far rises, you may forbid the real law, which turns over just outside your data. So test your constraints too. Remove one, soften it, swap it for a plausible alternative. If the discovered equation changes a lot, part of the discovery came from you, not from the data. Stage five, the search. Choosing between a line, an exponential and a saturating curve is discrete. Fitting the constants of the chosen one is continuous. Practical systems switch between the two levels all the time. Stage six, comparing candidates. If one formula has an error of 0.021 with six operators, and another has 0.020 with thirty five, the second is not automatically better. One formula dominates another if it's no worse in error, no worse in complexity, and strictly better in at least one. The formulas nobody dominates form the Pareto front. Keep several of them, and let scientific evidence decide. Stage seven, validation. What counts as enough depends on the claim. A fast surrogate for a simulator may only need good held-out predictions. A proposed physical law needs much more. The best question here is not, does it predict the test set? It's: what would we observe if this equation were wrong? Suppose linear drag and quadratic drag both fit your low speed data. Don't collect more low speed data. Push to higher speeds, where the two laws disagree. The equations just designed your next experiment.
What makes an equation useful. Part three. What makes an equation scientifically useful? Here's a checklist, and no single item is enough on its own. Predictive adequacy: does it reproduce held-out data? Parsimony: is it compact enough to inspect? Dimensional consistency: do the units of every term agree? Invariance: does it respect known symmetries? Structural stability: does the same structure come back when you resample? Extrapolation: is it believable outside the fitting range? Identifiability: can your data tell it apart from its rivals? Falsifiability: can it generate a test that could prove it wrong? Even prediction needs care. Say you recorded twelve trajectories, with five hundred time points each. Split the rows at random, and the test set is full of near neighbors of training points. The error looks great, and proves little. If you claim the law works for new trajectories, hold out whole trajectories: train on ten, and test on the other two. The split should mirror the claim. Parsimony is subtle too. A short tree can hide wild behavior, and a longer polynomial with meaningful coefficients can be easier to interpret. Simplicity is relative to how the formula will be used. Units give a sharper test. A real law shouldn't care whether you measured in meters or centimeters. If converting the units breaks the formula, it captured your data format, not the system. And identifiability ties discovery to experiment design. Near zero, the sine and x minus x cubed over six are almost the same. No algorithm can separate them with data from that neighborhood. Only new measurements can. Finally, exact recovery, a favorite benchmark. Did the algorithm find the very formula that generated the data? Sometimes that test is too strict. Two times the sine of x times the cosine of x is just the sine of two x, even though the strings differ. And sometimes it's too lenient. A model trained on millions of formulas, or a language model that has read about the law, may be recalling it rather than inferring it from the numbers. So record provenance. Say the result is: a pendulum's period equals two pi times the square root of L over g. Did the search find the square root and the two pi on its own? Did dimensional analysis leave only one constant to fit? Or was the structure supplied from mechanics? Same final equation, very different discoveries.
Recap. Let's recap. Symbolic regression searches a designed space of small programs, and that space explodes as formulas grow. The language, the constraints and the complexity measure are scientific decisions, so describe them like an instrument. Treat discovery as a seven stage loop, and judge equations by a whole checklist, including provenance. Next video, we put it all to work: a ball falling with unknown drag. And then the failure modes that look exactly like discoveries. See you there.
A ball, a sensor, a question. A light ball is dropped. A sensor logs its speed fifty times a second. Is the air slowing it down? And if so, how? Today we answer that question properly, the way a careful discovery system should. Then we'll look at the many ways an equation can look like a discovery, and still be wrong. Four parts: the worked example, failure modes, the move toward hybrid discovery systems, and finally, a ladder of five levels for the claims we make about an equation.
Worked example: falling with unknown drag. The setup. The ball falls a short distance, so gravity, g, is constant. We count downward as positive, so the speed v is positive while it falls. Three classic candidates. Free fall: the acceleration is just g. Linear drag: g minus k one times v. Quadratic drag: g minus k two times v times the absolute value of v. While the ball falls, v times its absolute value is just v squared. The absolute value keeps the drag pointing against the motion, if the ball ever moves up. But we don't want to just pick the best of three. We want a broader family of formulas to compete, with enough physics built in that the search doesn't waste time on nonsense. The first information arrives before any fitting: units. Speed is length over time. Acceleration and g are length over time squared. Every term added to g must also be an acceleration. So k one must have units of one over time, and k two must have units of one over length. That already removes candidates. g minus v squared is inadmissible, because v squared is length squared over time squared. It only becomes legal with a coefficient measured per meter. And it tells us what our numbers mean. A coefficient of 0.12 in front of v squared is really 0.12 per meter. Change units, and the number changes, but the physics must not. Next decision: what did we actually measure? Position and speed. Not acceleration. So one option is to estimate acceleration from neighboring speed readings, by finite differences. In our simulation, the sensor's noise is just five centimeters per second. But we divide a difference of two noisy readings by two hundredths of a second. The result: the estimated acceleration is off by about 4.3 meters per second squared, on a typical reading. That's almost half of g. Fit a polynomial in v to those noisy accelerations, and you get a positive v squared term. Drag that pushes the ball faster. The algorithm is explaining differentiation noise, not motion. The alternative: don't fit the derivative at all. Take each candidate law, integrate it forward from the measured starting speed, and compare the whole trajectory with the data. Same experiment, a different way of scoring, and the ranking of candidates can change. Preprocessing is part of the discovery procedure. Report it like the algorithm itself. Now the language: plus, minus, times, divide, and the absolute value. The leaves are v, g, and free constants, whose units are worked out as the tree is built. And four rules. One: the right side must be an acceleration. Two: it must be real for every speed we can see. Three: drag never pushes the ball forward. Four: as the speed goes to zero, the acceleration goes to g. Each rule removes a different kind of nonsense. Rule three kills g plus k v. Rule four kills a constant hanging around at zero speed. These rules describe this experiment, not every falling object. Add buoyancy, or a propeller, and they can break. If the assumptions change, change the search space, and search again. Experiment one: half a second after release, twenty six speed readings, with noise of 0.05 meters per second. Free fall misses: its typical error is 0.18, more than three times the noise. Gravity alone can't explain the data. Linear drag fits with k one equal to 0.314 per second, and a typical error of 0.068. Quadratic drag fits with k two equal to 0.119 per meter, and an error of 0.061. Both curves run straight through the cloud of points. The difference between them is a fraction of the sensor noise. And the mixed candidate, with both terms? Under the rule that drag can't push forward, its linear part went all the way to zero. It became the quadratic law. Pause here. Linear and quadratic both fit the first half second. What does each predict three seconds after release? Linear drag says 19.1 meters per second, still rising toward a terminal speed of about 31. Quadratic drag says 9.1, already settled at its terminal speed. Two equations that were nearly identical in the experiment disagree by a factor of two, just a few seconds later. So we run experiment two. Same ball, dropped from higher, measured for three full seconds. The data settle at 9.0 meters per second. Quadratic drag's typical error over the whole fall is 0.057. Linear drag's is 5.1. Linear drag is out. And where should we have looked? The two laws drift apart by more than three times the noise after just 0.58 seconds. The most informative measurement was just past where we stopped. That's the general recipe. Measure where the candidates disagree by much more than your noise. Don't densely resample the region where they agree. Now repeat with a second, lighter ball. Quadratic drag fits again, but now k two is 0.19 per meter. That doesn't contradict the law. It tells us k two depends on things that were fixed in the first experiment: the air's density, the ball's size, its mass. So the discovered constant becomes the target of a new search: k two as a function of density, area and mass. Notice the separate claims. A formula that predicts this fall is an empirical result. The same structure across experiments is a structural result. A coefficient that follows the ball's properties points toward a mechanism. None of that follows from having the smallest error.
Failure modes that look like discoveries. Part two: failure modes that look like discoveries. An equation carries authority. You can print it, simplify it, plot it. And many failures don't look like failures. They come with low error, stable-looking constants and elegant formulas. Failure one: a narrow operating range. The truth is the sine of x, but you only measured x from −0.3 up to +0.3. There, y equals x is wrong by less than five thousandths. At x equal to pi it predicts 3.14, and the truth is zero. Several different laws looked identical, because the experiment never visited the place where they differ. Failure two: noisy derivatives. You saw it with the ball: the fit to noisy accelerations invented a v squared term that pushes the ball forward. Extra terms like that can look statistically justified, and even physically suggestive. Now integrate that polynomial forward. It levels off at about 6.2 meters per second, while the ball really reaches 9. The plain quadratic law tracks the whole fall. The extras were modeling the noise of differentiation. Failure three: a missing variable. Say a plant's growth rate is really controlled by light, but you didn't record light. You recorded temperature, which rose with the light every day. The search finds a neat power law in temperature. It fits beautifully. Repeated runs even agree on the exponent. Then someone heats the greenhouse at night, and the law vanishes. It was a faithful summary of a correlation, interpreted as a mechanism. No search budget can recover a variable you never measured. The same happens in dynamics. Hide one variable of a simple linear system, and a formula in the visible variable alone sprouts squared and cubed terms to make up for it. Failure four: too many operators. Remember our noisy straight line. With a sine available, the search added a small wiggle with a frequency of about 33. Draw a fresh noisy sample, and the line part barely changes, but the wiggle's frequency jumps to about 45. The part that survives the resample is the part worth keeping. So overfitting in symbolic regression doesn't always look like a giant polynomial. It can hide inside one short, powerful operator. A formula can look simple and be statistically complex. And the opposite mistake exists too. Push simplicity too hard, and a real but modest cubic term gets erased. Parsimony is a preference, not a proof. Failure five: priors that become prejudice. Forbid any term that grows with time, because you expect a steady state, and a slow drift can never be found. The fit then confirms the steady state, which was never allowed to fail. Failure six: unit leakage. Standardize x, find y equals 2.6 times the standardized x, plus 0.35, and those constants describe your preprocessing, not the physics. Add standardized time to standardized length, and nothing complains. Failure seven: memorization. A pretrained model sees data from Newton's law of gravitation and returns it instantly. Perfect recovery? Or did it read about that law during training? That's not cheating, scientists use prior knowledge too. But the claim changes. It's prior knowledge combined with data, not discovery from data alone. Blinded targets and new formulas test the difference. Failure eight: reporting the best run. Run a randomized search fifty times. If the exact law appears twice, the method makes the discovery possible, not reliable. A method with one brilliant run and a poor median can look better than a method that's good every single time. Report distributions: of errors, of structures, of coefficients. In real projects these failures stack. A short range hides a missing variable. Noisy derivatives feed an over-rich language. A strong prior makes the invented terms look meaningful. And the luckiest run gets the paper. The answer is not to distrust symbolic discovery. It's to attack surprising equations on purpose. Change the regime. Repeat the experiment. Change the preprocessing. Soften the priors. Hold out whole trajectories. Rerun the search. Add plausible missing variables. Change the units. A false discovery is often convincing only because nobody ran the experiment that would make it fail.
Toward hybrid discovery systems. Part three. The newest change in the field isn't one algorithm. It's a change in the unit of design: from an optimizer that returns an equation, to a discovery system. In such a system, symbolic regression may be just one stage. It turns numbers into an explicit hypothesis, or compresses what another model learned, or proposes a missing term in a mechanistic model. Language models write candidate equations as programs, run them, and revise them. Other systems, like AI Hilbert, demand that a formula be consistent with the data and derivable from background theory at the same time. Some systems span much more of research. The AI Scientist runs a computational research loop, from ideas and code to experiments and drafted papers. Coscientist connects a language model planner to documentation, code and automated lab equipment. The A-Lab runs materials synthesis in a closed loop, learning from failed attempts. But optimization asks where the best point is. Discovery asks what the observations teach us about the system. The second one is the hard one. And humans don't disappear. A scientist notices an anomaly, adds a variable no instrument recorded, spots an instrument artifact, or decides the whole question was wrong. There's also a risk: fluent outputs can create an illusion of understanding. Judge a hybrid system by whether it makes assumptions and uncertainty easier to inspect, not just by how much it automates. And label outputs honestly. An equation distilled from a neural network, retrieved by a language model, fitted to synthetic data, or recovered from new measurements, has a different evidential status. Don't call them all laws.
A ladder of five claims. Which brings us to the last part: a ladder of five levels for what an equation means. Each level keeps the demands of the one below, and adds a new one. Level one: a predictive symbolic model. It predicts held-out data from the same experiment. Like a polynomial for the first five minutes of a cooling cup. Useful, but repeat the experiment and the formula may change. Level two: a robust empirical relation. It comes back under resampling, new runs and new data sets, over a stated range. Like a pump's flow versus speed curve that holds across several test runs. Level three: a physically admissible relation. It also respects units, symmetries, signs and limits. Linear drag can reach this level: the right units, drag against the motion, and g at zero speed. But if your experiment never reached speeds where quadratic drag looks different, admissible is all you can say. Not yet a mechanism. Level four: a candidate mechanism. It has beaten credible rivals in a discriminating experiment. Our high speed drop did that for quadratic drag. Showing that k two changes with the ball's area would strengthen it further. Level five: a supported scientific law, within a stated domain. Independent experiments, theory and replication all agree. Ohm's law for an ordinary resistor, inside its working range, is a classic example. And the domain is part of the claim, not an embarrassment added later. Heat the resistor too much and the law bends. That doesn't make it wrong. It makes it a law with a domain. Symbolic regression can climb the first levels in seconds. The top levels need something different in kind: rival mechanisms, new experiments, and evidence from beyond the search that proposed the equation.
Module 1 recap. That wraps up Module one. Units first. Fit trajectories, not noisy derivatives. Measure where the candidates disagree. Attack your own discoveries. And use the ladder to say exactly how far an equation has climbed. In the lab, you'll fit polynomial and drag laws to falling ball data, stretch the window, and see which one survives. There's a Kepler variant too, with one planet held out. Next module: the mathematical languages we use to write symbolic models. Trees, grammars, constants and complexity. See you there.
12:22Video 1 · 1.1A curve is not a lawA quartic and an exponential fit five minutes of our cooling cup; after an hour the exponential says 20.2 °C and the quartic almost half a million. Prediction is evidence, not the end point.
14:04Video 2 · 1.2What symbolic regression searchesWith four operators and three leaves there are about 1.2 billion formulas with six operators; symbolic regression searches a designed language, so its rules and complexity measure must be reported.
14:47Video 3 · 1.3Falling with unknown drag, and false discoveriesBoth drag laws fit the first half second; three seconds in, linear says 19.1 m/s and quadratic 9.1, and the data say 9.0. Measure where candidates disagree, and attack your own equations.
Interactive lab
Curve versus law
Fit a polynomial and two drag laws to a falling ball's speed, stretch the window, and see which one survives. Then predict Uranus with Kepler's third law.
The data are simulated in your browser (quadratic drag, k₂ = 0.12 per metre, made up). Four challenges are checked as you go.
A light ball falls through air
Its speed is logged every 0.05 s for 3.5 s. The truth in this simulation is quadratic drag with k₂ = 0.12 per metre (made up, roughly a ping-pong ball). You only see noisy readings. Everything runs in your browser.
Solved exactly and fitted by one number, k₁, in units of one over seconds.
Also one number, k₂, in units of one over metres. Its curve levels off at √(g/k₂).
Running…
Speed and the three fits
Shaded: the fit window. Filled dots were used; hollow dots are the future. Orange: polynomial; grey dashed: linear drag; blue: quadratic drag.
Kepler's third law, with Uranus held out
Fit the six classical planets, then predict Uranus. Blue: a power law T = c·a^p; orange: a polynomial in a.
Challenges
Each one is checked on your current settings.
- With a window of 1 s or less, find a polynomial that fits the window better than quadratic drag, yet misses the future by more than ten times as much.
- With sensor noise of at least 0.10 m/s, get the fitted k₂ within 5% of the true 0.12 per metre.
- Make the polynomial predict impossible physics: a negative speed, or more than 30 m/s, somewhere in the 3.5 s.
- Kepler: find a polynomial that fits the six planets to within 1%, yet misses Uranus by more than 20%, while the power law stays within 2%.
