Probability Fundamentals

This lesson introduces the fundamentals of probability, a cornerstone of data science. You'll learn about basic concepts like sample space, events, and how to calculate probabilities using fundamental rules.

Learning Objectives

  • Define and identify sample spaces and events.
  • Calculate the probability of an event using the basic probability formula.
  • Apply the addition rule for probabilities.
  • Understand the difference between mutually exclusive and overlapping events.

Text-to-Speech

Listen to the lesson content

Lesson Content

Introduction to Probability

Probability is the measure of how likely an event is to occur. It's expressed as a number between 0 and 1, where 0 means the event is impossible and 1 means the event is certain.

Key Terms:

  • Experiment: A process or action that results in an outcome. (e.g., flipping a coin)
  • Sample Space (S): The set of all possible outcomes of an experiment. (e.g., for a coin flip: {Heads, Tails})
  • Event (E): A subset of the sample space; a specific outcome or set of outcomes. (e.g., getting Heads when flipping a coin)

Calculating Probability

The probability of an event E, denoted as P(E), is calculated as follows:

P(E) = (Number of favorable outcomes) / (Total number of possible outcomes)

Example 1: Rolling a Die

What is the probability of rolling a 4 on a standard six-sided die?

  • Experiment: Rolling a die
  • Sample Space (S): {1, 2, 3, 4, 5, 6} (6 possible outcomes)
  • Event (E): Rolling a 4 (1 favorable outcome)
  • P(4) = 1/6 ≈ 0.167 or 16.7%

Addition Rule of Probability

The addition rule is used to calculate the probability of either event A OR event B occurring. There are two main cases:

  • Mutually Exclusive Events: Events that cannot happen at the same time. The probability of either A or B occurring is:
    P(A or B) = P(A) + P(B)
  • Overlapping Events: Events that can happen at the same time. The probability of either A or B occurring is:
    P(A or B) = P(A) + P(B) - P(A and B) (Subtract the probability of both events happening to avoid double-counting)

Example 2: Overlapping Events (Drawing a card)

What is the probability of drawing a King or a Heart from a standard deck of 52 cards?

  • P(King) = 4/52
  • P(Heart) = 13/52
  • P(King and Heart) = 1/52 (King of Hearts)
  • P(King or Heart) = 4/52 + 13/52 - 1/52 = 16/52 = 4/13
Progress
0%