ENGR 371 S – Probability and Statistics in Engineering
Weekly Preparation Notes (Week 2)
Fall 2026; Di Wu
1. Conditional Probability
The conditional probability of an event B given an event A, denoted as P(B|A), is
P(B|A) =
P (A ∩ B)
P (A)
(1)
for P (A) > 0
This definition can be understood in a special case in which all outcomes of a random experiment
are equally likely. If there are N total outcomes,
P (A) = (number of outcomes in A)/N
P (A ∩ B) = (number of outcomes in A ∩ B)/N
P (B|A) = (number of outcomes in A ∩ B)/(number of outcomes in A)
2. Multiplication Rule
• The conditional probability definition can be rewritten to provide a formula known as the
multiplication rule for probabilities
Multiplication Rule
P (A ∩ B) = P (B|A)P (A) = P (A|B)P (B)
• This expression is obtained by interchanging A and B
3. Total Probability Rule
Setup:
• A and A′ are mutually exclusive.
• A ∩ B and A′ ∩ B are mutually exclusive.
• B = (A ∩ B) ∪ (A′ ∩ B)
Total Probability Rule (Two Events): For any two events
A and B:
P (B) = P (B ∩A)+P (B ∩A′ ) = P (B|A)P (A)+P (B|A′ )P (A′ )
(2)
1
4. Independence of Events
Independence (Two Events):
Two events are independent if any one of the following equivalent statements is true:
1. P (A|B) = P (A)
2. P (B|A) = P (B)
3. P (A ∩ B) = P (A)P (B)
Note: Knowledge that the outcome of the experiment is in event A does not affect the probability
that the outcome is in event B.
5. Bayes’ Theorem
Context: Thomas Bayes (1700s) addressed the essential question of finding the probability that a
condition was present (e.g., high contamination) given an outcome (e.g., a semiconductor failure).
Theorem:
P (A|B) =
P (B|A) · P (A)
P (B)
for P (B) > 0
(3)
You calculate the probability of an event A given new evidence B by updating its initial probability
(prior) using the formula:
P (B|A) · P (A)
P (A|B) =
P (B)
where:
• P (A|B) is the updated probability,
• P (B|A) is how likely the evidence is if A is true,
• P (A) is the initial probability of A, and
• P (B) is the overall probability of the evidence.
6. Random Variables
Random Variable: A variable that associates a number with the outcome of a random experiment
is referred to as a random variable. It is a function that assigns a real number to each outcome
in the sample space of a random experiment.
Discrete Random Variable: A discrete random variable is a random variable with a finite (or
countably infinite) range.
7. Probability Distributions
Definition: The probability distribution of a random variable X is a description of the probabilities
associated with the possible values of X.
2
Probability Mass Function (PMF)
For a discrete random variable X with possible values x1 , x2 , . . . , xn , a probability mass function
(PMF) is a function such that:
1. f (xi ) ≥ 0
∑︁n
2.
i=1 f (xi ) = 1
3. f (xi ) = P (X = xi )
Cumulative Distribution Function (CDF)
The cumulative distribution function is the probability that a random variable X with a given
probability distribution will be found at a value less than or equal to x.
F (x) = P (X ≤ x) =
∑︂
f (xi )
(4)
xi ≤x
Properties for a discrete random variable X:
∑︁
1. F (x) = P (X ≤ x) = xi ≤x f (xi )
2. 0 ≤ F (x) ≤ 1
3. If x ≤ y, then F (x) ≤ F (y)
Discrete Uniform Distribution
A random variable X has a discrete uniform distribution if each of the n values in its range,
x1 , x2 , . . . , xn , has equal probability.
1
f (xi ) =
(5)
n
3