
Uncertainty is all around us! Most events in life involve some uncertainty, from our chances to succeed in a career to our luck finding a parking spot. So, how can we express events involving uncertainty, likelihood, risk, or chance? The theory of probability provides a rigorous framework to reason about uncertainty, quantify it, and study the laws that govern chance. It is thanks to probability that much of science, engineering, and other areas have made significant progress today. An example is artificial intelligence, where probability allowed the field to make a huge leap by modeling uncertainty in applications as diverse as machine translation and robotics.
Prerequisites: Set theory, functions, and counting.
Definition 1: Random Experiment
A random experiment consists of a process whose outcome cannot be predicted with certainty, but the set of possible outcomes is known.
Definition 2: Sample Space
The sample space S of an experiment is the set of all possible outcomes of the experiment.
Example 1
Single Coin Flip
Two Coin Flips
Single Die Roll
Two Dice Roll

Definition 3: Probability Function A probability function P takes an outcome and returns the probability of , denoted
Subject to these conditions:
For finite sample spaces where all outcomes are equally likely, the probability of an outcome s ∈ S is given by:
Example 2: Fair Coin Toss
For a single fair coin toss:

Example 3: Three Fair Coin Tosses
Instead of individual outcomes, we might be interested in a subset of the sample space with some characteristics. In the example above with , an event could be "Getting exactly two Tails in flipping a fair coin three time in a row." The event is then the subset of all outcomes fulfilling the event description. In this case, this subset is
Definition 4 Event: An event is any subset of the sample space ,
Definition 5 Probability of an event: The probability of , denoted is the sum of the probabilities of all outcomes that belong to A.
Note: for all
Example: We toss a coin five times in a row.
Let A denotes the event that exactly one Heads emerges.
A contains 5 outcomes, each of which has a probability of 1/32.
Let be a sample space and let and be two events. The following properties hold: