Stats Prob Week 1
Stats Prob Week 1
Stats Prob Week 1
1: Probability Basics
© Scott Robison, Claudia Mahler 2019 all rights reserved.
Objectives:
Be familiar with commonly-used probability terms such as random experiment, sample space, element,
and event
Understand the meanings of probability relationships (complementary events, unions, intersections) and
be able to express these relationships using set notation
Motivation:
The concept of probability is something that we’re all familiar with to some degree. It is likely that you could come
up with a few basic examples of situations that would involve calculating or estimating a probability.
Examples
If I flip a fair coin three times in a row, what is the chance that I will get three heads?
If I randomly select a single M&M from a pack, what is the probability that the M&M is red?
How likely are the Dodgers to win the World Series this year?
While all of these examples involve this idea of “chance” or “probability,” the interpretation of probability differs from
example to example.
The first example involves a situation where we could exactly calculate a probability based on what we know
about the situation (we know that there is a 50% chance for “heads” and 50% chance for “tails” for any given
flip).
The second example involves a situation where we might base our probability calculation on previous or
additional observations of similar situations (suppose the M&Ms website states that the percentage of red
M&Ms in any given package is approximately 13%).
1
The third example is a bit more complicated. At this point in the season, there are still a good number of
things that could happen to affect the Dodgers’ chance of winning the World Series, so calculating the
probability would take a lot of work!
For this course, we will be focusing on probability as the likelihood of a particular outcome occurring in a given
situation (rather than as an estimation or an opinion) and will mainly be dealing with situations like those in the first
two examples above - situations where we either know a specific probability of something happening or can base
our probability calculations on additional information about the situation of interest.
In this first set of notes, we will discuss some of the basic definitions and rules used in probability and then look at
a few “basic” probability problems. Let’s start with a few definitions that we’ll use throughout the course.
Key Definitions
There are several terms that are commonly used when discussing probability.
A random experiment is a process that leads to a single outcome. This outcome cannot be predicted with
certainty. An experiment can have any number of possible outcomes, but will only result in one of these outcomes
at a time.
The sample space (denoted S) is the collection of all possible outcomes for a given experiment.
An event is a collection of elements that are of interest to us or share a common characteristic in a given
experiment. An event can contain just one element or several elements and is a subset of the sample space S.
The probability of event X , denoted P(X ) , is the measurement of the likelihood that X will occur when an
experiment is performed.
Example 1.1.1
When tossing one fair coin, we are interested in the probability of observing “heads.”
Event of interest: H
Probability:
2
Example 1.1.2
When tossing three fair coins, we are interested in the probability of observing at least
one “head.”
Sample space:
How many outcomes are there to consider? Each toss has two options (H or T) and
we toss three coins…
Event of interest:
Probability:
3
Example 1.1.3
When rolling a fair six-sided die, we are interested in the probability of observing an
even number.
Sample space:
Probability:
4
Determining the Number of Elements in the Sample Space
In the above examples, it is fairly quick and easy for us to figure out and list all of the elements in the sample
space. But what if it is more difficult to do so? For example, suppose we wanted to roll five six-sided dice at once
(like in Yahtzee). How many elements would be in the sample space - that is, how many different combinations of
the five dice are there? If you tried to list them, you’d quickly find out that there would be way too many to list!
One rule that we can use to help us quickly determine n(S), or the number of elements in the sample space S, is a
simplified version of what’s known as the multiplicative rule.
The multiplicative rule (simplified) states that if you have m instances (or trials), each with r outcomes (or
results), the number of elements in the sample space S is given as:
5
Example 1.1.4
Example 1.1.5
You ask three friends to choose their favorite color out of blue, green, red, and yellow.
What is n(S)?
Axioms of Probability
Finally, before going on to discuss probability relationships and some set theory notation, let’s make note of a few
axioms of probability that help further define the idea of probability. Suppose event A is a subset of sample space
S.
Axiom 1: 0 ≤ P(A) ≤ 1
Axiom 2: P(S) = 1
These axioms can be helpful when calculating probabilities, as we will see later with a few examples.
6
Set Theory Notation and Probability Relationships
Probability expressions can and often do involve more than one event of interest. For example, maybe we were
tossing a coin and rolling a die at the same time and wanted to find the probability of getting a “head” and a “4.”
How would we write this?
Using set theory notation to write probability expressions allows us to have a convenient and consistent way of
expressing expressions that are more complicated. They also allow us to express specific relationships among
events in which we are interested.
The complement of A is the set of all elements in the sample space S that do not belong to A. In other words, it is
⎯⎯⎯⎯
Note that A and AC cover the entire sample space and do not contain any of the same elements.
The union of A and B is the set of all elements that belong to A or B or both. The union of A and B is denoted as
A ∪ B.
The intersection of A and B is the set of all elements that belong to A and B. The intersection of A and B is
denoted as A ∩ B.
7
Other Useful Probability Relationships and Rules
In addition to the formulas above, a few other formulas and rules can be useful when computing probabilities.
DeMorgan’s laws can help simplify a probability calculation. The rules are:
C C C
P(A ∩ B ) = P(A ∪ B) = 1 − P(A ∪ B)
C C C
P(A ∪ B ) = P(A ∩ B) = 1 − P(A ∩ B)
C C C C
P(A ∪ B) = P(A ∩ B ) = 1 − P(A ∩ B )
8
The law of total probability states that for any events A and B:
C
P(A) = P(A ∩ B) + P(A ∩ B )
The distributive laws work kind of like distributive laws in math. If we define a third event C :
Note that these relationships and laws can be extended to more than two or three events!
Mutual Exclusivity
The last concept we’ll discuss in this first set of notes is the concept of mutual exclusivity. Suppose we have two
events A and B. These events A and B are mutually exclusive (or disjoint) if: P(A ∩ B) = 0
That is, A and B are mutually exclusive if there are no elements that are in both A and B. Note that when events A
and B are mutually exclusive, our additive rule simplifies: P(A ∪ B) = P(A) + P(B)
Let’s put all of these new notations and rules into practice with a few examples!
9
Example 1.1.6
You have the following two spinners. In an experiment, you spin each spinner once,
adding the two resulting numbers.
2. Define event A as “the sum of the numbers is odd.” What is n(A)? What is
P(A) ?
3. Define event B as “the sum of the two numbers is less than 5.” What is
P(A ∩ B) ?
10
Example 1.1.7
Suppose P(A) ,
= 0.40 P(B) = 0.50 , and P(A ∩ B) = 0.20 .
3. What is P(A ∩ BC ) ?
11
Example 1.1.8
The following Venn diagram shows a sample space with five elements. Events A and
B are defined as in the diagram. Let P(a) = P(c) = 0.1, P(b) = 0.15, P(d) = 0.2,
1. Find P(AC ∪ B
C
) .
2. Find P(AC ∩ B) .
3. Find P(B ∩ BC ) .
12
Example 1.1.9
Suppose we were to toss two fair coins. Define A as “observing at least one head,” B
as “observing at least one tail,” and C as “observing exactly two tails.”
1. What are the probabilities of these three events occurring?
2. What is the probability of observing at least one head and exactly two tails?
4. What is P(A ∪ B ∪ C) ?
13