Main Probability
Main Probability
Prof. R. Sivasamy
Contents
1 Introduction 4
1.1 Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 Examples of Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Universal Set 4
5 Random Variables 6
5.1 Types of Random Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6 Probability 6
6.1 Classical Probability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
6.2 Basic Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
7 Probability Distributions 6
7.1 Discrete Probability Mass Function . . . . . . . . . . . . . . . . . . . . . . . 6
7.2 Cumulative Distribution Function . . . . . . . . . . . . . . . . . . . . . . . . 6
1
8 Expectation and Variance 7
8.1 Worked Example: Shoppers . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
8.2 Worked Example: Shoppers . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
11 Recommended Texts 12
2
13.12Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
13.13Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
13.14Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
16 Solutions 26
16.1 Exam-Ready Question Bank . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3
1 Introduction
Probability and Random Variables This chapter introduces the fundamental concepts
of sets, random experiments, probability, and random variables. These ideas form the
foundation of statistical reasoning in STA 114.
1.1 Sets
Definition 1. A set is any well-defined collection of distinct elements or objects.
(From the uploaded PDF: “A set is any well-defined collection of distinct elements or
objects.”)
Remarks
• A set is well-defined if we can determine whether an element belongs to it.
• Citizens of Botswana.
2 Universal Set
Definition 2. The universal set, denoted U , is the collection of all elements under
consideration.
Example 2. Let
• U : all employees of a firm,
4
3 Basic Set Operations
3.1 Intersection
A ∩ B = {x : x ∈ A and x ∈ B}
A ∩ B = {8, 9, 10}.
3.2 Union
A ∪ B = {x : x ∈ A or x ∈ B}
A ∪ B = {1, 3, 5, 6, 7, 8, 9, 10}.
3.3 Complement
Ac = {x : x ∈ U and x ∈
/ A}
A ∩ B = ∅.
P (A ∩ B) = P (A)P (B).
5
5 Random Variables
Definition 9. A random variable is a function that assigns a real number to each outcome
in the sample space.
6 Probability
P (A ∪ B) = P (A) + P (B)
7 Probability Distributions
Example 5.
x 2 4 5 8 9
P (X = x) 0.1 0.2 0.15 0.45 0.10
P (X > 4) = 0.70, P (X ≥ 4) = 0.90, P (X ≤ 4) = 0.30.
6
8 Expectation and Variance
E(X) =
X
xp(x)
x
X 0 1 2 3 4 Total
Customers 2 a 10 2 1 20
P (X = x) 0.10 0.25 0.50 b 0.05 1.00
Solution
a = 5, b = 0.10
Let’s break this down step by step using the customer counts. We have 20 total customers,
and the counts for each value are given. First, we calculate a and b based on the probabilities:
- For a, the sum of counts is 20, so a = 5.
- For b, the sum of probabilities is 1, so b = 0.10.
X 0 1 2 3 4 Total
Customers 2 a 10 2 1 20
P (X = x) 0.10 0.25 0.50 b 0.05 1.00
7
Step 1: Determine the missing frequencies and probabilities. The total number of
customers is 20, so
2 + a + 10 + 2 + 1 = 20 ⇒ a = 5.
Customers: 2, 5, 10, 2, 1.
frequency
Using P (X = x) = , we confirm:
20
2 5 10
P (X = 0) = = 0.10, P (X = 1) = = 0.25, P (X = 2) = = 0.50,
20 20 20
2 1
P (X = 3) = = 0.10, P (X = 4) = = 0.05.
20 20
Hence b = 0.10.
1 X
E(X) = x P (X = x) = x × (number of customers at x).
X
20
So
1
E(X) = 0 · 2 + 1 · 5 + 2 · 10 + 3 · 2 + 4 · 1 .
20
Compute the numerator:
0 · 2 = 0, 1 · 5 = 5, 2 · 10 = 20, 3 · 2 = 6, 4 · 1 = 4.
x × customers = 0 + 5 + 20 + 6 + 4 = 35.
X
⇒
Thus
35
E(X) = = 1.75.
20
8
X 0 1 2 3 4 Total
P (X = x) 0.10 0.25 0.50 b 0.05 1.00
Thus,
0.90 + b = 1.00 ⇒ b = 1.00 − 0.90 = 0.10.
X 0 1 2 3 4
P (X = x) 0.10 0.25 0.50 0.10 0.05
E(X) = x P (X = x).
X
Add them:
E(X) = 0.00 + 0.25 + 1.00 + 0.30 + 0.20 = 1.75.
9
So the mean is
µ = E(X) = 1.75.
Compute:
Add them:
E(X 2 ) = 0 + 0.25 + 2.00 + 0.90 + 0.80 = 3.95.
Compute (1.75)2 :
(1.75)2 = 3.0625.
Thus,
Var(X) = 3.95 − 3.0625 = 0.8875.
10
Summary
For the given pmf,
1 3 3 1
P (X = 0) = , P (X = 1) = , P (X = 2) = , P (X = 3) =
8 8 8 8
3 1 1
P (X ≥ 2) = + =
8 8 2
□
Exercise 2. Five insurance policies are selected. Each has a 25% chance of being surrendered.
Let X ∼ Bin(5, 0.25). Compute P (X ≥ 2).
Solution.
P (X ≥ 2) = 1 − [P (0) + P (1)]
Exercise 3. Six patients have a disease with 75% mortality. Let X be the number who
recover. Find P (X > 1) and E(X).
X ∼ Bin(6, 0.25)
11
P (X > 1) = 1 − (0.17798 + 0.35596) = 0.46606
11 Recommended Texts
• Ama et al. (2008), Introduction to Statistics.
12.1 Introduction
Probability theory provides a mathematical framework for quantifying uncertainty. In this
chapter, we introduce random experiments, sample spaces, events, probability laws, and
random variables. We also develop probability distributions and solve representative problems.
Probability theory is foundational to statistics Ross (2014). Introductory treatments
suitable for beginners include Ama et al. (2008). Business applications are well covered in
Ramanathan and Sediakgotla (2003).
===========================================================
Definition 11 (Sample Space). The sample space, denoted by S, is the set of all possible
outcomes of a random experiment.
12
12.2.1 Events and Types of Events
Definition 13 (Mutually Exclusive Events). Two events A and B are mutually exclusive
if
A ∩ B = ∅.
P (A ∩ B) = P (A)P (B).
Definition 15 (Equally Likely Outcomes). Outcomes are equally likely if each outcome
has the same probability.
12.3 Probability
1. 0 ≤ P (A) ≤ 1
2. P (S) = 1
P (A ∪ B) = P (A) + P (B)
P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
13
12.7 Random Variables
Definition 17 (Random Variable). A random variable X is a function that assigns a real
number to each outcome in the sample space.
Formally, if Ω denotes the sample space and R the set of real numbers, a random variable
X is a mapping X : Ω → R. The following diagram illustrates this mapping:
X
Ω R
ω1 X(ω1 )
ω2 X(ω2 )
.. ..
. .
Figure 1: A colored mapping diagram illustrating how a random variable X assigns real
values to outcomes in the sample space Ω.
P (X = 14) = 0.
(2) Let X denote the sum of the two outcomes. What is P (X = 7)? There are 36 equally
likely ordered pairs. The favorable pairs for sum 7 are (1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1),
14
giving 6 outcomes. Therefore,
6 1
P (X = 7) == .
36 6
(3) Let X be the maximum of the two numbers rolled. What is P (X = 5)? The event
{X = 5} consists of all ordered pairs where the maximum value is exactly 5, namely
(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (1, 5), (2, 5), (3, 5), (4, 5).
9 1
P (X = 5) = = .
36 4
fX (x)
fX (x) = 1/10
x
0 10
15
fY (y)
fY (y) = λe−λy
y
0
Definition 19 (Variance).
X ∈ {0, 1, 2, 3}
X Outcomes P (X = x)
0 TTT 1
8
1 HT T, T HT, T T H 3
8
2 HHT, HT H, T HH 3
8
3 HHH 1
8
3 1 1
P (X ≥ 2) = + =
8 8 2
16
Example 2: Insurance Policies
25% of policies are surrendered before maturity. Five policies are selected. Let X be the
number surrendered.
Solution.
X ∼ Bin(5, 0.25)
5
!
P (X = k) = (0.25)k (0.75)5−k
k
P (X = 0) = (0.75)5 = 0.2373
E(X) = np = 1.25
12.13 Exercises
2. A fair coin is tossed four times. Let X be the number of heads. (a) Find the pmf of X.
(b) Compute P (X ≥ 3). (c) Find E(X) and Var(X).
17
3. In a factory, 10% of bulbs are defective. A sample of 8 bulbs is selected. (a) Identify
the distribution of X, the number of defective bulbs. (b) Compute P (X = 0). (c)
Compute P (X ≥ 2). (d) Find the mean and variance of X.
13.1 Introduction
This chapter develops the foundational ideas of conditional probability, joint probability, and
independence of events. These concepts underpin statistical inference, stochastic modelling,
and multivariate probability structures.
18
13.2 Conditional Probability
13.3 Definition
Let A and B be two events in a sample space Ω with Pr(B) > 0. The conditional
probability of A given B is defined as
Pr(A ∩ B)
Pr(A | B) = .
Pr(B)
This measures the probability that A occurs under the information that B has already
occurred.
13.4 Interpretation
• The sample space is restricted to B.
A B
A∩B
13.7 Definition
For two events A and B, the joint probability is
Pr(A ∩ B),
19
13.8 Joint Probability Table
For discrete events A and B:
B Bc Total
A Pr(A ∩ B) Pr(A ∩ B c ) Pr(A)
Ac Pr(Ac ∩ B) Pr(Ac ∩ B c ) Pr(Ac )
Total Pr(B) Pr(B c ) 1
Similarly:
Pr(A ∩ B) = Pr(B | A) Pr(A).
Then:
5 4
Pr(A1 ) = , Pr(A2 | A1 ) = .
8 7
Thus:
5 4 20 5
Pr(A1 ∩ A2 ) = Pr(A1 ) Pr(A2 | A1 ) = · = = .
8 7 56 14
13.12 Definition
Events A and B are independent if
Equivalently:
Pr(A | B) = Pr(A) and Pr(B | A) = Pr(B).
20
13.13 Example
Suppose a fair coin is tossed twice. Let
Then:
1 1
Pr(A) = Pr(B) = , Pr(A ∩ B) = = Pr(A) Pr(B).
2 4
Thus A and B are independent.
13.14 Exercises
Exercise 1
A survey shows that:
Compute:
1. Pr(A | B)
2. Pr(B | A)
Solution
0.3 0.3
Pr(A | B) = = 0.6, Pr(B | A) = = 0.5.
0.5 0.6
Since:
Pr(A) Pr(B) = 0.6 × 0.5 = 0.3 = Pr(A ∩ B),
Exercise 2
A machine produces items of which 4% are defective. If two items are selected at random
with replacement, find the probability that:
21
Solution
Let D denote a defective item.
Pr(D) = 0.04.
Conclusion Conditional and joint probabilities form the backbone of probabilistic reasoning.
They enable the modelling of dependence, updating of beliefs, and construction of multivariate
probability structures essential in statistics, demography, and stochastic modelling.
14.1 Introduction
This chapter introduces three fundamental discrete probability distributions: the Bernoulli,
Binomial, and Poisson distributions. These distributions arise naturally in experiments
involving dichotomous outcomes, repeated independent trials, and counts of rare events in
time or space.
22
The pmf is:
X=1 X=0
14.8 Definition
Repeating a Bernoulli trial n times yields a Binomial random variable:
“There are two possible outcomes for each trial... The probability of success
remains the same... The trials are independent.”
23
14.10 Expectation and Variance
E(X) = np, Var(X) = np(1 − p).
Start
S F
Given n = 5, p = 0.4:
5
!
P (X = 3) = (0.4)3 (0.6)2 = 0.23.
3
Probability of passing (X ≥ 3):
3. P (X ≥ 1) = 1 − P (X = 0) = 1 − (0.8)10 .
24
14.14 Poisson Distribution
14.16 Definition
A random variable X has a Poisson distribution with parameter λ > 0 if:
λx e−λ
P (X = x) = , x = 0, 1, 2, . . .
x!
14.17 Properties
E(X) = λ, Var(X) = λ.
X ∼ Poisson(λt).
25
15.1 Example 5.4(a): Typographical Errors
The slides state:
P (X = 0) = e−1.5 = 0.2231.
Thus:
5
6x e−6
P (X = 0) = e−6 , P (X ≤ 5) =
X
.
x=0 x!
15.4 Exercises
1. A machine produces items with defect rate p = 0.03. Find P (X = 0), P (X ≥ 2) for
n = 20.
16 Solutions
1. X ∼ Bin(20, 0.03); compute using pmf.
23 e−2
2. X ∼ Poisson(2); P (X = 3) = 3!
.
26
16.1 Exam-Ready Question Bank
1. Prove that the Binomial pmf sums to 1.
2. Show that the Poisson distribution is the limit of the Binomial distribution as n → ∞,
p → 0, np = λ.
4. A call centre receives calls at rate λ = 12 per hour. Find the probability of at least 15
calls in 2 hours.
References
Ama, N. O., Mokgatlhe, L. L., Ramanathan, T. V., and Sediakgotla, K. (2008). Introduction
to Statistics. Zebra Publishing, Windhoek, Namibia.
27