Intro To Discrete Random Variables
Intro To Discrete Random Variables
Pradeep Boggarapu
Department of Mathematics
BITS PILANI K K Birla Goa Campus, Goa
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 1 / 27
Random Variables. Discrete Random Variables
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 2 / 27
Outline
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 3 / 27
Random Variables
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 4 / 27
Examples for RV
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 6 / 27
Probability density function
Remark 0.4.
A real valued function p(x) is a probability mass function
for a discrete random variable if and only if
1 p(x) ≥ 0,
X
2 p(x) = 1.
all x
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 7 / 27
Cumulative distribution function- Discrete
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 8 / 27
Problems
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 9 / 27
Expectation of a random variable
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 10 / 27
Expectation of a random variable
Note that expected value is also known as mean and some times
we use ‘µ’ to denote the expectation or expected value or mean.
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 11 / 27
Problems
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 12 / 27
Problems
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 13 / 27
Problems
Example 13. A man with n keys wants to open his door and tries the
keys independently and at random. Find the mean of the number of
trials required to open the door,
(i) if unsuccessful keys are not eliminated from further selection, and
(ii) if they are
Example 14. A lot of 8 TV sets includes 3 that are defective. If 4 of
the sets are chosen at random for shipment to a hotel, how many
defective sets can they expect?
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 14 / 27
Variance and Standard deviation of random variable
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 15 / 27
Rules for expectations
Theorem 0.8.
Let X and Y be two discrete random variables and c be
any real number.
1 E [c] = c
2 E [cX ] = cE [X ]
3 E [X + Y ] = E [X ] + E [Y ].
Corollary 0.9.
Var [X ] = E [X 2 ] − (E [X ])2 .
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 16 / 27
Independence Variables
Let’s consider two discrete random variables, X and Y . They are said
to be independent if the probability of any particular value taken by X
is not influenced by any value taken by Y , and vice versa.
Mathematically, for independent random variables X and Y :
Example 15. Consider two six-sided dice, and let X be the outcome
of the first die, and Y be the outcome of the second die.The events
of rolling the first die and rolling the second die are independent,
assuming the dice are fair and not biased. Then it can be easily seen
that X and Y are independent random variables
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 17 / 27
Rules for variance
Theorem 0.10.
Let X and Y be two discrete random varibles and c be
any real number.
1 Var [c] = 0
2 Var [cX ] = c 2 Var [X ]
3 Var [X + Y ] = Var [X ] + Var [Y ], provided X and Y
are independent random variables.
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 18 / 27
Problem
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 19 / 27
Moments and moment generating function (mgf)
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 20 / 27
Moments and moment generating function (mgf)
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 21 / 27
Moments and moment generating function (mgf)
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 23 / 27
Properties of mgf
Theorem 1.
Let X be a rv with mgf MX (t). If a and b are any two
real constants, then
1. MX +a (t) = e at MX (t)
2. MbX (t) = MX (bt)
3. The mgf of the sum of a number of independent
random variables is equal to the product of their
respective mgf. i. e.
MX1 +X2 +···+Xn (t) = MX1 (t) · · · MXn (t)
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 24 / 27
Properties of mgf
Theorem 2 (Uniqueness).
The mgf of a distribution, if it exists, uniquelly determine
the distribution. This implies that corresponding to a
given probability distribution, there is only one mgf
(provided it exists) and corresponding to a given mgf,
there is only one probability distribution. Hence
MX (t) = MY (t) imples X and Y are identically
distributed.
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 25 / 27
Properties of Expectation
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 26 / 27
Thank you for your attention
Pradeep Boggarapu (Dept. of Maths) Probability and Statistics January 25, 2024 27 / 27