Search⌘ K
AI Features

Probability and Odds

Explore the foundational concepts of probability and odds crucial for logistic regression. Understand how these statistical measures relate, learn to convert probabilities to odds, and visualize their relationship using natural logarithms to prepare for binary classification modeling.

Before we move on to work with logistic regression, we must clearly understand these essential statistical concepts.

Probability

Probability describes the likeliness of some event happening or occurring on a numerical scale between 0 (impossible) and 1 (sure). The higher the probability is, the more likely the event will occur. Tossing a fair coin or rolling a dice and expecting how often we’ll get heads or a certain number on a dice is simply the outcome divided by the total options or possibilities.

In the case of a fair coin, the probability of getting heads or tails is the same, 12\frac{1}{2} (0.5 or 50% chance). Similarly, for the dice, the chance of getting a certain number is 16\frac{1}{6} ...