Kick off your book project in 2 hours, get started with GhostAI in 2 hours, or do both! Free live workshops, on Zoom. You’ll leave with a real book project and a clear plan to keep going. Saturday, June 27, 2026.

Leanpub Header

Skip to main content

The Peril of Certainty

How Probabilistic Thinking and Uncertainty Drive Creativity and Better Decisions

Certainty feels safe - but in an uncertain world, it's a bug, not a feature. A Data Engineer shows how the craving for absolute truth is a form of "overfitting," and how thinking in probabilities makes you more creative, resilient, and right more often.

Free With Membership

With Membership

Free!

$4.99

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

EPUB
About

About

About the Book

We are taught to chase certainty. But what if the search for absolute truth is the very thing that makes us fragile?

In The Peril of Certainty, Data and Software Engineer Ghefar Mansour offers a radical re-framing of one of humanity's oldest problems. Drawing on machine learning, system architecture, and statistics, he argues that our psychological craving for certainty is a form of overfitting; a dangerous over-adaptation to past data that leaves us unable to generalize in an uncertain future.

Through accessible metaphors drawn from code and engineering, the book builds a practical framework for Probabilistic Living:

- Overfitting: how dogmatism is over-adaptation to noisy past experience

- Bayesian Inference: the art of continuously updating your beliefs with new evidence

- Entropy: uncertainty not as chaos, but as the source of information and creativity

- Exploration vs. Exploitation: balancing the known against the new

- Technical Debt: how intellectual shortcuts compound into long-term cognitive cost

The result is a manifesto for intellectual humility — showing that the most resilient systems, whether code or life, are those that embrace doubt and continuous iteration.

Who this book is for

- Tech professionals - engineers, data scientists, developers - who want to apply their professional logic to personal and social problems

- Leaders and decision-makers seeking robust frameworks for risk and strategy in volatile environments

- Readers of popular science and psychology, especially fans of Daniel Kahneman, Nassim Nicholas Taleb, and Annie Duke

Author

About the Author

Ghefar Mansour

I am a senior software engineer, with over 10 years work experience by many companies in Germany. I hold a master's degree in IT (Data and knowledge Engineering, 2013).

Contents

Table of Contents

  • Dedication
  • Introduction & Overview
  • Chapter 1: The Overfitted Brain: Why We Over-Interpret the Past
  • Chapter 2: The Illusion of 100%: Binary Thinking
  • Chapter 3: The Mind's Technical Debt
  • Chapter 4: The Single Point of Failure
  • Chapter 5: The Black Swan in the Dataset
  • Chapter 6: Entropy: The Disorder That Creates Life
  • Chapter 7: Exploration vs. Exploitation: The Growth Dilemma
  • Chapter 8: The Resilience of the Provisional
  • Chapter 9: The Bayesian Update: How to Change Your Mind
  • Chapter 10: Regularization: The Art of Simplification and Resilience
  • Chapter 11: The Code of Doubt: A Manifesto for Probabilistic Living
  • About the Author

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.)

In fact, authors have earned over $15 million writing, publishing and selling 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