In this post I am going to talk about some of the discrete distributions. In a previous article I have already defined what a distribution is, so here I would be talking about few of them. They are as follows:
Binomial distribution
This distribution is characterized by the random variable (rv) defined by number of successes (heads) which happens with probability where
, say for some fixed number
in
number of tosses, this is given by
. These are simply Bernoulli trials performed
times with the inherent assumption of independence. It is easy to verify that this defines probability mass function (pmf) that is, we have,
, by the application of the binomial theorem. Similarly we can find expectation and variance of this rv. Let me give short details.
, we already know the value of
. Let’s calculate
, here a part of the first term is the expectation for
trials which is
. Now
.
Geometric distribution
For the geometric distribution the random variable is given by the number of tosses required before a success is observed where the probability of success is p, , and this happens with
. Using identities
, for
,
and
, we can find
and
. Suppose a couple decides to have children until a daughter is born, then what is the expected number of the children of this couple? This problem can be solved using the geometric distribution with the probability of
So the expected number of children is
.
Negative binomial distribution
This distribution is basically a generalized version of geometric distribution. In this case we focus on r successes instead of just one. Here the random variable X for the negative binomial distribution with r successes is given by, where
is the probability of success,
. The expectation and variance is given by
and
. You might be wondering why it is called negative. This has to do with rephrasing the problem in terms of ‘failures’ and using negative combinatorial. Well, I know you are confused so let me explain. Let
denote the number of failures before the
th success. In this case we have
, where combinatorial part can also be written as
. So this distribution can be written as
which is similar to binomial distribution that’s why it is called as negative binomial distribution. For more information about negative combinatorial you can search online resources.
Poisson distribution
This distribution is widely used for modeling events happening within some interval, mostly number of events happening within a time interval. For example the probability of the certain number of customers coming in a shop in an hour when we know average in an hour from the historical data, this can be done using Poisson distribution using the random variable X when average is assumed to be defined by,
. As we know that
. Using this we can easily show that the rv
defined this way is clearly a pmf. The expectation and variance for this distribution is same that is,
. The Poisson distribution is used as an approximation to binomial distribution in cases where
is small and
is large, we take
as expectation and for small
, variance in case of binomial distribution is
which becomes approximately
. I can prove that this approximation of binomial is true for every value of success given
is small and as
goes to infinity. But I won’t be going into this detail instead I will be giving an example: Consider a text which contains, on the average, an error every 300 words. A page contains about 400 words. What is the probability that there will be no more than 2 errors in next five pages? We can model this problem using binomial distribution where
,
and number of errors in five pages is given by rv
. We want to calculate
. Now if we calculate Poisson distribution using
, we get
. As you can see the approximation is pretty close and it saves us a lot of cumbersome calculation involved in binomial case especially when there were no modern computational tools. You can note this as a rule of thumb in pragmatic modeling, simple models are preferred over more complex models unless there is a huge advantage in choosing far more complex models.
Leave a comment