Lec-6 Random Variable 1D
Lec-6 Random Variable 1D
(15B11MA301)
Lecture-6
(Course content covered: One dimensional discrete random variable)
Department of Mathematics
Jaypee Institute of Information Technology, Noida
Random Variable
• A random variable X is a function that assigns a real number to each
outcome of the sample space S, i.e., X: S→R is a mapping from the
sample space S to the set of real numbers R. Obviously, a random
variable is a deterministic function.
• The sample space S is the domain of the random variable and the set of
all values taken on by the random variable is the range of the random
variable X.
• A random variable is usually denoted by an uppercase letter such as X
and the corresponding lowercase letter, such as x, denotes a possible
value of the random variable X.
• A random variable may assumes values from a countable or
uncountable set.
• If only one characteristics is considered corresponding to the sample
space of a random experiment, then the random variable is called one
dimensional random variable.
2
Random Variable
• More than one characteristics may be considered corresponding to the
sample space of a random experiment, e.g., suppose that S consists of a
large group of students of a college. Let the experiment consist of
choosing a student at random. Let X denotes the weight of the student
and Y denotes the students' height. Then (X, Y) is a two dimensional
random variable. The same idea may be extended further.
Examples
(i) The “number of heads obtained” in an experiment of tossing three
unbiased coins simultaneously, so the random variable X can take
values 0, 1, 2 and 3, i.e.,
Domain of X= S ={TTT, TTH,THT, HTT,HHT,HTH,THH,HHH},
and
Range of X={0, 1, 2, 3}
(i) The ‘temperature gained’ by a fan after one hour of operation.
3
Discrete Random Variable
• A random variable which can assume some specific values is called a
discrete random variable.
• The main characteristic of a discrete random variable is that the set of
possible values in the range can all be listed and the list may be a finite
list or a countably infinite list.
Examples
• Number of heads obtained when 10 coins are tossed.
• Number of phone calls received, per day at a telephone booth,
• number of sixes obtained when a pair of dice are thrown.
• Number of spade cards when 4 cards are chosen from a well shuffled
pack of 52 playing cards.
• The number of odd numbers selected out of the set of positive
integers.
4
Continuous Random Variable
• A random variable X which can take any value in an interval of real
numbers is said to be a continuous random variable.
• The range of X can take infinitely many real values within one or
more intervals of real numbers.
• The set of all possible values in the range cannot be listed in case
of a continuous variable as the list is uncountably infinite.
Examples
• The duration of a phone call received.
• The time to failure of a machine.
• The temperature gained by an electric motor after one hour of
operation.
• The amount of rainfall in a day.
5
Probability Mass Function
Let a discrete random variable X takes the values x1, x2, x3, . . ., xn,
then the probability function or the probability mass function (PMF) of
X is denoted by
f(xi) = P(X = xi) = pi ; for i = 2, 3, . . .,n,
i.e.,.
X : x1 x2 x3 x4 . . . xn
P( X = xi ) : p1 p2 p3 p4 . . . p n
such that
(i ) P( X = xi ) 0;
(ii ) P( X = x ) = p
xi
i 1 + p2 + p3 + p4 + . . . + pn = 1.
6
Probability Distribution
If pi represents the probability corresponding to X= xi , for i=1,
2, 3,…,n; then the collection of pairs (xi , pi) is called the
probability distribution of the discrete random variable X.
(X=xi) : 0 1 2
7
Example. Let X represents the number of heads when three fair
coins are tossed. Find
(a) the probability distribution of the number of heads,
(b) P(0< X <3), (c) P(X >1), (d) P(X < 2).
88 Sol.: S = {TTT, TTH,THT, HTT,HHT,HTH,THH,HHH}
(a) The probability distribution is as follows:
X (Number of Heads): 0 1 2 3
Probability: 1/8 3/8 3/8 1/8
9
Example. The probability mass function of a random variable is as
follows:
X 1 2 3 4 5 6
P k 2k/3 3k 1/3 k/3 1/6
Solution:
(a) Since k + (2k/3) + 3k + (1/3) + (k/3) + (1/6) =1, so
k =1/10 =0.1,
(b) F(4) = P(X ≤ 4) = F(1)+ F(2)+ F(3)+F(4)= 0.8,
(c) F(6) = P(X ≤ 6)= F(1)+ F(2)+ F(3)+F(4) + F(5)+F(6)=1,
(d) P(X = 3) = 3k = 0.3, or P(X = 3) = F(3)+F(2)=0.3.
10
Practice Questions
1. The probability mass function of a random variable X is as follows:
X 1 2 3 4 5 6
P a a/2 a a/3 2a/3 a/2