Friday, November 22, 2019
Expected Value of a Binomial Distribution
Expected Value of a Binomial Distribution Binomial distributions are an important class of discrete probability distributions. These types of distributions are a series of n independent Bernoulli trials, each of which has a constant probability p of success. As with any probability distribution we would like to know what its mean or center is. For this we are really asking, ââ¬Å"What is the expected value of the binomial distribution?â⬠Intuition vs. Proof If we carefully think about a binomial distribution, it is not difficult to determine that the expected value of this type of probability distribution is np. For a few quick examples of this, consider the following: If we toss 100 coins, and X is the number of heads, the expected value of X is 50 (1/2)100.If we are taking a multiple choice test with 20 questions and each question has four choices (only one of which is correct), then guessing randomly would mean that we would only expect to get (1/4)20 5 questions correct. In both of these examples we see thatà E[ X ] n p. Two cases is hardly enough to reach a conclusion. Although intuition is a good tool to guide us, it is not enough to form a mathematical argument and to prove that something is true. How do we prove definitively that the expected value of this distribution is indeed np? From the definition of expected value and the probability mass function for the binomial distribution of n trials of probability of success p, we can demonstrate that our intuition matches with the fruits of mathematical rigor. We need to be somewhat careful in our work and nimble in our manipulations of the binomial coefficient that is given by the formula for combinations. We begin by using the formula: E[ X ] à £ x0n x C(n, x)px(1-p)n ââ¬â x. Since each term of the summation is multiplied by x, the value of the term corresponding to x 0 will be 0, and so we can actually write: E[ X ] à £ x 1n x C(n , x) p x (1 ââ¬â p) n ââ¬â x . By manipulating the factorials involved in the expression for C(n, x) we can rewrite x C(n, x) n C(n ââ¬â 1, x ââ¬â 1). This is true because: x C(n, x) x n!/(x!(n ââ¬â x)!) n!/((x ââ¬â 1)!(n ââ¬â x)!) n(n ââ¬â 1)!/((x ââ¬â 1)!((n ââ¬â 1) ââ¬â (x ââ¬â 1))!) n C(n ââ¬â 1, x ââ¬â 1). It follows that: E[ X ] à £ x 1n n C(n ââ¬â 1, x ââ¬â 1) p x (1 ââ¬â p) n ââ¬â x . We factor out the n and one p from the above expression: E[ X ] np à £ x 1n C(n ââ¬â 1, x ââ¬â 1) p x ââ¬â 1 (1 ââ¬â p) (n ââ¬â 1) - (x ââ¬â 1) . A change of variables r x ââ¬â 1 gives us: E[ X ] np à £ r 0n ââ¬â 1 C(n ââ¬â 1, r) p r (1 ââ¬â p) (n ââ¬â 1) - r . By the binomial formula, (x y)k à £ r 0 kC( k, r)xr yk ââ¬â r the summation above can be rewritten: E[ X ] (np) (p (1 ââ¬â p))n ââ¬â 1 np. The above argument has taken us a long way. From beginning only with the definition of expected value and probability mass function for a binomial distribution, we have proved that what our intuition told us. The expected value of the binomial distribution B( n, p) is n p.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.