Professional Documents
Culture Documents
sanizah@tmsk.uitm.edu.my
2
SUBTOPICS
Concept of a Random Variable
Definition
Types of Random Variable
Discrete Probability Distribution
Probability function (Probability mass function)
Distribution function (Cumulative distribution function)
Mathematical expectation
Expected value/mean
Variance
Special Discrete Probability Distribution
Uniform Distribution
Binomial Distribution
Poisson Distribution
Poisson Approximation to the Binomial Distribution
RANDOM VARIABLE
3
Definition :
A random variable (r.v.) is a function or rule that assigns real-valued
numbers to each possible outcome of a random experiment.
Basically, it is just a symbol that represents the outcome of an
experiment.
Notation:
The name of the r. v. will be denoted by uppercase letters,
such as X or Y.
The observed value of the r.v. will be denoted by lowercase letters,
such as x or y.
4 TYPES OF RANDOM VARIABLES
Discrete Continuous
09
DISCRETE PROBABILITY
DISTRIBUTION FOR
ONE RANDOM VARIABLE
9 Discrete random variable
Example 1 Example 2
Experiment: Two marbles are Experiment: Toss a coin three
drawn in succession without times
replacement from an urn Outcome: H, T
containing 3 red and 2 blue
marbles. S={HHH, HHT, HTH, HTT, THH,
THT, TTH, TTT}
Outcome: R, B
X: number of heads
Sample Space: S={RR, RB, BR, BB}
x = 0, 1, 2, 3
X: number of red marbles
x = 0, 1, 2
10 Definition: probability distribution of a
discrete random variable
A table, formula and histogram are used to list the probabilities of each
value of a r.v. X.
Recall Example 1
11
Let X be the discrete variable ‘the number of red marbles obtained
when 2 marbles are selected at random’ from an urn containing 3 red
and 2 blue marbles. Show the probability distribution in a table.
X : number of red marbles
x = 0, 1, 2
Sample space x Probability
RR
RB
BR
BB
X : number of red marbles
12 x = 0, 1, 2
Sample space x Probability
RR 2 3/10
RB 1 3/10
BR 1 3/10
BB 0 1/10
1. Table x 1 2 3 4 5 6
2. Formula
f ( x) = P( X = x ) =
1
for x = 1,2,...,6
6
3. Graph f(x)
EXERCISE 2
17 1) X is a random variable with a probability distribution function
0.1 , x = 2, 4, 6, 8
P( X = x) = 0.2 , x = 1, 3, 5
0 , otherwise
a) Show that X is a discrete random variable.
b) Find
i) P(X = 4)
ii) P(X < 4)
iii) P(3 ≤ X < 6)
------------------------------------------------------------------------------
2) Find the value m if the probability distribution of a discrete
random variable Y is given by
P(Y = y) = m( y − 2) 2 , for y = 3, 5, 7
THE CUMULATIVE DISTRIBUTION
FUNCTION
FOR
DISCRETE RANDOM VARIABLE
Cumulative distribution function for a discrete
19 random variable
The cumulative distribution function (cdf) is a function which
describes the probability that a r. v. does not exceed a value.
F (x ) = P( X x ) = f (t )
tx
1 2 3 4 5 6
4
Example 4
22
f ( x) = x
, for x = 0,1, 2, 3, 4
Given the probability function
16
(a) Find the cumulative distribution function of the r.v. X.
(b) Find f(2).
Solution:
(a) Using F (x ) = P ( X x ) = f (t )
tx
F(0) = f(0) = 1/16
F(1) = f(0) + f(1) = 1/16 + 4/16 = 5/16
F(2) = f(0) + f(1) + f(2) = 1/16 + 4/16 + 6/16 = 11/16 0, x0
F(3) = f(0) + f(1) + f(2) + f(3) = 15/16 1 , 0 x 1
F(4) = f(0) + f(1) + f(2) + f(3) + f(4) = 1 16
165 , 1 x 2
F ( x) = 11
(b) f(2)= F(2) – F(1) =11/16 – 5/16 16 , 2 x3
=6/16 15 , 3 x 4
16
= 3/8 1 x4
Graph for probability Graph for discrete cumulative
23 distribution distribution function
(Bar chart/Probability
histogram)
16/16=1
15/16
11/16
5/16
1/16
0, x0
1 , 0 x 1
16
165 , 1 x 2
F ( x) = 11
16 , 2 x3
15 , 3 x 4
16
1 x4
24 EXERCISE 3
Let X be the discrete random variable with the following
probability distribution:
X=x 1 2 3 4 Total
P(X = x) 2/9 3/9 3/9 1/9 1