Professional Documents
Culture Documents
Random Variable
• Represents a possible numerical value from a random
experiment
• Let X be a discrete random variable and x be one of its
possible values, then the probability of X taking a specific
value x is denoted as 𝑃(𝑋 = 𝑥)
• The probability distribution function of a random variable is
a representation of the probabilities for all the possible
outcomes of the random variable
Probability Distribution
Probability Distribution of X
X 𝑃(𝑋 = 𝑥) 0.60
0.50
1 0.50
0 = 0.25 0.40
Probability
4 0.30 0.25 0.25
2 0.20
1 = 0. 50 0.10
4
0.00
1 0 1 2
2 = 0.25
4 x
Example:
Toss 2 coins. Show the cumulative distribution function.
Let X=no. of heads, 4 possible outcomes: {TT TH HT HH}
X 𝑃(𝑋 = 𝑥) 𝐹 𝑋=𝑥
1
0 = 0.25 0.25
4
2
1 = 0. 50 0.75
4
1
Random Variables - Dr Gan 2 = 0.25 1.00 4
4
DISCRETE PROBABILITY
0.7
0.6 0.7 - 0.2
1 6≤𝑥 0.5 =0.5
X=3.5
pmf, f(x)
0.6 0.5
Probability
0.4
0.2 0.2 Since x is discrete,
0.2 0.1
𝑃 𝑥 ≤ 3.5 = 𝑃 1 + 𝑃 2
0
Random
0 Variables
1 2 3 - Dr4 Gan
5 6 7
x = 0.2 + 0.5
= 0.7
Probability
0.1
the class 0
0 1 2 3 4 5 6 7 8 9 10 11
X, group no.
Bernoulli Distribution
For events with two outcomes: e.g. Yes/No, success/failure
Bernoulli probability 𝑓 1 =𝑃 1 =𝑝
distribution 𝑓 0 = 𝑃 0 = 1−𝑝
p 𝑥=1 𝑓 𝑥 = 𝑃 𝑋 = 0 for all other values of X
f x = 1−𝑝 𝑥=0
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 where 𝑝 is the probability of success.
Cumulative Probability 𝐹(1) = 1
𝐹(0) = 1 − 𝑝
Bernoulli Distribution
1.00
Probability
0.75
0.50
0.25
0.00
0 1
x
10
11
Binomial Distribution
Binomial 𝑓 𝑥 =𝑃 𝑋=𝑥 = 𝐶 𝑝 (1 − 𝑝) , for 𝑥 = 0,1, 2, …n
probability 𝑓(𝑥) = 𝑃 𝑋 = 𝑥 = 0 for all other values of X
distribution
Note: n = no. of t𝑟𝑖𝑎𝑙𝑠 ; 𝑝 = probability of success ; 𝑥 is the no. of ‘successes’
𝑛!
𝐶 =
𝑥! 𝑛 − 𝑥 ! 𝑛! = 𝑛 𝑛 − 1 𝑛 − 2 … x 2 x 1
12
13
14
15
16
17
• Any normal distribution (with any mean and variance combination) can
be transformed into the standardized normal distribution (Z), with
mean 0 and variance 1:
𝑍~𝑁(0, 1)
f(Z)
• Transforming X into Z:
𝑥−𝜇
𝑍= 𝜎=1
𝜎
𝜇=0 Z
18
19
𝑥−𝜇
Example 𝜎
𝑍=
A management consultant found that the amount of time per day spent by
executives performing tasks that could be done equally well by subordinates
followed a normal distribution with a mean of 2.4 hour. It was also found that 10%
of executives spent over 3.5 hours per day on tasks of this type. Find the probability
that an executive spends more than 3 hours per day on tasks of this type.
. .
𝑃 𝑥 > 3.5 = 𝑃 𝑍 > = 0.10 ⇒ 𝑍 = 𝑞𝑛𝑜𝑟𝑚 0.9, 0, 1 = 1.2816
20
1
𝑓𝑜𝑟 𝑎 ≤ 𝑥 ≤ 𝑏
𝑓 𝑥 = 𝑏 − 𝑎
0 𝑓𝑜𝑟 𝑎𝑙𝑙 𝑜𝑡ℎ𝑒𝑟 𝑣𝑎𝑙𝑢𝑒𝑠 𝑜𝑓 𝑥
xmin = a xmax = b x
21
22
Records have shown that the waiting time for a lift in the lobby of a hotel
is uniformly distributed between 0 to 4 min during 12pm-3pm. Determine
the probability that a randomly selected guest will spend at most 2.5
minutes waiting for the lift. What about selecting a guest spending more
than 3 minutes waiting for the lift.
Distribution of Elevator
𝑃 𝑥 ≤ 2.5 = 2.5 − 0 = 0.625 1/2
f(x)
Waiting Times
𝑂𝑟 1/4
1
𝑃 𝑥 ≤ 2.5 = 𝑝𝑢𝑛𝑖𝑓(2.5, 0, 4) 4
0
= 0.625 0 1 2 3 4
x, waiting time (min)
23
- The End -
24