Random Variables
Random Variables
If we consider an experiment of tossing two coins, we get the following sample points or
Outcomes.
HH HT TH TT
Now, if we are interested in the number of heads that appear, we can always associate a
numerical value to each sample point 2, 1, 1 and 0. These numerical values are random
quantities that are determined by the outcomeof the experiment. Thus, each outcome of
arandom experiment can be expressed by a realnumber. The numerical value associated
with the outcome of a random experiment is called a random variable. In the above
example, if X represents the number of heads then, we can see that it is a random
variables defined on the sample space S given as,
S= {HH, HT, TH, TT}
n simple words,a random variable is a functionthat associates a real number with each element
tne sample space. Also, we can see that, here, X assumes values 2, 1, l and 0 with some
specific probability.
For e-g P(X =2) = P(HH) =l/4
Probability
76
measure andX is a real-valued function defincd over th
space vitha probability
fSis asanple random
variables.
clements of S, then
X is called a
function also. IfE is a random experiment and S
random variable
as a
We can define a X(s), where s e Sis called a random variabls
associated it, a function
with
sample space or stochastic variate also
variate
called a chance
is sometimes
Arandom variable letters and their
random variables are denoted by capital
to denote a value
valuesh,
It is to be notedthat For example, we will use x
case letter.
the corresponding
lower that it is the set of elements
mentioned earlier P(X =2) means
random variable X. As X takes on the value 2.
random variable
which the
the sample space for
consider, may either be adisCTete sample space or a contiy
The sample space that we number of possibilities or an
contains a finite unendi
sample space. If a sample space called a dio
elements as there are whole numbers, then it is
sequence with as many numbera
On the other hand, if a sample space contains an infinite
sample space.
possibilities equal to the number of points on a
line segment, then, it is called a continuo
sample space.
variables can be classified as discre.
Depending on the type of sample space, the random
variable is called a discrete randor
or continuous random variables. Thus, a random
ofX. h
variahle if, it assumes only a finite number or countably infinite number of values
other words,it is a real valued function defined on a discrete sample space. A randon
variable is termed as a continuous random variable if it assumes any value in some interval a
intervals.
|2. f)=l
(ILLUSTRATIVE EXAMPLEs)
Illustration l:A shipment of 8 similar fridges to a retailer contains 3 that are
a hotel makes a random purchase of 2 of these fridges, find the defective. If
probability distribution for
the number of defectives.
Solution :IfX is a random variable whose values xare the possible
number of defectives
purchased by the hotel. Then, x can have any of the values 0, I and 2.
Obviously,
10
f(0) =P(X =0) = 28
15
f() = P(X =I) = 28
3
f (2) = P(X =2) = 28
10 15
P(X = r) 28 28 28
78
Probabl Rar
Whstration 2: if d coin ix tosxsedfo times, fnd the probability distrihution for gett
The
heads.
gettinga head or a tail is equal and
Selvtien As we know the probability of 2.
PH-P-; 3
the number of heads then
Thus, if acoin tossed twice. and Xdenotes
f(0) =P(X =0) =
1
f) =P(X=)=;
f(2) = P(X=2) =4
Thus,the probabilitydistribution of X is given as follows :
X=
P(X = r) 2
THEOREMS
Theorem 1: The range of a random variable X consists of the values
bil
4< < 3 <.... n, then
le.
F(«) - F(x) fu)
80 Probabilh
Thus, given the distribution function of discrete random variable, We can
compute
probability mass function.
Illustration 3: Find the distribution function for the following probabiltity distributio,
3
X* 2
6 4
4
P(X = *) 16 16 16
16 16
6 4
4
Solution :We are given f0) -f0
16 =s2)=G)16
It immediately follows that
F(O) =f(0) =
5
F() =f0) +f) =16
F(2) =f0) +f) +f2) =16
15
F(3) =f0) +f) +f2) +f3) = 16
but
PN2) =P(X =-2)+ P(X=-l)+P(X =0) +P(X - )
-0.1+*+0.2+3k+4k +0.3
17
30
(i) Asample of 4items fromn a lot of 10 items can be drawn inways which are
3 equally likely. The number of ways in which out of 3,r defectives can be chosen and
0.3 out of the remaining7 items, 4-x non-defectives can be chosen
immediately follows that
P(X =A
Thus,
2
-
P(X = )
30
82
PX 2)=2 10 30 6
PO <X<2) =; distribution
function can be presented
cumulative
function andthe by two methods
probability mass can be represented
The function
graphically also. The
probability mass
and the other a bar chart. If we
have the following
probability histogram
being the
probability distributions
3 4
2
X =x 4
4 6
16 16
PX =) 16 16
16
shown in Fig. 2.l and Fip
chart can be drawn as
then, the probability histogram and bar
2.2 respectively.
f(X)
6/16
4/16 4
I/16
X
2 3
ig 2.1
f(X)
6/16 4
4/16
I/16
(
3 4
Fig. 2.2
Variables and Mathematical Expectation
Random
83
a
prbabilhty
histoçram, the hcight of cach rretangle equals the prohability that
In casc of variable takes on the value that correspnds to the midpoint of its base. In
random
the
of har chart
also we have the same thing except that there is no needto have a
pontinuous horizontal scale
3/44
i/24
|/44
X
2 3 4
Fig
Fig. 2.4
Fig. 2.5
PasXsb) =|f) àr
with a<h
for anyreal constants a and b
lisof importance to note that f (e), the value of the probability density of Xat cdoes not
dive P(X =c) as in the discrete case. In continuous random variables, probabilities are alvays
Asociated with intervals and P(X =c) = 0. As a result, the value of a probability density
function can be changed for some of the values of a random variable without changing
the probabilities.
Hence, if Xis acontinuous random variable and a and bare real constants with a b, then
PasX<b)= P(asX <b) =Pla< Xsb)
= F(b)- F(a)
Afunction f () can be called as a probability density of a continuous random variable
Xif itsvalues satisfy the following conditions :
1. fr) 20for
2.
f(X)
Fig 2.11
|0 elsewhere
=k lim - k=3
H e nw eh a v e ,
f()=-2<r<2
=0 otherwise
values of
Obtatn the
(ii) P(|X|> 1) and (ii) P[(2X +3) > 5].
(6) P(X <l)
Solution : (i)
-2
-1-2 4 2
-6-2x. -Isrsl
"0-t. 1srs3
where the variable Xis in the range (-3, 3)
Solution : Here,
1 3
3
-3 -3
Probabih
3
2srs4
-+21)
=0
having this density will fall in the
interi
probability that a variate
Also obtain the [C.CS.U.
2sXs3.
Solution : Here,
2 4
function.
Solution :We see that for all points xin -oo Sx < oo, f(x) 20
and
Also obtain PO
< si) {C.C.S.U. 2012, 05]
Solwtion : Given
f(*)=-l<r<2
=0, elsewhere
2
2
=0+ + 0
function.
Also,
0
llustration 13: Is the following function f (*) a density function?
s/2
f(u) =I/2 l<rs2
Solution: As we know.
Here we see,
4 2 4
As both the conditions are satisficd, we can say that f(x) is ap.d.f.
AM-f:fima
Harmoni mean: 1The Harmnik mean His given b
-J«-meany f)dt
6. , (th moment about the point x = A)
M)-1
9.
uariles: eisst yuatik (2, san l v siwad ty Molving
Probability
92
The cumulative distribution F(r) of continuous random variable X with density f(r) is
0 X
Fig. 2.12
0st<l/2
f)=0 I<0
=2x 0sr<l/2
=6.r , 1/2sr<l
=0
-fod"jvda fe-na
0<r<l
Thus, we have F(r) =
|2r-4-1 lkrs2
x22