Preface
A regression model that predicts well is useful; a regression model that can be written down in one line, read, differentiated, checked against the laws of physics, and run on a microcontroller is useful in many more ways. Symbolic regression is the search for such models. It does not fix the form of the equation in advance, as linear or polynomial regression does, and it does not hide the form in millions of weights, as a neural network does: it searches the space of mathematical expressions itself for compact formulas that explain the data. When it succeeds, the result is a hypothesis about the system that produced the data, not only a predictor.
This book develops the methods of symbolic regression and equation discovery in one notation and, for each of them, shows how to use it with the eqdisco Python package, what it finds on concrete data, and where it fails. It starts with the representation of equations as expression trees and with genetic programming, the oldest and still the most widely used search method, follows it to linear-in-parameters models whose terms are evaluated by orthogonal least squares, and then turns to the families of methods that appeared beside it: sparse regression on libraries of candidate terms, exhaustive enumeration, Bayesian sampling of expressions, grammar-based probabilistic search, and the use of large language models as proposers of candidate equations. Later chapters apply these methods to dynamical systems, classifiers and visual projections, show how units, monotonicity and symmetries enter the search, and treat what happens after a search: simplification, validation, uncertainty, sensitivity, and the deployment and monitoring of discovered models.
Who the book is for. It is written for engineers, data scientists and graduate students who know regression and some optimization and want to discover interpretable models from data without first reading the evolutionary computation, system identification and machine learning literatures separately. The mathematics needed is that of a first course in linear algebra, statistics and numerical methods. Proofs are referenced rather than reproduced. Every method is stated as an algorithm, summarized in a box at the end of its theory section, and illustrated by a script that the reader can run.
The toolbox and its predecessors. eqdisco is the Python successor of the GP-OLS MATLAB toolbox, which accompanied the paper of János Madár, János Abonyi and Ferenc Szeifert on the identification of nonlinear input–output models by genetic programming [1]. In GP-OLS, genetic programming proposes the structure of a linear-in-parameters model, and orthogonal least squares estimates the weights of its terms and removes the terms that do not contribute. Two later studies of the author’s group shaped other parts of the package: the development of thermal runaway criteria as symbolic decision functions by Alex Kummer and Tamás Varga [2], and the goal-oriented symbolic projections of high-dimensional process data by Gyula Dörgő and Tibor Kulcsár [3, 4]. eqdisco reimplements these methods, places them next to the methods of the wider literature, and adds several new ones, which are marked as such in the text: ERR-guided variation, a cooperative OLS–GP algorithm, library learning of building blocks, risk-seeking grammar cross-entropy search, and the analysis of model families.
How to run the examples. The package is installed with pip install eqdisco. The scripts that produce the figures are in the examples/ directory of the repository, grouped into folders by chapter, and are listed in chapter C. The sphinx-gallery extension renders them as the online gallery of the documentation and converts them into Jupyter notebooks that run in Google Colab without installation. Every number quoted in the text was printed by one of these scripts with a fixed random seed. Genetic programming is a stochastic search, and a different seed, platform or library version can change the last digits of a result or even the structure of an evolved equation; when this happens, the script, not the book, is authoritative.
Data. The examples use the benchmark problems collected by the symbolic regression community [5, 6], a subset of the Feynman equations with their physical units [7], the orbital data of the planets, the wine data of the UCI repository [8], and simulated data of chemical reactors, enzyme kinetics and dynamical systems whose true equations are known, so that every method can be checked against the truth.
Acknowledgments. This work was supported by the National Research, Development and Innovation Office of Hungary (NKFIH) through the OTKA K 143482 project Monitoring complex systems by goal-oriented clustering algorithms. The author is grateful to János Madár and Ferenc Szeifert, co-authors of GP-OLS, and to Alex Kummer, Tamás Varga, Gyula Dörgő and Tibor Kulcsár, whose genetic programming studies run through several chapters. The package rests on NumPy, SciPy, SymPy, scikit-learn, pandas, NetworkX and Matplotlib [9, 10, 11, 12, 13, 14, 15], and on the open work of the symbolic regression community that made its methods and benchmarks public.
Veszprém, November 2026 János Abonyi