1.1 — Sample Spaces and Events

1.1 — Sample Spaces and Events#

Probability theory begins with understanding what can happen and what we’re interested in. This lesson introduces the fundamental concepts of sample spaces and events, which form the foundation for all probability calculations.

What is a Sample Space?#

A sample space, denoted by (omega), is the set of all possible outcomes of a random experiment. Learn more: Sample Space

Key Points:

Examples of Sample Spaces#

Example 1: Coin Toss

Example 2: Rolling a Die

Example 3: Stock Price Movement

Example 4: Portfolio Return

Types of Sample Spaces#

Discrete Sample Spaces#

A discrete sample space has a finite or countably infinite number of outcomes.

Continuous Sample Spaces#

A continuous sample space has uncountably infinite outcomes, typically intervals of real numbers.

What is an Event?#

An event is a subset of the sample space. An event occurs if the outcome of the experiment is in that subset. Learn more: Event (Probability Theory)

Notation: Events are typically denoted by capital letters: , , , etc.

Examples of Events#

Example 1: Die Roll

Example 2: Stock Price

Example 3: Portfolio Return

Types of Events#

Simple Events#

A simple event (or elementary event) contains exactly one outcome.

Compound Events#

A compound event contains more than one outcome.

Certain Event#

The certain event is the entire sample space . It always occurs.

Impossible Event#

The impossible event is the empty set . It never occurs.

Set Operations on Events#

Since events are sets, we can use set operations:

Union ()#

The union of events and occurs if either or (or both) occurs.

Definition: Union (): All elements in or (or both).

Example:

Intersection ()#

The intersection of events and occurs if both and occur.

Example:

Complement ( or )#

The complement of event occurs if does not occur.

Example:

Mutually Exclusive Events#

Events and are mutually exclusive (or disjoint) if .

They cannot both occur simultaneously.

Example:

Financial Applications#

Portfolio Analysis#

Sample Space: All possible portfolio returns

Risk Management#

Sample Space: All possible loss scenarios

Trading Signals#

Sample Space: All possible market conditions

Python Example#

Let’s represent sample spaces and events in Python:

import numpy as np

# Sample space for die roll
sample_space = {1, 2, 3, 4, 5, 6}

# Events
event_even = {2, 4, 6}  # Even numbers
event_greater_4 = {5, 6}  # Numbers greater than 4

# Set operations
union = event_even | event_greater_4  # {2, 4, 5, 6}
intersection = event_even & event_greater_4  # {6}
complement_even = sample_space - event_even  # {1, 3, 5}

print(f"Union: {union}")
print(f"Intersection: {intersection}")
print(f"Complement of even: {complement_even}")

# Check if events are mutually exclusive
are_mutually_exclusive = len(event_even & event_greater_4) == 0
print(f"Are mutually exclusive? {are_mutually_exclusive}")

Key Takeaways#

  1. Sample Space (): The set of all possible outcomes
  2. Event: A subset of the sample space
  3. Simple Event: Contains exactly one outcome
  4. Compound Event: Contains multiple outcomes
  5. Set Operations: Union (or), Intersection (and), Complement (not)
  6. Mutually Exclusive: Events that cannot occur simultaneously

Next Steps#

In the next lesson, we’ll learn how to assign probabilities to events using probability axioms and rules. This will allow us to quantify how likely events are to occur.