Class 4
Class 4
Class 4
Probability
and Statistics
Lecture-4
Course Teacher: Dr. Manas Ranjan Tripathy
Department of Mathematics
National Institute of Techonology, Rourkela
. . . . . . . . . . . . . . . . . . . .
1/9
Introduction to
Probability
and Statistics
. . . . . . . . . . . . . . . . . . . .
2/9
Introduction to
Probability
and Statistics
X −1 (−∞, x] = ∅, if x < 0,
= {T }, if 0 ≤ x < 1,
= {T , H}, if x ≥ 1.
−1
In all the cases X (−∞, x] is an event. Hence X is a random vari-
able.
. . . . . . . . . . . . . . . . . . . .
3/9
Introduction to
Probability (ii): Suppose we throw a die once. S = {1, 2, 3, 4, 5, 6}. Define X as
and Statistics
the number shows up when we throw. That is X (1) = 1, X (2) = 2,
X (3) = 3, X (4) = 4, X (5) = 5, X (6) = 6. To check whether X is a
random variable, observe that,
X −1 (−∞, x] = ∅, if x < 1,
= {1}, if 1 ≤ x < 2,
= {1, 2}, if 2 ≤ x < 3
= {1, 2, 3} if 3 ≤ x < 4
= {1, 2, 3, 4} if 4 ≤ x < 5
= {1, 2, 3, 4, 5} if 5 ≤ x < 6
= {1, 2, 3, 4, 5, 6}, if x ≥ 6.
. . . . . . . . . . . . . . . . . . . .
4/9
Introduction to Distribution Function or Cumulative Distribution Function (CDF): A
Probability
and Statistics function F (x) which is defined in (−∞, ∞) such that it is monotoni-
cally non-decreasing, right continuous and F (−∞) = 0, F (∞) = 1.
The CDF of a random variable X is defined as F (x) = P(X ≤ x), we
read it as the probability that the random variable X will not exceed
x. Here x ∈ R.
(i) The probability that the random variable X will be in the interval
a < X ≤ b is computed as P(a < X ≤ b) = F (b) − F (a). The
interval (−∞, b] is the disjoint union of (−∞, a] and (a, b]. Hence
F (b) = P(X ≤ a) + P(a < X ≤ b).
Types of random variables: (i) Discrete type, (ii) Continuous type.
Discrete Type RV: A random variable X is said to be discrete if X
assumes only finitely or countable number of values, say x1 , x2 , . . . ,
called the possible values of X with probabilities p1 = P(X = x1 ),
p2 = P(X = x2 ), . . . whereas P(X ∈ I) ∑ = 0 for ∑any interval I that
does not contain any xi . Here pi > 0 and i pi = i P(X = xi ) = 1
and these pi s are known as the probability mass function (pmf) of X .
The CDF of a discrete type random variable X is obtained as
∑
F (x) = P(X = xi ).
xi ≤x
∑
Moreover
∑ P(a < X ≤ b) = a<x≤b P(X = x), P(a < X < b) =
a<x<b P(X = x).
. . . . . . . . . . . . . . . . . . . .
5/9
Introduction to Examples of Discrete Type RV: (i) If we toss a coin once, then S =
Probability
and Statistics {H, T }. Let X be the number of tails. Then X (H) = 0 = x1 , X (T ) =
1 = x2 . Further p1 = P(X (H) = 0), p2 = P(X (T ) = 1) is the
probability mass function of X . Here we have two points. Also we
have p1 + p2 = 1. If the coin is fair we can take p1 = p2 = 1/2. (ii)
Tossing of a die, X is the number that shows up. (iii) Suppose we
toss two coins simultaneously, X is the sum of head and tail. (iv)
Suppose we throw two fair die simultaneously, X be the sum of two
numbers that shows up.
Continuous Type RV: A random variable X and its distribution are
called continuous if if its distribution function F (x) can be obtained
by an integral, ∫ x
F (x) = f (v )dv ,
−∞
here f (x) > 0 and is known as the probability density function (pdf)
of X , and ∫ ∞
f (x)dx = 1.
−∞
Now differentiating this F (x) at the point of continuity, we have
F ′ (x) = f (x).
Moreover, we have P(a < X < b) = P(a ≤ X ≤ b) = P(a ≤ X <
∫b
b) = P(a < X ≤ b) = a f (x)dx.
. . . . . . . . . . . . . . . . . . . .
6/9
Introduction to
Probability
and Statistics
Examples of Continuous Type RV: (i) Let X have the density function
f (x) = 0.75(1 − x 2 ), if −1 ≤ x ≤ 1 and zero otherwise. Find
the distribution function. Find the probabilities P(− 12 ≤ X ≤ 12 ),
P( 14 ≤ X ≤ 2).
Ans: To obtain the CDF, F (x) we have
F (x) = 0, if x ≤ −1,
∫ x
= 0.75(1 − v 2 )dv
−∞
. . . . . . . . . . . . . . . . . . . .
7/9
Introduction to Some More Examples of Continuous Type RV: (i) The probability
Probability
and Statistics density function of a random variable X is
{ sinx
2
, if 0 ≤ x ≤ π
f (x) =
0, elsewhere.
Check that it is a probability density function and find its cumulative
distribution function. Further find P(1/2 < X < π) and P(X > π/2).
(ii) Let X be a random variable having probability density function
{ x
6
+ k , if 0 ≤ x ≤ 3
f (x) =
0, elsewhere.
Finf the value of k , and obtain the cumulative distribution function
F (x). Further find (a) P(1 < X < 2) (b) P(X > 1.8) (c) P(3/2 <
X < 3).
(iii) A continuous random variable have the probability density func-
tion
{
ke−kx , if x > 0
f (x) =
0, elsewhere.
Find the value of k and the cumulative distribution function. Further
obtain the probabilities (a) P(X > 1/2) (b) P(1 < X < 2) and (c)
P(X < 10).
. . . . . . . . . . . . . . . . . . . .
8/9
Introduction to
Probability
and Statistics
Some More Examples of Discrete Type RV: (i) Let X be a discrete
type random variable having probability mass function given by
x 0 1 2 3 4 5 6 7
P(X = x) 0 k 2k 2k 3k k 2 2k 2 7k 2 + k
Find the value of k and the cumulative distribution function of X .
Further find (a) P(0 < X < 1.5) (b) P(X ≥ 5) (c) P(1.9 ≤ X < 6)
(d) P(X < 8)
(ii) Suppose we toss pair of dice simultaneously. Let X denotes the
minimum of two numbers that appear. Show that X is a random
variable and find its cumulative distribution function F (x). Do the
same problem if X denotes the maximum of two numbers.
(iii) Let X be the sum of two numbers that appear when two dice
are thrown simultaneously. Show that X is random variable and also
obtain its cumulative distribution function.
(iv) Suppose we toss 3 coins simultaneously. Let X denotes the sum
of the number of heads. Find the cumulative distribution function if
X is a random variable.
. . . . . . . . . . . . . . . . . . . .
9/9