Probability basics

Part 1

Published

September 29, 2025

Housekeeping

  • Problem Set 3 due tonight

Probability basics

  • We spend a whole semester on this in MATH/STAT 310!
  • We will need be comfortable talking about and develop some intuition for understanding how probabilities behave

Key terms

  • Random process: a situation in which a particular result, called an outcome, is random/not known ahead of time

    • Examples: flipping a coin, rolling six-sided die, sports game, if a treatment is effective
  • A sample space \(S\) is the set of all possible outcomes of the random process

    • What are possible sample spaces for the above examples?

  • An event is a set of outcomes from a random process

Random variable

  • A random variable is a variable whose value is unknown and depends on random events

    • Often denoted with a capital letter like \(X\) or \(Y\)
  • There are two types: discrete and continuous (just like in numeric variables)

    • Discrete: represents random process where sample space is “countable” (i.e. {1,2} or {1,2,3,4,…})

    • Continuous: sample space is “uncountable” (i.e. can take on any value within a specified interval with infinite number of possible values)

  • NOTE: we will focus on discrete random variables for now

Probability

  • For us, the probability of an outcome is the proportion of times the outcome would occur if we observed the random process an infinite number of times

    • Probability is used to express the likelihood that some outcome or event will or will not occur

    • Think of as a proportion

  • Let \(A\) denote some outcome or event. We denote the probability of \(A\) occurring as \(\text{P}(A)\) or \(\text{Pr}(A)\).

  • Special case: if sample space \(S\) is finite, and all outcomes are equally likely, then \[\text{Pr}(A) = \frac{\text{ number of outcomes favorable to } A}{\text{ number of total outcomes possible} }\]

Example

Suppose we roll a fair, six-sided die one time. Let \(X\) be a random variable representing the value of the die.

  • What is the sample space \(S\) of this random process?
  • What is an example of an outcome from this process? Of an event?
  • For each of the following, determine the outcome(s) under consideration, along with the value of the probability of the event:
  • \(\text{Pr}(X = 1)\)
  • \(\text{Pr}(X \text{ is even})\)
  • \(\text{Pr}(X = 1 \text{ and } X = 2)\)

Convince ourselves that \(X\) is a RV. Recall: sample space is 1,..,6.

Possible outcome is 1, and an event would be \(X=1\); the RV being 1.

Possible event is 1 or 2.

Example (cont.)

Note: \(S\) is finite, and all outcomes equally likely! So \(\text{Pr}(A) = \frac{\text{ number of outcomes favorable to } A}{\text{ number of total outcomes possible} }\)

  • \(\text{Pr}(X = 1) = \frac{1}{6}\)
    • Favorable outomes: \(\{1\}\)
  • \(\text{Pr}(X \text{ is even}) = \frac{3}{6}\)
    • Favorable outcomes: \(\{2,4,6\}\)
  • \(\text{Pr}(X = 1 \text{ and } X = 2) = 0\)
    • Favorable outcomes: \(\emptyset\)

Operations with events

Let \(A\) and \(B\) be two possible events.

  • The intersection of \(A\) and \(B\) is the set of outcomes that belong to both events \(A\) and \(B\)

    • Denoted as \(A \cap B\), read as “\(A\) and \(B\)
  • The union of \(A\) and \(B\) is the set of outcomes that belong to \(A\) and/or \(B\)

    • Denoted as \(A \cup B\), read as “\(A\) or \(B\)

When we have only two or three events, Venn diagrams can be very useful for visualizing probabilities!

Disjoint events

Two events are disjoint or mutually exclusive if they cannot simultaneously happen.

  • That is, if \(A\) and \(B\) are disjoint, then \(\text{Pr}(A \cap B) = 0\)

  • If our random process is rolling a six-sided die one time, what are some examples of disjoint events?

  • If we observe any random process just one time, the outcomes are disjoint events!

Rules of probability

Kolmogorov axioms

  1. The probability of any event is non-negative real number

  2. The probability of the entire sample space 1

  3. If \(A\) and \(B\) are disjoint, then \(\text{Pr}(A \cup B) = \text{Pr}(A) + \text{Pr}(B)\)

These axioms imply that all probabilities are between 0 and 1 inclusive, and lead to some important rules!

Probability distributions

When a random variable is discrete, it can be useful to discuss its probability distribution, which is a table of all outcomes and their associated probabilities.

  • Let \(X\) be the sum of two fair, six-sided dice. What is the sample space associated with \(S\)?

  • Fill out the table below to display the probability distribution of \(X\):

\(x\) 2 3 4 5 6 7 8 9 10 11 12
\(\text{Pr}(X=x)\)

Why not include 1 or 13?

Probability distributions (cont.)

The probability distribution of a discrete random variable \(X\) must satisfy the following three rules:

  1. Defines \(\text{Pr}(X=x)\) for each outcome \(x\)
  2. Each probability must be between 0 and 1 (inclusive)
  3. The probabilities must sum to 1

Let’s confirm that the distribution we found on the previous slide satisfies these rules!

Addition rule

Let \(A\) and \(B\) be two possible events. Then the addition rule states that the probability that at least one will occur is:

\[ \text{Pr}(A \cup B) = \text{Pr}(A) + \text{Pr}(B) - \text{Pr}(A \cap B) \]

  • Venn diagram

  • Example: in a standard deck of 52 cards, we have four suits (diamond, heart, club, spade) with 13 cards within each suit (1-10, Jack, Queen, King).

    • Suppose we randomly draw one card from the shuffled deck.

    • Let \(A\) be the event that the card is a spade.

    • Let \(B\) be the event that the card is a face card (Jack, Queen or King).

    • Find \(\text{Pr}(A \cup B)\).

Complement

  • The complement of an event \(A\) is the set of all outcomes in \(S\) that are not in \(A\)

    • Denoted as \(A^c\)
  • Continuing the dice example, if \(A\) is the event that a 1 or 2 is rolled, what is \(A^c\)?

  • Complement rule: \(\text{Pr}(A^c) = 1 - \text{Pr}(A)\)

  • Let our random process be rolling two fair dice, and \(X\) represents the sum of the two dice. What is the probability that…

    • the sum of the dice is \(not\) 6?

    • the sum is at least 4?

Independence

  • Qualitatively, two processes are independent if knowing the outcome of one does not provide any information about the outcome of the other process

    • Examples and non-examples?
  • Formally: \(A\) and \(B\) are independent events if \(\text{Pr}(A \cap B) = \text{Pr}(A) \times \text{Pr}(B)\)

Practice

A Pew Research survey asked 2,373 randomly sampled registered voters their political affiliation (Republican, Democrat, or Independent) and whether or not they identify as swing voters. 35% of respondents identified as Independent, 23% identified as swing voters, and 11% identified as both.

  1. If I randomly sample one of the voters, what is the probability that they are…
    1. Independent but not a swing voter?
    2. Independent or a swing voter?
    3. Neither Independent nor swing voters?
  2. Is the event that someone is a swing voter independent of the event that someone is a political Independent?