Explore
Module 1 · Part 1 of 12 · Free preview

Part 1

Chapter 1: The Missing Piece--Almost every dataset you will ever touch is broken. Not broken in the sense of corrupted files or crashed hard drives, but broken in a more insidious way: pieces of it are simply not there. A patient’s blood test result is missing because the lab equipment failed. A customer’s age is absent because they skipped the optional field on a signup form. A sensor in a factory network goes offline for six hours, leaving a silent gap in an otherwise continuous stream of measurements. When confronted with missing data, most practitioners default to one of three crude responses: delete the rows with missing values, fill the gaps with the column mean, or guess using the last observed value.

All three approaches are, mathematically speaking, acts of quiet desperation. They discard information, introduce bias, and pretend that uncertainty does not exist.This book is about a fourth way. It is about an algorithm that embraces missingness, that treats gaps not as errors to be erased but as opportunities to learn. The Expectation-Maximization (EM) algorithm, first formalized in a landmark 1977 paper by Dempster, Laird, and Rubin, is arguably the most influential statistical algorithm you have probably never heard of. It powers the speech recognition on your smartphone, the medical image reconstruction that helps diagnose cancer, the gene-finding algorithms that decode DNA sequences, and the recommendation engines that suggest what to watch next.

And yet, outside of specialized graduate courses, its inner workings remain shrouded in intimidating notation and opaque derivations.This chapter is the antidote. We will not begin with formulas. We will begin with a story. By the end of this story, you will understand the core logic of the EM algorithm intuitively. You will see why maximum likelihood estimation fails when data goes missing, how the clever trick of “data filling” rescues it, and why this simple idea has become one of the most versatile tools in modern data science. More importantly, you will meet a running case study that will follow us through every chapter of this book: a real-world problem involving gene expression data, cancer patients, and the urgent need to find patterns hidden inside incomplete measurements.Let us start with two coins.The Two Coins That Changed EverythingImagine you are handed two coins: Coin A and Coin B.

Keep reading — free

Sign in with your SamEnrico account to read the whole of lesson 1.

Sign in