PROBABILITY • UNCERTAINTY • DECISION

Probability

Probability is the area of Mathematics that studies uncertain phenomena. It lets us measure, compare and interpret the chances that something happens, helping us understand situations whose outcome cannot be predicted with complete certainty.

What is Probability?

Probability comes in whenever we deal with situations that involve uncertainty.

When we toss a coin, we don’t know for sure whether it will land heads or tails.
When we roll a die, we don’t know in advance which face will come up.
When we watch a queue, we don’t know exactly how long the next person will wait.

Even so, we can study these situations mathematically.

Probability answers questions such as:

  • What is the chance that an event happens?
  • Which outcomes are possible?
  • Does one event influence another?
  • How do we compute the chance that several events happen together?
  • How do we make decisions under uncertainty?
Key idea: Probability turns uncertainty into a number, so we can reason better about random phenomena.

Random experiment, sample space and event

Before computing probabilities, we need three fundamental ideas.

Random experiment

A situation whose outcome cannot be predicted with certainty before it happens. Example: tossing a coin, rolling a die or drawing a card.

Sample space

The set of all possible outcomes of a random experiment. It is usually written with the Greek letter Ω.

Event

Any subset of the sample space. In other words, a collection of outcomes that we want to analyze.

Example: rolling a die

When we roll an ordinary die, the possible outcomes are:

$$ \Omega = \{1,2,3,4,5,6\} $$

If we want to study the event “an even number comes up”, we have:

$$ A = \{2,4,6\} $$

Here the event \(A\) is a subset of the sample space \(\Omega\).


The classical definition of probability

When all outcomes are equally likely, we can compute the probability of an event as the ratio:

$$ P(A) = \frac{\text{number of favorable outcomes}}{\text{number of possible outcomes}} $$

When rolling a die, the probability of getting an even number is:

$$ P(A) = \frac{3}{6} $$ $$ P(A) = \frac{1}{2} $$ $$ P(A) = 0.5 $$

So the chance of getting an even number is:

$$ 50\% $$

The possible values of a probability

Every probability lies between 0 and 1.

$$ 0 \leq P(A) \leq 1 $$

This means that:

Value Interpretation
$$P(A)=0$$ The event is impossible.
$$P(A)=1$$ The event is certain.
$$0 < P(A) < 1$$ The event is possible, but uncertain.

The complement of an event

The complement of \(A\) is everything in the sample space that is not in \(A\).

It can be written as:

$$ A^c $$

The probability of the complement is:

$$ P(A^c) = 1 - P(A) $$

Example

If the probability that it rains today is:

$$ P(A) = 0.30 $$

Then the probability that it doesn’t rain is:

$$ P(A^c) = 1 - 0.30 $$ $$ P(A^c) = 0.70 $$

So the chance that it doesn’t rain is:

$$ 70\% $$

Union and intersection of events

In Probability we often study how two or more events relate to each other.

Operation Notation Meaning
Union $$A \cup B$$ Event A happens, or event B, or both.
Intersection $$A \cap B$$ A and B happen at the same time.
Complement $$A^c$$ Event A does not happen.

The addition rule

The addition rule gives the probability that \(A\) or \(B\) happens.

$$ P(A \cup B) = P(A) + P(B) - P(A \cap B) $$

The term \(P(A \cap B)\) is subtracted because, when we add \(P(A)\) and \(P(B)\), the part the two events share is counted twice.

When two events cannot happen at the same time, we say they are mutually exclusive. In that case, $$P(A \cap B)=0$$.

If \(A\) and \(B\) are mutually exclusive:

$$ P(A \cup B) = P(A) + P(B) $$

Conditional probability

Conditional probability measures the chance that an event happens given that another event has already happened.

The notation is:

$$ P(A \mid B) $$

It reads:

The probability of A given B.

The formula is:

$$ P(A \mid B) = \frac{P(A \cap B)}{P(B)} $$

