Mathematical Statistics: Sample Spaces and Set Operations

Interactive Probability Theory Lecture

Samir Orujov, PhD

ADA University, School of Business

Information Communication Technologies Agency, Statistics Unit

2025-09-28

Learning Objectives

🎯 Sample Spaces
Understand and identify sample spaces for various experiments
📊 Event Operations
Define and work with events as subsets of sample spaces
🔄 Set Operations
Apply union, intersection, and complement operations
📐 Algebraic Rules
Master algebraic rules and DeMorgan’s laws for events
🎪 Interactive Demos
Visualize probability concepts through animations
🧠 Problem Solving
Apply concepts to real-world scenarios

Course Overview

Foundation
🎯 Sample Spaces
Core Concepts
📊 Events & Operations
Visual Learning
🎨 Interactive Venn Diagrams
Mathematical Laws
📐 DeMorgan’s Theorems
Applications
🧩 Real-World Problems
Assessment
💻 Interactive Quizzes

What is a Sample Space?

Fundamental Definition

The sample space is the set of ALL possible outcomes of an experiment, denoted by \(S\).

Key Properties:

  • Contains every possible outcome
  • Outcomes are mutually exclusive
  • Exactly one outcome occurs per experiment

Mathematical Notation: \[S = \{s_1, s_2, s_3, \ldots\} \text{ or } S = \{s : \text{condition}\}\]

Interactive Sample Space Builder

Demonstration: Build sample spaces step by step!

Sample Space S = {H, T}

Total outcomes: 2

H T

Sample Space Examples

Discrete Examples:

Rolling a die: \[S = \{1, 2, 3, 4, 5, 6\}\]

Two coin flips:
\[S = \{HH, HT, TH, TT\}\]

Drawing a card (suit): \[S = \{♠, ♥, ♦, ♣\}\]

Continuous Examples:

Temperature measurement: \[S = \{x : x \in \mathbb{R}, x ≥ -273.15\}\]

Time until failure: \[S = \{t : t ≥ 0\}\]

Stock price: \[S = \{p : p > 0\}\]

Live Coin Flip Simulation

Demonstration: Watch the Law of Large Numbers in action!

10

Click "Flip Coins!" to start simulation

Events - Definition

Key Definitions

Event: A subset of the sample space.

Elementary Event: An event consisting of exactly one outcome.

Event Occurrence: An event occurs if the experimental outcome belongs to that event.

Mathematical Notation:

  • Events denoted by capital letters: \(A, B, C, \ldots\)
  • \(A \subseteq S\) (A is a subset of S)
  • \(A = \{s_i : s_i \text{ satisfies condition}\}\)

Event Examples

Die Rolling Example:

\(S = \{1,2,3,4,5,6\}\)

  • \(A = \{2,4,6\}\) (even numbers)
  • \(B = \{1,3,5\}\) (odd numbers)
  • \(C = \{1\}\) (rolling one)
  • \(D = \{5,6\}\) (five or higher)

Two Coins Example:

\(S = \{HH, HT, TH, TT\}\)

  • \(E = \{HH, HT, TH\}\) (at least one head)
  • \(F = \{HH\}\) (both heads)
  • \(G = \{HT, TH\}\) (exactly one head)
  • \(H = \{TT\}\) (both tails)

Two Dice Visualization

Demonstration: Explore two-dice sample space interactively

7
Die 2 \ Die 1 1 2 3 4 5 6

Event "Sum = 7" has 6 favorable outcomes.

Union and Intersection

Key Operations

Union (\(A \cup B\)): Outcomes in either \(A\) or \(B\) (or both).

Intersection (\(A \cap B\)): Outcomes both in \(A\) and in \(B\).

Mathematical Definitions:

  • \(A \cup B = \{s : s \in A \text{ or } s \in B\}\)
  • \(A \cap B = \{s : s \in A \text{ and } s \in B\}\)
  • If \(A \cap B = \emptyset\), then \(A\) and \(B\) are disjoint

Interactive Venn Diagrams

Demonstration: Visualize set operations with custom sets

Set Operation Results

A
{1,2,3,4}
B
{3,4,5,6}

A ∪ B = {1, 2, 3, 4, 5, 6}

Universe: {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}

Complement & Disjoint Events

Essential Concepts

Complement (\(A^c\)): All outcomes in \(S\) that are NOT in \(A\).

Disjoint Events: \(A \cap B = \emptyset\) (cannot occur simultaneously).

Key Properties:

  • \(A \cup A^c = S\) (universal set)
  • \(A \cap A^c = \emptyset\) (empty set)
  • \((A^c)^c = A\) (double complement)
  • If disjoint: \(P(A \cup B) = P(A) + P(B)\)

DeMorgan’s Laws

DeMorgan’s Laws

For any collection of events \(\{E_i\}\):

\[(\bigcup_{i=1}^n E_i)^c = \bigcap_{i=1}^n E_i^c\]

\[(\bigcap_{i=1}^n E_i)^c = \bigcup_{i=1}^n E_i^c\]

In words: “The complement of a union equals the intersection of complements”

Interactive DeMorgan’s Verification

