Introduction to Probability
Overview
This lecture introduces the fundamental concepts of probability theory and their applications in computer science.
Prerequisites Note
This course builds on concepts from ECS 020: Discrete Mathematics for Computer Science. We'll be using set theory throughout the course—concepts like sets, subsets, unions (), intersections (), and complements. If these ideas feel unfamiliar, we encourage you to review your ECS 020 notes or the set theory sections in your discrete math textbook.
Topics
- What is probability?
- Sample spaces and events
- Probability axioms (Kolmogorov axioms)
- Basic probability calculations
Key Definitions
A procedure or process that yields observations or outcomes.
The set of all possible outcomes of an experiment. Denoted by or .
A subset of the sample space. An event is a collection of possible outcomes.
A single result from an experiment. Each outcome is an element of the sample space.
A probability measure is a function that assigns a real number to each event in the sample space, satisfying the Kolmogorov Axioms:
- Non-negativity: for all events
- Normalization: where is the sample space
- Additivity (Countable Additivity): For mutually exclusive events and (i.e., ), we have
More generally, for any countable collection of mutually exclusive events :
These axioms, formulated by Andrey Kolmogorov in 1933, form the foundation of modern probability theory.
Set Operations for Events
The union of events and , denoted , is the event that occurs when either or (or both) occur. In set notation: .
The intersection of events and , denoted , is the event that occurs when both and occur. In set notation: .
The complement of event , denoted or , is the event that does not occur. In set notation: .
Property:
Events and are mutually exclusive (or disjoint) if they cannot both occur simultaneously. Formally: .
For mutually exclusive events:
Applications in Computer Science
- Algorithm analysis (average-case complexity)
- Machine learning (probabilistic models)
- Network protocols (packet delivery)
- Cryptography (security guarantees)
- Data science (statistical inference)
Lecture slides and additional materials will be posted on Canvas.