For a discrete random variable taking nonnegative integer values, its probability generating function isIt 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 givesDifferentiation of the probability generating function recovers the first expected value and second factorial moment:Since , the variance isThusThe 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 givesBoth 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 givesThe 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 giveswhere denote red first and second draws. Averaging these conditional probabilities and taking their ratio givesThe binomial distribution moments give and . ConsequentlyTherefore the red-ball prediction with one certain red ball isIt 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
There are currently no matching articles.