About the book
The book delves into machine learning (ML) in a way that goes beyond the typical textbook approach, making it both educational yet entertaining. It’s not for those seeking a quick, hands-on grasp of ML, but for the curious minds: who want to immerse themselves in a deeper understanding while enjoying a rich, reflective journey. By blending fiction, philosophy, and neuroscience, the aim is to engage readers in a unique exploration of ML. It took five years of dedicated research and study to bring this book to life. The story begins at the ancient Library of Alexandria, where knowledge scavengers are sent around the globe (Baghdad, Rome, China, India, Amazon etc) on a quest to uncover the equation of intelligence. Each chapter is centered around a specific algorithm, brought to life through the lived experiences of the characters, most of whom are based on real historical figures.
Recognizing that true understanding of such a mysterious force can only be articulated in the universe’s own language — mathematics — Hypatia orchestrates an extraordinary expedition.Rallying the library’s most astute minds to decode the enigma of the mind, from the mathematical intricacies of Pythagoras to the deep philosophical insights of Buddha, Hypatia dispatches hundreds of knowledge hunters to scour the ancient world for clues that might unlock the secrets of intelligence.However, their pursuit is fraught with danger. As Hypatia and her team delve into the nascent realms of consciousness and human existence, they confront not only mortal foes but also metaphysical challenges. From the labyrinthine depths of the mind to the treacherous sands of the desert, they must navigate a landscape fraught with danger and deception, to discover the ultimate equation of intelligence. Will their intellectual odyssey illuminate the path to understanding, or will the elusive nature of intelligence remain a mystery cloaked in the sands of time?
Recognizing that true understanding of such a mysterious force can only be articulated in the universe’s own language — mathematics — Hypatia orchestrates an extraordinary expedition.
Rallying the library’s most astute minds to decode the enigma of the mind, from the mathematical intricacies of Pythagoras to the deep philosophical insights of Buddha, Hypatia dispatches hundreds of knowledge hunters to scour the ancient world for clues that might unlock the secrets of intelligence.
Storyline
However, their pursuit is fraught with danger. As Hypatia and her team delve into the nascent realms of consciousness and human existence, they confront not only mortal foes but also metaphysical challenges. From the labyrinthine depths of the mind to the treacherous sands of the desert, they must navigate a landscape fraught with danger and deception, to discover the ultimate equation of intelligence. Will their intellectual odyssey illuminate the path to understanding, or will the elusive nature of intelligence remain a mystery cloaked in the sands of time?
In the storied halls of the ancient Library of Alexandria, Hypatia stands as the revered guardian of wisdom, celebrated as one of the era’s preeminent mathematicians. Yet within the voluminous scrolls and ancient tomes, she stumbles upon a profound anomaly: the library, a bastion of intellect, lacks a definitive explanation of intelligence itself.
10+ Beautiful inspirational Chapters
The spark of intelligence — a single neuron ignites a journey that traverses cultures, empires, and centuries.
Countless philosophers, monks, religions, biologists, and psychologists have tried to understand the nature of consciousness and intelligence. But in the words of Lord Kelvin, “You do not really understand something unless you can explain it in mathematics”. Hypatia, visionary head of the ancient Library of Alexandria, discerns this profound void in humanity’s understanding. In the events that follow, she dispatches Alexandria’s finest minds — the knowledge scavengers — on a global mission to uncover the equation of intelligence.
With the Library’s announcement of a handsome reward for uncovering the equation of intelligence, a knowledge scavenger sets out to Baghdad’s House of Wisdom. Determined to establish a rigorous framework for testing any algorithm that purports to capture something as abstract as intelligence, he learns many profound lessons. This optional chapter provides foundational insights essential for understanding the algorithms explored in later chapters:
Machine Learning Concepts Covered:
- Training and Testing
- Cross Validation
- Curve Fitting
- Over-fitting/Underfitting
- Learning Curves
- Data Cleaning
“Intelligence cannot be confined.” News reaches the Library of Alexandria about a young man from a humble farm on the outskirts of Rome, once driven by dreams of joining the Roman army. But fate takes a dark turn, and he finds himself enslaved by the very forces he once longed to serve. With each narrow escape from death, fighting for his freedom, he comes to realize that intelligence lies in building accurate mental models and using them to foresee the future. Each event leads him to piece together groundbreaking concepts in linear methods.
Machine Learning Concepts Covered:
- Weights and Biases
- Loss Function
- Gradient descend
- Linear Regression
- Sigmoid Function
- Entropy
- Logistic Regression
- Regularization
While the other knowledge scavengers tread the well-worn paths of the East — delving into the intellectual riches of Rome, India, and China — one among them defies convention, veering westward into the uncharted realms. There he stumbles upon a mysterious new world. Deep within the seemingly endless Amazon rainforest, he encounters an ancient tribe who laughs at his belief that humans are the pinnacle of intelligence. They introduce him to other forms of intelligence, more ancient and subtle, and teach him the language of the forest, challenging his perceptions, and inspiring him to take a new approach towards the equation of intelligence.
Machine Learning Concepts Covered:
- Branching using Entropy and Information Gain
- Gini Impurity
- Random Forest
“Intelligence may lie in our ability to adapt to change.” A diary arrives at the Library of Alexandria, written by a monk from the Shaolin temple in China who has endured the brutal deaths of everyone he loved. Torn between the pull of vengeance, and the peaceful teachings of Buddhism, he embarks on a transformative journey, reshaping his beliefs and refining his understanding of reality by continually updating his mental model in response to new evidence. Ultimately, he distills his hard-earned wisdom into the elegant simplicity of Bayes’ theorem.
Machine Learning Concepts Covered:
- Conditional probability
- Margins, Likelihood, Posterior
- The Prior
- The Bayes Theorem
The Romans, Persians, and Chinese find themselves entangled in the biggest heist the ancient world has ever known, a calculated game of power and intellect. As the intrigue unfolds, each civilization moves with calculated precision, striving to outmaneuver the others by mastering the art of discernment and first principles thinking, using an algorithm called the support vector machines.
Machine Learning Concepts Covered:
- Support Vectors
- Maximum Margins
- Mapping Data to Higher Dimensions
- The Kernel Trick
In a world fractured by labels and judgment, a Sufi emerges in the ancient city of Konya (modern-day Turkey) ruled my orthodox clerics. He reveals that true intelligence transcends such labels. Preaching unity within diversity, he guides both followers and skeptics to search for the centers of meaning within the soul’s scattered landscapes. Through his teachings, they are compelled to explore the concepts of clustering.
Machine Learning Concepts Covered:
K-means Clustering
This Chapter to be held for Season 2 – Going deeper. Stay tuned 🔒
Piece by piece, Hypatia and her elite team of scholars labor to assemble the fragments relayed by knowledge scavengers from across the globe, carefully constructing their first mathematical model of the human brain — a neural network. This daring endeavor sparks fierce criticism from fellow scholars and incites accusations of heresy from the orthodox church.
Machine Learning Concepts Covered:
- Activation function
- Neurons and layers
- Forward and back-propagation
- Optimization Algorithms
- Hyperparameters
- Generalization and Regularization Techniques
This Chapter to be held for Season 2 – Going deeper. Stay tuned 🔒
Deep in the lush mountains of India, a grand sage breaks his meditation of years to understand mind from the within. A former prince and master at Kalari, an form of ancient Indian martial arts, he leaves everything behind to impart his wisdom in a small temple in China.
Machine Learning Concepts Covered:
- Word Embeddings
- Self-Attention
- Transformers
- Large Language Models
This Chapter to be held for Season 2 – Going deeper. Stay tuned 🔒
“Nothing is real; all is illusion.” An assassin in Persia masters the art of manipulating minds, learning to mold his identity like clay to exploit the gaps in human perception. With each new guise and deception, he deepens his understanding of the mind’s fragility, mastering how fear, desire, and doubt can deceive even the sharpest of minds, leaving them vulnerable to his carefully crafted illusions.
Machine Learning Concepts Covered:
- Convolutional Neural Networks
- Generative Adversarial networks
- Diffusion Models
This Chapter to be held for Season 2 – Going deeper. Stay tuned 🔒
Faith and science collide as the church and the library stand in fierce opposition, each defending its claim to truth. The bankrupt government struggles to control the swelling riots, while the assassination of prominent figures on both sides fuels an unstoppable wave of unrest, plunging the city into chaos. Amid threats of violence and looming attacks, Hypatia and the scholars at Alexandria race against time to uncover the equation of intelligence.
Machine Learning Concepts Covered:
- Rewards and Penalties
- Markov Decision Processes
- Dynamic Programming for RL
- Monte Carlo Methods
- Temporal Difference (TD) Learning
- Deep Q-Learning (DQN)
- Policy-Based Methods
- Actor-Critic Methods
Putting together the final equation of intelligence.
Testimonials




