liveBook · Manning

Binary outcome

As explained in Grokking Statistics

A binary outcome is an outcome restricted to two possible categories, such as yes and no.

A binary outcome has only two possible results: 1 or 0, true or false, such as whether a toddler has a meltdown. section 8.2

Meltdown or no meltdown

Track hours since a toddler's nap alongside whether a meltdown occurred. The observations remain at 0 or 1: before roughly three hours, meltdowns are uncommon; after three hours, they become more likely. section 8.2

Because a straight line fits binary points poorly, logistic regression models the probability of the yes/no outcome with an S-shaped curve. A probability threshold, commonly 0.5, converts that estimate into a prediction. section 8.2

Figure 8.1 Data showing time without a nap and whether a toddler had a meltdown

Inspect the binary observations linking time without a nap to meltdown occurrence. section 8.2

Figure 8.2 A logistic regression model of time without a nap and whether a toddler had a meltdown

Follow the fitted S-curve as it turns binary observations into estimated meltdown probabilities. section 8.2

How Grokking Statistics covers it

How deep it goes
Explains binary values and their modeling with logistic curves, while deferring the underlying mathematics.
Examples
Uses toddler meltdowns, hours without a nap, 0-or-1 observations, and a fitted probability curve.
What you can do after
Apply logistic regression to estimate a binary outcome's probability and classify it using a threshold.
How it connects
Connects binary outcomes to logistic regression, sigmoid functions, probability thresholds, and classification.

Also explained in

Compare how 4 books explain binary outcome →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Statistics. The section links point to the parts of the book it draws on.