Lecture 06
Lecture 06
Anupama Sharma
Department of Mathematics,
BITS PILANI K K Birla Goa Campus, Goa
Semester I, 2023-24
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Module 2: Discrete Distributions
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Definition: Let X be a random variable with pmf f and expected
value µ. The variance of X , denoted by Var [X ] or 2 , is given by
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Theorem: Computational formula for 2
2
= E [X 2 ] (E [X ])2 .
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Theorem: Computational formula for 2
2
= E [X 2 ] (E [X ])2 .
Proof: By definition,
2
= Var [X ] = E [(X µ)2 ]
2
) = E [(X µ)2 ]
= E [(X 2 2 · µ · X + µ2 )]
= E [X 2 ] 2 · µ · E [X ] + µ2
= E [X 2 ] 2 · µ · µ + µ2 [Since E [X ] = µ]
2 2
= E [X ] µ
2
= E [X ] (E [X ])2
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Rules of Variance:
Let X and Y be random variables and c be any real number. Then,
(i) Var c = 0.
(ii) Var cX = c 2 Var X .
(iii) If X and Y are independent, then
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Rules of Variance:
Let X and Y be random variables and c be any real number. Then,
(i) Var c = 0.
(ii) Var cX = c 2 Var X .
(iii) If X and Y are independent, then
V [aX + b] = a2 V [X ]
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Definition: Let X be a random variable. The k-th ordinary
moment for X is defined as E [X k ] where k is a natural number.
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Definition: Let X be a random variable. The k-th ordinary
moment for X is defined as E [X k ] where k is a natural number.
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
What it means if mgf exists for a r.v. X?
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Theorem: Let mX (t) be the moment generating function for a
random variable X . Then
d k mX (t)
= E [X k ].
dt k t=0
(tX )2 (tX )3
e tX = 1 + tX + + + ···
2! 3!
By taking the expected value of both sides in the above equation,
we get
(tX )2 (tX )3
E [e tX ] = E [1 + tX + + + ···]
2! 3!
t 2 E [X 2 ] t 3 E [X 3 ]
mX (t) = 1 + tE [X ] + + + ···
2! 3!
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Di↵erentiate the above equation w.r.t. t, we get
dmX (t) t 2 E [X 3 ]
= E [X ] + tE [X 2 ] + + ···
dt 2!
Note that, when this derivative is evaluated at t = 0, every term
except the first term becomes 0. Hence,
dmX (t)
= E [X ].
dt t=0
d 2 mX (t)
= E [X 2 ].
dt 2 t=0
dmX (t)
= E [X k ].
dt k t=0
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Theorem: Let X be a random variable with moment generating
function mX (t). For any constants a and b, the moment
generating function of Y = aX + b is
mY (t) = e bt mX (at).
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Uniform random variable
Uniform distribution
– the most fundamental of all is the discrete uniform
distribution.
– symmetric distribution where a finite number of values are
“equally likely” to be observed, i.e. every one of the n events
has equal probability 1/n.
– for example, possible outcomes of rolling a fair die; drawing
a spade, a heart, a club, or a diamond from a deck of card
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Uniform random variable
Uniform distribution
– the most fundamental of all is the discrete uniform
distribution.
– symmetric distribution where a finite number of values are
“equally likely” to be observed, i.e. every one of the n events
has equal probability 1/n.
– for example, possible outcomes of rolling a fair die; drawing
a spade, a heart, a club, or a diamond from a deck of card
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Uniform random variable
n
X
Mean, E [X ] = xf (x) = (n + 1)/2.
x=1
n
X (n + 1)(2n + 1)
We have, E [X 2 ] = x 2 f (x) =
6
x=1
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Bernoulli random variable
Examples
1. Tossing a coin and considering heads as success and tails as
failure.
2. Checking items from a production line: success = not defective,
failure = defective.
3. Phoning a call centre: success = operator free; failure = no
operator free.
4. Simulating the spread of an epidemic: success =disease
transmission; failure = no disease transmission.
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Bernoulli random variable
A r.v. X is said to be a Bernoulli random variable if its probability
mass function is given by
f (1) = P(X = 1) = p
f (0) = P(X = 0) = 1 p.
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Bernoulli random variable
A r.v. X is said to be a Bernoulli random variable if its probability
mass function is given by
f (1) = P(X = 1) = p
f (0) = P(X = 0) = 1 p.
Mean, E [X ] = p,
Variance, V [X ] = p(1 p),
Moment generation function, mx (t) = (1 p) + e t p.
We write
X ⇠ Bern(p).
The number p is called the parameter of the distribution.
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Binomial random variable
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Binomial random variable
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Examples
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Examples
A fair die is rolled ten times, and the number of 6’s is recorded.
Is this a binomial experiment?
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Examples
A fair die is rolled ten times, and the number of 6’s is recorded.
Is this a binomial experiment?
Yes! There are fixed number of trials (ten rolls), each roll is
independent of the others, there are only two outcomes (either
it’s a 6 or it isn’t), and the probability of rolling a 6 is constant.
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Binomial random variable
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Binomial random variable
Example: Five fair coins are tossed. Assuming the outcomes
independent, find the pmf of number of heads obtained.
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Binomial random variable
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa
Binomial random variable
Example: Bits are sent over a communications channel in packets
of 12. If the probability of a bit being corrupted over this channel
is 0.1 and such errors are independent, what is the probability that
no more than 2 bits in a packet are corrupted? If 6 packets are
sent over the channel, what is the probability that at least one
packet will contain 3 or more corrupted bits?
MATH F113 (Probability & Statistics) Anupama Sharma, BITS Pilani, Goa