COHS New Probability 23
COHS New Probability 23
By
Wilhemina Adoma Pels
1 / 38
TOOLS FOR COUNTING SAMPLE POINTS
This topic is being generated from word counting. However, not
all about counting our fingers. Its a little more advance.
5 / 38
General Example
Suppose you have three different shirts (red, blue, and green) and
two different pants (black and khaki). If you want to know how
many different outfits you can create by choosing one shirt and
one pair of pants, you can use the counting technique.
6 / 38
TOOLS FOR COUNTING SAMPLE POINTS
7 / 38
Permutation
Permutation is a concept in mathematics that refers to the ar-
rangement or ordering of a set of objects or elements. It’s about
determining how many different ways you can arrange or rear-
range the items in a specific order.
Let’s consider a simple example to understand permutations bet-
ter. Suppose you have three different books on a shelf: Book A,
Book B, and Book C. If you want to know how many different
ways you can arrange these books in a row, we can use permuta-
tions.
To calculate the number of permutations, you multiply
the number of choices for each position. In this case, you
have three choices for the first position (Book A, Book
B, or Book C), two choices for the second position (since
one book has already been placed), and one choice for
the last position. So, you multiply 3 by 2 by 1, which
gives you 6. Therefore, you can arrange the three books
in six different ways.
8 / 38
Permutation
9 / 38
Example
A doctor wants to prescribe a combination of three different med-
ications to a patient, but there are five medications available. The
doctor wants to determine the number of possible combinations
of medications that can be prescribed.
n n!
Pr = , (r < n) (1)
(n − r)!
12 / 38
MULTINOMIAL COEFFICIENTS
Permutation with repetitions
Suppose that in a set of n objects, there are n1 that are similar,
n2 that are similar,· · · , nk that are similar, where
n1 + n2 + · · · + nk = n then the number of permutations (i.e.,
distinguishable permutations) of the n objects is given by the
multinomial coefficient
n n!
=
n1 n2 · · · nk n1 !n2 ! · · · nk !
Example:How many signals, each consisting of 9 flags in a line,
can be made from 4 white flags, 2 blue flags, and 3 yellow flags?
9!
Solution: 4!3!2! = 1260
Circular Permutation
Permutations that occur by arranging objects in a circle are
called circular permutations. It can be shown that the number
of permutations of n distinct objects arranged in a circle is
(n-1)!
13 / 38
Combination
14 / 38
A research team wants to select a group of three patients for a
clinical trial from a pool of ten eligible patients. The team wants
to know the number of different ways they can choose the three
patients for the study.
15 / 38
Combination
Solution:
The
number of ways of selecting 2 Mathematician from 4 is
4 4!
= 2!2! = 6.
2
3
The number of ways of selecting 1 Chemist from 3 is =
1
3!
1!2! = 3.
Using the multiplication theorem with n1 = 6 and n2 = 3, it can
be seen that we can form n1 × n2 = 6 × 3 = 18 committees with
2 Mathematicians and 1 Chemist.
16 / 38
Tutorials
https://bit.ly/3fiFO8m
17 / 38
Random Variable
For example, let’s consider rolling a fair six-sided die. The out-
come of rolling the die is uncertain, as it could land on any of
the six faces. We can define a random variable, let’s call it ”X,”
to represent the number that appears on the top face of the die
after rolling. The possible values of X are 1, 2, 3, 4, 5, and 6.
18 / 38
Random variables
Definition
A random variable is a function that assigns a real number to
each element in the Sample Space of a random experiment.
19 / 38
Random variables
DISCRETE RANDOM VARIABLES
A random variable (r.v) that can take on at most a countable
number of possible values is said to be discrete. In other words,
a real valued function defined on a discrete sample space is
called a discrete random variable.
PROBABILITY MASS FUNCTION (PMF)
Suppose X is an one-dimensional r.v taking atmost a countably
infinite number of values x1 , x2 , · · · With each possible outcome
xi we associate a number pi , P (X = xi ) = p(xi ) = Pi ,called the
probability of xi . The function p(xi ), i = 1, 2, · · · satisfying the
conditions
p(xi ) ≥ 0 ∀i
P∞
i=1 p(xi ) = 1 is called the probability mass function or
probability function of the r.v X. The collection of pairs
(xi , pi ), i = 1, 2, 3, · · · is called the probability distribution
of the random variable X. Note: The set of values which X
takes is called the spectrum of the r.v
20 / 38
PROBABILITY MASS FUNCTION (PMF)
Note:1.The Mean
P of the random variable
X = E(X) = x xP (x)
2.Variance of the random
Pvariable
2X is
P 2
V ar(x) = x p(x) − xp(x)
21 / 38
Solution: We know that
X
P (X = x) = 1
⇒ 4k = 1
1
∴k=
4
Hence
P (X ≤ 2) = P (X = 1) + P (X = 2)
= k + 2k = 3k
1 3
⇒3× =
4 4
22 / 38
Continuous Random Variable
A continuous random variable is a concept used in statistics and
probability to describe a variable that can take on any value
within a specific range or interval. Unlike discrete random vari-
ables, which can only take on distinct values, continuous random
variables can have an infinite number of possible values within a
given range.
24 / 38
R.V.
Let X be such a random variable. We say that X is a continuous
random variable if there exists a nonnegative function f , defined
for all real x ∈ (−∞, ∞) , having the property that, for any set
B of real numbers
Z
P (X ∈ B) = f (x)dx
B
The function f is called the probability density function of the
random variable X.
PROPERTIES OF PROBABILITY DENSITY FUNCTION
(PDF)
fR (x) ≥ 0, ∀x ∈ R
∞
−∞ f (x)dx = 1
Rb
P (a < X < b) = a f (x)dx
.
28 / 38
R.V
Exercise
29 / 38
Some discrete probability distributions
Bernoulli
A discrete r.v X is said to have a Bernoulli distribution with
parameter p, if its probability mass function is given by
trial
3 The trials are independent; that is the outcome of one trial
Theorem
Suppose X has the Bernoulli distribution with parameter p.
Then
E(X) = p, V ar(X) = pq, where q = 1 − p
Example
A 6 sided fair die is tossed, with each element in the sample
space having a probability of 16 . Find the distribution, the mean
and variance if the value 5 occurs.
1
Solution: Here p = 6 1−x
1x 5
The pmf will be f (x) = px (1 − p)1−x = 6 6
1
E(X) = p = 6
1 5 5
V ar(X) = p(1 − p) = 6 6 = 36
31 / 38
The Binomial distribution
X = 1, 2, 3, · · · , n
X ∼ Binomial(n, p)
32 / 38
The Binomial distribution
The probability distribution of X is given by:
(
n C px q n−x
x
P (X = x) =
0
.
n!
W here n Cx =
x!(n − x)!
We can write the probability distribution of X as a table as fol-
lows.
x P(X=x)
0 n C p0 q n−0 = q n
0
1 n C p1 q n−1
1
2 n C p2 q n−2
2
.. ..
. .
n-1 nC n−1 q 1
n−1 p
n n C pn q 0
n
total 1.00
33 / 38
The Binomial distribution
34 / 38
POISSON DISTRIBUTION
It is a discrete distribution. The Poisson distribution is used
to model a discrete random variable representing the number of
occurrences of some random event in an interval of time or space
(or some volume of matter).
x = 0, 1, 2, 3, · · ·
λx e−λ
P (X = x) =
x!
where e = 2.71828 (the natural number). We write:
X ∼ P oisson(λ)
35 / 38
The Poisson distribution
Mean and Variance of Poisson Distribution If X ∼ P oisson(λ),
then: The mean (average) of X is λ( Expected value).
The variance of X is λ
Example:
Some random quantities that can be modeled by Poisson distri-
bution:
Number of patients in a waiting room in an hour.
Number of incoming telephone calls within a fixed time
interval at certain switchboards.
Number of rats in each house in a particular city.
Note:
λ is the average (mean) of the distribution.
If X = the number of patients seen in the emergency unit
in a day, and if X ∼ P oisson(λ), then:
1 The average (mean) of patients seen every day in the
emergency unit = λ
2 The average (mean) of patients seen every month in the
emergency unit = 30λ
36 / 38
The Poisson distribution
37 / 38
Some continuous probability distributions
THE NORMAL DISTRIBUTION
One of the most important continuous distributions.
Many measurable characteristics are normally or
approximately normal distributed. Examples: Height,
weight,
A random variable X has the normal distribution with mean µ
and variance σ 2 if its pdf is given by
1 n (x − µ)2 o
f (x) = √ exp − , −∞<x<∞
σ 2π 2σ 2