provided that:

$$ P(B) > 0 $$

The multiplication rule

From conditional probability we get the multiplication rule:

$$ P(A \cap B) = P(B) \cdot P(A \mid B) $$

We can also write:

$$ P(A \cap B) = P(A) \cdot P(B \mid A) $$

This rule is very useful when we want the probability that two events happen together.


Independent events

Two events are independent when one happening does not change the probability of the other.

If \(A\) and \(B\) are independent, then:

$$ P(A \mid B) = P(A) $$

and also:

$$ P(A \cap B) = P(A) \cdot P(B) $$

Example

Tossing a coin twice is a textbook case of independence.

The result of the first toss does not change the result of the second.

If we want the probability of heads on both tosses:

$$ P(\text{heads and heads}) = \frac{1}{2} \cdot \frac{1}{2} $$ $$ P(\text{heads and heads}) = \frac{1}{4} $$

So the chance is:

$$ 25\% $$

Bayes’ Theorem

Bayes’ Theorem is one of the most important ideas in Probability.

It lets us update a probability when we receive new information.

$$ P(A \mid B) = \frac{P(B \mid A) \cdot P(A)}{P(B)} $$

Where:

  • \(P(A)\) is the initial probability of \(A\);
  • \(P(B \mid A)\) is the probability of observing \(B\) given that \(A\) happened;
  • \(P(B)\) is the total probability of \(B\);
  • \(P(A \mid B)\) is the updated probability of \(A\) after observing \(B\).
Bayes' Theorem is widely used in medical diagnosis, spam filters, machine learning, risk analysis and statistical inference.

Random variable

A random variable is a function that assigns numbers to the outcomes of a random experiment.

For example, when tossing two coins, we can define:

X = the number of heads obtained.

The sample space is:

$$ \Omega = \{HH, HT, TH, TT\} $$

where:

  • \(H\) stands for heads;
  • \(T\) stands for tails.

The random variable \(X\) can take the values:

$$ X = 0,\ 1,\ 2 $$
Outcome Value of X
$$TT$$ 0 heads
$$HT$$ or $$TH$$ 1 head
$$HH$$ 2 heads

Expected value

The expected value is the theoretical mean of a random variable.

For a discrete random variable:

$$ E(X) = \sum x_i \cdot P(X=x_i) $$

It does not have to be a value that actually shows up in the experiment.
It represents the average behavior we expect in the long run.


Variance of a random variable

The variance measures how spread out the random variable is around its expected value.

$$ Var(X) = E[(X - E(X))^2] $$

An equivalent and widely used form is:

$$ Var(X) = E(X^2) - [E(X)]^2 $$

The standard deviation is:

$$ \sigma = \sqrt{Var(X)} $$

Probability distributions

A probability distribution describes how probability is spread across the possible values of a random variable.

Distribution Type Common use
Bernoulli Discrete Experiments with only two outcomes: success or failure.
Binomial Discrete Counting successes in a fixed number of trials.
Poisson Discrete Counting occurrences in an interval of time or space.
Normal Continuous Modeling phenomena that are roughly symmetric around the mean.
Exponential Continuous Waiting time until an event occurs.

The Bernoulli distribution

The Bernoulli distribution models an experiment with only two possible outcomes:

  • success;
  • failure.

If \(X\) follows a Bernoulli distribution with parameter \(p\), we write:

$$ X \sim Bernoulli(p) $$

The probability function is:

$$ P(X=x) = p^x(1-p)^{1-x} $$

for:

$$ x \in \{0,1\} $$

The Binomial distribution

The binomial distribution is used when we have:

  • a fixed number of trials;
  • independent trials;
  • only two possible outcomes in each trial;
  • the same probability of success in every trial.

If \(X\) follows a binomial distribution, we write:

$$ X \sim Binomial(n,p) $$

The probability function is:

$$ P(X=k) = \binom{n}{k}p^k(1-p)^{n-k} $$

