Week 03 Random - Variables
Week 03 Random - Variables
Week – 3
MKT3802 Statistical and Experimental Methods for Engineers
Definition
if E is and experiment having sample space S, and X is a function that
assigns a real number X(e) to every outcome e ∈ S, then X(e) is called
a random variable.
Definition
If a sample space contains a finite number of possibilities or an
unending sequence with as many elements as there are whole numbers,
it is called a discrete sample space (Range space).
Definition
If a sample space contains an infinite number of possibilities equal to
the number of points on a line segment, it is called a continuous sample
space (Range space).
Example
Three coin tossed three times and we are interested in number of heads
showing. Write sample space and range space.
Definition
If S is the sample space of an experiment E and a random variable X
with the range space RX is defined on S, and furthermore is event A is
an event in S while event B is an event in Rx then A and B are
equivalent events if
A = {e ∈ S : X(e) ∈ B} (1)
Definition
If A is an event in the sample space and B is an event in the range
space Rx of the random variable X, then we define the probability of B
as
Px (B) = P (A) where A = {e ∈ S : X(e) ∈ B} (2)
Example
Consider tossing of two fair dice. Suppose we define a random variable
Y as the sum of the "up" faces. Write the events in S and in Rx and
the corresponded probabilities.
Example
Suppose that the number of working days in a year is 250 and the
records of the employees are marked for each day they are absent from
work. An experiment consists of randomly selecting a record to observe
the days marked absent. Define random variable.
Definition
If X is a discrete random variable, we associate a number
px (xi ) = Px (X = xi ) with each come xi in Rx for i = 1, 2, ..., n, ...
where the numbers px (xi ) satisfy the following:
1 px (xi ) ≥ 0 for all i
P∞
i=1 px (xi ) =1
2
Note that
px (xi ) = Fx (xi ) − Fx (xi−1 ) (4)
and X
Fx (xi ) = Px (X ≤ xi ) = px (x) (5)
x≤xi
px is called as:
probability function or
probability mass function or
probability law
Example
Suppose that you have following experiment: "Toss a true coin three
times and observe the sequence of heats and tails". If you are
interested in the number of heads find
i Sample space, S
ii Range space, Rx
iii probability distribution of random variable X: "the number of
heads"
Example
A shipment of 20 similar laptop computers to a retail outlet contains 3
that are defective. If a school makes a random purchase of 2 of these
computers, find the probability distribution for the number of
defectives.
d
fx (x) = Fx (x) (8)
dx
and it follows that cumulative distribution function
Zx
Fx (x) = fx (t) dt (9)
−∞
Zb
P {e ∈ S : a ≤ X(e) ≤ b} = Px (a ≤ X ≤ b) = fx (x) dx (10)
a
Example
A random variable X has the triangular probability density function
given below.
fx (x) = x 0≤x<1
=2−x 1≤x<2
=0 otherwise
a Verify that f (x) is a probability density function.
b Calculate following probabilities
1
i Px −1 < X <2
3
ii Px X < 2
iii Px (X ≤ 3)
iv Px (X ≥ 2.5)
v Px 14 < X < 23
Questions?