Probability Mass Function & Density Function
Probability Mass Function & Density Function
Function
By C K Nagpal
Types of Random Variables
Discrete Random Variable
A random variable that takes finite number of values or
countable infinite number of possible values. For
example, random variable associated with events in the
toss of a coin or throw of dice, number of cars sold in a
day, number of persons visiting a cinema hall.
Continuous Random Variable
A random variable that takes infinite or non countable
number of values. For example, average score of a
subject in a class, a real number between 0 and 1.
Weight of a rice packet.
Discrete Probability Distribution
Probability Distribution- A Probability
distribution for a random variable
specifies how the probabilities are
distributed over a random variable.
Given a random variable x, the
probability distribution is defined by a
probability function P(x) that provides
the value of probability for each value
of the random variable. Let there be a
car selling showroom, with sales
pattern for last 200 days as shown the
Table. The probability distribution for
car sales is shown in the last column.
Mean or Expected Value
If an experiment is repeated
for a long period of time then
the average of the outcome is
most likely to approach a long
term expected or mean value.
The mean or expected value
of a discrete distribution is
given by the equation:
The expected value in this
case is 1.88. The expected
value is represented by E(x)
or μ.
Probability Mass Function (PMF)
A PMF is a probability function which specifies the probability that any single
value of the discrete random variable will occur.
f(x)=P(X=x)
Here X is the set of all possible values.
x is a particular value of X.
P is the probability function.
f is the probability mass function.
or P(x;k,p)=x-1Ck-1pk(1-p)x-k x=k,k+1,k+2,…….
=0 otherwise
(Here both x and k are integers and p lies between 0 and 1)
Above equation defines the PMF for NBD.
Mean for NBD=k/p
k (1 p )
p2
Variance=
Q.1 Given the success probability p=0.2 for an
Bernoullian trial find the expected number of
trials needed for 2 successes.
k
Mean for NBD is:
p
=0 otherwise
Mean=(b+a)/2
(b a ) 2
12
Variance=
Exponential Distribution
A continuous random variable X is
supposed to have a exponential
distribution with parameter λ if its
probability distribution function is
defined by
Mean= 1/ λ
Variance=