where:

  • \(n\) is the number of trials;
  • \(k\) is the number of successes;
  • \(p\) is the probability of success.

The Poisson distribution

The Poisson distribution is used to model counts of events in an interval.

Examples:

  • the number of customers who join a queue per hour;
  • the number of calls received per minute;
  • the number of accidents on a given stretch of road;
  • the number of defects in a part.

If \(X\) follows a Poisson distribution with parameter \(\lambda\), we write:

$$ X \sim Poisson(\lambda) $$

Its probability function is:

$$ P(X=k) = \frac{e^{-\lambda}\lambda^k}{k!} $$

where:

  • \(\lambda\) is the average rate of occurrence;
  • \(k\) is the number of occurrences.

The Normal distribution

The normal distribution is one of the most important distributions in Statistics.

It is bell-shaped, symmetric around the mean, and shows up in many natural, social and economic phenomena.

If \(X\) follows a normal distribution, we write:

$$ X \sim N(\mu,\sigma^2) $$

Its density function is:

$$ f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2} $$

Where:

  • \(\mu\) is the mean;
  • \(\sigma\) is the standard deviation;
  • \(\sigma^2\) is the variance.

A worked example: tossing coins

Consider the experiment of tossing a coin 3 times.

We want the probability of getting exactly 2 heads.

Here:

  • number of trials: \(n = 3\);
  • number of successes we want: \(k = 2\);
  • probability of heads: \(p = \frac{1}{2}\).

We use the binomial distribution:

$$ P(X=2) = \binom{3}{2} \left(\frac{1}{2}\right)^2 \left(1-\frac{1}{2}\right)^{3-2} $$

Since:

$$ \binom{3}{2} = 3 $$

we have:

$$ P(X=2) = 3 \cdot \left(\frac{1}{2}\right)^2 \cdot \left(\frac{1}{2}\right)^1 $$ $$ P(X=2) = 3 \cdot \frac{1}{4} \cdot \frac{1}{2} $$ $$ P(X=2) = \frac{3}{8} $$

Therefore:

$$ P(X=2) = 0.375 = 37.5\% $$

A worked example: an ordinary die

Consider rolling a fair die.

We want the probability of getting a number greater than 4.

The sample space is:

$$ \Omega = \{1,2,3,4,5,6\} $$

The event we want is:

$$ A = \{5,6\} $$

So:

$$ P(A) = \frac{2}{6} $$ $$ P(A) = \frac{1}{3} $$ $$ P(A) \approx 0.3333 $$

So the chance of getting a number greater than 4 is approximately:

$$ 33.33\% $$

How to read probabilities

Probability Intuitive reading
0% The event does not happen.
25% The event has a low chance of happening.
50% The event is as likely to happen as not.
75% The event has a high chance of happening.
100% The event happens for certain.

Probability in practice

Probability shows up in many fields:

Statistics

It is the foundation of statistical inference, hypothesis tests, confidence intervals and probabilistic models.

Data science

It is used in predictive models, classification, machine learning and uncertainty analysis.

Queues and service

It helps study customer arrivals, waiting times, service capacity and the risk of congestion.

Games and draws

It lets us compute the odds in dice, cards, lotteries, coins and other random experiments.


Overview

Concept Main idea
Random experiment A situation whose outcome is not known in advance.
Sample space The set of all possible outcomes.
Event A subset of the sample space.
Probability A numerical measure of the chance that an event happens.
Conditional probability The chance that an event happens given that another one has.
Independence When one event does not change the probability of the other.
Random variable A function that assigns numbers to the outcomes of a random experiment.
Probability distribution How probability is spread across the possible values.

Conclusion:
Probability is the mathematical language of uncertainty. It lets us study random phenomena rigorously, compute chances, update what we know and make better-informed decisions when the outcome is not guaranteed.

“Probability theory is nothing but common sense reduced to calculation.”
— Pierre-Simon Laplace