Leanpub Header

Skip to main content

Discovering Equations from Data: A Practical Guide to Symbolic Regression and Model Discovery

Discovering Equations from Data: A Practical Guide to Symbolic Regression and Model Discovery

A hands-on guide to recovering governing equations from data with symbolic regression, SINDy, and PDE discovery. Every method is built from scratch in Python, with the discipline to tell a genuine law from a plausible fit.

Minimum price

$15.00

$29.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
About

About

About the Book

A predictor tells you what happens next. An equation tells you why.

Most books about learning from data teach prediction. This one teaches something older and deeper: how to discover the governing equation behind your data. That equation is a compact, interpretable law that a scientist can reason with, build on, teach, and trust.

Discovering Equations from Data is a hands-on guide to symbolic regression and model discovery. Every method is built from first principles in plain Python, so nothing stays a black box. You hand-code genetic programming and sparse regression before you touch any library, then move on to PySR, SINDy, and PDE-FIND. Each chapter ends with a case study whose answer can be checked.

What you will learn

  • Why discover equations: prediction vs understanding, from Kepler to Eureqa to SINDy
  • The landscape: search-based symbolic regression vs selection-based sparse regression, and when each one wins
  • Honest setup: the data you need, the derivative problem, and train/validate/extrapolate splits
  • Feature libraries and why “more terms” is a trap
  • Symbolic regression from scratch: genetic programming, then PySR
  • SINDy: discovering dynamics by sparse regression
  • Taming noise: smoothing, numerical derivatives, and the weak formulation
  • Discovering PDEs from spatiotemporal data
  • Putting physics in: constraints, units, dimensional analysis, and conservation laws
  • Model selection: sparsity, the Pareto front, and choosing the right model
  • Validation and verification: how to trust a discovered equation
  • Case studies and deployment: from discovery to a reusable model

Who this book is for

Researchers, engineers, and graduate students who write intermediate Python and remember some calculus and linear algebra, but have never built a discovery pipeline. No background in these specific methods is assumed.

This is the third book in a trilogy with Physics-Informed Machine Learning: A Practical Guide and AI Agents for Scientists and Engineers: A Practical Guide. Each stands alone. Together they cover three ways of uniting data and physics: embedding what is known, orchestrating what is available, and discovering what is unknown.

Author

About the Author

Kompri Kompri

Kompri is an academic, author, investor, and educator based in Jambi, Indonesia. He holds a doctorate in Education Management and a bachelor’s degree in Physics, and has written and published dozens of books along with numerous other scholarly works. An avid reader, he is one of today’s most productive researchers. Alongside his academic career, he publishes both theoretical and practical books for readers around the world. His work rests on one conviction: knowledge is most valuable when it is clear, usable, and shared, so that anyone, in any country, can put it to work.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub