Week 1: Learning Objectives: Introduction To Probability
Week 1: Learning Objectives: Introduction To Probability
■ Introduction to Probability
■ At the end of Week 1 you should be
able to:
■ understand the concept of probability
■ differentiate between the various
approaches for calculating probability
values
■ work with sample spaces and events
■ understand the basic probability laws
■ apply these laws for solving simple 1
Introduction to Probability
5
Outcomes: Sample Spaces
■ The list all the possible outcomes of
an experiment is called the Sample
Space
■ we will use the letter S for sample
spaces
■ any collection of items in probability is called a
set, and so S is also a set
■ If your experiment is rolling a single die:
S = {1, 2, 3, 4, 5, 6}
■ If your experiment is tossing a coin twice:
S = {HH, HT, TH, TT}
■ Note that an outcome is essentially one of
the possible things that can happen in the 6
Think…
■ What we perceive as random and what is
actually random are two separate things
■ Assume we flip a coin 10 times, which
of the following two sequences are we
more likely to observe?
■ H T H H T H T T HT
■ H T H T T T T T T H
7
Types of sample spaces
■ Finite
■ If you can write & count all elements in S. Example:
rolling a single die, S = {1, 2, 3, 4, 5, 6}
■ Countably infinite
■ There is a way to show the progression of the values
in S, but they can go to infinity
■ Example: the number of accesses to a web server
during a week’s time, S = {0, 1, 2, 3, 4, … }
■ Uncountably infinite
■ The possible outcomes are too numerous to write
down in a listing, so we use an interval to
describe them
■ Example: length of time it takes a computer to
complete a task, with a max of 5 sec. S = {all
real numbers x such that 0<x≤5}
8
Events: subsets of sample
spaces
■ An event is a set of outcomes and is a subset of
the sample space S
■ The empty set Ø is called the impossible event
■ The subset S is called the certain event
■ We measure the probability of an event: P(event)
■ probability of the temperature tomorrow mid-day being less than 20
degrees – the event is made up of all outcomes where the
temperature is less than 20 degrees – P(temp<20)
■ probability of observing a sum of 3 when rolling 2 dice – the event is
made up of all outcomes where the sum of the 2 dice is equal to 3 –
P(sum of 2 dice = 3)
■ probability of observing the number 4 when rolling one die – the
event is made up of only one outcome – P(rolling a 4)
9
Sample spaces and events
■ We roll a single die, S = {1, 2, 3, 4, 5, 6} :
■ Event A: that we roll an odd number: A = {1, 3, 5 }
■ Event B: that we roll a number greater than 2: B = {3,
4, 5, 6
}
■ We toss one coin 3 times. What is the sample
space S? Use H, T to show the two possible
outcomes
S = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT
10
The 4 approaches to
calculating probabilities
■ Subjective
■ The most vague and least scientific way,
based on personal views, hopes, etc.
■ What do you think the chance that your
favorite football team will win the
Premier League is?
■ What is the probability of a new
pandemic in 2023/24?
■ Classical
■ Mathematical approach, using rules and
formulas (more in the coming weeks)
■ Roll the dice!!! 11
The 4 approaches to
calculating probabilities
■ Frequency-based
■ Base calculations on observed data, and
calculate the percentage of times that the
event has occurred in the observed data
(relative frequency)
■ Probabilities are estimates, since they are
based on finite sample size (your estimates
will be only as good as the data you collect)
■ Simulation-based
■ We create the data by setting up a scenario,
playing out the scenario a large number of
times, and counting the percentage of times
a certain outcome occurs
12
Some first formulas
■ For the classical
approach:number of ways A can
P(A) =
numberoccur
of ways the experiment can
proceed
■ This only works if all outcomes are equally
likely
■ For thenumber
frequency-based
of times event A approach:
P(A) =
occurred
number of ways the experiment was
run
Can you translate this in English?
𝒏→∞
13
Think…
a) We roll a die:
■ What is the probability of getting a 2?
or a 6?
P(rolling a 2) = 1/6
P(rolling a 2 or a 6) = 1/6 + 1/6 = 2/6
18
Example
■ You have 2 interviews for 2 jobs. Event A: you get an
offer for job A, Event B: you get an offer for job B.
Consider P(A)=0.2, P(B)=0.6 and P(A∩B) = 0.15.
■ What is the probability that you get offered neither job?
■ What is the probability that you do not get two job offers?
24
Some consequences of the
axioms
■ P(Ø) = 0
■ the probability assigned to the
impossible event is zero
■ P(A) = 1 - P(A)
■ the probability that an event will not
occur, is equal to 1 minus the
probability that the event will occur
■ For any event A, 0 ≤ P(A) ≤ 1
■ These can be proven based on the
axioms 25
The general addition rule
■ For any two events A1 and A2:
■ P(A1 u A2) = P(A1) + P(A2) - P(A1 n A2)
S
A1
A1 and A2 are now NOT
A2
mutually exclusive
events - WHY?
Contrast this rule with
A1 n A2
the 3rd of Kolmogorov’s
axioms
26
Example
■ Suppose you roll a die once, and consider the
events:
■ A: the die comes up an even number
27
A quick note: Independent
events
■ Two events are called independent
if knowledge that one has
occurred does not affect the
probability of the other event
occurring
■ For now (in detail next week), we
will say that if P(A n B) = P(A)P(B)
then A and B are independent (and
vice-versa)
■ This is the multiplication rule
28
Some examples
■ Rolling a single die, S = {1, 2, 3,
4, 5, 6}
■ Event A: die comes up odd
■ Event B: die comes up 1
■ Event C: the die is 1 or 2
■ Are A and B independent?
■ Are A and C independent?
29
Summary of lecture
■ In Week 1 we covered:
■ Basic notion of probability
■ Approaches to calculating probability
values
■ Sample spaces and events
■ Basic probability laws
■ How to use these in solving problems
■ Don’t forget:
■ Work on the exercises for the tutorial
BEFORE you come to your class
30