About Author
Head of AI @ Traversaal; ex-Applied Scientist @ Amazon AI, Stanford University | 10+ years
Batool Arhamna Haider had over a decade of affiliation with Machine learning. As the current Head of AI at Traversaal.ai, Batool leads cutting-edge initiatives in AI development. Previously, she contributed her expertise as an Applied Scientist with Amazon AI’s Amazon Lex research team in Silicon Valley and with United Health research. Batool earned her master’s degree from Stanford University and has authored multiple research papers presented at premier AI conferences. She has also driven the launch of innovative products that have made a significant impact on clients worldwide. Combining a passion for merging science with storytelling and drawing inspiration from ancient philosophy, Batool crafts narratives that are both engaging and enlightening.
Batool Arhamna Haider
Mail : batool@equationofintelligence.com
Linkedin : http://www.linkedin.com/in/batool-arhamna-haider-85655b18
Meet the Team
Creators of the project
Dr. Kevin Kuhn
Technical Reviewer
As a senior lecturer in the Information and Data Science department at the University of Minnesota and a bestselling science fiction author, I live at the intersection of technology and storytelling. Whether it’s crafting futuristic tales or dissecting complex algorithms, I thrive on bridging the gap between data and imagination.
Hamza Farooq
Technical Reviewer
By day, I’m a Founder; by night, a Professor. 😊 As a former Senior Research Manager at Google and the current CEO of Traversaal.AI, I push the boundaries of AI research—especially in NLP and Multi-Modal Systems. When I’m not innovating, I’m teaching machine learning to eager minds at UCLA and Stanford University.
David C.
Editor
With over 35 years of experience shaping words into unforgettable stories, I’m an award-winning ghostwriter and editor who thrives on turning real lives into epic adventures. Whether it’s fine-tuning a novel or breathing life into ideas, storytelling is my passion and my craft.
Paul Kaefar
Technical Reviewer
I’m an adjunct professor in Software Engineering and Data Science, and I’ve co-authored Introduction to Python Programming for Business and Social Science. My passion lies in making complex technical concepts accessible and applicable in the real world.
Yuqi Su
Technical Reviewer
Hey! I’m a Ph.D. researcher at NC State University, specializing in Statistics and Operations Research with a passion for AI and data science. I love bridging mathematical theory with real-world applications and making complex ideas accessible. Excited to contribute to The Equation of Intelligence and explore the depths of intelligence and learning!
Kanza Batool Haider
Content Strategist
I’m an AI researcher at DeepMask, an innovative AI startup in Germany, and I hold a master’s degree in Data Science from Turkey. This journey is nothing short of amazing, and my mission is to make sure the world hears all about it. Let’s spread the word and inspire minds everywhere!
Ali Haider
Alchemist of Creation
Hey everyone! I’m here to make sure this incredible journey unfolds without a hitch, leaving a lasting impact on both your hearts and minds. Armed with a master’s degree in Operations Research and my experience as a Senior Data Scientist at Bank of America, I bring a strategic and analytical edge to managing this ambitious project. Let’s make magic happen!
How will you learn?
01
Immersive Learning:
A unique blend of fiction and machine learning concepts brought to life through captivating storytelling
02
Historical Context:
Journey through historically accurate events and ancient philosophies, revealing timeless truths about intelligence.
03
Neuroscience Exploration:
Dive into the depths of human psychology and neuroscience, unraveling the mysteries of consciousness and identity.
04
Thought-Provoking Theme:
Challenges readers to think critically about the intersection of Machine Learning, intelligence, and history.
What makes the book special
The Equation of Intelligence is more than just a book — it’s an immersive experience that will challenge your mind and captivate your imagination. Learn Machine Learning and Join the knowledge hunters on their quest, and unlock some of the most mysterious wonders of the human mind within the pages of this extraordinary tale, machine learning an unforgettable adventure.
Read a free chapter
Prepare for an unforgettable adventure! Before delving into our free chapter, ensure you’re comfortably settled. Once you begin, be ready to get lost in a unique and captivating experience!
This chapter (Chapter 5) is set in China and explores Bayesian Thinking through the perspective of a Buddhist monk. His diary, rich with insights, is later discovered by a knowledge scavenger from Alexandria. The story is set during a time of upheaval at the Shaolin temple, a pivotal period that eventually led to the birth of Kung Fu as monks learned to defend themselves.
Join the Journey on Kickstarter
We’re soon going live on Kickstarter to bring The Equation of Intelligence to the world — and we’d love for you to be part of it from day one.
Reserve your invite now so we can keep you posted and ensure you don’t miss early access, exclusive updates, and special backer rewards.