For a discrete random variable taking nonnegative integer values, its probability generating function is
It is defined at least for . The usual probability generating function is intended for nonnegative integer-valued random variables; a general discrete real-valued random variable need not have this form. The coefficient of recovers .
For the binomial distribution, the binomial theorem gives
Differentiation of the probability generating function recovers the first expected value and second factorial moment:
Since , the variance is
Thus
The formulas also hold for and the degenerate choices , with derivatives read directly from the resulting polynomial.
The conditional probability rescales the probability of the part of lying in by the probability of :
The denominator makes itself have conditional probability one.
The events and are disjoint and their union is . Additivity of probability gives
Both conditioning events have positive probability because . Apply the definition of conditional probability to each term to obtain the law of total probability:
Let mean the added ball was red, and mean the first draw was red. Their relevant probabilities are , , and . The law of total probability gives .
Given the observed red draw, the remaining ball is red precisely when occurred. Bayes' theorem therefore gives
The observation increases the weight of the two-red-ball box, because that box is more likely to yield a red first draw.
Let count the red balls among the added balls. By independence of random variables, has a binomial distribution with parameters . The total red count is , and the box has balls. Conditional on , sampling without replacement gives
where denote red first and second draws. Averaging these conditional probabilities and taking their ratio gives
The binomial distribution moments give and . Consequently
Therefore the red-ball prediction with one certain red ball is
It reduces to at and approaches as the number of randomly coloured extra balls grows. Taking an unweighted average of the remaining red fractions would miss the change in weights caused by taking a conditional probability given the first red draw.

Articles by others on the same topic (0)

There are currently no matching articles.