Basic Probability

Elementary Statistics

MTH-161D | Spring 2025 | University of Portland

February 19, 2025

Objectives

These slides are derived from Diez et al. (2012).

Previously… (1/2)

The guiding principle of statistics is statistical thinking.

Statistical Thinking in the Data Science Life Cycle

Statistical Thinking in the Data Science Life Cycle

Previously… (2/2)

Probability is the Basis for Inference

The P-Value is a Probability

Probability and Statistics

Probability

Statistics

Basic Probability Definition

Probability is the branch of mathematics that deals with randomness. The likelihood of an outcome happening.

An extent to which an outcome is likely to occur is \[\text{probability} = \frac{\text{number of favorable outcomes}}{\text{total number of outcomes}}.\]

Coin

Fair Coin

Dice

Fair Dice

Standard Deck of Cards

52-Card Deck

Probability Notations (1/2)

We will use specific words for outcomes.

Fair Coin Example:

Probability Notations (2/2)

We will use specific notations for probabilities.

Let \(A\) be an event with a finite sample space \(S\). The probability of \(A\) is \[P(A) = \frac{|A|}{|S|} \longrightarrow P(A) = \frac{\text{number of outcome favorable to } A}{\text{total number of outcomes in } S}.\]

Fair Coin Example:

\[ \begin{aligned} \text{probability of } H & = \frac{1}{2} \longrightarrow P(H) = \frac{1}{2} \\ \text{probability of } T & = \frac{1}{2} \longrightarrow P(T) = \frac{1}{2} \end{aligned} \]

Independence

Two events, \(A\) and \(B\), are independent if the occurrence of one does not affect the probability of the other: \[P(A \text{ and } B) = P(A)P(B)\]

If the event \(B\) is dependent on \(A\), then \[P(A \text{ and } B) \ne P(A)P(B)\]

\(\star\) Key Idea: Independent events is when one event happening does not affect the other. Disjoint events is when one event happening prevents the other.

Coin Flips

Suppose we conduct an experiment of flipping fair coins in sequence and record the outcomes.

\(\dagger\) How many possible outcomes are there for three coins and what are the probabilities?

Disjoint and Joint Events

Two events, \(A\) and \(B\), are disjoint (or mutually exclusive) if they cannot occur at the same time: \[P(A \text{ and } B) = 0.\]

Two event, \(A\) and \(B\) are joint if they can happen together: \[P(A \text{ and } B) \ne 0\]

Fair Coin Example:

Union of Events

The union of two events, \(A\) and \(B\), is the event that at least one of them occurs: \[P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B)\]

If \(A\) and \(B\) are disjoint, then \[P(A \text{ or } B) = P(A) + P(B)\]

\(\star\) Key Idea: The probability of the union is the sum of individual probabilities minus their intersection (to avoid double-counting).

Joint vs Disjoint Venn Diagram

Drawing Cards

Suppose we conduct an experiment of drawing specific characteristics of a card from a 52-card deck.

\(\dagger\) Can you compute the probability of drawing a face card (Ace, Jack, Queen, King) or a Diamond?

Dice Rolls

Suppose we conduct an experiment of rolling two six-sided dice and sum the outcomes.

\(\dagger\) Can you compute the probability of rolling a sum of 4?

Summary of Basic Probability Rules

Basic Rules

Rule Formula
Independence \(P(A \text{ and } B) = P(A)P(B)\)
Joint (Union) \(P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B)\)
Disjoint \(P(A \text{ and } B) = 0\)
Complement If \(P(A) + P(B) = 1\), then \(1-P(A)=P(B)\).

Probability Axioms

Axiom Statement
\(P(S) = 1\) The sum of the probabilities for all outcomes in the sample space is equal to 1.
\(P \in [0,1]\) Probabilities are always positive and always between \(0\) and \(1\).
\(P(A \text{ or } B) = P(A) + P(B)\) If events A and B are disjoint (mutually exclusive), then their probabilities can be added.

Interpreting Probability

Frequentist probability refers to the interpretation of probability based on the long-run frequency of an event occurring in repeated trials or experiments.

Coin Flipping Example

Suppose we conduct an experiment where we repeatedly flip a fair coin (\(P(H) = 0.50\)), tracking the cumulative count of \(H\) and its proportion after each flip.

\(\star\) Key Idea: As the number of flips (samples) increases the proportion of H gets closer and closer to the true proportion of H, which is \(P(H)=0.50\).

Activity: Taking Samples from Dice Rolls

  1. Make sure you have a copy of the W 2/19 Worksheet. This will be handed out physically and it is also digitally available on Moodle.
  2. Work on your worksheet by yourself for 10 minutes. Please read the instructions carefully. Ask questions if anything need clarifications.
  3. Get together with another student.
  4. Discuss your results.
  5. Submit your worksheet on Moodle as a .pdf file.

References

Diez, D. M., Barr, C. D., & Çetinkaya-Rundel, M. (2012). OpenIntro statistics (4th ed.). OpenIntro. https://www.openintro.org/book/os/