Demonstration: Verify DeMorgan’s Laws with custom sets

DeMorgan's Law Verification

First Law: (A ∪ B)ᶜ = Aᶜ ∩ Bᶜ
Second Law: (A ∩ B)ᶜ = Aᶜ ∪ Bᶜ

Think-Pair-Share Activity

Group Activity

Time: 5 minutes total (2 min thinking + 3 min discussion)

Prompt: Consider your daily commute to university. Define:

  1. The sample space of possible transportation methods
  2. Two events that could be disjoint
  3. Two events that have a non-empty intersection
  4. The complement of “arriving on time”

Discussion Questions:

  • Are your sample space outcomes equally likely?
  • Can you apply DeMorgan’s laws to your events?
  • What real-world factors affect event probabilities?

Law of Large Numbers Demo

Demonstration: Watch probability converge to theoretical values

100

Quiz Time! 🧠

Question 1: Sample space for three coins?

A. \(\{H, T\}\)
B. \(\{0, 1, 2, 3\}\)
C. \(\{HHH, HHT, ..., TTT\}\)
D. \(\{3H, 2H1T, 1H2T, 3T\}\)

Answer: C - All 8 possible sequences

Question 2: If \(A = \{1,2,3\}\), \(B = \{3,4,5\}\), then \(A \cap B = ?\)

A. \(\{1,2,3,4,5\}\)
B. \(\{3\}\)
C. \(\{1,2,4,5\}\)
D. \(\emptyset\)

Answer: B - Only element 3 is in both sets

Complex Application Challenge 🚀

Real-World Scenario

A tech company surveys employees about satisfaction across three areas: Work-Life Balance (W), Management (M), and Career Growth (C).

Your Analysis Tasks:

  1. Define the sample space for this three-dimensional survey
  2. Express “satisfied with at least two areas” using set notation
  3. Interpret \((W \cup M \cup C)^c\) in business context
  4. Apply DeMorgan’s law to find employees dissatisfied with all three

Advanced Question: If 40% are satisfied with work-life balance, 35% with management, 45% with career growth, and 15% with all three, can you find the percentage satisfied with exactly one area?

Key Concepts Summary

Concept Definition Notation Example
Sample Space All possible outcomes \(S\) Coin: \(\{H,T\}\)
Event Subset of sample space \(A \subseteq S\) Even die: \(\{2,4,6\}\)
Union Either event occurs \(A \cup B\) \(\{1,2\} \cup \{2,3\} = \{1,2,3\}\)
Intersection Both events occur \(A \cap B\) \(\{1,2\} \cap \{2,3\} = \{2\}\)
Complement Event does not occur \(A^c\) If \(A=\{1,2\}\), then \(A^c=\{3,4,5,6\}\)
Disjoint No common outcomes \(A \cap B = \emptyset\) \(\{1,2\} \cap \{3,4\} = \emptyset\)

Self-Assessment Checklist ✅

Rate your confidence (1-5 scale):

Sample Space Construction (1-5)

Event Definition & Notation (1-5)

Union & Intersection (1-5)

Complement Operations (1-5)

DeMorgan’s Laws (1-5)

Real-World Applications (1-5)

Interactive Problem Solving (1-5)

Mathematical Communication (1-5)

Reflection Questions: - Which interactive demo helped you most? - What real-world example can you create using today’s concepts? - How would you explain set operations to a friend?

Practice Problems 📝

Problem 1: Card Drawing

From a standard deck, define: - \(A\) = drawing a red card
- \(B\) = drawing a face card - Find \(A \cup B\), \(A \cap B\), \(A^c\)

Problem 2: Student Groups

In a class of 30 students: - 18 study Math, 15 study Physics
- 8 study both subjects - How many study neither?

Problem 3: DeMorgan Application

Verify: \((A \cup B \cup C)^c = A^c \cap B^c \cap C^c\) for \(A=\{1,2\}\), \(B=\{2,3\}\), \(C=\{3,4\}\)

Problem 4: Sample Space Design

Design a probability experiment related to your field of study. Define the sample space and three meaningful events.

Next Steps & Preview 🎯

Today’s Achievements

Mastered sample space construction and event definition
Applied set operations through interactive visualization
Verified DeMorgan’s laws with concrete examples
Connected abstract concepts to real-world scenarios
Practiced mathematical communication and notation

Next Lecture Preview:

🎲 Classical Definition of Probability
📊 Equally Likely Outcomes
🎮 Advanced Counting Techniques
🃏 Combinatorial Applications

Questions & Discussion

Contact Information:

📧 Email: sorujov@ada.edu.az
🏢 Office: Room 301
Hours: MW 2-4 PM
💻 Course Site: ada-stats.netlify.app

Interactive Resources:

📱 Mobile-Friendly Demos
💾 Downloadable Notebooks
🎥 Recorded Explanations
📚 Additional Practice Problems

Thank You!

Mathematical Statistics

Sample Spaces & Set Operations

Samir Orujov, PhD
ADA University

“Mathematics is not about numbers, equations, computations, or algorithms: it is about understanding.” - William Paul Thurston