<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>A Blog on Probability and Statistics</title>
	<atom:link href="http://probabilityandstats.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://probabilityandstats.wordpress.com</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 06:10:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='probabilityandstats.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>A Blog on Probability and Statistics</title>
		<link>http://probabilityandstats.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://probabilityandstats.wordpress.com/osd.xml" title="A Blog on Probability and Statistics" />
	<atom:link rel='hub' href='http://probabilityandstats.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How To Calculate Winning Odds in California Lottery</title>
		<link>http://probabilityandstats.wordpress.com/2012/01/23/how-to-calculate-winning-odds-in-california-lottery/</link>
		<comments>http://probabilityandstats.wordpress.com/2012/01/23/how-to-calculate-winning-odds-in-california-lottery/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 04:35:01 +0000</pubDate>
		<dc:creator>Dan Ma</dc:creator>
				<category><![CDATA[Probability]]></category>
		<category><![CDATA[Hypergeometric distribution]]></category>
		<category><![CDATA[Probability and statistics]]></category>

		<guid isPermaLink="false">http://probabilityandstats.wordpress.com/?p=2875</guid>
		<description><![CDATA[Ever wonder how to calculate winning odds of lottery games? The winning odds of the top prize of Fantasy 5 in California Lottery are 1 in 575,757. The winnings odds of the top prize of SuperLOTTO plus are 1 in &#8230; <a href="http://probabilityandstats.wordpress.com/2012/01/23/how-to-calculate-winning-odds-in-california-lottery/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2875&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever wonder how to calculate winning odds of lottery games? The winning odds of the top prize of <a href="http://www.calottery.com/games/fantasyfive/" target="_blank">Fantasy 5</a> in <a href="http://www.calottery.com/" target="_blank">California Lottery</a> are 1 in 575,757. The winnings odds of the top prize of <a href="http://www.calottery.com/games/megamillions/" target="_blank">SuperLOTTO plus</a> are 1 in 41,416,353. The winnings odds of the top prize of <a href="http://www.calottery.com/games/superlottoplus/" target="_blank">Mega Millions</a> are 1 in 175,711,534. In this post, we show how to calculate the odds for these games in the California Lottery. The calculation is an excellent combinatorial exercise as well as in calculating hypergeometric probability.</p>
<p>All figures and data are obtained from the <a href="http://www.calottery.com/" target="_blank">California Lottery</a>.</p>
<p>____________________________________________________<br />
<em><strong>Fantasy 5</strong></em></p>
<p>The following figures show a playslip and a sample ticket for the game of Fantasy 5.</p>
<p><em><strong>Figure 1</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/f5playslip.gif?w=500" alt="" title="Fantasy 5 Play Slip"   class="alignnone size-full wp-image-178" /></p>
<p><em><strong>Figure 2</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/f5ticketstock.gif?w=500" alt="" title="Fantasy 5 Sample Ticket"   class="alignnone size-full wp-image-180" /></p>
<p>In the game of Fantasy 5, the player chooses 5 numbers from 1 to 39. If all 5 chosen numbers match the 5 winning numbers, the player wins the top prize which starts at $50,000 and can go up to $500,000 or more. The odds of winning the top prize are 1 in 575,757. There are lower tier prizes that are easier to win but with much lower winning amounts. The following figure shows the prize categories and the winning odds of Fantasy 5.</p>
<p><em><strong>Figure 3</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/cal-lotto-fantasy-5.jpg?w=500" alt="" title="Cal Lotto Fantasy 5"   class="alignnone size-full wp-image-192" /></p>
<p><em><strong>All 5 of 5</strong></em><br />
In matching the player&#8217;s chosen numbers with the winning numbers, the order of the numbers do not matter. Thus in the calculation of odds, we use combination rather than permutation. Thus we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%281%29+%5C+%5C+%5C+%5C+%5C+%5Cbinom%7B39%7D%7B5%7D%3D%5Cfrac%7B39%21%7D%7B5%21+%5C+%2839-5%29%21%7D%3D575757&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; &#92;binom{39}{5}=&#92;frac{39!}{5! &#92; (39-5)!}=575757' title='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; &#92;binom{39}{5}=&#92;frac{39!}{5! &#92; (39-5)!}=575757' class='latex' /></p>
<p>Based on <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' />, the odds of matching all 5 winning numbers is 1 in 575,757 (the odds of winning the top prize). </p>
<p><em><strong>Any 4 of 5</strong></em><br />
To match 4 out of 5 winning numbers, 4 of the player&#8217;s chosen numbers are winning numbers and 1 of the player&#8217;s chosen numbers is from the non-winning numbers (34 of them). Thus the probability of matching 4 out of 5 winning numbers is:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282%29+%5C+%5C+%5C+%5C+%5C+%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B4%7D+%5C+%5Cbinom%7B34%7D%7B1%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B39%7D%7B5%7D%7D%3D%5Cfrac%7B5+%5Ctimes+34%7D%7B575757%7D%3D%5Cfrac%7B1%7D%7B3386.8%7D+%5C+%5C+%5Ctext%7B%281+out+of+3%2C387%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (2) &#92; &#92; &#92; &#92; &#92; &#92;frac{&#92;displaystyle &#92;binom{5}{4} &#92; &#92;binom{34}{1}}{&#92;displaystyle &#92;binom{39}{5}}=&#92;frac{5 &#92;times 34}{575757}=&#92;frac{1}{3386.8} &#92; &#92; &#92;text{(1 out of 3,387)}' title='&#92;displaystyle (2) &#92; &#92; &#92; &#92; &#92; &#92;frac{&#92;displaystyle &#92;binom{5}{4} &#92; &#92;binom{34}{1}}{&#92;displaystyle &#92;binom{39}{5}}=&#92;frac{5 &#92;times 34}{575757}=&#92;frac{1}{3386.8} &#92; &#92; &#92;text{(1 out of 3,387)}' class='latex' /></p>
<p><em><strong>Any 3 of 5</strong></em><br />
To find the odds for matching 3 out of 5 winning numbers, we need to find the probability that 3 of the player&#8217;s chosen numbers are from the 5 winning numbers and 2 of the selected numbers are from the 34 non-winning numbers. Thus we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%283%29+%5C+%5C+%5C+%5C+%5C+%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B3%7D+%5C+%5Cbinom%7B34%7D%7B2%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B39%7D%7B5%7D%7D%3D%5Cfrac%7B10+%5Ctimes+561%7D%7B575757%7D%3D%5Cfrac%7B1%7D%7B102.63%7D+%5C+%5C+%5Ctext%7B%281+out+of+103%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (3) &#92; &#92; &#92; &#92; &#92; &#92;frac{&#92;displaystyle &#92;binom{5}{3} &#92; &#92;binom{34}{2}}{&#92;displaystyle &#92;binom{39}{5}}=&#92;frac{10 &#92;times 561}{575757}=&#92;frac{1}{102.63} &#92; &#92; &#92;text{(1 out of 103)}' title='&#92;displaystyle (3) &#92; &#92; &#92; &#92; &#92; &#92;frac{&#92;displaystyle &#92;binom{5}{3} &#92; &#92;binom{34}{2}}{&#92;displaystyle &#92;binom{39}{5}}=&#92;frac{10 &#92;times 561}{575757}=&#92;frac{1}{102.63} &#92; &#92; &#92;text{(1 out of 103)}' class='latex' /></p>
<p><em><strong>Any 2 of 5</strong></em><br />
Similarly, the following shows how to calculate the odds of matching 2 out of 5 winning numbers:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%284%29+%5C+%5C+%5C+%5C+%5C+%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B2%7D+%5C+%5Cbinom%7B34%7D%7B3%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B39%7D%7B5%7D%7D%3D%5Cfrac%7B10+%5Ctimes+5984%7D%7B575757%7D%3D%5Cfrac%7B1%7D%7B9.6216%7D+%5C+%5C+%5Ctext%7B%281+out+of+10%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (4) &#92; &#92; &#92; &#92; &#92; &#92;frac{&#92;displaystyle &#92;binom{5}{2} &#92; &#92;binom{34}{3}}{&#92;displaystyle &#92;binom{39}{5}}=&#92;frac{10 &#92;times 5984}{575757}=&#92;frac{1}{9.6216} &#92; &#92; &#92;text{(1 out of 10)}' title='&#92;displaystyle (4) &#92; &#92; &#92; &#92; &#92; &#92;frac{&#92;displaystyle &#92;binom{5}{2} &#92; &#92;binom{34}{3}}{&#92;displaystyle &#92;binom{39}{5}}=&#92;frac{10 &#92;times 5984}{575757}=&#92;frac{1}{9.6216} &#92; &#92; &#92;text{(1 out of 10)}' class='latex' /></p>
<p>____________________________________________________<br />
<em><strong>SuperLOTTO Plus</strong></em></p>
<p>Here are the pictures of a playslip and a sample ticket of the game of SuperLOTTO Plus.</p>
<p><em><strong>Figure 4</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/slp_playslip.gif?w=500" alt="" title="SuperLotto Playslip"   class="alignnone size-full wp-image-183" /></p>
<p><em><strong>Figure 5</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/slpticket.gif?w=500" alt="" title="SuperLotto Sample Ticket"   class="alignnone size-full wp-image-184" /></p>
<p>Based on the playslip (Figure 4), the player chooses 5 numbers from 1 to 47. The player also chooses an additional number called a Mega number from 1 to 27. To win the top prize, there must be a match between the player&#8217;s 5 selections and the 5 winning numbers as well as a match between the player&#8217;s Mega number and the winning Mega number (All 5 of 5 and Mega in Figure 6 below). </p>
<p><em><strong>Figure 6</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/cal-lotto-superlotto-plus.jpg?w=500" alt="" title="Cal Lotto SuperLOTTO plus"   class="alignnone size-full wp-image-194" /></p>
<p><em><strong>All 5 of 5 and Mega</strong></em><br />
To find the odds of the match of &#8220;All 5 of 5 and Mega&#8221;, the total number of possibilities is obtained by choosing 5 numbers from 27 numbers and choose 1 number from 27 numbers. We have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%285%29+%5C+%5C+%5C+%5C+%5C+%5Cbinom%7B47%7D%7B5%7D+%5Ctimes+%5Cbinom%7B27%7D%7B1%7D%3D41%2C416%2C353&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92; &#92;binom{47}{5} &#92;times &#92;binom{27}{1}=41,416,353' title='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92; &#92;binom{47}{5} &#92;times &#92;binom{27}{1}=41,416,353' class='latex' /></p>
<p>Thus the odds of matching &#8220;All 5 of 5 and Mega&#8221; are 1 in 41,416,353. </p>
<p><em><strong>Any 5 of 5</strong></em><br />
To find the odds of matching &#8220;All 5 of 5&#8243; (i.e. the player&#8217;s 5 selections match the 5 winning numbers but no match with the Mega winning number), we need to choose 5 numbers from the 5 winning numbers, choose 0 numbers from the 42 non-winning numbers, choose 0 numbers from the 1 Mega winning number and choose 1 number from the 26 non-Mega winning numbers. This may seem overly precise, but will make it easier to the subsequent derivations. We have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%286%29+%5C+%5C+%5C+%5C+%5C+++%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B5%7D+%5C+%5Cbinom%7B42%7D%7B0%7D+%5C+%5Cbinom%7B1%7D%7B0%7D+%5C+%5Cbinom%7B26%7D%7B1%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B47%7D%7B5%7D+%5Ctimes+%5Cbinom%7B27%7D%7B1%7D%7D%26%3D%5Cfrac%7B1+%5Ctimes+1+%5Ctimes+1+%5Ctimes+26%7D%7B41416353%7D+%5C%5C%26%3D%5Cfrac%7B1%7D%7B1592936.654%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Ctext%7B1+out+of+1%2C592%2C937%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(6) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{5} &#92; &#92;binom{42}{0} &#92; &#92;binom{1}{0} &#92; &#92;binom{26}{1}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{1 &#92;times 1 &#92;times 1 &#92;times 26}{41416353} &#92;&#92;&amp;=&#92;frac{1}{1592936.654} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 1,592,937}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(6) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{5} &#92; &#92;binom{42}{0} &#92; &#92;binom{1}{0} &#92; &#92;binom{26}{1}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{1 &#92;times 1 &#92;times 1 &#92;times 26}{41416353} &#92;&#92;&amp;=&#92;frac{1}{1592936.654} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 1,592,937}  &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Any 4 of 5 and Mega</strong></em><br />
To calculate the odds for matching &#8220;any 4 of 5 and Mega&#8221;, we need to choose 4 out of 5 winning numbers, choose 1 out of 42 non-winning numbers, choose 1 out of 1 Mega winning number, and choose 0 out of 26 non-winning Mega numbers. We have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%287%29+%5C+%5C+%5C+%5C+%5C+++%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B4%7D+%5C+%5Cbinom%7B42%7D%7B1%7D+%5C+%5Cbinom%7B1%7D%7B1%7D+%5C+%5Cbinom%7B26%7D%7B0%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B47%7D%7B5%7D+%5Ctimes+%5Cbinom%7B27%7D%7B1%7D%7D%26%3D%5Cfrac%7B5+%5Ctimes+42+%5Ctimes+1+%5Ctimes+1%7D%7B41416353%7D+%5C%5C%26%3D%5Cfrac%7B1%7D%7B197220.7286%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Ctext%7B1+out+of+197%2C221%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(7) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{4} &#92; &#92;binom{42}{1} &#92; &#92;binom{1}{1} &#92; &#92;binom{26}{0}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{5 &#92;times 42 &#92;times 1 &#92;times 1}{41416353} &#92;&#92;&amp;=&#92;frac{1}{197220.7286} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 197,221}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(7) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{4} &#92; &#92;binom{42}{1} &#92; &#92;binom{1}{1} &#92; &#92;binom{26}{0}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{5 &#92;times 42 &#92;times 1 &#92;times 1}{41416353} &#92;&#92;&amp;=&#92;frac{1}{197220.7286} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 197,221}  &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Any 4 of 5</strong></em><br />
To calculate the odds for matching &#8220;any 4 of 5&#8243; (no match for Mega number), we need to choose 4 out of 5 winning numbers, choose 1 out of 42 non-winning numbers, choose 0 out of 1 Mega winning number, and choose 1 out of 26 non-winning Mega numbers. We have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%288%29+%5C+%5C+%5C+%5C+%5C+++%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B4%7D+%5C+%5Cbinom%7B42%7D%7B1%7D+%5C+%5Cbinom%7B1%7D%7B0%7D+%5C+%5Cbinom%7B26%7D%7B1%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B47%7D%7B5%7D+%5Ctimes+%5Cbinom%7B27%7D%7B1%7D%7D%26%3D%5Cfrac%7B5+%5Ctimes+42+%5Ctimes+1+%5Ctimes+26%7D%7B41416353%7D+%5C%5C%26%3D%5Cfrac%7B1%7D%7B7585.412637%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Ctext%7B1+out+of+7%2C585%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(8) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{4} &#92; &#92;binom{42}{1} &#92; &#92;binom{1}{0} &#92; &#92;binom{26}{1}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{5 &#92;times 42 &#92;times 1 &#92;times 26}{41416353} &#92;&#92;&amp;=&#92;frac{1}{7585.412637} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 7,585}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(8) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{4} &#92; &#92;binom{42}{1} &#92; &#92;binom{1}{0} &#92; &#92;binom{26}{1}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{5 &#92;times 42 &#92;times 1 &#92;times 26}{41416353} &#92;&#92;&amp;=&#92;frac{1}{7585.412637} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 7,585}  &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Any 3 of 5 and Mega</strong></em><br />
To calculate the odds for matching &#8220;any 3 of 5 and Mega&#8221;, we need to choose 3 out of 5 winning numbers, choose 2 out of 42 non-winning numbers, choose 1 out of 1 Mega winning number, and choose 0 out of 26 non-winning Mega numbers. We have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%289%29+%5C+%5C+%5C+%5C+%5C+++%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B3%7D+%5C+%5Cbinom%7B42%7D%7B2%7D+%5C+%5Cbinom%7B1%7D%7B1%7D+%5C+%5Cbinom%7B26%7D%7B0%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B47%7D%7B5%7D+%5Ctimes+%5Cbinom%7B27%7D%7B1%7D%7D%26%3D%5Cfrac%7B10+%5Ctimes+861+%5Ctimes+1+%5Ctimes+1%7D%7B41416353%7D+%5C%5C%26%3D%5Cfrac%7B1%7D%7B4810.261672%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Ctext%7B1+out+of+4%2C810%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(9) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{3} &#92; &#92;binom{42}{2} &#92; &#92;binom{1}{1} &#92; &#92;binom{26}{0}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{10 &#92;times 861 &#92;times 1 &#92;times 1}{41416353} &#92;&#92;&amp;=&#92;frac{1}{4810.261672} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 4,810}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(9) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{3} &#92; &#92;binom{42}{2} &#92; &#92;binom{1}{1} &#92; &#92;binom{26}{0}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{10 &#92;times 861 &#92;times 1 &#92;times 1}{41416353} &#92;&#92;&amp;=&#92;frac{1}{4810.261672} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 4,810}  &#92;end{aligned}' class='latex' /></p>
<p>The rest of the calculations for SuperLOTTO Plus should be routine. It is a matter to deciding how many to choose from the 5 winning numbers, how many to choose from the 42 non-winning numbers as well as how many to choose from the 1 winning Mega number and how many to choose from the 26 non-winning Mega numbers.</p>
<p><em><strong>Any 3 of 5</strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2810%29+%5C+%5C+%5C+%5C+%5C+++%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B3%7D+%5C+%5Cbinom%7B42%7D%7B2%7D+%5C+%5Cbinom%7B1%7D%7B0%7D+%5C+%5Cbinom%7B26%7D%7B1%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B47%7D%7B5%7D+%5Ctimes+%5Cbinom%7B27%7D%7B1%7D%7D%26%3D%5Cfrac%7B10+%5Ctimes+861+%5Ctimes+1+%5Ctimes+26%7D%7B41416353%7D+%5C%5C%26%3D%5Cfrac%7B1%7D%7B185.0100643%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Ctext%7B1+out+of+185%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(10) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{3} &#92; &#92;binom{42}{2} &#92; &#92;binom{1}{0} &#92; &#92;binom{26}{1}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{10 &#92;times 861 &#92;times 1 &#92;times 26}{41416353} &#92;&#92;&amp;=&#92;frac{1}{185.0100643} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 185}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(10) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{3} &#92; &#92;binom{42}{2} &#92; &#92;binom{1}{0} &#92; &#92;binom{26}{1}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{10 &#92;times 861 &#92;times 1 &#92;times 26}{41416353} &#92;&#92;&amp;=&#92;frac{1}{185.0100643} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 185}  &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Any 2 of 5 and Mega</strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2811%29+%5C+%5C+%5C+%5C+%5C+++%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B2%7D+%5C+%5Cbinom%7B42%7D%7B3%7D+%5C+%5Cbinom%7B1%7D%7B1%7D+%5C+%5Cbinom%7B26%7D%7B0%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B47%7D%7B5%7D+%5Ctimes+%5Cbinom%7B27%7D%7B1%7D%7D%26%3D%5Cfrac%7B10+%5Ctimes+11480+%5Ctimes+1+%5Ctimes+1%7D%7B41416353%7D+%5C%5C%26%3D%5Cfrac%7B1%7D%7B360.7696254%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Ctext%7B1+out+of+361%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(11) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{2} &#92; &#92;binom{42}{3} &#92; &#92;binom{1}{1} &#92; &#92;binom{26}{0}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{10 &#92;times 11480 &#92;times 1 &#92;times 1}{41416353} &#92;&#92;&amp;=&#92;frac{1}{360.7696254} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 361}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(11) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{2} &#92; &#92;binom{42}{3} &#92; &#92;binom{1}{1} &#92; &#92;binom{26}{0}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{10 &#92;times 11480 &#92;times 1 &#92;times 1}{41416353} &#92;&#92;&amp;=&#92;frac{1}{360.7696254} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 361}  &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Any 1 of 5 and Mega</strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2812%29+%5C+%5C+%5C+%5C+%5C+++%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B1%7D+%5C+%5Cbinom%7B42%7D%7B4%7D+%5C+%5Cbinom%7B1%7D%7B1%7D+%5C+%5Cbinom%7B26%7D%7B0%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B47%7D%7B5%7D+%5Ctimes+%5Cbinom%7B27%7D%7B1%7D%7D%26%3D%5Cfrac%7B5+%5Ctimes+111930+%5Ctimes+1+%5Ctimes+1%7D%7B41416353%7D+%5C%5C%26%3D%5Cfrac%7B1%7D%7B74.00402573%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Ctext%7B1+out+of+74%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(12) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{1} &#92; &#92;binom{42}{4} &#92; &#92;binom{1}{1} &#92; &#92;binom{26}{0}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{5 &#92;times 111930 &#92;times 1 &#92;times 1}{41416353} &#92;&#92;&amp;=&#92;frac{1}{74.00402573} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 74}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(12) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{1} &#92; &#92;binom{42}{4} &#92; &#92;binom{1}{1} &#92; &#92;binom{26}{0}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{5 &#92;times 111930 &#92;times 1 &#92;times 1}{41416353} &#92;&#92;&amp;=&#92;frac{1}{74.00402573} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 74}  &#92;end{aligned}' class='latex' /></p>
<p><em><strong>None of 5 only Mega</strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2813%29+%5C+%5C+%5C+%5C+%5C+++%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B0%7D+%5C+%5Cbinom%7B42%7D%7B5%7D+%5C+%5Cbinom%7B1%7D%7B1%7D+%5C+%5Cbinom%7B26%7D%7B0%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B47%7D%7B5%7D+%5Ctimes+%5Cbinom%7B27%7D%7B1%7D%7D%26%3D%5Cfrac%7B1+%5Ctimes+850668+%5Ctimes+1+%5Ctimes+1%7D%7B41416353%7D+%5C%5C%26%3D%5Cfrac%7B1%7D%7B48.68685903%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Ctext%7B1+out+of+49%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(13) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{0} &#92; &#92;binom{42}{5} &#92; &#92;binom{1}{1} &#92; &#92;binom{26}{0}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{1 &#92;times 850668 &#92;times 1 &#92;times 1}{41416353} &#92;&#92;&amp;=&#92;frac{1}{48.68685903} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 49}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(13) &#92; &#92; &#92; &#92; &#92;   &#92;frac{&#92;displaystyle &#92;binom{5}{0} &#92; &#92;binom{42}{5} &#92; &#92;binom{1}{1} &#92; &#92;binom{26}{0}}{&#92;displaystyle &#92;binom{47}{5} &#92;times &#92;binom{27}{1}}&amp;=&#92;frac{1 &#92;times 850668 &#92;times 1 &#92;times 1}{41416353} &#92;&#92;&amp;=&#92;frac{1}{48.68685903} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;text{1 out of 49}  &#92;end{aligned}' class='latex' /></p>
<p>____________________________________________________<br />
<em><strong>Mega Millions</strong></em></p>
<p>The following are a playslip, a sample ticket and the winning odds of the game of Mega Millions.</p>
<p><em><strong>Figure 7</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/mm_playslip.gif?w=500" alt="" title="Mega Millions Playslip"   class="alignnone size-full wp-image-185" /></p>
<p><em><strong>Figure 8</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/mmticket.gif?w=500" alt="" title="Mega Millions Sample Ticket"   class="alignnone size-full wp-image-186" /></p>
<p><em><strong>Figure 9</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/cal-lotto-mega-millions.jpg?w=500" alt="" title="Cal Lotto Mega Millions"   class="alignnone size-full wp-image-193" /></p>
<p>Based on the playslip (Figure 7), the player chooses 5 numbers from 1 to 56. The player also chooses an additional number called a Mega number from 1 to 46. To win the top prize, there must be a match between the player&#8217;s 5 selections and the 5 winning numbers as well as a match between the player&#8217;s Mega number and the winning Mega number. The calculation of the odds indicated in Figure 9 are left as exercises.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/probabilityandstats.wordpress.com/2875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/probabilityandstats.wordpress.com/2875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/probabilityandstats.wordpress.com/2875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/probabilityandstats.wordpress.com/2875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/probabilityandstats.wordpress.com/2875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/probabilityandstats.wordpress.com/2875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/probabilityandstats.wordpress.com/2875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/probabilityandstats.wordpress.com/2875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/probabilityandstats.wordpress.com/2875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/probabilityandstats.wordpress.com/2875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/probabilityandstats.wordpress.com/2875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/probabilityandstats.wordpress.com/2875/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/probabilityandstats.wordpress.com/2875/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/probabilityandstats.wordpress.com/2875/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2875&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://probabilityandstats.wordpress.com/2012/01/23/how-to-calculate-winning-odds-in-california-lottery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31cc16f6389b1b01ea7c6e949e69cab8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">probabilityandstats</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/f5playslip.gif" medium="image">
			<media:title type="html">Fantasy 5 Play Slip</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/f5ticketstock.gif" medium="image">
			<media:title type="html">Fantasy 5 Sample Ticket</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/cal-lotto-fantasy-5.jpg" medium="image">
			<media:title type="html">Cal Lotto Fantasy 5</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/slp_playslip.gif" medium="image">
			<media:title type="html">SuperLotto Playslip</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/slpticket.gif" medium="image">
			<media:title type="html">SuperLotto Sample Ticket</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/cal-lotto-superlotto-plus.jpg" medium="image">
			<media:title type="html">Cal Lotto SuperLOTTO plus</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/mm_playslip.gif" medium="image">
			<media:title type="html">Mega Millions Playslip</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/mmticket.gif" medium="image">
			<media:title type="html">Mega Millions Sample Ticket</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/cal-lotto-mega-millions.jpg" medium="image">
			<media:title type="html">Cal Lotto Mega Millions</media:title>
		</media:content>
	</item>
		<item>
		<title>Picking Two Types of Binomial Trials</title>
		<link>http://probabilityandstats.wordpress.com/2012/01/21/picking-two-types-of-binomial-trials/</link>
		<comments>http://probabilityandstats.wordpress.com/2012/01/21/picking-two-types-of-binomial-trials/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 20:42:08 +0000</pubDate>
		<dc:creator>Dan Ma</dc:creator>
				<category><![CDATA[Probability]]></category>
		<category><![CDATA[Probability Theory]]></category>
		<category><![CDATA[Bernoulli distribution]]></category>
		<category><![CDATA[Binomial distribution]]></category>
		<category><![CDATA[Conditional distribution]]></category>
		<category><![CDATA[Hypergeometric distribution]]></category>
		<category><![CDATA[Independent Random Variables]]></category>
		<category><![CDATA[Independent Sum]]></category>
		<category><![CDATA[Probability and statistics]]></category>

		<guid isPermaLink="false">http://probabilityandstats.wordpress.com/?p=2777</guid>
		<description><![CDATA[We motivate the discussion with the following example. The notation denotes the statement that has a binomial distribution with parameters and . In other words, is the number of successes in a sequence of independent Bernoulli trials where is the &#8230; <a href="http://probabilityandstats.wordpress.com/2012/01/21/picking-two-types-of-binomial-trials/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2777&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We motivate the discussion with the following example. The notation <img src='http://s0.wp.com/latex.php?latex=W+%5Csim+%5Ctext%7Bbinom%7D%28n%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='W &#92;sim &#92;text{binom}(n,p)' title='W &#92;sim &#92;text{binom}(n,p)' class='latex' /> denotes the statement that <img src='http://s0.wp.com/latex.php?latex=W&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='W' title='W' class='latex' /> has a binomial distribution with parameters <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />. In other words, <img src='http://s0.wp.com/latex.php?latex=W&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='W' title='W' class='latex' /> is the number of successes in a sequence of <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> independent Bernoulli trials where <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is the probability of success in each trial.</p>
<p><em><strong>Example 1</strong></em><br />
Suppose that a student took two multiple choice quizzes in a course for probability and statistics. Each quiz has 5 questions. Each question has 4 choices and only one of the choices is correct. Suppose that the student answered all the questions by pure guessing. Furthermore, the two quizzes are independent (i.e. results of one quiz will not affect the results of the other quiz). Let <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> be the number of correct answers in the first quiz and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' /> be the number of correct answers in the second quiz. Suppose the student was told by the instructor that she had a total of 4 correct answers in these two quizzes. What is the probability that she had 3 correct answers in the first quiz?</p>
<p>On the face of it, the example is all about binomial distribution. Both <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' /> are binomial distributions (both <img src='http://s0.wp.com/latex.php?latex=%5Csim+%5Ctext%7Bbinom%7D%285%2C%5Cfrac%7B1%7D%7B4%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim &#92;text{binom}(5,&#92;frac{1}{4})' title='&#92;sim &#92;text{binom}(5,&#92;frac{1}{4})' class='latex' />). The sum <img src='http://s0.wp.com/latex.php?latex=X%2BY&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X+Y' title='X+Y' class='latex' /> is also a binomial distribution (<img src='http://s0.wp.com/latex.php?latex=%5Csim+%5Ctext%7Bbinom%7D%2810%2C%5Cfrac%7B1%7D%7B4%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim &#92;text{binom}(10,&#92;frac{1}{4})' title='&#92;sim &#92;text{binom}(10,&#92;frac{1}{4})' class='latex' />). The question that is being asked is a conditional probability, i.e., <img src='http://s0.wp.com/latex.php?latex=P%28X%3D3+%5Clvert+X%2BY%3D4%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(X=3 &#92;lvert X+Y=4)' title='P(X=3 &#92;lvert X+Y=4)' class='latex' />. Surprisingly, this conditional probability can be computed using the hypergeometric distribution. One can always work this problem from first principle using binomial distributions. As discussed below, for a problem such as Example 1, it is always possible to replace the binomial distributions using a thought process involving the hypergeometric distribution.</p>
<p>Here&#8217;s how to think about the problem. This student took the two quizzes and was given the news by the instructor that she had 4 correct answers in total. She now wonders what the probability of having 3 correct answers in the first quiz is. The thought process is this. She is to pick 4 questions from 10 questions (5 of them are from Quiz 1 and 5 of them are from Quiz 2). So she is picking 4 objects from a group of two distinct types of objects. This is akin to reaching into a jar that has 5 red balls and 5 blue balls and pick 4 balls without replacement. What is the probability of picking 3 red balls and 1 blue ball? The probability just described is from a hypergeometric distribution. The following shows the calculation.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%281%29+%5C+%5C+%5C+%5C+P%28X%3D3+%5Clvert+X%2BY%3D4%29%3D%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B3%7D+%5C+%5Cbinom%7B5%7D%7B1%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B10%7D%7B4%7D%7D%3D%5Cfrac%7B50%7D%7B210%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (1) &#92; &#92; &#92; &#92; P(X=3 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{3} &#92; &#92;binom{5}{1}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{50}{210}' title='&#92;displaystyle (1) &#92; &#92; &#92; &#92; P(X=3 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{3} &#92; &#92;binom{5}{1}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{50}{210}' class='latex' /></p>
<p>We will show below why this works. Before we do that, let&#8217;s describe the above thought process. Whenever you have two independent binomial distributions <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' /> with the same probability of success <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> (the number of trials does not have to be the same), the conditional distribution <img src='http://s0.wp.com/latex.php?latex=X+%5Clvert+X%2BY%3Da&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X &#92;lvert X+Y=a' title='X &#92;lvert X+Y=a' class='latex' /> is a hypergeometric distribution. Interestingly, the probability of success <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> has no bearing on this observation. For Example 1, we have the following calculation.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282a%29+%5C+%5C+%5C+%5C+P%28X%3D0+%5Clvert+X%2BY%3D4%29%3D%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B0%7D+%5C+%5Cbinom%7B5%7D%7B4%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B10%7D%7B4%7D%7D%3D%5Cfrac%7B5%7D%7B210%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (2a) &#92; &#92; &#92; &#92; P(X=0 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{0} &#92; &#92;binom{5}{4}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{5}{210}' title='&#92;displaystyle (2a) &#92; &#92; &#92; &#92; P(X=0 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{0} &#92; &#92;binom{5}{4}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{5}{210}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282b%29+%5C+%5C+%5C+%5C+P%28X%3D1+%5Clvert+X%2BY%3D4%29%3D%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B1%7D+%5C+%5Cbinom%7B5%7D%7B3%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B10%7D%7B4%7D%7D%3D%5Cfrac%7B50%7D%7B210%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (2b) &#92; &#92; &#92; &#92; P(X=1 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{1} &#92; &#92;binom{5}{3}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{50}{210}' title='&#92;displaystyle (2b) &#92; &#92; &#92; &#92; P(X=1 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{1} &#92; &#92;binom{5}{3}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{50}{210}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282c%29+%5C+%5C+%5C+%5C+P%28X%3D2+%5Clvert+X%2BY%3D4%29%3D%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B2%7D+%5C+%5Cbinom%7B5%7D%7B2%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B10%7D%7B4%7D%7D%3D%5Cfrac%7B100%7D%7B210%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (2c) &#92; &#92; &#92; &#92; P(X=2 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{2} &#92; &#92;binom{5}{2}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{100}{210}' title='&#92;displaystyle (2c) &#92; &#92; &#92; &#92; P(X=2 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{2} &#92; &#92;binom{5}{2}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{100}{210}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282d%29+%5C+%5C+%5C+%5C+P%28X%3D3+%5Clvert+X%2BY%3D4%29%3D%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B3%7D+%5C+%5Cbinom%7B5%7D%7B1%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B10%7D%7B4%7D%7D%3D%5Cfrac%7B50%7D%7B210%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (2d) &#92; &#92; &#92; &#92; P(X=3 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{3} &#92; &#92;binom{5}{1}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{50}{210}' title='&#92;displaystyle (2d) &#92; &#92; &#92; &#92; P(X=3 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{3} &#92; &#92;binom{5}{1}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{50}{210}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282e%29+%5C+%5C+%5C+%5C+P%28X%3D4+%5Clvert+X%2BY%3D4%29%3D%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7B4%7D+%5C+%5Cbinom%7B5%7D%7B0%7D%7D%7B%5Cdisplaystyle+%5Cbinom%7B10%7D%7B4%7D%7D%3D%5Cfrac%7B5%7D%7B210%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (2e) &#92; &#92; &#92; &#92; P(X=4 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{4} &#92; &#92;binom{5}{0}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{5}{210}' title='&#92;displaystyle (2e) &#92; &#92; &#92; &#92; P(X=4 &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{4} &#92; &#92;binom{5}{0}}{&#92;displaystyle &#92;binom{10}{4}}=&#92;frac{5}{210}' class='latex' /></p>
<p>Interestingly, the conditional mean <img src='http://s0.wp.com/latex.php?latex=E%28X+%5Clvert+X%2BY%3D4%29%3D2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(X &#92;lvert X+Y=4)=2' title='E(X &#92;lvert X+Y=4)=2' class='latex' />, while the unconditional mean <img src='http://s0.wp.com/latex.php?latex=E%28X%29%3D5+%5Ctimes+%5Cfrac%7B1%7D%7B4%7D%3D1.25&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(X)=5 &#92;times &#92;frac{1}{4}=1.25' title='E(X)=5 &#92;times &#92;frac{1}{4}=1.25' class='latex' />. The fact that the conditional mean is higher is not surprising. The student was lucky enough to have obtained 4 correct answers by guessing. Given this, she had a greater chance of doing better on the first quiz.</p>
<p>__________________________________________________<br />
<em><strong>Why This Works</strong></em></p>
<p>Suppose <img src='http://s0.wp.com/latex.php?latex=X+%5Csim+%5Ctext%7Bbinom%7D%285%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X &#92;sim &#92;text{binom}(5,p)' title='X &#92;sim &#92;text{binom}(5,p)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y+%5Csim+%5Ctext%7Bbinom%7D%285%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y &#92;sim &#92;text{binom}(5,p)' title='Y &#92;sim &#92;text{binom}(5,p)' class='latex' /> and they are independent. The joint distribution of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y' title='Y' class='latex' /> has 36 points in the sample space. See the following diagram.</p>
<p><em><strong>Figure 1</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/binomial-graphic-1a.jpg?w=500" alt="" title="2-dim grid"   class="aligncenter size-full wp-image-137" /></p>
<p>The probability attached to each point is </p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%283%29+%5C+%5C+%5C+%5C++P%28X%3Dx%2CY%3Dy%29%26%3DP%28X%3Dx%29+%5Ctimes+P%28Y%3Dy%29+%5C%5C%26%3D%5Cbinom%7B5%7D%7Bx%7D+p%5Ex+%281-p%29%5E%7B5-x%7D+%5Ctimes+%5Cbinom%7B5%7D%7By%7D+p%5Ey+%281-p%29%5E%7B5-y%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(3) &#92; &#92; &#92; &#92;  P(X=x,Y=y)&amp;=P(X=x) &#92;times P(Y=y) &#92;&#92;&amp;=&#92;binom{5}{x} p^x (1-p)^{5-x} &#92;times &#92;binom{5}{y} p^y (1-p)^{5-y}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(3) &#92; &#92; &#92; &#92;  P(X=x,Y=y)&amp;=P(X=x) &#92;times P(Y=y) &#92;&#92;&amp;=&#92;binom{5}{x} p^x (1-p)^{5-x} &#92;times &#92;binom{5}{y} p^y (1-p)^{5-y}  &#92;end{aligned}' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=x%3D0%2C1%2C2%2C3%2C4%2C5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x=0,1,2,3,4,5' title='x=0,1,2,3,4,5' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=y%3D0%2C1%2C2%2C3%2C4%2C5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y=0,1,2,3,4,5' title='y=0,1,2,3,4,5' class='latex' />. </p>
<p>The conditional probability <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dk+%5Clvert+X%2BY%3D4%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(X=k &#92;lvert X+Y=4)' title='P(X=k &#92;lvert X+Y=4)' class='latex' /> involves 5 points as indicated in the following diagram.</p>
<p><em><strong>Figure 2</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/binomial-graphic-3.jpg?w=500" alt="" title="X + Y = 4"   class="alignnone size-full wp-image-174" /></p>
<p>The conditional probability <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dk+%5Clvert+X%2BY%3D4%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(X=k &#92;lvert X+Y=4)' title='P(X=k &#92;lvert X+Y=4)' class='latex' /> is simply the probability of one of the 5 sample points as a fraction of the sum total of the 5 sample points encircled in the above diagram. The following is the sum total of the probabilities of the 5 points indicated in Figure 2.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%284%29+%5C+%5C+%5C+%5C++P%28X%2BY%3D4%29%26%3DP%28X%3D0%29+%5Ctimes+P%28Y%3D4%29%2BP%28X%3D1%29+%5Ctimes+P%28Y%3D3%29%5C%5C%26%5C+%5C+%5C+%5C+%2BP%28X%3D2%29+%5Ctimes+P%28Y%3D3%29%2BP%28X%3D3%29+%5Ctimes+P%28Y%3D2%29%5C%5C%26%5C+%5C+%5C+%5C+%2BP%28X%3D4%29+%5Ctimes+P%28Y%3D0%29++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(4) &#92; &#92; &#92; &#92;  P(X+Y=4)&amp;=P(X=0) &#92;times P(Y=4)+P(X=1) &#92;times P(Y=3)&#92;&#92;&amp;&#92; &#92; &#92; &#92; +P(X=2) &#92;times P(Y=3)+P(X=3) &#92;times P(Y=2)&#92;&#92;&amp;&#92; &#92; &#92; &#92; +P(X=4) &#92;times P(Y=0)  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(4) &#92; &#92; &#92; &#92;  P(X+Y=4)&amp;=P(X=0) &#92;times P(Y=4)+P(X=1) &#92;times P(Y=3)&#92;&#92;&amp;&#92; &#92; &#92; &#92; +P(X=2) &#92;times P(Y=3)+P(X=3) &#92;times P(Y=2)&#92;&#92;&amp;&#92; &#92; &#92; &#92; +P(X=4) &#92;times P(Y=0)  &#92;end{aligned}' class='latex' /></p>
<p>We can plug <img src='http://s0.wp.com/latex.php?latex=%283%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(3)' title='(3)' class='latex' /> into <img src='http://s0.wp.com/latex.php?latex=%284%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4)' title='(4)' class='latex' /> and work out the calculation. But <img src='http://s0.wp.com/latex.php?latex=%284%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4)' title='(4)' class='latex' /> is actually equivalent to the following because <img src='http://s0.wp.com/latex.php?latex=X%2BY+%5Csim+%5Ctext%7Bbinom%7D%2810%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X+Y &#92;sim &#92;text{binom}(10,p)' title='X+Y &#92;sim &#92;text{binom}(10,p)' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%285%29+%5C+%5C+%5C+%5C+P%28X%2BY%3D4%29%3D%5C+%5Cbinom%7B10%7D%7B4%7D+p%5E4+%5C+%281-p%29%5E%7B6%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (5) &#92; &#92; &#92; &#92; P(X+Y=4)=&#92; &#92;binom{10}{4} p^4 &#92; (1-p)^{6}' title='&#92;displaystyle (5) &#92; &#92; &#92; &#92; P(X+Y=4)=&#92; &#92;binom{10}{4} p^4 &#92; (1-p)^{6}' class='latex' /></p>
<p>As stated earlier, the conditional probability <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dk+%5Clvert+X%2BY%3D4%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(X=k &#92;lvert X+Y=4)' title='P(X=k &#92;lvert X+Y=4)' class='latex' /> is simply the probability of one of the 5 sample points as a fraction of the sum total of the 5 sample points encircled in Figure 2. Thus we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%286%29+%5C+%5C+%5C+%5C++P%28X%3Dk+%5Clvert+X%2BY%3D4%29%26%3D%5Cfrac%7BP%28X%3Dk%29+%5Ctimes+P%28Y%3D4-k%29%7D%7BP%28X%2BY%3D4%29%7D+%5C%5C%26%3D%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7Bk%7D+p%5Ek+%281-p%29%5E%7B5-k%7D+%5Ctimes+%5Cbinom%7B5%7D%7B4-k%7D+p%5E%7B4-k%7D+%281-p%29%5E%7B5-%284-k%29%7D%7D%7B%5Cdisplaystyle++%5Cbinom%7B10%7D%7B4%7D+p%5E4+%5C+%281-p%29%5E%7B6%7D%7D+++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(6) &#92; &#92; &#92; &#92;  P(X=k &#92;lvert X+Y=4)&amp;=&#92;frac{P(X=k) &#92;times P(Y=4-k)}{P(X+Y=4)} &#92;&#92;&amp;=&#92;frac{&#92;displaystyle &#92;binom{5}{k} p^k (1-p)^{5-k} &#92;times &#92;binom{5}{4-k} p^{4-k} (1-p)^{5-(4-k)}}{&#92;displaystyle  &#92;binom{10}{4} p^4 &#92; (1-p)^{6}}   &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(6) &#92; &#92; &#92; &#92;  P(X=k &#92;lvert X+Y=4)&amp;=&#92;frac{P(X=k) &#92;times P(Y=4-k)}{P(X+Y=4)} &#92;&#92;&amp;=&#92;frac{&#92;displaystyle &#92;binom{5}{k} p^k (1-p)^{5-k} &#92;times &#92;binom{5}{4-k} p^{4-k} (1-p)^{5-(4-k)}}{&#92;displaystyle  &#92;binom{10}{4} p^4 &#92; (1-p)^{6}}   &#92;end{aligned}' class='latex' /></p>
<p>With the terms involving <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=1-p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1-p' title='1-p' class='latex' /> cancel out, we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%287%29+%5C+%5C+%5C+%5C++P%28X%3Dk+%5Clvert+X%2BY%3D4%29%3D%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7B5%7D%7Bk%7D+%5Ctimes+%5Cbinom%7B5%7D%7B4-k%7D%7D%7B%5Cdisplaystyle++%5Cbinom%7B10%7D%7B4%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (7) &#92; &#92; &#92; &#92;  P(X=k &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{k} &#92;times &#92;binom{5}{4-k}}{&#92;displaystyle  &#92;binom{10}{4}}' title='&#92;displaystyle (7) &#92; &#92; &#92; &#92;  P(X=k &#92;lvert X+Y=4)=&#92;frac{&#92;displaystyle &#92;binom{5}{k} &#92;times &#92;binom{5}{4-k}}{&#92;displaystyle  &#92;binom{10}{4}}' class='latex' /></p>
<p>__________________________________________________<br />
<em><strong>Summary</strong></em></p>
<p>Suppose <img src='http://s0.wp.com/latex.php?latex=X+%5Csim+%5Ctext%7Bbinom%7D%28N%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X &#92;sim &#92;text{binom}(N,p)' title='X &#92;sim &#92;text{binom}(N,p)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y+%5Csim+%5Ctext%7Bbinom%7D%28M%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y &#92;sim &#92;text{binom}(M,p)' title='Y &#92;sim &#92;text{binom}(M,p)' class='latex' /> and they are independent. Then <img src='http://s0.wp.com/latex.php?latex=X%2BY&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X+Y' title='X+Y' class='latex' /> is also a binomial distribution, i.e., <img src='http://s0.wp.com/latex.php?latex=%5Csim+%5Ctext%7Bbinom%7D%28N%2BM%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;sim &#92;text{binom}(N+M,p)' title='&#92;sim &#92;text{binom}(N+M,p)' class='latex' />. Suppose that both binomial experiments <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bbinom%7D%28N%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{binom}(N,p)' title='&#92;text{binom}(N,p)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bbinom%7D%28M%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{binom}(M,p)' title='&#92;text{binom}(M,p)' class='latex' /> have been performed and it is known that there are <img src='http://s0.wp.com/latex.php?latex=a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a' title='a' class='latex' /> successes in total. Then <img src='http://s0.wp.com/latex.php?latex=X+%5Clvert+X%2BY%3Da&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X &#92;lvert X+Y=a' title='X &#92;lvert X+Y=a' class='latex' /> has a hypergeometric distribution.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%288%29+%5C+%5C+%5C+%5C++P%28X%3Dk+%5Clvert+X%2BY%3Da%29%3D%5Cfrac%7B%5Cdisplaystyle+%5Cbinom%7BN%7D%7Bk%7D+%5Ctimes+%5Cbinom%7BM%7D%7Ba-k%7D%7D%7B%5Cdisplaystyle++%5Cbinom%7BN%2BM%7D%7Ba%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (8) &#92; &#92; &#92; &#92;  P(X=k &#92;lvert X+Y=a)=&#92;frac{&#92;displaystyle &#92;binom{N}{k} &#92;times &#92;binom{M}{a-k}}{&#92;displaystyle  &#92;binom{N+M}{a}}' title='&#92;displaystyle (8) &#92; &#92; &#92; &#92;  P(X=k &#92;lvert X+Y=a)=&#92;frac{&#92;displaystyle &#92;binom{N}{k} &#92;times &#92;binom{M}{a-k}}{&#92;displaystyle  &#92;binom{N+M}{a}}' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=k%3D0%2C1%2C2%2C3%2C%5Ccdots%2C%5Ctext%7Bmin%7D%28N%2Ca%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k=0,1,2,3,&#92;cdots,&#92;text{min}(N,a)' title='k=0,1,2,3,&#92;cdots,&#92;text{min}(N,a)' class='latex' />.</p>
<p>As discussed earlier, think of the <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> trials in <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bbinom%7D%28N%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{binom}(N,p)' title='&#92;text{binom}(N,p)' class='latex' /> as red balls and think of the <img src='http://s0.wp.com/latex.php?latex=M&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M' title='M' class='latex' /> trials in <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bbinom%7D%28M%2Cp%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{binom}(M,p)' title='&#92;text{binom}(M,p)' class='latex' /> as blue balls in a jar. Think of the <img src='http://s0.wp.com/latex.php?latex=a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a' title='a' class='latex' /> successes as the number of balls you are about to draw from the jar. So you reach into the jar and select <img src='http://s0.wp.com/latex.php?latex=a&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a' title='a' class='latex' /> balls without replacement. The calculation in <img src='http://s0.wp.com/latex.php?latex=%288%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(8)' title='(8)' class='latex' /> gives the probability that you select <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> red balls and <img src='http://s0.wp.com/latex.php?latex=a-k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a-k' title='a-k' class='latex' /> blue balls.</p>
<p>The probability of success <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> in the two binomial distributions have no bearing on the result since it gets canceled out in the derivation. One can always work a problem like Example 1 using first principle. Once the thought process using hypergeometric distribution is understood, it is a great way to solve this problem, that is, you can by pass the binomial distributions and go straight to the hypergeometric distribution.</p>
<p>__________________________________________________<br />
<em><strong>Additional Practice</strong></em><br />
Practice problems are found in the following blog post.</p>
<p><a href="http://probabilityandstatsproblemsolve.wordpress.com/2012/01/21/how-to-pick-binomial-trials/" target="_blank">How to pick binomial trials</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/probabilityandstats.wordpress.com/2777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/probabilityandstats.wordpress.com/2777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/probabilityandstats.wordpress.com/2777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/probabilityandstats.wordpress.com/2777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/probabilityandstats.wordpress.com/2777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/probabilityandstats.wordpress.com/2777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/probabilityandstats.wordpress.com/2777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/probabilityandstats.wordpress.com/2777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/probabilityandstats.wordpress.com/2777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/probabilityandstats.wordpress.com/2777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/probabilityandstats.wordpress.com/2777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/probabilityandstats.wordpress.com/2777/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/probabilityandstats.wordpress.com/2777/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/probabilityandstats.wordpress.com/2777/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2777&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://probabilityandstats.wordpress.com/2012/01/21/picking-two-types-of-binomial-trials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31cc16f6389b1b01ea7c6e949e69cab8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">probabilityandstats</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/binomial-graphic-1a.jpg" medium="image">
			<media:title type="html">2-dim grid</media:title>
		</media:content>

		<media:content url="http://basicmathsuccess.files.wordpress.com/2012/01/binomial-graphic-3.jpg" medium="image">
			<media:title type="html">X + Y = 4</media:title>
		</media:content>
	</item>
		<item>
		<title>A lazy professor who lets students do their own grading</title>
		<link>http://probabilityandstats.wordpress.com/2011/12/28/a-lazy-professor-who-lets-students-do-their-own-grading/</link>
		<comments>http://probabilityandstats.wordpress.com/2011/12/28/a-lazy-professor-who-lets-students-do-their-own-grading/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 07:16:26 +0000</pubDate>
		<dc:creator>Dan Ma</dc:creator>
				<category><![CDATA[Classic Problems in Probability Theory]]></category>
		<category><![CDATA[Probability]]></category>
		<category><![CDATA[Probability Theory]]></category>
		<category><![CDATA[Classic problems in probability]]></category>
		<category><![CDATA[Combinatorial probability]]></category>
		<category><![CDATA[Inclusion exclusion principle]]></category>
		<category><![CDATA[Probability and statistics]]></category>
		<category><![CDATA[The matching problem]]></category>

		<guid isPermaLink="false">http://probabilityandstats.wordpress.com/?p=2422</guid>
		<description><![CDATA[After reading the example discussed here, any professor or instructor who is contemplating randomly distributing quizzes back to the students for grading perhaps should reconsider the idea! This is one of several posts discussing the matching problem. Go to the &#8230; <a href="http://probabilityandstats.wordpress.com/2011/12/28/a-lazy-professor-who-lets-students-do-their-own-grading/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2422&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After reading the example discussed here, any professor or instructor who is contemplating randomly distributing quizzes back to the students for grading perhaps should reconsider the idea! This is one of several posts discussing the matching problem. Go to the end of this post to find links to these previous posts.</p>
<p>Consider the following problem. Suppose that a certain professor is lazy and lets his students grade their own quizzes. After he collects the quizzess from his <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> students, he randomly assigns the quizzes back to these <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> students for grading. If a student is assigned his or her own quiz, we say that it is a match. We have the following questions:</p>
<ul>
<li>What is the probability that each of the <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> students is a match?</li>
<li>What is the probability that none of the <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> students is a match?</li>
<li>What is the probability that exactly <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> of the <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> students are matches?</li>
<li>What is the probability that at least one of the <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> students is a match?</li>
</ul>
<p>The above problem is called the matching problem, which is a classic problem in probability. In this post we solve the last question indicated above. Though the answer is in terms of the total number of quizzes <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' />, it turns out that the answer is independent of <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> and is approximately <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B2%7D%7B3%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{2}{3}' title='&#92;frac{2}{3}' class='latex' />. Thus if the professor assigns the quizzes randomly, it will be very unusual that there is no match.</p>
<p>The last question above is usually stated in other matching situations. One is that there are <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> couples (say, each couple consists of a husband and a wife) in a class for ballroom dancing. Suppose that the dance instructor randomly matches the men to the ladies. When a husband is assigned his own wife, we say that it is a match. What is the probability that there is at least one couple that is a match?</p>
<p>The key to answering this question is the theorem stated in Feller (page 99 in chapter 4 of [1]). We state the theorem and make use of it in the solution of the last question above. A sketch of the proof will be given at the end. For ideas on the solutions to the first three questions above, see <a href="http://probabilityandstats.wordpress.com/2010/05/02/more-about-the-matching-problem/" target="_blank">this previous post</a>.</p>
<p><em><strong>The union of <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> events</strong></em><br />
For any <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> events <img src='http://s0.wp.com/latex.php?latex=E_1%2CE_2%2C+%5Ccdots%2CE_n&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='E_1,E_2, &#92;cdots,E_n' title='E_1,E_2, &#92;cdots,E_n' class='latex' /> that are defined on the same sample space, we have the following formula:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%281%29+%5C+%5C+%5C+%5C+%5C+P%5BE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%5D%3D%5Csum+%5Climits_%7Bm%3D1%7D%5E%7Bn%7D+%28-1%29%5E%7Bm%2B1%7D+%5Cthinspace+S_m&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='(1) &#92; &#92; &#92; &#92; &#92; P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]=&#92;sum &#92;limits_{m=1}^{n} (-1)^{m+1} &#92;thinspace S_m' title='(1) &#92; &#92; &#92; &#92; &#92; P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]=&#92;sum &#92;limits_{m=1}^{n} (-1)^{m+1} &#92;thinspace S_m' class='latex' /> where</p>
<p><img src='http://s0.wp.com/latex.php?latex=S_1%3D%5Csum+%5Climits_%7Br%3D1%7D%5E%7Bn%7DP%5BE_r%5D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='S_1=&#92;sum &#92;limits_{r=1}^{n}P[E_r]' title='S_1=&#92;sum &#92;limits_{r=1}^{n}P[E_r]' class='latex' />, </p>
<p><img src='http://s0.wp.com/latex.php?latex=S_2%3D%5Csum+%5Climits_%7Bj%3Ck%7DP%5BE_j+%5Ccap+E_k%5D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='S_2=&#92;sum &#92;limits_{j&lt;k}P[E_j &#92;cap E_k]' title='S_2=&#92;sum &#92;limits_{j&lt;k}P[E_j &#92;cap E_k]' class='latex' />,</p>
<p><img src='http://s0.wp.com/latex.php?latex=S_m%3D%5Csum+P%5BE_%7Bi%281%29%7D+%5Ccap+E_%7Bi%282%29%7D+%5Ccap+%5Ccdots+%5Ccap+E_%7Bi%28m%29%7D%5D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='S_m=&#92;sum P[E_{i(1)} &#92;cap E_{i(2)} &#92;cap &#92;cdots &#92;cap E_{i(m)}]' title='S_m=&#92;sum P[E_{i(1)} &#92;cap E_{i(2)} &#92;cap &#92;cdots &#92;cap E_{i(m)}]' class='latex' /></p>
<p>Note that in the general term <img src='http://s0.wp.com/latex.php?latex=S_m&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='S_m' title='S_m' class='latex' />, the sum is taken over all increasing sequence <img src='http://s0.wp.com/latex.php?latex=i%28%5Ccdot%29&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='i(&#92;cdot)' title='i(&#92;cdot)' class='latex' />, i.e. <img src='http://s0.wp.com/latex.php?latex=1+%5Cle+i%281%29+%3C+i%282%29+%3C+%5Ccdots+%3C+i%28m%29+%5Cle+n&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='1 &#92;le i(1) &lt; i(2) &lt; &#92;cdots &lt; i(m) &#92;le n' title='1 &#92;le i(1) &lt; i(2) &lt; &#92;cdots &lt; i(m) &#92;le n' class='latex' />. For <img src='http://s0.wp.com/latex.php?latex=n%3D2%2C3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n=2,3' title='n=2,3' class='latex' />, we have the following familiar formulas:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%5BE_1+%5Ccup+E_2%5D%3DP%5BE_1%5D%2BP%5BE_2%5D-P%5BE_1+%5Ccap+E_2%5D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='&#92;displaystyle P[E_1 &#92;cup E_2]=P[E_1]+P[E_2]-P[E_1 &#92;cap E_2]' title='&#92;displaystyle P[E_1 &#92;cup E_2]=P[E_1]+P[E_2]-P[E_1 &#92;cap E_2]' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7DP%5BE_1+%5Ccup+E_2+%5Ccup+E_3%5D%3D%26+%5C+%5C+%5C+%5C+P%5BE_1%5D%2BP%5BE_2%5D%2BP%5BE_3%5D%5C%5C%26-P%5BE_1+%5Ccap+E_2%5D-P%5BE_1+%5Ccap+E_3%5D-P%5BE_2+%5Ccap+E_3%5D%5C%5C%26%2BP%5BE_1+%5Ccap+E_2+%5Ccap+E_3%5D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}P[E_1 &#92;cup E_2 &#92;cup E_3]=&amp; &#92; &#92; &#92; &#92; P[E_1]+P[E_2]+P[E_3]&#92;&#92;&amp;-P[E_1 &#92;cap E_2]-P[E_1 &#92;cap E_3]-P[E_2 &#92;cap E_3]&#92;&#92;&amp;+P[E_1 &#92;cap E_2 &#92;cap E_3] &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}P[E_1 &#92;cup E_2 &#92;cup E_3]=&amp; &#92; &#92; &#92; &#92; P[E_1]+P[E_2]+P[E_3]&#92;&#92;&amp;-P[E_1 &#92;cap E_2]-P[E_1 &#92;cap E_3]-P[E_2 &#92;cap E_3]&#92;&#92;&amp;+P[E_1 &#92;cap E_2 &#92;cap E_3] &#92;end{aligned}' class='latex' /></p>
<p><em><strong>The Matching Problem</strong></em></p>
<p>Suppose that the <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> students are labeled <img src='http://s0.wp.com/latex.php?latex=1%2C2%2C+%5Ccdots%2C+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1,2, &#92;cdots, n' title='1,2, &#92;cdots, n' class='latex' />. Let <img src='http://s0.wp.com/latex.php?latex=E_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_i' title='E_i' class='latex' /> be the even that the <img src='http://s0.wp.com/latex.php?latex=i%5E%7Bth%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i^{th}' title='i^{th}' class='latex' /> student is assigned his or her own quiz by the professor. Then <img src='http://s0.wp.com/latex.php?latex=P%5BE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]' title='P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]' class='latex' /> is the probability that there is at least one correct match.</p>
<p>Note that <img src='http://s0.wp.com/latex.php?latex=P%5BE_i%5D%3D%5Cfrac%7B%28n-1%29%21%7D%7Bn%21%7D%3D%5Cfrac%7B1%7D%7Bn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P[E_i]=&#92;frac{(n-1)!}{n!}=&#92;frac{1}{n}' title='P[E_i]=&#92;frac{(n-1)!}{n!}=&#92;frac{1}{n}' class='latex' />. This is the case since we let the <img src='http://s0.wp.com/latex.php?latex=i%5E%7Bth%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i^{th}' title='i^{th}' class='latex' /> student be fixed and we permute the other <img src='http://s0.wp.com/latex.php?latex=n-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n-1' title='n-1' class='latex' /> students. Likewise, <img src='http://s0.wp.com/latex.php?latex=P%5BE_i+%5Ccap+E_j%5D%3D%5Cfrac%7B%28n-2%29%21%7D%7Bn%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P[E_i &#92;cap E_j]=&#92;frac{(n-2)!}{n!}' title='P[E_i &#92;cap E_j]=&#92;frac{(n-2)!}{n!}' class='latex' />, since we fix the <img src='http://s0.wp.com/latex.php?latex=i%5E%7Bth%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i^{th}' title='i^{th}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=j%5E%7Bth%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j^{th}' title='j^{th}' class='latex' /> students and let the other <img src='http://s0.wp.com/latex.php?latex=%28n-2%29%21&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n-2)!' title='(n-2)!' class='latex' /> students permute. In general, whenever <img src='http://s0.wp.com/latex.php?latex=i%281%29%2Ci%282%29%2C%5Ccdots%2Ci%28m%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i(1),i(2),&#92;cdots,i(m)' title='i(1),i(2),&#92;cdots,i(m)' class='latex' /> are <img src='http://s0.wp.com/latex.php?latex=m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m' title='m' class='latex' /> distinct integers and are increasing, we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%5BE_%7Bi%281%29%7D+%5Ccap+E_%7Bi%282%29%7D+%5Ccdots+%5Ccap+E_%7Bi%28m%29%7D%5D%3D%5Cfrac%7B%28n-m%29%21%7D%7Bn%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle P[E_{i(1)} &#92;cap E_{i(2)} &#92;cdots &#92;cap E_{i(m)}]=&#92;frac{(n-m)!}{n!}' title='&#92;displaystyle P[E_{i(1)} &#92;cap E_{i(2)} &#92;cdots &#92;cap E_{i(m)}]=&#92;frac{(n-m)!}{n!}' class='latex' /></p>
<p>We now apply the formula (1). First we show that for each <img src='http://s0.wp.com/latex.php?latex=m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m' title='m' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=1+%5Cle+m+%5Cle+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1 &#92;le m &#92;le n' title='1 &#92;le m &#92;le n' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=S_m%3D%5Cfrac%7B1%7D%7Bm%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S_m=&#92;frac{1}{m!}' title='S_m=&#92;frac{1}{m!}' class='latex' />. Since there are <img src='http://s0.wp.com/latex.php?latex=%5Cbinom%7Bn%7D%7Bm%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;binom{n}{m}' title='&#92;binom{n}{m}' class='latex' /> many ways to have <img src='http://s0.wp.com/latex.php?latex=m&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='m' title='m' class='latex' /> matches out of <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> students, we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7DS_m%26%3D%5Csum+P%5BE_%7Bi%281%29%7D+%5Ccap+E_%7Bi%282%29%7D+%5Ccdots+%5Ccap+E_%7Bi%28m%29%7D%5D%5C%5C%26%3D%5Cbinom%7Bn%7D%7Bm%7D+%5Cfrac%7B%28n-m%29%21%7D%7Bn%21%7D%5C%5C%26%3D%5Cfrac%7B1%7D%7Bm%21%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}S_m&amp;=&#92;sum P[E_{i(1)} &#92;cap E_{i(2)} &#92;cdots &#92;cap E_{i(m)}]&#92;&#92;&amp;=&#92;binom{n}{m} &#92;frac{(n-m)!}{n!}&#92;&#92;&amp;=&#92;frac{1}{m!} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}S_m&amp;=&#92;sum P[E_{i(1)} &#92;cap E_{i(2)} &#92;cdots &#92;cap E_{i(m)}]&#92;&#92;&amp;=&#92;binom{n}{m} &#92;frac{(n-m)!}{n!}&#92;&#92;&amp;=&#92;frac{1}{m!} &#92;end{aligned}' class='latex' /></p>
<p>Applying the formula for the union of <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> events, we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%5BE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%5D%3D1-%5Cfrac%7B1%7D%7B2%21%7D%2B%5Cfrac%7B1%7D%7B3%21%7D-%5Ccdots%2B%28-1%29%5E%7Bn%2B1%7D%5Cfrac%7B1%7D%7Bn%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]=1-&#92;frac{1}{2!}+&#92;frac{1}{3!}-&#92;cdots+(-1)^{n+1}&#92;frac{1}{n!}' title='&#92;displaystyle P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]=1-&#92;frac{1}{2!}+&#92;frac{1}{3!}-&#92;cdots+(-1)^{n+1}&#92;frac{1}{n!}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+1-P%5BE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%5D%3D1-1%2B%5Cfrac%7B1%7D%7B2%21%7D-%5Cfrac%7B1%7D%7B3%21%7D%2B%5Ccdots%2B%28-1%29%5E%7Bn%7D%5Cfrac%7B1%7D%7Bn%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle 1-P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]=1-1+&#92;frac{1}{2!}-&#92;frac{1}{3!}+&#92;cdots+(-1)^{n}&#92;frac{1}{n!}' title='&#92;displaystyle 1-P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]=1-1+&#92;frac{1}{2!}-&#92;frac{1}{3!}+&#92;cdots+(-1)^{n}&#92;frac{1}{n!}' class='latex' /></p>
<p>Note that the left-hand side of the above equality is the first <img src='http://s0.wp.com/latex.php?latex=n%2B1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n+1' title='n+1' class='latex' /> terms in the expansion of <img src='http://s0.wp.com/latex.php?latex=e%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e^{-1}' title='e^{-1}' class='latex' />. Thus we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%5Clim_%7Bn+%5Crightarrow+%5Cinfty%7DP%5BE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%5D%26%3D%5Clim_%7Bn+%5Crightarrow+%5Cinfty%7D%5Cbiggl%281-%5Cfrac%7B1%7D%7B2%21%7D%2B%5Cfrac%7B1%7D%7B3%21%7D-%5Ccdots%2B%28-1%29%5E%7Bn%2B1%7D%5Cfrac%7B1%7D%7Bn%21%7D%5Cbiggr%29%5C%5C%26%3D1-e%5E%7B-1%7D%5C%5C%26%3D0.6321205588+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}&#92;lim_{n &#92;rightarrow &#92;infty}P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]&amp;=&#92;lim_{n &#92;rightarrow &#92;infty}&#92;biggl(1-&#92;frac{1}{2!}+&#92;frac{1}{3!}-&#92;cdots+(-1)^{n+1}&#92;frac{1}{n!}&#92;biggr)&#92;&#92;&amp;=1-e^{-1}&#92;&#92;&amp;=0.6321205588 &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}&#92;lim_{n &#92;rightarrow &#92;infty}P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]&amp;=&#92;lim_{n &#92;rightarrow &#92;infty}&#92;biggl(1-&#92;frac{1}{2!}+&#92;frac{1}{3!}-&#92;cdots+(-1)^{n+1}&#92;frac{1}{n!}&#92;biggr)&#92;&#92;&amp;=1-e^{-1}&#92;&#92;&amp;=0.6321205588 &#92;end{aligned}' class='latex' /></p>
<p>The above limit converges quite rapidly. Let <img src='http://s0.wp.com/latex.php?latex=P_n%3DP%5BE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P_n=P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]' title='P_n=P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]' class='latex' />. The following table lists out the first several terms of this limit.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Bpmatrix%7D+n%26%5Ctext%7B+++%7D%26P_n+%5C%5C%7B2%7D%26%5Ctext%7B+++%7D%260.50000+%5C%5C%7B3%7D%26%5Ctext%7B+++%7D%260.66667+%5C%5C%7B4%7D%26%5Ctext%7B+++%7D%260.62500+%5C%5C%7B5%7D%26%5Ctext%7B+++%7D%260.63333+%5C%5C%7B6%7D%26%5Ctext%7B+++%7D%260.63194+%5C%5C%7B7%7D%26%5Ctext%7B+++%7D%260.63214+%5C%5C%7B8%7D%26%5Ctext%7B+++%7D%260.63212%5Cend%7Bpmatrix%7D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='&#92;displaystyle &#92;begin{pmatrix} n&amp;&#92;text{   }&amp;P_n &#92;&#92;{2}&amp;&#92;text{   }&amp;0.50000 &#92;&#92;{3}&amp;&#92;text{   }&amp;0.66667 &#92;&#92;{4}&amp;&#92;text{   }&amp;0.62500 &#92;&#92;{5}&amp;&#92;text{   }&amp;0.63333 &#92;&#92;{6}&amp;&#92;text{   }&amp;0.63194 &#92;&#92;{7}&amp;&#92;text{   }&amp;0.63214 &#92;&#92;{8}&amp;&#92;text{   }&amp;0.63212&#92;end{pmatrix}' title='&#92;displaystyle &#92;begin{pmatrix} n&amp;&#92;text{   }&amp;P_n &#92;&#92;{2}&amp;&#92;text{   }&amp;0.50000 &#92;&#92;{3}&amp;&#92;text{   }&amp;0.66667 &#92;&#92;{4}&amp;&#92;text{   }&amp;0.62500 &#92;&#92;{5}&amp;&#92;text{   }&amp;0.63333 &#92;&#92;{6}&amp;&#92;text{   }&amp;0.63194 &#92;&#92;{7}&amp;&#92;text{   }&amp;0.63214 &#92;&#92;{8}&amp;&#92;text{   }&amp;0.63212&#92;end{pmatrix}' class='latex' /></p>
<p><em><strong>Sketch of Proof for the Formula</strong></em><br />
The key idea is that any sample point in the union <img src='http://s0.wp.com/latex.php?latex=E_1+%5Ccup+E_2+%5Ccdots+%5Ccup+E_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_1 &#92;cup E_2 &#92;cdots &#92;cup E_n' title='E_1 &#92;cup E_2 &#92;cdots &#92;cup E_n' class='latex' /> is counted in exactly one time in the right hand side of (1). Suppose that a sample point is in exactly <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> of the events <img src='http://s0.wp.com/latex.php?latex=E_1%2CE_2%2C%5Ccdots%2CE_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_1,E_2,&#92;cdots,E_n' title='E_1,E_2,&#92;cdots,E_n' class='latex' />. Then the following shows the number of times the sample point is counted in each expression:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Csum+%5Climits_%7Bm%3D1%7D%5E%7Bn%7DP%5BE_m%5D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+t+%5Ctext%7B+times%7D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='&#92;displaystyle &#92;sum &#92;limits_{m=1}^{n}P[E_m] &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; t &#92;text{ times}' title='&#92;displaystyle &#92;sum &#92;limits_{m=1}^{n}P[E_m] &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; t &#92;text{ times}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Csum+%5Climits_%7Ba%3Cb%7DP%5BE_a+%5Ccap+E_b%5D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Cbinom%7Bt%7D%7B2%7D+%5Ctext%7B+times%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;sum &#92;limits_{a&lt;b}P[E_a &#92;cap E_b] &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;binom{t}{2} &#92;text{ times}' title='&#92;displaystyle &#92;sum &#92;limits_{a&lt;b}P[E_a &#92;cap E_b] &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;binom{t}{2} &#92;text{ times}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Csum+%5Climits_%7Ba%3Cb%3Cc%7DP%5BE_a+%5Ccap+E_b+%5Ccap+E_c%5D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Cbinom%7Bt%7D%7B3%7D+%5Ctext%7B+times+and+so+on%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;sum &#92;limits_{a&lt;b&lt;c}P[E_a &#92;cap E_b &#92;cap E_c] &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;binom{t}{3} &#92;text{ times and so on}' title='&#92;displaystyle &#92;sum &#92;limits_{a&lt;b&lt;c}P[E_a &#92;cap E_b &#92;cap E_c] &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;binom{t}{3} &#92;text{ times and so on}' class='latex' /></p>
<p>Thus the sample point in question will be counted exactly <img src='http://s0.wp.com/latex.php?latex=H&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='H' title='H' class='latex' /> times in the right hand side of the formula.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+H%3D%5Cbinom%7Bt%7D%7B1%7D-%5Cbinom%7Bt%7D%7B2%7D%2B%5Cbinom%7Bt%7D%7B3%7D-+%5Ccdots+%2B+%28-1%29%5E%7Bt%2B1%7D%5Cbinom%7Bt%7D%7Bt%7D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='&#92;displaystyle H=&#92;binom{t}{1}-&#92;binom{t}{2}+&#92;binom{t}{3}- &#92;cdots + (-1)^{t+1}&#92;binom{t}{t}' title='&#92;displaystyle H=&#92;binom{t}{1}-&#92;binom{t}{2}+&#92;binom{t}{3}- &#92;cdots + (-1)^{t+1}&#92;binom{t}{t}' class='latex' /></p>
<p>The following is the derivation that <img src='http://s0.wp.com/latex.php?latex=H%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='H=1' title='H=1' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+0%3D%281-1%29%5Et%3D%5Csum+%5Climits_%7Ba%3D0%7D%5E%7Bt%7D+%5Cbinom%7Bt%7D%7Ba%7D%28-1%29%5E%7Ba%7D%281%29%5E%7Bt-a%7D%3D%5Cbinom%7Bt%7D%7B0%7D-%5Cbinom%7Bt%7D%7B1%7D%2B%5Cbinom%7Bt%7D%7B2%7D%2B+%5Ccdots+%2B%28-1%29%5Et+%5Cbinom%7Bt%7D%7Bt%7D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='&#92;displaystyle 0=(1-1)^t=&#92;sum &#92;limits_{a=0}^{t} &#92;binom{t}{a}(-1)^{a}(1)^{t-a}=&#92;binom{t}{0}-&#92;binom{t}{1}+&#92;binom{t}{2}+ &#92;cdots +(-1)^t &#92;binom{t}{t}' title='&#92;displaystyle 0=(1-1)^t=&#92;sum &#92;limits_{a=0}^{t} &#92;binom{t}{a}(-1)^{a}(1)^{t-a}=&#92;binom{t}{0}-&#92;binom{t}{1}+&#92;binom{t}{2}+ &#92;cdots +(-1)^t &#92;binom{t}{t}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+1%3D%5Cbinom%7Bt%7D%7B0%7D%3D%5Cbinom%7Bt%7D%7B1%7D-%5Cbinom%7Bt%7D%7B2%7D-+%5Ccdots+%2B%28-1%29%5E%7Bt%2B1%7D+%5Cbinom%7Bt%7D%7Bt%7D%3DH&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='&#92;displaystyle 1=&#92;binom{t}{0}=&#92;binom{t}{1}-&#92;binom{t}{2}- &#92;cdots +(-1)^{t+1} &#92;binom{t}{t}=H' title='&#92;displaystyle 1=&#92;binom{t}{0}=&#92;binom{t}{1}-&#92;binom{t}{2}- &#92;cdots +(-1)^{t+1} &#92;binom{t}{t}=H' class='latex' /></p>
<p><em><strong>Reference</strong></em></p>
<ol>
<li>Feller, W., <em>An Introduction to Probability Theory and its Applications</em>, Vol. I, 3rd ed., John Wiley &amp; Sons, Inc., New York, 1968</li>
</ol>
<p><em><strong>Previous Posts on The Matching Problem</strong></em><br />
<a href="http://probabilityandstats.wordpress.com/2010/02/18/the-matching-problem/" target="_blank">The Matching Problem</a></p>
<p><a href="http://probabilityandstats.wordpress.com/2010/05/02/more-about-the-matching-problem/" target="_blank">More About the Matching Problem</a></p>
<p><a href="http://probabilityandstats.wordpress.com/2011/12/24/tis-the-season-for-gift-exchange/" target="_blank">Tis the Season for Gift Exchange</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/probabilityandstats.wordpress.com/2422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/probabilityandstats.wordpress.com/2422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/probabilityandstats.wordpress.com/2422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/probabilityandstats.wordpress.com/2422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/probabilityandstats.wordpress.com/2422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/probabilityandstats.wordpress.com/2422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/probabilityandstats.wordpress.com/2422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/probabilityandstats.wordpress.com/2422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/probabilityandstats.wordpress.com/2422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/probabilityandstats.wordpress.com/2422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/probabilityandstats.wordpress.com/2422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/probabilityandstats.wordpress.com/2422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/probabilityandstats.wordpress.com/2422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/probabilityandstats.wordpress.com/2422/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2422&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://probabilityandstats.wordpress.com/2011/12/28/a-lazy-professor-who-lets-students-do-their-own-grading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31cc16f6389b1b01ea7c6e949e69cab8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">probabilityandstats</media:title>
		</media:content>
	</item>
		<item>
		<title>Tis the Season for Gift Exchange</title>
		<link>http://probabilityandstats.wordpress.com/2011/12/24/tis-the-season-for-gift-exchange/</link>
		<comments>http://probabilityandstats.wordpress.com/2011/12/24/tis-the-season-for-gift-exchange/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 08:07:04 +0000</pubDate>
		<dc:creator>Dan Ma</dc:creator>
				<category><![CDATA[Classic Problems in Probability Theory]]></category>
		<category><![CDATA[Combinatorial probability]]></category>
		<category><![CDATA[Probability]]></category>
		<category><![CDATA[Probability Theory]]></category>
		<category><![CDATA[Classic problems in probability]]></category>
		<category><![CDATA[Inclusion exclusion principle]]></category>
		<category><![CDATA[Probability and statistics]]></category>
		<category><![CDATA[The matching problem]]></category>

		<guid isPermaLink="false">http://probabilityandstats.wordpress.com/?p=2552</guid>
		<description><![CDATA[Suppose that there are 10 people in a holiday party with each person bearing a gift. The gifts are put in a pile and each person randomly selects one gift from the pile. In order not to bias the random &#8230; <a href="http://probabilityandstats.wordpress.com/2011/12/24/tis-the-season-for-gift-exchange/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2552&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suppose that there are 10 people in a holiday party with each person bearing a gift. The gifts are put in a pile and each person randomly selects one gift from the pile. In order not to bias the random selection of gifts, suppose that the partygoers select gifts by picking slips of papers with numbers identifying the gifts. What is the probability that there is at least one partygoer who ends up selecting his or her own gift? In this example, selecting one&#8217;s gift is called a match. What is the probability that there is at least one match if there are more people in the party, say 50 or 100 people? What is the behavior of this probability if the size of the party increases without bound?</p>
<p>The above example is a description of a classic problem in probability called the matching problem. There are many colorful descriptions of the problem. One such description is that there are <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> married couples in a ballroom dancing class. The instructor pairs the ladies with the gentlemen at random. A match occurs if a married couple is paired as dancing partners.</p>
<p>Whatever the description, the matching problem involves two lists of items that are paired according to a particular order (the original order). When the items in the first list are paired with the items in the second list according to another random ordering, a match occurs if an item in the first list and an item in the second list are paired both in the original order and in the new order. The matching problem discussed here is: what is the probability that there is at least one match? Seen in this light, both examples described above are equivalent mathematically.</p>
<p>We now continue with the discussion of the random gift selection example. Suppose that there are <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> people in the party. Let <img src='http://s0.wp.com/latex.php?latex=E_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_i' title='E_i' class='latex' /> be the event that the <img src='http://s0.wp.com/latex.php?latex=i%5E%7Bth%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i^{th}' title='i^{th}' class='latex' /> person selects his or her own gift. The event <img src='http://s0.wp.com/latex.php?latex=E%3DE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E=E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n' title='E=E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n' class='latex' /> is the event that at least one person selects his or her own gift (i.e. there is at least one match). The probability <img src='http://s0.wp.com/latex.php?latex=P%28E%29%3DP%28E_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(E)=P(E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n)' title='P(E)=P(E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n)' class='latex' /> is the solution of the matching problem as described in the beginning. The following is the probability <img src='http://s0.wp.com/latex.php?latex=P%28E%29%3DP%28E_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(E)=P(E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n)' title='P(E)=P(E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n)' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%281%29+%5C+%5C+%5C+%5C+%5C+%5C+P%5BE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%5D%3D1-%5Cfrac%7B1%7D%7B2%21%7D%2B%5Cfrac%7B1%7D%7B3%21%7D-%5Ccdots%2B%28-1%29%5E%7Bn%2B1%7D+%5Cfrac%7B1%7D%7Bn%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; &#92; P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]=1-&#92;frac{1}{2!}+&#92;frac{1}{3!}-&#92;cdots+(-1)^{n+1} &#92;frac{1}{n!}' title='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; &#92; P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]=1-&#92;frac{1}{2!}+&#92;frac{1}{3!}-&#92;cdots+(-1)^{n+1} &#92;frac{1}{n!}' class='latex' /></p>
<p>The answer in <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' /> is obtained by using an idea called the inclusion-exclusion principle. We will get to that in just a minute. First let&#8217;s look at the results of <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' /> for a few iterations. </p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282%29+%5C+%5C+%5C+%5C+%5C+%5C++%5Cbegin%7Bbmatrix%7D+%5Ctext%7Bn%7D%26%5Ctext%7B+%7D%26+P%5BE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%5D++%5C%5C%5Ctext%7B+%7D%26%5Ctext%7B+%7D%26%5Ctext%7B+%7D+%5C%5C+3%26%5Ctext%7B+%7D%260.666667++%5C%5C+4%26%5Ctext%7B+%7D%260.625000++%5C%5C+5%26%5Ctext%7B+%7D%260.633333++%5C%5C+6%26%5Ctext%7B+%7D%260.631944++%5C%5C+7%26%5Ctext%7B+%7D%260.632143++%5C%5C+8%26%5Ctext%7B+%7D%260.632118+%5C%5C+9%26%5Ctext%7B+%7D%260.632121+%5C%5C+10%26%5Ctext%7B+%7D%260.632121+%5C%5C+11%26%5Ctext%7B+%7D%260.632121+%5C%5C+12%26%5Ctext%7B+%7D%260.632121+%5Cend%7Bbmatrix%7D&amp;bg=ffffff&amp;fg=333333&amp;s=-1' alt='&#92;displaystyle (2) &#92; &#92; &#92; &#92; &#92; &#92;  &#92;begin{bmatrix} &#92;text{n}&amp;&#92;text{ }&amp; P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]  &#92;&#92;&#92;text{ }&amp;&#92;text{ }&amp;&#92;text{ } &#92;&#92; 3&amp;&#92;text{ }&amp;0.666667  &#92;&#92; 4&amp;&#92;text{ }&amp;0.625000  &#92;&#92; 5&amp;&#92;text{ }&amp;0.633333  &#92;&#92; 6&amp;&#92;text{ }&amp;0.631944  &#92;&#92; 7&amp;&#92;text{ }&amp;0.632143  &#92;&#92; 8&amp;&#92;text{ }&amp;0.632118 &#92;&#92; 9&amp;&#92;text{ }&amp;0.632121 &#92;&#92; 10&amp;&#92;text{ }&amp;0.632121 &#92;&#92; 11&amp;&#92;text{ }&amp;0.632121 &#92;&#92; 12&amp;&#92;text{ }&amp;0.632121 &#92;end{bmatrix}' title='&#92;displaystyle (2) &#92; &#92; &#92; &#92; &#92; &#92;  &#92;begin{bmatrix} &#92;text{n}&amp;&#92;text{ }&amp; P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]  &#92;&#92;&#92;text{ }&amp;&#92;text{ }&amp;&#92;text{ } &#92;&#92; 3&amp;&#92;text{ }&amp;0.666667  &#92;&#92; 4&amp;&#92;text{ }&amp;0.625000  &#92;&#92; 5&amp;&#92;text{ }&amp;0.633333  &#92;&#92; 6&amp;&#92;text{ }&amp;0.631944  &#92;&#92; 7&amp;&#92;text{ }&amp;0.632143  &#92;&#92; 8&amp;&#92;text{ }&amp;0.632118 &#92;&#92; 9&amp;&#92;text{ }&amp;0.632121 &#92;&#92; 10&amp;&#92;text{ }&amp;0.632121 &#92;&#92; 11&amp;&#92;text{ }&amp;0.632121 &#92;&#92; 12&amp;&#92;text{ }&amp;0.632121 &#92;end{bmatrix}' class='latex' /></p>
<p>In a party with random gift exchange, it appears that regardless of the size of the party, there is a very good chance that someone will end up picking his or her own gift! A match will happen about 63% of the time.</p>
<p>It turns out that the answers in <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' /> are related to the Taylor&#8217;s series expansion of <img src='http://s0.wp.com/latex.php?latex=e%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e^{-1}' title='e^{-1}' class='latex' />. We show that the probability in <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' /> will always converge to <img src='http://s0.wp.com/latex.php?latex=1-e%5E%7B-1%7D%3D0.632121&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1-e^{-1}=0.632121' title='1-e^{-1}=0.632121' class='latex' />. Note that the Taylor&#8217;s series expansion of <img src='http://s0.wp.com/latex.php?latex=e%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e^{-1}' title='e^{-1}' class='latex' /> is:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%283%29+%5C+%5C+%5C+%5C+%5C+%5C+e%5E%7B-1%7D%3D%5Cfrac%7B1%7D%7B0%21%7D-%5Cfrac%7B1%7D%7B1%21%7D%2B%5Cfrac%7B1%7D%7B2%21%7D-%5Cfrac%7B1%7D%7B3%21%7D%2B%5Ccdots%2B%28-1%29%5En+%5Cfrac%7B1%7D%7Bn%21%7D%2B%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (3) &#92; &#92; &#92; &#92; &#92; &#92; e^{-1}=&#92;frac{1}{0!}-&#92;frac{1}{1!}+&#92;frac{1}{2!}-&#92;frac{1}{3!}+&#92;cdots+(-1)^n &#92;frac{1}{n!}+&#92;cdots' title='&#92;displaystyle (3) &#92; &#92; &#92; &#92; &#92; &#92; e^{-1}=&#92;frac{1}{0!}-&#92;frac{1}{1!}+&#92;frac{1}{2!}-&#92;frac{1}{3!}+&#92;cdots+(-1)^n &#92;frac{1}{n!}+&#92;cdots' class='latex' /></p>
<p>Consequently, the Taylor&#8217;s series expansion of <img src='http://s0.wp.com/latex.php?latex=1-e%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1-e^{-1}' title='1-e^{-1}' class='latex' /> is:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+%284%29+%5C+%5C+%5C+%5C+%5C+%5C+++1-e%5E%7B-1%7D%26%3D1-%5Cbiggl%281-1%2B%5Cfrac%7B1%7D%7B2%21%7D-%5Cfrac%7B1%7D%7B3%21%7D%2B%5Ccdots%2B%28-1%29%5En+%5Cfrac%7B1%7D%7Bn%21%7D%2B%5Ccdots+%5Cbiggr%29+%5C%5C%26%3D1-%5Cfrac%7B1%7D%7B2%21%7D%2B%5Cfrac%7B1%7D%7B3%21%7D-%5Ccdots%2B%28-1%29%5E%7Bn%2B1%7D+%5Cfrac%7B1%7D%7Bn%21%7D%2B%5Ccdots++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} (4) &#92; &#92; &#92; &#92; &#92; &#92;   1-e^{-1}&amp;=1-&#92;biggl(1-1+&#92;frac{1}{2!}-&#92;frac{1}{3!}+&#92;cdots+(-1)^n &#92;frac{1}{n!}+&#92;cdots &#92;biggr) &#92;&#92;&amp;=1-&#92;frac{1}{2!}+&#92;frac{1}{3!}-&#92;cdots+(-1)^{n+1} &#92;frac{1}{n!}+&#92;cdots  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} (4) &#92; &#92; &#92; &#92; &#92; &#92;   1-e^{-1}&amp;=1-&#92;biggl(1-1+&#92;frac{1}{2!}-&#92;frac{1}{3!}+&#92;cdots+(-1)^n &#92;frac{1}{n!}+&#92;cdots &#92;biggr) &#92;&#92;&amp;=1-&#92;frac{1}{2!}+&#92;frac{1}{3!}-&#92;cdots+(-1)^{n+1} &#92;frac{1}{n!}+&#92;cdots  &#92;end{aligned}' class='latex' /></p>
<p>Note that the sum of the first <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> terms of the series in <img src='http://s0.wp.com/latex.php?latex=%284%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4)' title='(4)' class='latex' /> is the probability in <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' />. As the number of partygoers <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> increases, the probability <img src='http://s0.wp.com/latex.php?latex=P%5BE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]' title='P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]' class='latex' /> will be closer and closer to <img src='http://s0.wp.com/latex.php?latex=1-e%5E%7B-1%7D%3D0.6321&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1-e^{-1}=0.6321' title='1-e^{-1}=0.6321' class='latex' />. We have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%285%29+%5C+%5C+%5C+%5C+%5C+%5C+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+P%5BE_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%5D%3D1+-+e%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]=1 - e^{-1}' title='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} P[E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n]=1 - e^{-1}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%286%29+%5C+%5C+%5C+%5C+%5C+%5C+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+P%5B%28E_1+%5Ccup+E_2+%5Ccup+%5Ccdots+%5Ccup+E_n%29%5Ec%5D%3De%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (6) &#92; &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} P[(E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n)^c]=e^{-1}' title='&#92;displaystyle (6) &#92; &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} P[(E_1 &#92;cup E_2 &#92;cup &#92;cdots &#92;cup E_n)^c]=e^{-1}' class='latex' /></p>
<p>The equation <img src='http://s0.wp.com/latex.php?latex=%285%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(5)' title='(5)' class='latex' /> says that it does not matter how many people are in the random gift exchange, the answer to the matching problem is always <img src='http://s0.wp.com/latex.php?latex=1-e%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1-e^{-1}' title='1-e^{-1}' class='latex' /> in the limit. The equation <img src='http://s0.wp.com/latex.php?latex=%286%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6)' title='(6)' class='latex' /> says that the probability of having no matches approaches <img src='http://s0.wp.com/latex.php?latex=e%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e^{-1}' title='e^{-1}' class='latex' />. There is a better than even chance (<img src='http://s0.wp.com/latex.php?latex=0.63&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0.63' title='0.63' class='latex' /> to be more precise) that there is at least one match. So in a random gift exchange as described at the beginning, it is much easier to see a match than not to see one.</p>
<p><em><strong>The Inclusion-Exclusion Principle</strong></em></p>
<p>We now want to give some indication why <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' /> provides the answers. The inclusion-exclusion principle is a formula for finding the probability of the union of events. For the union of two events and the union of three events, we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%287%29+%5C+%5C+%5C+%5C+%5C+%5C+P%5BE_1+%5Ccup+E_2%5D%3DP%5BE_1%5D%2BP%5BE_1%5D-P%5BE_1+%5Ccap+E_2%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (7) &#92; &#92; &#92; &#92; &#92; &#92; P[E_1 &#92;cup E_2]=P[E_1]+P[E_1]-P[E_1 &#92;cap E_2]' title='&#92;displaystyle (7) &#92; &#92; &#92; &#92; &#92; &#92; P[E_1 &#92;cup E_2]=P[E_1]+P[E_1]-P[E_1 &#92;cap E_2]' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+%288%29+%5C+%5C+%5C+%5C+%5C+%5C+++P%5BE_1+%5Ccup+E_2+%5Ccup+E_3%5D%26%3DP%5BE_1%5D%2BP%5BE_1%5D%2BP%5BE_3%5D+%5C%5C%26+%5C+%5C+%5C+%5C+-P%5BE_1+%5Ccap+E_2%5D-P%5BE_1+%5Ccap+E_3%5D-P%5BE_2+%5Ccap+E_3%5D+%5C%5C%26+%5C+%5C+%5C+%5C+%2BP%5BE_1+%5Ccap+E_2+%5Ccap+E_3%5D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} (8) &#92; &#92; &#92; &#92; &#92; &#92;   P[E_1 &#92;cup E_2 &#92;cup E_3]&amp;=P[E_1]+P[E_1]+P[E_3] &#92;&#92;&amp; &#92; &#92; &#92; &#92; -P[E_1 &#92;cap E_2]-P[E_1 &#92;cap E_3]-P[E_2 &#92;cap E_3] &#92;&#92;&amp; &#92; &#92; &#92; &#92; +P[E_1 &#92;cap E_2 &#92;cap E_3]  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} (8) &#92; &#92; &#92; &#92; &#92; &#92;   P[E_1 &#92;cup E_2 &#92;cup E_3]&amp;=P[E_1]+P[E_1]+P[E_3] &#92;&#92;&amp; &#92; &#92; &#92; &#92; -P[E_1 &#92;cap E_2]-P[E_1 &#92;cap E_3]-P[E_2 &#92;cap E_3] &#92;&#92;&amp; &#92; &#92; &#92; &#92; +P[E_1 &#92;cap E_2 &#92;cap E_3]  &#92;end{aligned}' class='latex' /></p>
<p>To find the probability of the union of <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> events, we first add up the probabilities of the individual events <img src='http://s0.wp.com/latex.php?latex=E_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_i' title='E_i' class='latex' />. Because the resulting sum overshoots, we need to subtract the probabilities of the intersections <img src='http://s0.wp.com/latex.php?latex=E_i+%5Ccap+E_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_i &#92;cap E_j' title='E_i &#92;cap E_j' class='latex' />. Because the subtractions remove too much, we need to add back the probabilities of the intersections of three individual events <img src='http://s0.wp.com/latex.php?latex=E_i+%5Ccap+E_j+%5Ccap+E_k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_i &#92;cap E_j &#92;cap E_k' title='E_i &#92;cap E_j &#92;cap E_k' class='latex' />. The process of inclusion and exclusion continues until we reach the step of adding/removing of the intersection <img src='http://s0.wp.com/latex.php?latex=E_1+%5Ccap+%5Ccdots+%5Ccap+E_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_1 &#92;cap &#92;cdots &#92;cap E_n' title='E_1 &#92;cap &#92;cdots &#92;cap E_n' class='latex' />. The following is the statement of the inclusion-exclusion principle.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%289%29+%5C+%5C+%5C+%5C+%5C+%5C+P%5BE_1+%5Ccup+E_2+%5Ccdots+%5Ccup+E_n%5D%3DS_1-S_2%2BS_3-+%5C+%5C+%5Ccdots+%5C+%5C+%2B%28-1%29%5E%7Bn%2B1%7DS_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (9) &#92; &#92; &#92; &#92; &#92; &#92; P[E_1 &#92;cup E_2 &#92;cdots &#92;cup E_n]=S_1-S_2+S_3- &#92; &#92; &#92;cdots &#92; &#92; +(-1)^{n+1}S_n' title='&#92;displaystyle (9) &#92; &#92; &#92; &#92; &#92; &#92; P[E_1 &#92;cup E_2 &#92;cdots &#92;cup E_n]=S_1-S_2+S_3- &#92; &#92; &#92;cdots &#92; &#92; +(-1)^{n+1}S_n' class='latex' /></p>
<p>In <img src='http://s0.wp.com/latex.php?latex=%289%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(9)' title='(9)' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=S_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S_1' title='S_1' class='latex' /> is the sum of all probabilities <img src='http://s0.wp.com/latex.php?latex=P%5BE_i%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P[E_i]' title='P[E_i]' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=S_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S_2' title='S_2' class='latex' /> is the sum of all possible probabilities of the intersection of two events <img src='http://s0.wp.com/latex.php?latex=E_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_i' title='E_i' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=E_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_j' title='E_j' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=S_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S_3' title='S_3' class='latex' /> is the sum of all possible probabilities of the intersection of three events and so on.</p>
<p>We now apply the inclusion-exclusion principle to derive equation <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' />. The event <img src='http://s0.wp.com/latex.php?latex=E_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_i' title='E_i' class='latex' /> is the event that the <img src='http://s0.wp.com/latex.php?latex=i%5E%7Bth%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i^{th}' title='i^{th}' class='latex' /> person gets his or her own gift while the other <img src='http://s0.wp.com/latex.php?latex=n-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n-1' title='n-1' class='latex' /> people are free to select gifts. The probability of this event is <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%5BE_i%5D%3D%5Cfrac%7B%28n-1%29%21%7D%7Bn%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle P[E_i]=&#92;frac{(n-1)!}{n!}' title='&#92;displaystyle P[E_i]=&#92;frac{(n-1)!}{n!}' class='latex' />. There are <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbinom%7Bn%7D%7B1%7D%3D%5Cfrac%7Bn%21%7D%7B1%21+%28n-1%29%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;binom{n}{1}=&#92;frac{n!}{1! (n-1)!}' title='&#92;displaystyle &#92;binom{n}{1}=&#92;frac{n!}{1! (n-1)!}' class='latex' /> many ways of fixing 1 gift. So <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+S_1%3D%5Cbinom%7Bn%7D%7B1%7D+%5Ctimes+%5Cfrac%7B%28n-1%29%21%7D%7Bn%21%7D%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle S_1=&#92;binom{n}{1} &#92;times &#92;frac{(n-1)!}{n!}=1' title='&#92;displaystyle S_1=&#92;binom{n}{1} &#92;times &#92;frac{(n-1)!}{n!}=1' class='latex' />.</p>
<p>Now consider the intersection of two events. The event <img src='http://s0.wp.com/latex.php?latex=E_i+%5Ccap+E_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E_i &#92;cap E_j' title='E_i &#92;cap E_j' class='latex' /> is the event that the <img src='http://s0.wp.com/latex.php?latex=i%5E%7Bth%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i^{th}' title='i^{th}' class='latex' /> person and the <img src='http://s0.wp.com/latex.php?latex=j%5E%7Bth%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j^{th}' title='j^{th}' class='latex' /> person get their own gifts while the other <img src='http://s0.wp.com/latex.php?latex=%28n-2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n-2)' title='(n-2)' class='latex' /> people are free to select gifts. The probability of this event is <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%5BE_i+%5Ccap+E_j%5D%3D%5Cfrac%7B%28n-2%29%21%7D%7Bn%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle P[E_i &#92;cap E_j]=&#92;frac{(n-2)!}{n!}' title='&#92;displaystyle P[E_i &#92;cap E_j]=&#92;frac{(n-2)!}{n!}' class='latex' />. There are <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbinom%7Bn%7D%7B2%7D%3D%5Cfrac%7Bn%21%7D%7B2%21+%28n-2%29%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;binom{n}{2}=&#92;frac{n!}{2! (n-2)!}' title='&#92;displaystyle &#92;binom{n}{2}=&#92;frac{n!}{2! (n-2)!}' class='latex' /> many ways of fixing 2 gifts. So <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+S_2%3D%5Cbinom%7Bn%7D%7B2%7D+%5Ctimes+%5Cfrac%7B%28n-2%29%21%7D%7Bn%21%7D%3D%5Cfrac%7B1%7D%7B2%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle S_2=&#92;binom{n}{2} &#92;times &#92;frac{(n-2)!}{n!}=&#92;frac{1}{2!}' title='&#92;displaystyle S_2=&#92;binom{n}{2} &#92;times &#92;frac{(n-2)!}{n!}=&#92;frac{1}{2!}' class='latex' />.</p>
<p>By the same reasoning, we derive that <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+S_3%3D%5Cfrac%7B1%7D%7B3%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle S_3=&#92;frac{1}{3!}' title='&#92;displaystyle S_3=&#92;frac{1}{3!}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+S_4%3D%5Cfrac%7B1%7D%7B4%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle S_4=&#92;frac{1}{4!}' title='&#92;displaystyle S_4=&#92;frac{1}{4!}' class='latex' /> and so on. Then plugging <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+S_i%3D%5Cfrac%7B1%7D%7Bi%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle S_i=&#92;frac{1}{i!}' title='&#92;displaystyle S_i=&#92;frac{1}{i!}' class='latex' /> into <img src='http://s0.wp.com/latex.php?latex=%289%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(9)' title='(9)' class='latex' />, we obtain the answers in <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' />.</p>
<p>The matching problem had been discussed previously in the following posts.</p>
<p><a href="http://probabilityandstats.wordpress.com/?s=the+matching+problem" target="_blank">The matching problem</a></p>
<p><a href="http://probabilityandstats.wordpress.com/2010/05/02/more-about-the-matching-problem/" target="_blank">Mote about the matching problem</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/probabilityandstats.wordpress.com/2552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/probabilityandstats.wordpress.com/2552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/probabilityandstats.wordpress.com/2552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/probabilityandstats.wordpress.com/2552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/probabilityandstats.wordpress.com/2552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/probabilityandstats.wordpress.com/2552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/probabilityandstats.wordpress.com/2552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/probabilityandstats.wordpress.com/2552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/probabilityandstats.wordpress.com/2552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/probabilityandstats.wordpress.com/2552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/probabilityandstats.wordpress.com/2552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/probabilityandstats.wordpress.com/2552/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/probabilityandstats.wordpress.com/2552/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/probabilityandstats.wordpress.com/2552/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2552&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://probabilityandstats.wordpress.com/2011/12/24/tis-the-season-for-gift-exchange/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31cc16f6389b1b01ea7c6e949e69cab8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">probabilityandstats</media:title>
		</media:content>
	</item>
		<item>
		<title>Poisson as a Limiting Case of Binomial Distribution</title>
		<link>http://probabilityandstats.wordpress.com/2011/08/18/poisson-as-a-limiting-case-of-binomial-distribution/</link>
		<comments>http://probabilityandstats.wordpress.com/2011/08/18/poisson-as-a-limiting-case-of-binomial-distribution/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 07:21:56 +0000</pubDate>
		<dc:creator>Dan Ma</dc:creator>
				<category><![CDATA[Probability]]></category>
		<category><![CDATA[Probability Theory]]></category>
		<category><![CDATA[Bernoulli distribution]]></category>
		<category><![CDATA[Binomial distribution]]></category>
		<category><![CDATA[Poisson distribution]]></category>
		<category><![CDATA[Poisson process]]></category>
		<category><![CDATA[Probability and statistics]]></category>

		<guid isPermaLink="false">http://probabilityandstats.wordpress.com/?p=2529</guid>
		<description><![CDATA[In many binomial problems, the number of Bernoulli trials is large, relatively speaking, and the probability of success is small such that is of moderate magnitude. For example, consider problems that deal with rare events where the probability of occurrence &#8230; <a href="http://probabilityandstats.wordpress.com/2011/08/18/poisson-as-a-limiting-case-of-binomial-distribution/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2529&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In many binomial problems, the number of Bernoulli trials <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> is large, relatively speaking, and the probability of success <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is small such that <img src='http://s0.wp.com/latex.php?latex=n+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n p' title='n p' class='latex' /> is of moderate magnitude. For example, consider problems that deal with rare events where the probability of occurrence is small (as a concrete example, counting the number of people with July 1 as birthday out of a random sample of 1000 people). It is often convenient to approximate such binomial problems using the Poisson distribution. The justification for using the Poisson approximation is that the Poisson distribution is a limiting case of the binomial distribution. Now that cheap computing power is widely available, it is quite easy to use computer or other computing devices to obtain exact binomial probabiities for experiments up to 1000 trials or more. Though the Poisson approximation may no longer be necessary for such problems, knowing how to get from binomial to Poisson is important for understanding the Poisson distribution itself.</p>
<p>Consider a counting process that describes the occurrences of a certain type of events of interest in a unit time interval subject to three simplifying assumptions (discussed below). We are interested in counting the number of occurrences of the event of interest in a unit time interval. As a concrete example, consider the number of cars arriving at an observation point in a certain highway in a period of time, say one hour. We wish to model the probability distribution of how many cars that will arrive at the observation point in this particular highway in one hour. Let <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> be the random variable described by this probability distribution. We wish to konw the probability that there are <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> cars arriving in one hour. We start with using a binomial distribution as an approximation to the probability <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dk%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(X=k)' title='P(X=k)' class='latex' />. We will see that upon letting <img src='http://s0.wp.com/latex.php?latex=n+%5Crightarrow+%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &#92;rightarrow &#92;infty' title='n &#92;rightarrow &#92;infty' class='latex' />, the <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dk%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(X=k)' title='P(X=k)' class='latex' /> is a Poisson probability.</p>
<p>Suppose that we know <img src='http://s0.wp.com/latex.php?latex=E%28X%29%3D%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(X)=&#92;alpha' title='E(X)=&#92;alpha' class='latex' />, perhaps an average obtained after observing cars at the observation points for many hours. The simplifying assumptions alluded to earlier are the following:</p>
<ol>
<li>The numbers of cars arriving in nonoverlapping time intervals are independent.</li>
<li>The probability of one car arriving in a very short time interval of length <img src='http://s0.wp.com/latex.php?latex=h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h' title='h' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5Calpha+h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha h' title='&#92;alpha h' class='latex' />.</li>
<li>The probability of having more than one car arriving in a very short time interval is esstentially zero.</li>
</ol>
<p>Assumption 1 means that a large number of cars arriving in one period does not imply fewer cars will arrival in the next period and vice versa. In other words, the number of cars that arrive in any one given moment does affect the number of cars that will arrive subsequently. Knowing how many cars arriving in one minute will not help predict the number of cars arriving at the next minute. </p>
<p>Assumption 2 means that the rate of cars arriving is dependent only on the length of the time interval and not on when the time interval occurs (e.g. not on whether it is at the beginning of the hour or toward the end of the hour). </p>
<p>Assumptions 3 allows us to think of a very short period of time as a Bernoulli trial. Thinking of the arrival of a car as a success, each short time interval will result in only one success or one failure. </p>
<p>Assumption 2 tells us that non-overlapping short time intervals of the same length have identical probability of success. Overall, all three assumptions imply that non-overlapping short intervals of the same length are inpdendent Bernoulli trials with identical probability of success, giving us the basis for applying binomial distribution.</p>
<p>To start, we can break up the hour into 60 minutes (into 60 Bernoulli trials). We then consider the binomial distribution with <img src='http://s0.wp.com/latex.php?latex=n%3D60&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n=60' title='n=60' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p%3D%5Cfrac%7B%5Calpha%7D%7B60%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p=&#92;frac{&#92;alpha}{60}' title='p=&#92;frac{&#92;alpha}{60}' class='latex' />. So the following is an approximation to our desired probability distribution.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%281%29+%5C+%5C+%5C+%5C+%5C+P%28X%3Dk%29+%5Capprox+%5Cbinom%7B60%7D%7Bk%7D+%5Cbiggl%28%5Cfrac%7B%5Calpha%7D%7B60%7D%5Cbiggr%29%5Ek+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7B60%7D%5Cbiggr%29%5E%7B60-k%7D+%5C+%5C+%5C+%5C+%5C+k%3D0%2C1%2C2%2C%5Ccdots%2C+60&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; P(X=k) &#92;approx &#92;binom{60}{k} &#92;biggl(&#92;frac{&#92;alpha}{60}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{60}&#92;biggr)^{60-k} &#92; &#92; &#92; &#92; &#92; k=0,1,2,&#92;cdots, 60' title='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; P(X=k) &#92;approx &#92;binom{60}{k} &#92;biggl(&#92;frac{&#92;alpha}{60}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{60}&#92;biggr)^{60-k} &#92; &#92; &#92; &#92; &#92; k=0,1,2,&#92;cdots, 60' class='latex' /></p>
<p>Conceivably, there can be more than 1 car arriving in a minute and observing cars in a one-minute interval may not be a Bernoulli trial. For a one-minute interval to qualify as a Bernoulli trial, there is either no car arriving or 1 car arriving in that one minute. So we can break up an hour into 3,600 seconds (into 3,600 Bernoulli trials). We now consider the binomial distribution with <img src='http://s0.wp.com/latex.php?latex=n%3D3600&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n=3600' title='n=3600' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p%3D%5Cfrac%7B%5Calpha%7D%7B3600%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p=&#92;frac{&#92;alpha}{3600}' title='p=&#92;frac{&#92;alpha}{3600}' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282%29+%5C+%5C+%5C+%5C+%5C+P%28X%3Dk%29+%5Capprox+%5Cbinom%7B3600%7D%7Bk%7D+%5Cbiggl%28%5Cfrac%7B%5Calpha%7D%7B3600%7D%5Cbiggr%29%5Ek+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7B3600%7D%5Cbiggr%29%5E%7B3600-k%7D+%5C+%5C+%5C+%5C+%5C+k%3D0%2C1%2C2%2C%5Ccdots%2C+3600&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (2) &#92; &#92; &#92; &#92; &#92; P(X=k) &#92;approx &#92;binom{3600}{k} &#92;biggl(&#92;frac{&#92;alpha}{3600}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{3600}&#92;biggr)^{3600-k} &#92; &#92; &#92; &#92; &#92; k=0,1,2,&#92;cdots, 3600' title='&#92;displaystyle (2) &#92; &#92; &#92; &#92; &#92; P(X=k) &#92;approx &#92;binom{3600}{k} &#92;biggl(&#92;frac{&#92;alpha}{3600}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{3600}&#92;biggr)^{3600-k} &#92; &#92; &#92; &#92; &#92; k=0,1,2,&#92;cdots, 3600' class='latex' /></p>
<p>It is also conceivable that more than 1 car can arrive in one second and observing cars in one-second interval may still not qualify as a Bernoulli trial. So we need to get more granular. We can divide up the hour into <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> equal subintervals, each of length <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7Bn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{1}{n}' title='&#92;frac{1}{n}' class='latex' />. Assumption 3 ensures that each subinterval is a Bernoulli trial (either it is a success or a failure; one car arriving or no car arriving). Assumption 2 ensures that the non-overlapping subintervals all have the same probability of success. Assumption 1 tells us that all the <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> subintervals are independent. So breaking up the hour into <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> moments and counting the number of moments that are successes will result in a binomial distribution with parameters <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p%3D%5Cfrac%7B%5Calpha%7D%7Bn%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p=&#92;frac{&#92;alpha}{n}' title='p=&#92;frac{&#92;alpha}{n}' class='latex' />. So we are ready to proceed with the following approximation to our probability distribution <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dk%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(X=k)' title='P(X=k)' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%283%29+%5C+%5C+%5C+%5C+%5C+P%28X%3Dk%29+%5Capprox+%5Cbinom%7Bn%7D%7Bk%7D+%5Cbiggl%28%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5Ek+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7Bn-k%7D+%5C+%5C+%5C+%5C+%5C+k%3D0%2C1%2C2%2C%5Ccdots%2C+n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (3) &#92; &#92; &#92; &#92; &#92; P(X=k) &#92;approx &#92;binom{n}{k} &#92;biggl(&#92;frac{&#92;alpha}{n}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n-k} &#92; &#92; &#92; &#92; &#92; k=0,1,2,&#92;cdots, n' title='&#92;displaystyle (3) &#92; &#92; &#92; &#92; &#92; P(X=k) &#92;approx &#92;binom{n}{k} &#92;biggl(&#92;frac{&#92;alpha}{n}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n-k} &#92; &#92; &#92; &#92; &#92; k=0,1,2,&#92;cdots, n' class='latex' /></p>
<p>As we get more granular, <img src='http://s0.wp.com/latex.php?latex=n+%5Crightarrow+%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &#92;rightarrow &#92;infty' title='n &#92;rightarrow &#92;infty' class='latex' />. We show that the limit of the binomial probability in <img src='http://s0.wp.com/latex.php?latex=%283%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(3)' title='(3)' class='latex' /> is the Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />. We show the following.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%284%29+%5C+%5C+%5C+%5C+%5C+P%28X%3Dk%29+%3D+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5Cbinom%7Bn%7D%7Bk%7D+%5Cbiggl%28%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5Ek+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7Bn-k%7D%3D%5Cfrac%7Be%5E%7B-%5Calpha%7D+%5Calpha%5Ek%7D%7Bk%21%7D+%5C+%5C+%5C+%5C+%5C+%5C+k%3D0%2C1%2C2%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (4) &#92; &#92; &#92; &#92; &#92; P(X=k) = &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;binom{n}{k} &#92;biggl(&#92;frac{&#92;alpha}{n}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n-k}=&#92;frac{e^{-&#92;alpha} &#92;alpha^k}{k!} &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,&#92;cdots' title='&#92;displaystyle (4) &#92; &#92; &#92; &#92; &#92; P(X=k) = &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;binom{n}{k} &#92;biggl(&#92;frac{&#92;alpha}{n}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n-k}=&#92;frac{e^{-&#92;alpha} &#92;alpha^k}{k!} &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,&#92;cdots' class='latex' /></p>
<p>In the derivation of <img src='http://s0.wp.com/latex.php?latex=%284%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4)' title='(4)' class='latex' />, we need the following two mathematical tools. The statement <img src='http://s0.wp.com/latex.php?latex=%285%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(5)' title='(5)' class='latex' /> is one of the definitions of the mathematical constant <img src='http://s0.wp.com/latex.php?latex=e&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e' title='e' class='latex' />. In the statement <img src='http://s0.wp.com/latex.php?latex=%286%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6)' title='(6)' class='latex' />, the integer <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> in the numerator is greater than the integer <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> in the denominator. It says that whenever we work with such a ratio of two factorials, the result is the product of <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> with the smaller integers down to <img src='http://s0.wp.com/latex.php?latex=%28n-%28k-1%29%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(n-(k-1))' title='(n-(k-1))' class='latex' />. There are exactly <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> terms in the product.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%285%29+%5C+%5C+%5C+%5C+%5C+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5Cbiggl%281%2B%5Cfrac%7Bx%7D%7Bn%7D%5Cbiggr%29%5En%3De%5Ex&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;biggl(1+&#92;frac{x}{n}&#92;biggr)^n=e^x' title='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;biggl(1+&#92;frac{x}{n}&#92;biggr)^n=e^x' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%286%29+%5C+%5C+%5C+%5C+%5C+%5Cfrac%7Bn%21%7D%7B%28n-k%29%21%7D%3Dn%28n-1%29%28n-2%29+%5Ccdots+%28n-k%2B1%29+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C++k%3Cn&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (6) &#92; &#92; &#92; &#92; &#92; &#92;frac{n!}{(n-k)!}=n(n-1)(n-2) &#92;cdots (n-k+1) &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;  k&lt;n' title='&#92;displaystyle (6) &#92; &#92; &#92; &#92; &#92; &#92;frac{n!}{(n-k)!}=n(n-1)(n-2) &#92;cdots (n-k+1) &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;  k&lt;n' class='latex' /></p>
<p>The following is the derivation of <img src='http://s0.wp.com/latex.php?latex=%284%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4)' title='(4)' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%287%29+%5C+%5C+%5C+%5C+%5C++P%28X%3Dk%29%26%3D%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5Cbinom%7Bn%7D%7Bk%7D+%5Cbiggl%28%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5Ek+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7Bn-k%7D+%5C%5C%26%3D%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5C+%5Cfrac%7Bn%21%7D%7Bk%21+%28n-k%29%21%7D+%5Cbiggl%28%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5Ek+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7Bn-k%7D+%5C%5C%26%3D%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5C+%5Cfrac%7Bn%28n-1%29%28n-2%29+%5Ccdots+%28n-k%2B1%29%7D%7Bn%5Ek%7D+%5Cbiggl%28%5Cfrac%7B%5Calpha%5Ek%7D%7Bk%21%7D%5Cbiggr%29+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7Bn%7D+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7B-k%7D+%5C%5C%26%3D%5Cbiggl%28%5Cfrac%7B%5Calpha%5Ek%7D%7Bk%21%7D%5Cbiggr%29+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5C+%5Cfrac%7Bn%28n-1%29%28n-2%29+%5Ccdots+%28n-k%2B1%29%7D%7Bn%5Ek%7D+%5C%5C%26%5Ctimes+%5C+%5C+%5C+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7Bn%7D+%5C+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7B-k%7D+%5C%5C%26%3D%5Cfrac%7Be%5E%7B-%5Calpha%7D+%5Calpha%5Ek%7D%7Bk%21%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(7) &#92; &#92; &#92; &#92; &#92;  P(X=k)&amp;=&#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;binom{n}{k} &#92;biggl(&#92;frac{&#92;alpha}{n}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n-k} &#92;&#92;&amp;=&#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92; &#92;frac{n!}{k! (n-k)!} &#92;biggl(&#92;frac{&#92;alpha}{n}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n-k} &#92;&#92;&amp;=&#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92; &#92;frac{n(n-1)(n-2) &#92;cdots (n-k+1)}{n^k} &#92;biggl(&#92;frac{&#92;alpha^k}{k!}&#92;biggr) &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n} &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{-k} &#92;&#92;&amp;=&#92;biggl(&#92;frac{&#92;alpha^k}{k!}&#92;biggr) &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92; &#92;frac{n(n-1)(n-2) &#92;cdots (n-k+1)}{n^k} &#92;&#92;&amp;&#92;times &#92; &#92; &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n} &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{-k} &#92;&#92;&amp;=&#92;frac{e^{-&#92;alpha} &#92;alpha^k}{k!} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(7) &#92; &#92; &#92; &#92; &#92;  P(X=k)&amp;=&#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;binom{n}{k} &#92;biggl(&#92;frac{&#92;alpha}{n}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n-k} &#92;&#92;&amp;=&#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92; &#92;frac{n!}{k! (n-k)!} &#92;biggl(&#92;frac{&#92;alpha}{n}&#92;biggr)^k &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n-k} &#92;&#92;&amp;=&#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92; &#92;frac{n(n-1)(n-2) &#92;cdots (n-k+1)}{n^k} &#92;biggl(&#92;frac{&#92;alpha^k}{k!}&#92;biggr) &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n} &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{-k} &#92;&#92;&amp;=&#92;biggl(&#92;frac{&#92;alpha^k}{k!}&#92;biggr) &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92; &#92;frac{n(n-1)(n-2) &#92;cdots (n-k+1)}{n^k} &#92;&#92;&amp;&#92;times &#92; &#92; &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n} &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{-k} &#92;&#92;&amp;=&#92;frac{e^{-&#92;alpha} &#92;alpha^k}{k!} &#92;end{aligned}' class='latex' /></p>
<p>In <img src='http://s0.wp.com/latex.php?latex=%287%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(7)' title='(7)' class='latex' />, we have <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5C+%5Cfrac%7Bn%28n-1%29%28n-2%29+%5Ccdots+%28n-k%2B1%29%7D%7Bn%5Ek%7D%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92; &#92;frac{n(n-1)(n-2) &#92;cdots (n-k+1)}{n^k}=1' title='&#92;displaystyle &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92; &#92;frac{n(n-1)(n-2) &#92;cdots (n-k+1)}{n^k}=1' class='latex' />. The reason being that the numerator is a polynomial where the leading term is <img src='http://s0.wp.com/latex.php?latex=n%5Ek&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n^k' title='n^k' class='latex' />. Upon dividing by <img src='http://s0.wp.com/latex.php?latex=n%5Ek&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n^k' title='n^k' class='latex' /> and taking the limit, we get 1. Based on <img src='http://s0.wp.com/latex.php?latex=%285%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(5)' title='(5)' class='latex' />, we have <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7Bn%7D%3De%5E%7B-%5Calpha%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n}=e^{-&#92;alpha}' title='&#92;displaystyle &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n}=e^{-&#92;alpha}' class='latex' />. For the last limit in the derivation we have <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5Cbiggr%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7B-k%7D%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{-k}=1' title='&#92;displaystyle &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;biggr(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{-k}=1' class='latex' />.</p>
<p>We conclude with some comments. As the above derivation shows, the Poisson distribution is at heart a binomial distribution. When we divide the unit time interval into more and more subintervals (as the subintervals get more and more granular), the resulting binomial distribution behaves more and more like the Poisson distribution.</p>
<p>The three assumtions used in the derivation are called the Poisson postulates, which are the underlying assumptions that govern a Poisson process. Such a random process describes the occurrences of some type of events that are of interest (e.g. the arrivals of cars in our example) in a fixed period of time. The positive constant <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> indicated in Assumption 2 is the parameter of the Poisson process, which can be interpreted as the rate of occurrences of the event of interest (or rate of changes, or rate of arrivals) in a unit time interval, meaning that the positive constant <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> is the mean number of occurrences in the unit time interval. The derivation in <img src='http://s0.wp.com/latex.php?latex=%287%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(7)' title='(7)' class='latex' /> shows that whenever a certain type of events occurs according to a Poisson process with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />, the counting variable of the number of occurrences in the unit time interval is distributed according to the Poisson distribution as indicated in <img src='http://s0.wp.com/latex.php?latex=%284%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4)' title='(4)' class='latex' />.</p>
<p>If we observe the occurrences of events over intervals of length other than unit length, say, in an interval of length <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' />, the counting process is governed by the same three postulates, with the modification to Assumption 2 that the rate of changes of the process is now <img src='http://s0.wp.com/latex.php?latex=%5Calpha+t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha t' title='&#92;alpha t' class='latex' />. The mean number of occurrences in the time interval of length <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> is now <img src='http://s0.wp.com/latex.php?latex=%5Calpha+t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha t' title='&#92;alpha t' class='latex' />. The Assumption 2 now states that for any very short time interval of length <img src='http://s0.wp.com/latex.php?latex=h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='h' title='h' class='latex' /> (and that is also a subinterval of the interval of length <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> under observation), the probability of having one occurrence of event in this short interval is <img src='http://s0.wp.com/latex.php?latex=%28%5Calpha+t%29h&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(&#92;alpha t)h' title='(&#92;alpha t)h' class='latex' />. Applyng the same derivation, it can be shown that the number of occurrences (<img src='http://s0.wp.com/latex.php?latex=X_t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_t' title='X_t' class='latex' />) in a time interval of length <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> has the Poisson distribution with the following probability mass function.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%288%29+%5C+%5C+%5C+%5C+%5C+P%28X_t%3Dk%29%3D%5Cfrac%7Be%5E%7B-%5Calpha+t%7D+%5C+%28%5Calpha+t%29%5Ek%7D%7Bk%21%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C++k%3D0%2C1%2C2%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (8) &#92; &#92; &#92; &#92; &#92; P(X_t=k)=&#92;frac{e^{-&#92;alpha t} &#92; (&#92;alpha t)^k}{k!} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;  k=0,1,2,&#92;cdots' title='&#92;displaystyle (8) &#92; &#92; &#92; &#92; &#92; P(X_t=k)=&#92;frac{e^{-&#92;alpha t} &#92; (&#92;alpha t)^k}{k!} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;  k=0,1,2,&#92;cdots' class='latex' /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/probabilityandstats.wordpress.com/2529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/probabilityandstats.wordpress.com/2529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/probabilityandstats.wordpress.com/2529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/probabilityandstats.wordpress.com/2529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/probabilityandstats.wordpress.com/2529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/probabilityandstats.wordpress.com/2529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/probabilityandstats.wordpress.com/2529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/probabilityandstats.wordpress.com/2529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/probabilityandstats.wordpress.com/2529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/probabilityandstats.wordpress.com/2529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/probabilityandstats.wordpress.com/2529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/probabilityandstats.wordpress.com/2529/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/probabilityandstats.wordpress.com/2529/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/probabilityandstats.wordpress.com/2529/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2529&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://probabilityandstats.wordpress.com/2011/08/18/poisson-as-a-limiting-case-of-binomial-distribution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31cc16f6389b1b01ea7c6e949e69cab8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">probabilityandstats</media:title>
		</media:content>
	</item>
		<item>
		<title>Relating Binomial and Negative Binomial</title>
		<link>http://probabilityandstats.wordpress.com/2011/08/01/relating-binomial-and-negative-binomial/</link>
		<comments>http://probabilityandstats.wordpress.com/2011/08/01/relating-binomial-and-negative-binomial/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 07:50:02 +0000</pubDate>
		<dc:creator>Dan Ma</dc:creator>
				<category><![CDATA[Probability]]></category>
		<category><![CDATA[Probability Theory]]></category>
		<category><![CDATA[Bernoulli distribution]]></category>
		<category><![CDATA[Binomial distribution]]></category>
		<category><![CDATA[Gamma distribution]]></category>
		<category><![CDATA[Negative binomial distribution]]></category>
		<category><![CDATA[Poisson distribution]]></category>
		<category><![CDATA[Poisson process]]></category>
		<category><![CDATA[Probability and statistics]]></category>

		<guid isPermaLink="false">http://probabilityandstats.wordpress.com/?p=2496</guid>
		<description><![CDATA[The negative binomial distribution has a natural intepretation as a waiting time until the arrival of the rth success (when the parameter r is a positive integer). The waiting time refers to the number of independent Bernoulli trials needed to &#8230; <a href="http://probabilityandstats.wordpress.com/2011/08/01/relating-binomial-and-negative-binomial/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2496&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The negative binomial distribution has a natural intepretation as a waiting time until the arrival of the <em>r</em>th success (when the parameter <em>r</em> is a positive integer). The waiting time refers to the number of independent Bernoulli trials needed to reach the <em>r</em>th success. This interpretation of the negative binomial distribution gives us a good way of relating it to the binomial distribution. For example, if the <em>r</em>th success takes place after <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> failed Bernoulli trials (for a total of <img src='http://s0.wp.com/latex.php?latex=k%2Br&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k+r' title='k+r' class='latex' /> trials), then there can be at most <img src='http://s0.wp.com/latex.php?latex=r-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r-1' title='r-1' class='latex' /> successes in the first <img src='http://s0.wp.com/latex.php?latex=k%2Br&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k+r' title='k+r' class='latex' /> trials. This tells us that the survival function of the negative binomial distribution is the cumulative distribution function (cdf) of a binomial distribution. In this post, we gives the details behind this observation. A previous post on the negative binomial distribution is found <a href="http://probabilityandstats.wordpress.com/2011/07/29/the-negative-binomial-distribution/" target="_blank">here</a>.</p>
<p>A random experiment resulting in two distinct outcomes (success or failure) is called a Bernoulli trial (e.g. head or tail in a coin toss, whether or not the birthday of a customer is the first of January, whether an insurance claim is above or below a given threshold etc). Suppose a series of independent Bernoulli trials are performed until reaching the <em>r</em>th success where the probability of success in each trial is <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />. Let <img src='http://s0.wp.com/latex.php?latex=X_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_r' title='X_r' class='latex' /> be the number of failures before the occurrence of the <em>r</em>th success. The following is the probablity mass function of <img src='http://s0.wp.com/latex.php?latex=X_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_r' title='X_r' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%281%29+%5C+%5C+%5C+%5C+P%28X_r%29%3D%5Cbinom%7Bk%2Br-1%7D%7Bk%7D+p%5Er+%281-p%29%5Ek+%5C+%5C+%5C+%5C+%5C+%5C+k%3D0%2C1%2C2%2C3%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (1) &#92; &#92; &#92; &#92; P(X_r)=&#92;binom{k+r-1}{k} p^r (1-p)^k &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,3,&#92;cdots' title='&#92;displaystyle (1) &#92; &#92; &#92; &#92; P(X_r)=&#92;binom{k+r-1}{k} p^r (1-p)^k &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,3,&#92;cdots' class='latex' /></p>
<p>Be definition, the survival function and cdf of <img src='http://s0.wp.com/latex.php?latex=X_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_r' title='X_r' class='latex' /> are:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282%29+%5C+%5C+%5C+%5C+P%28X_r+%3E+k%29%3D%5Csum+%5Climits_%7Bj%3Dk%2B1%7D%5E%5Cinfty+%5Cbinom%7Bj%2Br-1%7D%7Bj%7D+p%5Er+%281-p%29%5Ej+%5C+%5C+%5C+%5C+%5C+%5C+k%3D0%2C1%2C2%2C3%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (2) &#92; &#92; &#92; &#92; P(X_r &gt; k)=&#92;sum &#92;limits_{j=k+1}^&#92;infty &#92;binom{j+r-1}{j} p^r (1-p)^j &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,3,&#92;cdots' title='&#92;displaystyle (2) &#92; &#92; &#92; &#92; P(X_r &gt; k)=&#92;sum &#92;limits_{j=k+1}^&#92;infty &#92;binom{j+r-1}{j} p^r (1-p)^j &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,3,&#92;cdots' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%283%29+%5C+%5C+%5C+%5C+P%28X_r+%5Cle+k%29%3D%5Csum+%5Climits_%7Bj%3D0%7D%5Ek+%5Cbinom%7Bj%2Br-1%7D%7Bj%7D+p%5Er+%281-p%29%5Ej+%5C+%5C+%5C+%5C+%5C+%5C+k%3D0%2C1%2C2%2C3%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (3) &#92; &#92; &#92; &#92; P(X_r &#92;le k)=&#92;sum &#92;limits_{j=0}^k &#92;binom{j+r-1}{j} p^r (1-p)^j &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,3,&#92;cdots' title='&#92;displaystyle (3) &#92; &#92; &#92; &#92; P(X_r &#92;le k)=&#92;sum &#92;limits_{j=0}^k &#92;binom{j+r-1}{j} p^r (1-p)^j &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,3,&#92;cdots' class='latex' /></p>
<p>For each positive integer <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=Y_%7Br%2Bk%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y_{r+k}' title='Y_{r+k}' class='latex' /> be the number of successes in performing a sequence of <img src='http://s0.wp.com/latex.php?latex=r%2Bk&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r+k' title='r+k' class='latex' /> independent Bernoulli trials where <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is the probability of success. In other words, <img src='http://s0.wp.com/latex.php?latex=Y_%7Br%2Bk%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y_{r+k}' title='Y_{r+k}' class='latex' /> has a binomial distribution with parameters <img src='http://s0.wp.com/latex.php?latex=r%2Bk&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r+k' title='r+k' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />.</p>
<p>If the random experiment requires more than <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> failures to reach the <em>r</em>th success, there are at most <img src='http://s0.wp.com/latex.php?latex=r-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r-1' title='r-1' class='latex' /> successes in the first <img src='http://s0.wp.com/latex.php?latex=k%2Br&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k+r' title='k+r' class='latex' /> trails. Thus the survival function of <img src='http://s0.wp.com/latex.php?latex=X_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_r' title='X_r' class='latex' /> is the same as the cdf of a binomial distribution. Equivalently, the cdf of <img src='http://s0.wp.com/latex.php?latex=X_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_r' title='X_r' class='latex' /> is the same as the survival function of a binomial distribution. We have the following:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%284%29+%5C+%5C+%5C+%5C+P%28X_r+%3E+k%29%26%3DP%28Y_%7Bk%2Br%7D+%5Cle+r-1%29+%5C%5C%26%3D%5Csum+%5Climits_%7Bj%3D0%7D%5E%7Br-1%7D+%5Cbinom%7Bk%2Br%7D%7Bj%7D+p%5Ej+%281-p%29%5E%7Bk%2Br-j%7D+%5C+%5C+%5C+%5C+%5C+%5C+k%3D0%2C1%2C2%2C3%2C%5Ccdots+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(4) &#92; &#92; &#92; &#92; P(X_r &gt; k)&amp;=P(Y_{k+r} &#92;le r-1) &#92;&#92;&amp;=&#92;sum &#92;limits_{j=0}^{r-1} &#92;binom{k+r}{j} p^j (1-p)^{k+r-j} &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,3,&#92;cdots &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(4) &#92; &#92; &#92; &#92; P(X_r &gt; k)&amp;=P(Y_{k+r} &#92;le r-1) &#92;&#92;&amp;=&#92;sum &#92;limits_{j=0}^{r-1} &#92;binom{k+r}{j} p^j (1-p)^{k+r-j} &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,3,&#92;cdots &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%285%29+%5C+%5C+%5C+%5C+P%28X_r+%5Cle+k%29%26%3DP%28Y_%7Bk%2Br%7D+%3E+r-1%29+%5C+%5C+%5C+%5C+%5C+%5C+k%3D0%2C1%2C2%2C3%2C%5Ccdots+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(5) &#92; &#92; &#92; &#92; P(X_r &#92;le k)&amp;=P(Y_{k+r} &gt; r-1) &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,3,&#92;cdots &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(5) &#92; &#92; &#92; &#92; P(X_r &#92;le k)&amp;=P(Y_{k+r} &gt; r-1) &#92; &#92; &#92; &#92; &#92; &#92; k=0,1,2,3,&#92;cdots &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Remark</strong></em><br />
The relation <img src='http://s0.wp.com/latex.php?latex=%284%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4)' title='(4)' class='latex' /> is analogous to the relationship between the Gamma distribution and the Poisson distribution. Recall that a Gamma distribution with shape parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> and scale parameter <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' />, where <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> is a positive integer, can be interpreted as the waiting time until the <em>n</em>th change in a Poisson process. Thus, if the <em>n</em>th change takes place after time <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' />, there can be at most <img src='http://s0.wp.com/latex.php?latex=n-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n-1' title='n-1' class='latex' /> arrivals in the time interval <img src='http://s0.wp.com/latex.php?latex=%5B0%2Ct%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='[0,t]' title='[0,t]' class='latex' />. Thus the survival function of this Gamma distribution is the same as the cdf of a Poisson distribution. The relation <img src='http://s0.wp.com/latex.php?latex=%284%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4)' title='(4)' class='latex' /> is analogous to the following relation.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%285%29+%5C+%5C+%5C+%5C+%5Cint_t%5E%5Cinfty+%5Cfrac%7B%5Calpha%5En%7D%7B%28n-1%29%21%7D+%5C+x%5E%7Bn-1%7D+%5C+e%5E%7B-%5Calpha+x%7D+%5C+dx%3D%5Csum+%5Climits_%7Bj%3D0%7D%5E%7Bn-1%7D+%5Cfrac%7Be%5E%7B-%5Calpha+t%7D+%5C+%28%5Calpha+t%29%5Ej%7D%7Bj%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92;int_t^&#92;infty &#92;frac{&#92;alpha^n}{(n-1)!} &#92; x^{n-1} &#92; e^{-&#92;alpha x} &#92; dx=&#92;sum &#92;limits_{j=0}^{n-1} &#92;frac{e^{-&#92;alpha t} &#92; (&#92;alpha t)^j}{j!}' title='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92;int_t^&#92;infty &#92;frac{&#92;alpha^n}{(n-1)!} &#92; x^{n-1} &#92; e^{-&#92;alpha x} &#92; dx=&#92;sum &#92;limits_{j=0}^{n-1} &#92;frac{e^{-&#92;alpha t} &#92; (&#92;alpha t)^j}{j!}' class='latex' /></p>
<p>A previous post on the negative binomial distribution is found <a href="http://probabilityandstats.wordpress.com/2011/07/29/the-negative-binomial-distribution/" target="_blank">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/probabilityandstats.wordpress.com/2496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/probabilityandstats.wordpress.com/2496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/probabilityandstats.wordpress.com/2496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/probabilityandstats.wordpress.com/2496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/probabilityandstats.wordpress.com/2496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/probabilityandstats.wordpress.com/2496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/probabilityandstats.wordpress.com/2496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/probabilityandstats.wordpress.com/2496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/probabilityandstats.wordpress.com/2496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/probabilityandstats.wordpress.com/2496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/probabilityandstats.wordpress.com/2496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/probabilityandstats.wordpress.com/2496/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/probabilityandstats.wordpress.com/2496/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/probabilityandstats.wordpress.com/2496/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2496&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://probabilityandstats.wordpress.com/2011/08/01/relating-binomial-and-negative-binomial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31cc16f6389b1b01ea7c6e949e69cab8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">probabilityandstats</media:title>
		</media:content>
	</item>
		<item>
		<title>The Negative Binomial Distribution</title>
		<link>http://probabilityandstats.wordpress.com/2011/07/29/the-negative-binomial-distribution/</link>
		<comments>http://probabilityandstats.wordpress.com/2011/07/29/the-negative-binomial-distribution/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 07:47:50 +0000</pubDate>
		<dc:creator>Dan Ma</dc:creator>
				<category><![CDATA[Probability]]></category>
		<category><![CDATA[Probability Theory]]></category>
		<category><![CDATA[Binomial distribution]]></category>
		<category><![CDATA[Gamma distribution]]></category>
		<category><![CDATA[Generating function]]></category>
		<category><![CDATA[Geometric distribution]]></category>
		<category><![CDATA[Mixture]]></category>
		<category><![CDATA[Moment generating function]]></category>
		<category><![CDATA[Negative binomial distribution]]></category>
		<category><![CDATA[Poisson distribution]]></category>
		<category><![CDATA[Poisson-Gamma Mixture]]></category>
		<category><![CDATA[Probability and statistics]]></category>

		<guid isPermaLink="false">http://probabilityandstats.wordpress.com/?p=2485</guid>
		<description><![CDATA[A counting distribution is a discrete distribution with probabilities only on the nonnegative integers. Such distributions are important in insurance applications since they can be used to model the number of events such as losses to the insured or claims &#8230; <a href="http://probabilityandstats.wordpress.com/2011/07/29/the-negative-binomial-distribution/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2485&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A counting distribution is a discrete distribution with probabilities only on the nonnegative integers. Such distributions are important in insurance applications since they can be used to model the number of events such as losses to the insured or claims to the insurer. Though playing a prominent role in statistical theory, the Poisson distribution is not appropriate in all situations, since it requires that the mean and the variance are equaled. Thus the negative binomial distribution is an excellent alternative to the Poisson distribution, especially in the cases where the observed variance is greater than the observed mean.</p>
<p>The negative binomial distribution arises naturally from a probability experiment of performing a series of independent Bernoulli trials until the occurrence of the <em>r</em>th success where <em>r</em> is a positive integer. From this starting point, we discuss three ways to define the distribution. We then discuss several basic properties of the negative binomial distribution. Emphasis is placed on the close connection between the Poisson distribution and the negative binomial distribution.</p>
<p>________________________________________________________________________</p>
<p><em><strong>Definitions</strong></em><br />
We define three versions of the negative binomial distribution. The first two versions arise from the view point of performing a series of independent Bernoulli trials until the <em>r</em>th success where <em>r</em> is a positive integer. A Bernoulli trial is a probability experiment whose outcome is random such that there are two possible outcomes (success or failure).</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=X_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1' title='X_1' class='latex' /> be the number of Bernoulli trials required for the <em>r</em>th success to occur where <em>r</em> is a positive integer. Let <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is the probability of success in each trial. The following is the probability function of <img src='http://s0.wp.com/latex.php?latex=X_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1' title='X_1' class='latex' />:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%281%29+%5C+%5C+%5C+%5C+%5C+P%28X_1%3Dx%29%3D+%5Cbinom%7Bx-1%7D%7Br-1%7D+p%5Er+%281-p%29%5E%7Bx-r%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+x%3Dr%2Cr%2B1%2Cr%2B2%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; P(X_1=x)= &#92;binom{x-1}{r-1} p^r (1-p)^{x-r} &#92; &#92; &#92; &#92; &#92; &#92; &#92; x=r,r+1,r+2,&#92;cdots' title='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; P(X_1=x)= &#92;binom{x-1}{r-1} p^r (1-p)^{x-r} &#92; &#92; &#92; &#92; &#92; &#92; &#92; x=r,r+1,r+2,&#92;cdots' class='latex' /></p>
<p>The idea for <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' /> is that for <img src='http://s0.wp.com/latex.php?latex=X_1%3Dx&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1=x' title='X_1=x' class='latex' /> to happen, there must be <img src='http://s0.wp.com/latex.php?latex=r-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r-1' title='r-1' class='latex' /> successes in the first <img src='http://s0.wp.com/latex.php?latex=x-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x-1' title='x-1' class='latex' /> trials and one additional success occurring in the last trial (the <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x' title='x' class='latex' />th trial).</p>
<p>A more common version of the negative binomial distribution is the number of Bernoulli trials in excess of <em>r</em> in order to produce the <em>r</em>th success. In other words, we consider the number of failures before the occurrence of the <em>r</em>th success. Let <img src='http://s0.wp.com/latex.php?latex=X_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_2' title='X_2' class='latex' /> be this random variable. The following is the probability function of <img src='http://s0.wp.com/latex.php?latex=X_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_2' title='X_2' class='latex' />:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282%29+%5C+%5C+%5C+%5C+%5C+P%28X_2%3Dx%29%3D%5Cbinom%7Bx%2Br-1%7D%7Bx%7D+p%5Er+%281-p%29%5Ex+%5C+%5C+%5C+%5C+%5C+%5C+%5C+x%3D0%2C1%2C2%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (2) &#92; &#92; &#92; &#92; &#92; P(X_2=x)=&#92;binom{x+r-1}{x} p^r (1-p)^x &#92; &#92; &#92; &#92; &#92; &#92; &#92; x=0,1,2,&#92;cdots' title='&#92;displaystyle (2) &#92; &#92; &#92; &#92; &#92; P(X_2=x)=&#92;binom{x+r-1}{x} p^r (1-p)^x &#92; &#92; &#92; &#92; &#92; &#92; &#92; x=0,1,2,&#92;cdots' class='latex' /></p>
<p>The idea for <img src='http://s0.wp.com/latex.php?latex=%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2)' title='(2)' class='latex' /> is that there are <img src='http://s0.wp.com/latex.php?latex=x%2Br&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x+r' title='x+r' class='latex' /> trials and in the first <img src='http://s0.wp.com/latex.php?latex=x%2Br-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x+r-1' title='x+r-1' class='latex' /> trials, there are <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='x' title='x' class='latex' /> failures (or equivalently <img src='http://s0.wp.com/latex.php?latex=r-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r-1' title='r-1' class='latex' /> successes).</p>
<p>In both <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2)' title='(2)' class='latex' />, the binomial coefficient is defined by</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%283%29+%5C+%5C+%5C+%5C+%5C+%5Cbinom%7By%7D%7Bk%7D%3D%5Cfrac%7By%21%7D%7Bk%21+%5C+%28y-k%29%21%7D%3D%5Cfrac%7By%28y-1%29+%5Ccdots+%28y-%28k-1%29%29%7D%7Bk%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (3) &#92; &#92; &#92; &#92; &#92; &#92;binom{y}{k}=&#92;frac{y!}{k! &#92; (y-k)!}=&#92;frac{y(y-1) &#92;cdots (y-(k-1))}{k!}' title='&#92;displaystyle (3) &#92; &#92; &#92; &#92; &#92; &#92;binom{y}{k}=&#92;frac{y!}{k! &#92; (y-k)!}=&#92;frac{y(y-1) &#92;cdots (y-(k-1))}{k!}' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y' title='y' class='latex' /> is a positive integer and <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> is a nonnegative integer. However, the right-hand-side of <img src='http://s0.wp.com/latex.php?latex=%283%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(3)' title='(3)' class='latex' /> can be calculated even if <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y' title='y' class='latex' /> is not a positive integer. Thus the binomial coefficient <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbinom%7By%7D%7Bk%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;binom{y}{k}' title='&#92;displaystyle &#92;binom{y}{k}' class='latex' /> can be expanded to work for all real number <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y' title='y' class='latex' />. However <img src='http://s0.wp.com/latex.php?latex=k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k' title='k' class='latex' /> must still be nonnegative integer.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%284%29+%5C+%5C+%5C+%5C+%5C+%5Cbinom%7By%7D%7Bk%7D%3D%5Cfrac%7By%28y-1%29+%5Ccdots+%28y-%28k-1%29%29%7D%7Bk%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (4) &#92; &#92; &#92; &#92; &#92; &#92;binom{y}{k}=&#92;frac{y(y-1) &#92;cdots (y-(k-1))}{k!}' title='&#92;displaystyle (4) &#92; &#92; &#92; &#92; &#92; &#92;binom{y}{k}=&#92;frac{y(y-1) &#92;cdots (y-(k-1))}{k!}' class='latex' /></p>
<p>For convenience, we let <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbinom%7By%7D%7B0%7D%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;binom{y}{0}=1' title='&#92;displaystyle &#92;binom{y}{0}=1' class='latex' />. When the real number <img src='http://s0.wp.com/latex.php?latex=y%3Ek-1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='y&gt;k-1' title='y&gt;k-1' class='latex' />, the binomial coefficient in <img src='http://s0.wp.com/latex.php?latex=%284%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4)' title='(4)' class='latex' /> can be expressed as:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%285%29+%5C+%5C+%5C+%5C+%5C+%5Cbinom%7By%7D%7Bk%7D%3D%5Cfrac%7B%5CGamma%28y%2B1%29%7D%7B%5CGamma%28k%2B1%29+%5CGamma%28y-k%2B1%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92; &#92;binom{y}{k}=&#92;frac{&#92;Gamma(y+1)}{&#92;Gamma(k+1) &#92;Gamma(y-k+1)}' title='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92; &#92;binom{y}{k}=&#92;frac{&#92;Gamma(y+1)}{&#92;Gamma(k+1) &#92;Gamma(y-k+1)}' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=%5CGamma%28%5Ccdot%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Gamma(&#92;cdot)' title='&#92;Gamma(&#92;cdot)' class='latex' /> is the gamma function.</p>
<p>With the more relaxed notion of binomial coefficient, the probability function in <img src='http://s0.wp.com/latex.php?latex=%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2)' title='(2)' class='latex' /> above can be defined for all real number <em>r</em>. Thus the general version of the negative binomial distribution has two parameters <em>r</em> and <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, both real numbers, such that <img src='http://s0.wp.com/latex.php?latex=0%3Cp%3C1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='0&lt;p&lt;1' title='0&lt;p&lt;1' class='latex' />. The following is its probability function.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%286%29+%5C+%5C+%5C+%5C+%5C+P%28X%3Dx%29%3D%5Cbinom%7Bx%2Br-1%7D%7Bx%7D+p%5Er+%281-p%29%5Ex+%5C+%5C+%5C+%5C+%5C+%5C+%5C+x%3D0%2C1%2C2%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (6) &#92; &#92; &#92; &#92; &#92; P(X=x)=&#92;binom{x+r-1}{x} p^r (1-p)^x &#92; &#92; &#92; &#92; &#92; &#92; &#92; x=0,1,2,&#92;cdots' title='&#92;displaystyle (6) &#92; &#92; &#92; &#92; &#92; P(X=x)=&#92;binom{x+r-1}{x} p^r (1-p)^x &#92; &#92; &#92; &#92; &#92; &#92; &#92; x=0,1,2,&#92;cdots' class='latex' /></p>
<p>Whenever <em>r</em> in <img src='http://s0.wp.com/latex.php?latex=%286%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6)' title='(6)' class='latex' /> is a real number that is not a positive integer, the interpretation of counting the number of failures until the occurrence of the <em>r</em>th success is no longer important. Instead we can think of it simply as a count distribution.</p>
<p>The following alternative parametrization of the negative binomial distribution is also useful.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%286a%29+%5C+%5C+%5C+%5C+%5C+P%28X%3Dx%29%3D%5Cbinom%7Bx%2Br-1%7D%7Bx%7D+%5Cbiggl%28%5Cfrac%7B%5Calpha%7D%7B%5Calpha%2B1%7D%5Cbiggr%29%5Er+%5Cbiggl%28%5Cfrac%7B1%7D%7B%5Calpha%2B1%7D%5Cbiggr%29%5Ex+%5C+%5C+%5C+%5C+%5C+%5C+%5C+x%3D0%2C1%2C2%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (6a) &#92; &#92; &#92; &#92; &#92; P(X=x)=&#92;binom{x+r-1}{x} &#92;biggl(&#92;frac{&#92;alpha}{&#92;alpha+1}&#92;biggr)^r &#92;biggl(&#92;frac{1}{&#92;alpha+1}&#92;biggr)^x &#92; &#92; &#92; &#92; &#92; &#92; &#92; x=0,1,2,&#92;cdots' title='&#92;displaystyle (6a) &#92; &#92; &#92; &#92; &#92; P(X=x)=&#92;binom{x+r-1}{x} &#92;biggl(&#92;frac{&#92;alpha}{&#92;alpha+1}&#92;biggr)^r &#92;biggl(&#92;frac{1}{&#92;alpha+1}&#92;biggr)^x &#92; &#92; &#92; &#92; &#92; &#92; &#92; x=0,1,2,&#92;cdots' class='latex' /></p>
<p>The parameters in this alternative parametrization are <em>r</em> and <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3E0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha&gt;0' title='&#92;alpha&gt;0' class='latex' />. Clearly, the ratio <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B%5Calpha%7D%7B%5Calpha%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{&#92;alpha}{&#92;alpha+1}' title='&#92;frac{&#92;alpha}{&#92;alpha+1}' class='latex' /> takes the place of <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%286%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6)' title='(6)' class='latex' />. Unless stated otherwise, we use the parametrization of <img src='http://s0.wp.com/latex.php?latex=%286%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6)' title='(6)' class='latex' />.<br />
________________________________________________________________________</p>
<p><em><strong>What is negative about the negative binomial distribution?</strong></em><br />
What is negative about this distribution? What is binomial about this distribution? The name is suggested by the fact that the binomial coefficient in <img src='http://s0.wp.com/latex.php?latex=%286%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6)' title='(6)' class='latex' /> can be rearranged as follows:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%287%29+%5C+%5C+%5C+%5C+%5C+%5Cbinom%7Bx%2Br-1%7D%7Bx%7D%26%3D%5Cfrac%7B%28x%2Br-1%29%28x%2Br-2%29+%5Ccdots+r%7D%7Bx%21%7D+%5C%5C%26%3D%28-1%29%5Ex+%5Cfrac%7B%28-r-%28x-1%29%29%28-r-%28x-2%29%29+%5Ccdots+%28-r%29%7D%7Bx%21%7D+%5C%5C%26%3D%28-1%29%5Ex+%5Cfrac%7B%28-r%29%28-r-1%29+%5Ccdots+%28-r-%28x-1%29%29%7D%7Bx%21%7D+%5C%5C%26%3D%28-1%29%5Ex+%5Cbinom%7B-r%7D%7Bx%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(7) &#92; &#92; &#92; &#92; &#92; &#92;binom{x+r-1}{x}&amp;=&#92;frac{(x+r-1)(x+r-2) &#92;cdots r}{x!} &#92;&#92;&amp;=(-1)^x &#92;frac{(-r-(x-1))(-r-(x-2)) &#92;cdots (-r)}{x!} &#92;&#92;&amp;=(-1)^x &#92;frac{(-r)(-r-1) &#92;cdots (-r-(x-1))}{x!} &#92;&#92;&amp;=(-1)^x &#92;binom{-r}{x} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(7) &#92; &#92; &#92; &#92; &#92; &#92;binom{x+r-1}{x}&amp;=&#92;frac{(x+r-1)(x+r-2) &#92;cdots r}{x!} &#92;&#92;&amp;=(-1)^x &#92;frac{(-r-(x-1))(-r-(x-2)) &#92;cdots (-r)}{x!} &#92;&#92;&amp;=(-1)^x &#92;frac{(-r)(-r-1) &#92;cdots (-r-(x-1))}{x!} &#92;&#92;&amp;=(-1)^x &#92;binom{-r}{x} &#92;end{aligned}' class='latex' /></p>
<p>The calculation in <img src='http://s0.wp.com/latex.php?latex=%287%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(7)' title='(7)' class='latex' /> can be used to verify that <img src='http://s0.wp.com/latex.php?latex=%286%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6)' title='(6)' class='latex' /> is indeed a probability function, that is, all the probabilities sum to 1.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%288%29+%5C+%5C+%5C+%5C+%5C+1%26%3Dp%5Er+p%5E%7B-r%7D%5C%5C%26%3Dp%5Er+%281-q%29%5E%7B-r%7D+%5C%5C%26%3Dp%5Er+%5Csum+%5Climits_%7Bx%3D0%7D%5E%5Cinfty+%5Cbinom%7B-r%7D%7Bx%7D+%28-q%29%5Ex+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%288.1%29+%5C%5C%26%3Dp%5Er+%5Csum+%5Climits_%7Bx%3D0%7D%5E%5Cinfty+%28-1%29%5Ex+%5Cbinom%7B-r%7D%7Bx%7D+q%5Ex+%5C%5C%26%3D%5Csum+%5Climits_%7Bx%3D0%7D%5E%5Cinfty+%5Cbinom%7Bx%2Br-1%7D%7Bx%7D+p%5Er+q%5Ex+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(8) &#92; &#92; &#92; &#92; &#92; 1&amp;=p^r p^{-r}&#92;&#92;&amp;=p^r (1-q)^{-r} &#92;&#92;&amp;=p^r &#92;sum &#92;limits_{x=0}^&#92;infty &#92;binom{-r}{x} (-q)^x &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; (8.1) &#92;&#92;&amp;=p^r &#92;sum &#92;limits_{x=0}^&#92;infty (-1)^x &#92;binom{-r}{x} q^x &#92;&#92;&amp;=&#92;sum &#92;limits_{x=0}^&#92;infty &#92;binom{x+r-1}{x} p^r q^x &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(8) &#92; &#92; &#92; &#92; &#92; 1&amp;=p^r p^{-r}&#92;&#92;&amp;=p^r (1-q)^{-r} &#92;&#92;&amp;=p^r &#92;sum &#92;limits_{x=0}^&#92;infty &#92;binom{-r}{x} (-q)^x &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; (8.1) &#92;&#92;&amp;=p^r &#92;sum &#92;limits_{x=0}^&#92;infty (-1)^x &#92;binom{-r}{x} q^x &#92;&#92;&amp;=&#92;sum &#92;limits_{x=0}^&#92;infty &#92;binom{x+r-1}{x} p^r q^x &#92;end{aligned}' class='latex' /></p>
<p>In <img src='http://s0.wp.com/latex.php?latex=%288%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(8)' title='(8)' class='latex' />, we take <img src='http://s0.wp.com/latex.php?latex=q%3D1-p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q=1-p' title='q=1-p' class='latex' />. The step <img src='http://s0.wp.com/latex.php?latex=%288.1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(8.1)' title='(8.1)' class='latex' /> above uses the following formula known as the Newton&#8217;s binomial formula.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%289%29+%5C+%5C+%5C+%5C+%5C+%281%2Bt%29%5Ew%3D%5Csum+%5Climits_%7Bk%3D0%7D%5E%5Cinfty+%5Cbinom%7Bw%7D%7Bk%7D+t%5Ek&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (9) &#92; &#92; &#92; &#92; &#92; (1+t)^w=&#92;sum &#92;limits_{k=0}^&#92;infty &#92;binom{w}{k} t^k' title='&#92;displaystyle (9) &#92; &#92; &#92; &#92; &#92; (1+t)^w=&#92;sum &#92;limits_{k=0}^&#92;infty &#92;binom{w}{k} t^k' class='latex' /></p>
<p>________________________________________________________________________</p>
<p><em><strong>The Generating Function</strong></em><br />
By definition, the following is the generating function of the negative binomial distribution, using :</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2810%29+%5C+%5C+%5C+%5C+%5C+g%28z%29%3D%5Csum+%5Climits_%7Bx%3D0%7D%5E%5Cinfty+%5Cbinom%7Br%2Bx-1%7D%7Bx%7D+p%5Er+q%5Ex+z%5Ex&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (10) &#92; &#92; &#92; &#92; &#92; g(z)=&#92;sum &#92;limits_{x=0}^&#92;infty &#92;binom{r+x-1}{x} p^r q^x z^x' title='&#92;displaystyle (10) &#92; &#92; &#92; &#92; &#92; g(z)=&#92;sum &#92;limits_{x=0}^&#92;infty &#92;binom{r+x-1}{x} p^r q^x z^x' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=q%3D1-p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q=1-p' title='q=1-p' class='latex' />. Using a similar calculation as in <img src='http://s0.wp.com/latex.php?latex=%288%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(8)' title='(8)' class='latex' />, the generating function can be simplified as:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2811%29+%5C+%5C+%5C+%5C+%5C+g%28z%29%3Dp%5Er+%281-q+z%29%5E%7B-r%7D%3D%5Cfrac%7Bp%5Er%7D%7B%281-q+z%29%5Er%7D%3D%5Cfrac%7Bp%5Er%7D%7B%281-%281-p%29+z%29%5Er%7D%3B+%5C+%5C+%5C+%5C+%5C+z%3C%5Cfrac%7B1%7D%7B1-p%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (11) &#92; &#92; &#92; &#92; &#92; g(z)=p^r (1-q z)^{-r}=&#92;frac{p^r}{(1-q z)^r}=&#92;frac{p^r}{(1-(1-p) z)^r}; &#92; &#92; &#92; &#92; &#92; z&lt;&#92;frac{1}{1-p}' title='&#92;displaystyle (11) &#92; &#92; &#92; &#92; &#92; g(z)=p^r (1-q z)^{-r}=&#92;frac{p^r}{(1-q z)^r}=&#92;frac{p^r}{(1-(1-p) z)^r}; &#92; &#92; &#92; &#92; &#92; z&lt;&#92;frac{1}{1-p}' class='latex' /></p>
<p>As a result, the moment generating function of the negative binomial distribution is:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2812%29+%5C+%5C+%5C+%5C+%5C+M%28t%29%3D%5Cfrac%7Bp%5Er%7D%7B%281-%281-p%29+e%5Et%29%5Er%7D%3B+%5C+%5C+%5C+%5C+%5C+%5C+%5C+t%3C-ln%281-p%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (12) &#92; &#92; &#92; &#92; &#92; M(t)=&#92;frac{p^r}{(1-(1-p) e^t)^r}; &#92; &#92; &#92; &#92; &#92; &#92; &#92; t&lt;-ln(1-p)' title='&#92;displaystyle (12) &#92; &#92; &#92; &#92; &#92; M(t)=&#92;frac{p^r}{(1-(1-p) e^t)^r}; &#92; &#92; &#92; &#92; &#92; &#92; &#92; t&lt;-ln(1-p)' class='latex' /></p>
<p>________________________________________________________________________</p>
<p><em><strong>Independent Sum</strong></em></p>
<p>One useful property of the negative binomial distribution is that the independent sum of negative binomial random variables, all with the same parameter <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, also has a negative binomial distribution. Let <img src='http://s0.wp.com/latex.php?latex=Y%3DY_1%2BY_2%2B%5Ccdots%2BY_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y=Y_1+Y_2+&#92;cdots+Y_n' title='Y=Y_1+Y_2+&#92;cdots+Y_n' class='latex' /> be an independent sum such that each <img src='http://s0.wp.com/latex.php?latex=X_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_i' title='X_i' class='latex' /> has a negative binomial distribution with parameters <img src='http://s0.wp.com/latex.php?latex=r_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r_i' title='r_i' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />. Then the sum <img src='http://s0.wp.com/latex.php?latex=Y%3DY_1%2BY_2%2B%5Ccdots%2BY_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Y=Y_1+Y_2+&#92;cdots+Y_n' title='Y=Y_1+Y_2+&#92;cdots+Y_n' class='latex' /> has a negative binomial distribution with parameters <img src='http://s0.wp.com/latex.php?latex=r%3Dr_1%2B%5Ccdots%2Br_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r=r_1+&#92;cdots+r_n' title='r=r_1+&#92;cdots+r_n' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />.</p>
<p>Note that the generating function of an independent sum is the product of the individual generating functions. The following shows that the product of the individual generating functions is of the same form as <img src='http://s0.wp.com/latex.php?latex=%2811%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(11)' title='(11)' class='latex' />, thus proving the above assertion.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2813%29+%5C+%5C+%5C+%5C+%5C+h%28z%29%3D%5Cfrac%7Bp%5E%7B%5Csum+%5Climits_%7Bi%3D1%7D%5En+r_i%7D%7D%7B%281-%281-p%29+z%29%5E%7B%5Csum+%5Climits_%7Bi%3D1%7D%5En+r_i%7D%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (13) &#92; &#92; &#92; &#92; &#92; h(z)=&#92;frac{p^{&#92;sum &#92;limits_{i=1}^n r_i}}{(1-(1-p) z)^{&#92;sum &#92;limits_{i=1}^n r_i}}' title='&#92;displaystyle (13) &#92; &#92; &#92; &#92; &#92; h(z)=&#92;frac{p^{&#92;sum &#92;limits_{i=1}^n r_i}}{(1-(1-p) z)^{&#92;sum &#92;limits_{i=1}^n r_i}}' class='latex' /><br />
________________________________________________________________________</p>
<p><em><strong>Mean and Variance</strong></em><br />
The mean and variance can be obtained from the generating function. From <img src='http://s0.wp.com/latex.php?latex=E%28X%29%3Dg%27%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(X)=g&#039;(1)' title='E(X)=g&#039;(1)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=E%28X%5E2%29%3Dg%27%281%29%2Bg%5E%7B%282%29%7D%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(X^2)=g&#039;(1)+g^{(2)}(1)' title='E(X^2)=g&#039;(1)+g^{(2)}(1)' class='latex' />, we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2814%29+%5C+%5C+%5C+%5C+%5C+E%28X%29%3D%5Cfrac%7Br%281-p%29%7D%7Bp%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+Var%28X%29%3D%5Cfrac%7Br%281-p%29%7D%7Bp%5E2%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (14) &#92; &#92; &#92; &#92; &#92; E(X)=&#92;frac{r(1-p)}{p} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; Var(X)=&#92;frac{r(1-p)}{p^2}' title='&#92;displaystyle (14) &#92; &#92; &#92; &#92; &#92; E(X)=&#92;frac{r(1-p)}{p} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; Var(X)=&#92;frac{r(1-p)}{p^2}' class='latex' /></p>
<p>Note that <img src='http://s0.wp.com/latex.php?latex=Var%28X%29%3D%5Cfrac%7B1%7D%7Bp%7D+E%28X%29%3EE%28X%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Var(X)=&#92;frac{1}{p} E(X)&gt;E(X)' title='Var(X)=&#92;frac{1}{p} E(X)&gt;E(X)' class='latex' />. Thus when the sample data suggest that the variance is greater than the mean, the negative binomial distribution is an excellent alternative to the Poisson distribution. For example, suppose that the sample mean and the sample variance are 3.6 and 7.1. In exploring the possibility of fitting the data using the negative binomial distribution, we would be interested in the negative binomial distribution with this mean and variance. Then plugging these into <img src='http://s0.wp.com/latex.php?latex=%2814%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(14)' title='(14)' class='latex' /> produces the negative binomial distribution with <img src='http://s0.wp.com/latex.php?latex=r%3D3.7&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r=3.7' title='r=3.7' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p%3D0.507&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p=0.507' title='p=0.507' class='latex' />.<br />
________________________________________________________________________</p>
<p><em><strong>The Poisson-Gamma Mixture</strong></em><br />
One important application of the negative binomial distribution is that it is a mixture of a family of Poisson distributions with Gamma mixing weights. Thus the negative binomial distribution can be viewed as a generalization of the Poisson distribution. The negative binomial distribution can be viewed as a Poisson distribution where the Poisson parameter is itself a random variable, distributed according to a Gamma distribution. Thus the negative binomial distribution is known as a Poisson-Gamma mixture.</p>
<p>In an insurance application, the negative binomial distribution can be used as a model for claim frequency when the risks are not homogeneous. Let <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> has a Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' />, which can be interpreted as the number of claims in a fixed period of time from an insured in a large pool of insureds. There is uncertainty in the parameter <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' />, reflecting the risk characteristic of the insured. Some insureds are poor risks (with large <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' />) and some are good risks (with small <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' />). Thus the parameter <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' /> should be regarded as a random variable <img src='http://s0.wp.com/latex.php?latex=%5CTheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Theta' title='&#92;Theta' class='latex' />. The following is the conditional distribution of <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> (conditional on <img src='http://s0.wp.com/latex.php?latex=%5CTheta%3D%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Theta=&#92;theta' title='&#92;Theta=&#92;theta' class='latex' />):</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2815%29+%5C+%5C+%5C+%5C+%5C+P%28N%3Dn+%5Clvert+%5CTheta%3D%5Ctheta%29%3D%5Cfrac%7Be%5E%7B-%5Ctheta%7D+%5C+%5Ctheta%5En%7D%7Bn%21%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+n%3D0%2C1%2C2%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (15) &#92; &#92; &#92; &#92; &#92; P(N=n &#92;lvert &#92;Theta=&#92;theta)=&#92;frac{e^{-&#92;theta} &#92; &#92;theta^n}{n!} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; n=0,1,2,&#92;cdots' title='&#92;displaystyle (15) &#92; &#92; &#92; &#92; &#92; P(N=n &#92;lvert &#92;Theta=&#92;theta)=&#92;frac{e^{-&#92;theta} &#92; &#92;theta^n}{n!} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; n=0,1,2,&#92;cdots' class='latex' /></p>
<p>Suppose that <img src='http://s0.wp.com/latex.php?latex=%5CTheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Theta' title='&#92;Theta' class='latex' /> has a Gamma distribution with scale parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> and shape parameter <img src='http://s0.wp.com/latex.php?latex=%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta' title='&#92;beta' class='latex' />. The following is the probability density function of <img src='http://s0.wp.com/latex.php?latex=%5CTheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Theta' title='&#92;Theta' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2816%29+%5C+%5C+%5C+%5C+%5C+g%28%5Ctheta%29%3D%5Cfrac%7B%5Calpha%5E%5Cbeta%7D%7B%5CGamma%28%5Cbeta%29%7D+%5Ctheta%5E%7B%5Cbeta-1%7D+e%5E%7B-%5Calpha+%5Ctheta%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Ctheta%3E0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (16) &#92; &#92; &#92; &#92; &#92; g(&#92;theta)=&#92;frac{&#92;alpha^&#92;beta}{&#92;Gamma(&#92;beta)} &#92;theta^{&#92;beta-1} e^{-&#92;alpha &#92;theta} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;theta&gt;0' title='&#92;displaystyle (16) &#92; &#92; &#92; &#92; &#92; g(&#92;theta)=&#92;frac{&#92;alpha^&#92;beta}{&#92;Gamma(&#92;beta)} &#92;theta^{&#92;beta-1} e^{-&#92;alpha &#92;theta} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;theta&gt;0' class='latex' /></p>
<p>Then the joint density of <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5CTheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Theta' title='&#92;Theta' class='latex' /> is:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2817%29+%5C+%5C+%5C+%5C+%5C+P%28N%3Dn+%5Clvert+%5CTheta%3D%5Ctheta%29+%5C+g%28%5Ctheta%29%3D%5Cfrac%7Be%5E%7B-%5Ctheta%7D+%5C+%5Ctheta%5En%7D%7Bn%21%7D+%5C+%5Cfrac%7B%5Calpha%5E%5Cbeta%7D%7B%5CGamma%28%5Cbeta%29%7D+%5Ctheta%5E%7B%5Cbeta-1%7D+e%5E%7B-%5Calpha+%5Ctheta%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (17) &#92; &#92; &#92; &#92; &#92; P(N=n &#92;lvert &#92;Theta=&#92;theta) &#92; g(&#92;theta)=&#92;frac{e^{-&#92;theta} &#92; &#92;theta^n}{n!} &#92; &#92;frac{&#92;alpha^&#92;beta}{&#92;Gamma(&#92;beta)} &#92;theta^{&#92;beta-1} e^{-&#92;alpha &#92;theta}' title='&#92;displaystyle (17) &#92; &#92; &#92; &#92; &#92; P(N=n &#92;lvert &#92;Theta=&#92;theta) &#92; g(&#92;theta)=&#92;frac{e^{-&#92;theta} &#92; &#92;theta^n}{n!} &#92; &#92;frac{&#92;alpha^&#92;beta}{&#92;Gamma(&#92;beta)} &#92;theta^{&#92;beta-1} e^{-&#92;alpha &#92;theta}' class='latex' /></p>
<p>The unconditional distribution of <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> is obtained by summing out <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' /> in <img src='http://s0.wp.com/latex.php?latex=%2817%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(17)' title='(17)' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2818%29+%5C+%5C+%5C+%5C+%5C+P%28N%3Dn%29%26%3D%5Cint_0%5E%5Cinfty+P%28N%3Dn+%5Clvert+%5CTheta%3D%5Ctheta%29+%5C+g%28%5Ctheta%29+%5C+d+%5Ctheta+%5C%5C%26%3D%5Cint_0%5E%5Cinfty+%5Cfrac%7Be%5E%7B-%5Ctheta%7D+%5C+%5Ctheta%5En%7D%7Bn%21%7D+%5C+%5Cfrac%7B%5Calpha%5E%5Cbeta%7D%7B%5CGamma%28%5Cbeta%29%7D+%5C+%5Ctheta%5E%7B%5Cbeta-1%7D+%5C+e%5E%7B-%5Calpha+%5Ctheta%7D+%5C+d+%5Ctheta+%5C%5C%26%3D%5Cint_0%5E%5Cinfty+%5Cfrac%7B%5Calpha%5E%5Cbeta%7D%7Bn%21+%5C+%5CGamma%28%5Cbeta%29%7D+%5C+%5Ctheta%5E%7Bn%2B%5Cbeta-1%7D+%5C+e%5E%7B-%28%5Calpha%2B1%29+%5Ctheta%7D+d+%5Ctheta+%5C%5C%26%3D%5Cfrac%7B%5Calpha%5E%5Cbeta%7D%7Bn%21+%5C+%5CGamma%28%5Cbeta%29%7D+%5C+%5Cfrac%7B%5CGamma%28n%2B%5Cbeta%29%7D%7B%28%5Calpha%2B1%29%5E%7Bn%2B%5Cbeta%7D%7D+%5Cint_0%5E%5Cinfty+%5Cfrac%7B%28%5Calpha%2B1%29%5E%7Bn%2B%5Cbeta%7D%7D%7B%5CGamma%28n%2B%5Cbeta%29%7D+%5Ctheta%5E%7Bn%2B%5Cbeta-1%7D+%5C+e%5E%7B-%28%5Calpha%2B1%29+%5Ctheta%7D+d+%5Ctheta+%5C%5C%26%3D%5Cfrac%7B%5Calpha%5E%5Cbeta%7D%7Bn%21+%5C+%5CGamma%28%5Cbeta%29%7D+%5C+%5Cfrac%7B%5CGamma%28n%2B%5Cbeta%29%7D%7B%28%5Calpha%2B1%29%5E%7Bn%2B%5Cbeta%7D%7D+%5C%5C%26%3D%5Cfrac%7B%5CGamma%28n%2B%5Cbeta%29%7D%7B%5CGamma%28n%2B1%29+%5C+%5CGamma%28%5Cbeta%29%7D+%5C+%5Cbiggl%28+%5Cfrac%7B%5Calpha%7D%7B%5Calpha%2B1%7D%5Cbiggr%29%5E%5Cbeta+%5C+%5Cbiggl%28%5Cfrac%7B1%7D%7B%5Calpha%2B1%7D%5Cbiggr%29%5En+%5C%5C%26%3D%5Cbinom%7Bn%2B%5Cbeta-1%7D%7Bn%7D+%5C+%5Cbiggl%28+%5Cfrac%7B%5Calpha%7D%7B%5Calpha%2B1%7D%5Cbiggr%29%5E%5Cbeta+%5C+%5Cbiggl%28%5Cfrac%7B1%7D%7B%5Calpha%2B1%7D%5Cbiggr%29%5En+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+n%3D0%2C1%2C2%2C%5Ccdots+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(18) &#92; &#92; &#92; &#92; &#92; P(N=n)&amp;=&#92;int_0^&#92;infty P(N=n &#92;lvert &#92;Theta=&#92;theta) &#92; g(&#92;theta) &#92; d &#92;theta &#92;&#92;&amp;=&#92;int_0^&#92;infty &#92;frac{e^{-&#92;theta} &#92; &#92;theta^n}{n!} &#92; &#92;frac{&#92;alpha^&#92;beta}{&#92;Gamma(&#92;beta)} &#92; &#92;theta^{&#92;beta-1} &#92; e^{-&#92;alpha &#92;theta} &#92; d &#92;theta &#92;&#92;&amp;=&#92;int_0^&#92;infty &#92;frac{&#92;alpha^&#92;beta}{n! &#92; &#92;Gamma(&#92;beta)} &#92; &#92;theta^{n+&#92;beta-1} &#92; e^{-(&#92;alpha+1) &#92;theta} d &#92;theta &#92;&#92;&amp;=&#92;frac{&#92;alpha^&#92;beta}{n! &#92; &#92;Gamma(&#92;beta)} &#92; &#92;frac{&#92;Gamma(n+&#92;beta)}{(&#92;alpha+1)^{n+&#92;beta}} &#92;int_0^&#92;infty &#92;frac{(&#92;alpha+1)^{n+&#92;beta}}{&#92;Gamma(n+&#92;beta)} &#92;theta^{n+&#92;beta-1} &#92; e^{-(&#92;alpha+1) &#92;theta} d &#92;theta &#92;&#92;&amp;=&#92;frac{&#92;alpha^&#92;beta}{n! &#92; &#92;Gamma(&#92;beta)} &#92; &#92;frac{&#92;Gamma(n+&#92;beta)}{(&#92;alpha+1)^{n+&#92;beta}} &#92;&#92;&amp;=&#92;frac{&#92;Gamma(n+&#92;beta)}{&#92;Gamma(n+1) &#92; &#92;Gamma(&#92;beta)} &#92; &#92;biggl( &#92;frac{&#92;alpha}{&#92;alpha+1}&#92;biggr)^&#92;beta &#92; &#92;biggl(&#92;frac{1}{&#92;alpha+1}&#92;biggr)^n &#92;&#92;&amp;=&#92;binom{n+&#92;beta-1}{n} &#92; &#92;biggl( &#92;frac{&#92;alpha}{&#92;alpha+1}&#92;biggr)^&#92;beta &#92; &#92;biggl(&#92;frac{1}{&#92;alpha+1}&#92;biggr)^n &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; n=0,1,2,&#92;cdots &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(18) &#92; &#92; &#92; &#92; &#92; P(N=n)&amp;=&#92;int_0^&#92;infty P(N=n &#92;lvert &#92;Theta=&#92;theta) &#92; g(&#92;theta) &#92; d &#92;theta &#92;&#92;&amp;=&#92;int_0^&#92;infty &#92;frac{e^{-&#92;theta} &#92; &#92;theta^n}{n!} &#92; &#92;frac{&#92;alpha^&#92;beta}{&#92;Gamma(&#92;beta)} &#92; &#92;theta^{&#92;beta-1} &#92; e^{-&#92;alpha &#92;theta} &#92; d &#92;theta &#92;&#92;&amp;=&#92;int_0^&#92;infty &#92;frac{&#92;alpha^&#92;beta}{n! &#92; &#92;Gamma(&#92;beta)} &#92; &#92;theta^{n+&#92;beta-1} &#92; e^{-(&#92;alpha+1) &#92;theta} d &#92;theta &#92;&#92;&amp;=&#92;frac{&#92;alpha^&#92;beta}{n! &#92; &#92;Gamma(&#92;beta)} &#92; &#92;frac{&#92;Gamma(n+&#92;beta)}{(&#92;alpha+1)^{n+&#92;beta}} &#92;int_0^&#92;infty &#92;frac{(&#92;alpha+1)^{n+&#92;beta}}{&#92;Gamma(n+&#92;beta)} &#92;theta^{n+&#92;beta-1} &#92; e^{-(&#92;alpha+1) &#92;theta} d &#92;theta &#92;&#92;&amp;=&#92;frac{&#92;alpha^&#92;beta}{n! &#92; &#92;Gamma(&#92;beta)} &#92; &#92;frac{&#92;Gamma(n+&#92;beta)}{(&#92;alpha+1)^{n+&#92;beta}} &#92;&#92;&amp;=&#92;frac{&#92;Gamma(n+&#92;beta)}{&#92;Gamma(n+1) &#92; &#92;Gamma(&#92;beta)} &#92; &#92;biggl( &#92;frac{&#92;alpha}{&#92;alpha+1}&#92;biggr)^&#92;beta &#92; &#92;biggl(&#92;frac{1}{&#92;alpha+1}&#92;biggr)^n &#92;&#92;&amp;=&#92;binom{n+&#92;beta-1}{n} &#92; &#92;biggl( &#92;frac{&#92;alpha}{&#92;alpha+1}&#92;biggr)^&#92;beta &#92; &#92;biggl(&#92;frac{1}{&#92;alpha+1}&#92;biggr)^n &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; n=0,1,2,&#92;cdots &#92;end{aligned}' class='latex' /></p>
<p>Note that the integral in the fourth step in <img src='http://s0.wp.com/latex.php?latex=%2818%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(18)' title='(18)' class='latex' /> is 1.0 since the integrand is the pdf of a Gamma distribution. The above probability function is that of a negative binomial distribution. It is of the same form as <img src='http://s0.wp.com/latex.php?latex=%286a%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6a)' title='(6a)' class='latex' />. Equivalently, it is also of the form <img src='http://s0.wp.com/latex.php?latex=%286%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6)' title='(6)' class='latex' /> with parameter <img src='http://s0.wp.com/latex.php?latex=r%3D%5Cbeta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r=&#92;beta' title='r=&#92;beta' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p%3D%5Cfrac%7B%5Calpha%7D%7B%5Calpha%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p=&#92;frac{&#92;alpha}{&#92;alpha+1}' title='p=&#92;frac{&#92;alpha}{&#92;alpha+1}' class='latex' />.</p>
<p>The variance of the negative binomial distribution is greater than the mean. In a Poisson distribution, the mean equals the variance. Thus the unconditional distribution of <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> is more dispersed than its conditional distributions. This is a characteristic of mixture distributions. The uncertainty in the parameter variable <img src='http://s0.wp.com/latex.php?latex=%5CTheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Theta' title='&#92;Theta' class='latex' /> has the effect of increasing the unconditional variance of the mixture distribution of <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' />. The variance of a mixture distribution has two components, the weighted average of the conditional variances and the variance of the conditional means. The second component represents the additional variance introduced by the uncertainty in the parameter <img src='http://s0.wp.com/latex.php?latex=%5CTheta&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;Theta' title='&#92;Theta' class='latex' /> (see <a href="http://statisticalmodeling.wordpress.com/2011/06/16/the-variance-of-a-mixture/" target="_blank">The variance of a mixture</a>).</p>
<p>________________________________________________________________________</p>
<p><em><strong>The Poisson Distribution as Limit of Negative Binomial</strong></em><br />
There is another connection to the Poisson distribution, that is, the Poisson distribution is a limiting case of the negative binomial distribution. We show that the generating function of the Poisson distribution can be obtained by taking the limit of the negative binomial generating function as <img src='http://s0.wp.com/latex.php?latex=r+%5Crightarrow+%5Cinfty&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r &#92;rightarrow &#92;infty' title='r &#92;rightarrow &#92;infty' class='latex' />. Interestingly, the Poisson distribution is also the limit of the binomial distribution.</p>
<p>In this section, we use the negative binomial parametrization of <img src='http://s0.wp.com/latex.php?latex=%286a%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6a)' title='(6a)' class='latex' />. By replacing <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B%5Calpha%7D%7B%5Calpha%2B1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{&#92;alpha}{&#92;alpha+1}' title='&#92;frac{&#92;alpha}{&#92;alpha+1}' class='latex' /> for <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />, the following are the mean, variance, and the generating function for the probability function in <img src='http://s0.wp.com/latex.php?latex=%286a%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6a)' title='(6a)' class='latex' />:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2819%29+%5C+%5C+%5C+%5C+%5C+%5C+%26E%28X%29%3D%5Cfrac%7Br%7D%7B%5Calpha%7D+%5C%5C%26%5Ctext%7B+%7D%5C%5C%26Var%28X%29%3D%5Cfrac%7B%5Calpha%2B1%7D%7B%5Calpha%7D+%5C+%5Cfrac%7Br%7D%7B%5Calpha%7D%3D%5Cfrac%7Br%28%5Calpha%2B1%29%7D%7B%5Calpha%5E2%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26g%28z%29%3D%5Cfrac%7B1%7D%7B%5B1-%5Cfrac%7B1%7D%7B%5Calpha%7D%28z-1%29%5D%5Er%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+z%3C%5Calpha%2B1+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(19) &#92; &#92; &#92; &#92; &#92; &#92; &amp;E(X)=&#92;frac{r}{&#92;alpha} &#92;&#92;&amp;&#92;text{ }&#92;&#92;&amp;Var(X)=&#92;frac{&#92;alpha+1}{&#92;alpha} &#92; &#92;frac{r}{&#92;alpha}=&#92;frac{r(&#92;alpha+1)}{&#92;alpha^2} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g(z)=&#92;frac{1}{[1-&#92;frac{1}{&#92;alpha}(z-1)]^r} &#92; &#92; &#92; &#92; &#92; &#92; &#92; z&lt;&#92;alpha+1 &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(19) &#92; &#92; &#92; &#92; &#92; &#92; &amp;E(X)=&#92;frac{r}{&#92;alpha} &#92;&#92;&amp;&#92;text{ }&#92;&#92;&amp;Var(X)=&#92;frac{&#92;alpha+1}{&#92;alpha} &#92; &#92;frac{r}{&#92;alpha}=&#92;frac{r(&#92;alpha+1)}{&#92;alpha^2} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g(z)=&#92;frac{1}{[1-&#92;frac{1}{&#92;alpha}(z-1)]^r} &#92; &#92; &#92; &#92; &#92; &#92; &#92; z&lt;&#92;alpha+1 &#92;end{aligned}' class='latex' /></p>
<p>Let <em>r</em> goes to infinity and <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cfrac%7B1%7D%7B%5Calpha%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;frac{1}{&#92;alpha}' title='&#92;displaystyle &#92;frac{1}{&#92;alpha}' class='latex' /> goes to zero and at the same time keeping their product constant. Thus <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cmu%3D%5Cfrac%7Br%7D%7B%5Calpha%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;mu=&#92;frac{r}{&#92;alpha}' title='&#92;displaystyle &#92;mu=&#92;frac{r}{&#92;alpha}' class='latex' /> is constant (this is the mean of the negative binomial distribution). We show the following:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2820%29+%5C+%5C+%5C+%5C+%5C+%5Clim+%5Climits_%7Br+%5Crightarrow+%5Cinfty%7D+%5B1-%5Cfrac%7B%5Cmu%7D%7Br%7D%28z-1%29%5D%5E%7B-r%7D%3De%5E%7B%5Cmu+%28z-1%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (20) &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} [1-&#92;frac{&#92;mu}{r}(z-1)]^{-r}=e^{&#92;mu (z-1)}' title='&#92;displaystyle (20) &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} [1-&#92;frac{&#92;mu}{r}(z-1)]^{-r}=e^{&#92;mu (z-1)}' class='latex' /></p>
<p>The right-hand side of <img src='http://s0.wp.com/latex.php?latex=%2820%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(20)' title='(20)' class='latex' /> is the generating function of the Poisson distribution with mean <img src='http://s0.wp.com/latex.php?latex=%5Cmu&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;mu' title='&#92;mu' class='latex' />. The generating function in the left-hand side is that of a negative binomial distribution with mean <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cmu%3D%5Cfrac%7Br%7D%7B%5Calpha%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;mu=&#92;frac{r}{&#92;alpha}' title='&#92;displaystyle &#92;mu=&#92;frac{r}{&#92;alpha}' class='latex' />. The following is the derivation of <img src='http://s0.wp.com/latex.php?latex=%2820%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(20)' title='(20)' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2821%29+%5C+%5C+%5C+%5C+%5C+%5Clim+%5Climits_%7Br+%5Crightarrow+%5Cinfty%7D+%5B1-%5Cfrac%7B%5Cmu%7D%7Br%7D%28z-1%29%5D%5E%7B-r%7D%26%3D%5Clim+%5Climits_%7Br+%5Crightarrow+%5Cinfty%7D+e%5E%7B%5Cdisplaystyle+%5Cbiggl%28ln%5B1-%5Cfrac%7B%5Cmu%7D%7Br%7D%28z-1%29%5D%5E%7B-r%7D%5Cbiggr%29%7D+%5C%5C%26%3D%5Clim+%5Climits_%7Br+%5Crightarrow+%5Cinfty%7D+e%5E%7B%5Cdisplaystyle+%5Cbiggl%28-r+%5C+ln%5B1-%5Cfrac%7B%5Cmu%7D%7Br%7D%28z-1%29%5D%5Cbiggr%29%7D+%5C%5C%26%3De%5E%7B%5Cdisplaystyle+%5Cbiggl%28%5Clim+%5Climits_%7Br+%5Crightarrow+%5Cinfty%7D+-r+%5C+ln%5B1-%5Cfrac%7B%5Cmu%7D%7Br%7D%28z-1%29%5D%5Cbiggr%29%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(21) &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} [1-&#92;frac{&#92;mu}{r}(z-1)]^{-r}&amp;=&#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} e^{&#92;displaystyle &#92;biggl(ln[1-&#92;frac{&#92;mu}{r}(z-1)]^{-r}&#92;biggr)} &#92;&#92;&amp;=&#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} e^{&#92;displaystyle &#92;biggl(-r &#92; ln[1-&#92;frac{&#92;mu}{r}(z-1)]&#92;biggr)} &#92;&#92;&amp;=e^{&#92;displaystyle &#92;biggl(&#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} -r &#92; ln[1-&#92;frac{&#92;mu}{r}(z-1)]&#92;biggr)} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(21) &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} [1-&#92;frac{&#92;mu}{r}(z-1)]^{-r}&amp;=&#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} e^{&#92;displaystyle &#92;biggl(ln[1-&#92;frac{&#92;mu}{r}(z-1)]^{-r}&#92;biggr)} &#92;&#92;&amp;=&#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} e^{&#92;displaystyle &#92;biggl(-r &#92; ln[1-&#92;frac{&#92;mu}{r}(z-1)]&#92;biggr)} &#92;&#92;&amp;=e^{&#92;displaystyle &#92;biggl(&#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} -r &#92; ln[1-&#92;frac{&#92;mu}{r}(z-1)]&#92;biggr)} &#92;end{aligned}' class='latex' /></p>
<p>We now focus on the limit in the exponent.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2822%29+%5C+%5C+%5C+%5C+%5C+%5Clim+%5Climits_%7Br+%5Crightarrow+%5Cinfty%7D+-r+%5C+ln%5B1-%5Cfrac%7B%5Cmu%7D%7Br%7D%28z-1%29%5D%26%3D%5Clim+%5Climits_%7Br+%5Crightarrow+%5Cinfty%7D+%5Cfrac%7Bln%281-%5Cfrac%7B%5Cmu%7D%7Br%7D+%28z-1%29%29%5E%7B-1%7D%7D%7Br%5E%7B-1%7D%7D+%5C%5C%26%3D%5Clim+%5Climits_%7Br+%5Crightarrow+%5Cinfty%7D+%5Cfrac%7B%281-%5Cfrac%7B%5Cmu%7D%7Br%7D+%28z-1%29%29+%5C+%5Cmu+%28z-1%29+r%5E%7B-2%7D%7D%7Br%5E%7B-2%7D%7D+%5C%5C%26%3D%5Cmu+%28z-1%29+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(22) &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} -r &#92; ln[1-&#92;frac{&#92;mu}{r}(z-1)]&amp;=&#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} &#92;frac{ln(1-&#92;frac{&#92;mu}{r} (z-1))^{-1}}{r^{-1}} &#92;&#92;&amp;=&#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} &#92;frac{(1-&#92;frac{&#92;mu}{r} (z-1)) &#92; &#92;mu (z-1) r^{-2}}{r^{-2}} &#92;&#92;&amp;=&#92;mu (z-1) &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(22) &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} -r &#92; ln[1-&#92;frac{&#92;mu}{r}(z-1)]&amp;=&#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} &#92;frac{ln(1-&#92;frac{&#92;mu}{r} (z-1))^{-1}}{r^{-1}} &#92;&#92;&amp;=&#92;lim &#92;limits_{r &#92;rightarrow &#92;infty} &#92;frac{(1-&#92;frac{&#92;mu}{r} (z-1)) &#92; &#92;mu (z-1) r^{-2}}{r^{-2}} &#92;&#92;&amp;=&#92;mu (z-1) &#92;end{aligned}' class='latex' /></p>
<p>The middle step in <img src='http://s0.wp.com/latex.php?latex=%2822%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(22)' title='(22)' class='latex' /> uses the L&#8217;Hopital&#8217;s Rule. The result in <img src='http://s0.wp.com/latex.php?latex=%2820%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(20)' title='(20)' class='latex' /> is obtained by combining <img src='http://s0.wp.com/latex.php?latex=%2821%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(21)' title='(21)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%2822%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(22)' title='(22)' class='latex' />.</p>
<p>________________________________________________________________________</p>
<p><em><strong>Reference</strong></em></p>
<ol>
<li>Klugman S.A., Panjer H. H., Wilmot G. E. <em>Loss Models, From Data to Decisions</em>, Second Edition., Wiley-Interscience, a John Wiley &amp; Sons, Inc., New York, 2004</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/probabilityandstats.wordpress.com/2485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/probabilityandstats.wordpress.com/2485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/probabilityandstats.wordpress.com/2485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/probabilityandstats.wordpress.com/2485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/probabilityandstats.wordpress.com/2485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/probabilityandstats.wordpress.com/2485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/probabilityandstats.wordpress.com/2485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/probabilityandstats.wordpress.com/2485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/probabilityandstats.wordpress.com/2485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/probabilityandstats.wordpress.com/2485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/probabilityandstats.wordpress.com/2485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/probabilityandstats.wordpress.com/2485/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/probabilityandstats.wordpress.com/2485/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/probabilityandstats.wordpress.com/2485/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2485&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://probabilityandstats.wordpress.com/2011/07/29/the-negative-binomial-distribution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31cc16f6389b1b01ea7c6e949e69cab8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">probabilityandstats</media:title>
		</media:content>
	</item>
		<item>
		<title>Splitting a Poisson Distribution</title>
		<link>http://probabilityandstats.wordpress.com/2011/07/17/splitting-a-poisson-distribution/</link>
		<comments>http://probabilityandstats.wordpress.com/2011/07/17/splitting-a-poisson-distribution/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 07:05:53 +0000</pubDate>
		<dc:creator>Dan Ma</dc:creator>
				<category><![CDATA[Probability]]></category>
		<category><![CDATA[Probability Theory]]></category>
		<category><![CDATA[Binomial distribution]]></category>
		<category><![CDATA[Multinomial distribution]]></category>
		<category><![CDATA[Poisson distribution]]></category>
		<category><![CDATA[Poisson process]]></category>
		<category><![CDATA[Probability and statistics]]></category>

		<guid isPermaLink="false">http://probabilityandstats.wordpress.com/?p=2455</guid>
		<description><![CDATA[We consider a remarkable property of the Poisson distribution that has a connection to the multinomial distribution. We start with the following examples. Example 1 Suppose that the arrivals of customers in a gift shop at an airport follow a &#8230; <a href="http://probabilityandstats.wordpress.com/2011/07/17/splitting-a-poisson-distribution/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2455&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We consider a remarkable property of the Poisson distribution that has a connection to the multinomial distribution. We start with the following examples.</p>
<p><em><strong>Example 1</strong></em><br />
Suppose that the arrivals of customers in a gift shop at an airport follow a Poisson distribution with a mean of <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=5' title='&#92;alpha=5' class='latex' /> per 10 minutes. Furthermore, suppose that each arrival can be classified into one of three distinct types &#8211; type 1 (no purchase), type 2 (purchase under $20), and type 3 (purchase over $20). Records show that about 25% of the customers are of type 1. The percentages of type 2 and type 3 are 60% and 15%, respectively. What is the probability distribution of the number of customers per hour of each type?</p>
<p><em><strong>Example 2</strong></em><br />
Roll a fair die <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> times where <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> is random and follows a Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />. For each <img src='http://s0.wp.com/latex.php?latex=i%3D1%2C2%2C3%2C4%2C5%2C6&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i=1,2,3,4,5,6' title='i=1,2,3,4,5,6' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=N_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_i' title='N_i' class='latex' /> be the number of times the upside of the die is <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />. What is the probability distribution of each <img src='http://s0.wp.com/latex.php?latex=N_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_i' title='N_i' class='latex' />? What is the joint distribution of <img src='http://s0.wp.com/latex.php?latex=N_1%2CN_2%2CN_3%2CN_4%2CN_5%2CN_6&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1,N_2,N_3,N_4,N_5,N_6' title='N_1,N_2,N_3,N_4,N_5,N_6' class='latex' />?</p>
<p>In Example 1, the stream of customers arrive according to a Poisson distribution. It can be shown that the stream of each type of customers also has a Poisson distribution. One way to view this example is that we can split the Poisson distribution into three Poisson distributions.</p>
<p>Example 2 also describes a splitting process, i.e. splitting a Poisson variable into 6 different Poisson variables. We can also view Example 2 as a multinomial distribution where the number of trials is not fixed but is random and follows a Poisson distribution. If the number of rolls of the die is fixed in Example 2 (say 10), then each <img src='http://s0.wp.com/latex.php?latex=N_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_i' title='N_i' class='latex' /> would be a binomial distribution. Yet, with the number of trials being Poisson, each <img src='http://s0.wp.com/latex.php?latex=N_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_i' title='N_i' class='latex' /> has a Poisson distribution with mean <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cfrac%7B%5Calpha%7D%7B6%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;frac{&#92;alpha}{6}' title='&#92;displaystyle &#92;frac{&#92;alpha}{6}' class='latex' />. In this post, we describe this Poisson splitting process in terms of a &#8220;random&#8221; multinomial distribution (the view point of Example 2).</p>
<p>________________________________________________________________________</p>
<p>Suppose we have a multinomial experiment with parameters <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r' title='r' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=p_1%2C+%5Ccdots%2C+p_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_1, &#92;cdots, p_r' title='p_1, &#92;cdots, p_r' class='latex' />, where </p>
<ul>
<li><img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> is the number of multinomial trials,</li>
<li><img src='http://s0.wp.com/latex.php?latex=r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r' title='r' class='latex' /> is the number of distinct possible outcomes in each trial (type 1 through type <img src='http://s0.wp.com/latex.php?latex=r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r' title='r' class='latex' />),</li>
<li>the <img src='http://s0.wp.com/latex.php?latex=p_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_i' title='p_i' class='latex' /> are the probabilities of the <img src='http://s0.wp.com/latex.php?latex=r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='r' title='r' class='latex' /> possible outcomes in each trial.</li>
</ul>
<p>Suppose that <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> follows a Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />. For each <img src='http://s0.wp.com/latex.php?latex=i%3D1%2C+%5Ccdots%2C+r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i=1, &#92;cdots, r' title='i=1, &#92;cdots, r' class='latex' />, let <img src='http://s0.wp.com/latex.php?latex=N_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_i' title='N_i' class='latex' /> be the number of occurrences of the <img src='http://s0.wp.com/latex.php?latex=i%5E%7Bth%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i^{th}' title='i^{th}' class='latex' /> type of outcomes in the <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> trials. Then <img src='http://s0.wp.com/latex.php?latex=N_1%2CN_2%2C%5Ccdots%2CN_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1,N_2,&#92;cdots,N_r' title='N_1,N_2,&#92;cdots,N_r' class='latex' /> are mutually independent Poisson random variables with parameters <img src='http://s0.wp.com/latex.php?latex=%5Calpha+p_1%2C%5Calpha+p_2%2C%5Ccdots%2C%5Calpha+p_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha p_1,&#92;alpha p_2,&#92;cdots,&#92;alpha p_r' title='&#92;alpha p_1,&#92;alpha p_2,&#92;cdots,&#92;alpha p_r' class='latex' />, respectively.</p>
<p>The variables <img src='http://s0.wp.com/latex.php?latex=N_1%2CN_2%2C%5Ccdots%2CN_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1,N_2,&#92;cdots,N_r' title='N_1,N_2,&#92;cdots,N_r' class='latex' /> have a multinomial distribution and their joint probability function is:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%281%29+%5C+%5C+%5C+%5C+P%28N_1%3Dn_1%2CN_2%3Dn_2%2C%5Ccdots%2CN_r%3Dn_r%29%3D%5Cfrac%7BN%21%7D%7Bn_1%21+n_2%21+%5Ccdots+n_r%21%7D+%5C+p_1%5E%7Bn_1%7D+p_2%5E%7Bn_2%7D+%5Ccdots+p_r%5E%7Bn_r%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (1) &#92; &#92; &#92; &#92; P(N_1=n_1,N_2=n_2,&#92;cdots,N_r=n_r)=&#92;frac{N!}{n_1! n_2! &#92;cdots n_r!} &#92; p_1^{n_1} p_2^{n_2} &#92;cdots p_r^{n_r}' title='&#92;displaystyle (1) &#92; &#92; &#92; &#92; P(N_1=n_1,N_2=n_2,&#92;cdots,N_r=n_r)=&#92;frac{N!}{n_1! n_2! &#92;cdots n_r!} &#92; p_1^{n_1} p_2^{n_2} &#92;cdots p_r^{n_r}' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=n_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n_i' title='n_i' class='latex' /> are nonnegative integers such that <img src='http://s0.wp.com/latex.php?latex=N%3Dn_1%2Bn_2%2B%5Ccdots%2Bn_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N=n_1+n_2+&#92;cdots+n_r' title='N=n_1+n_2+&#92;cdots+n_r' class='latex' />.</p>
<p>Since the total number of multinomial trials <img src='http://s0.wp.com/latex.php?latex=N&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N' title='N' class='latex' /> is not fixed and is random, <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' /> is not the end of the story. The probability in <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' /> is only a conditional probability. The following is the joint probability function of <img src='http://s0.wp.com/latex.php?latex=N_1%2CN_2%2C%5Ccdots%2CN_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1,N_2,&#92;cdots,N_r' title='N_1,N_2,&#92;cdots,N_r' class='latex' />:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%282%29+%5C+%5C+%5C+%5C+P%28N_1%3Dn_1%2CN_2%3Dn_2%2C%5Ccdots%2CN_r%3Dn_r%29%26%3DP%28N_1%3Dn_1%2CN_2%3Dn_2%2C%5Ccdots%2CN_r%3Dn_r+%5Clvert+N%3D%5Csum+%5Climits_%7Bk%3D0%7D%5Er+n_k%29+%5C%5C%26%5C+%5C+%5C+%5C+%5C+%5Ctimes+P%28N%3D%5Csum+%5Climits_%7Bk%3D0%7D%5Er+n_k%29+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Cfrac%7B%28%5Csum+%5Climits_%7Bk%3D0%7D%5Er+n_k%29%21%7D%7Bn_1%21+%5C+n_2%21+%5C+%5Ccdots+%5C+n_r%21%7D+%5C+p_1%5E%7Bn_1%7D+%5C+p_2%5E%7Bn_2%7D+%5C+%5Ccdots+%5C+p_r%5E%7Bn_r%7D+%5C+%5Ctimes+%5Cfrac%7Be%5E%7B-%5Calpha%7D+%5Calpha%5E%7B%5Csum+%5Climits_%7Bk%3D0%7D%5Er+n_k%7D%7D%7B%28%5Csum+%5Climits_%7Bk%3D0%7D%5Er+n_k%21%29%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Cfrac%7Be%5E%7B-%5Calpha+p_1%7D+%5C+%28%5Calpha+p_1%29%5E%7Bn_1%7D%7D%7Bn_1%21%7D+%5C+%5Cfrac%7Be%5E%7B-%5Calpha+p_2%7D+%5C+%28%5Calpha+p_2%29%5E%7Bn_2%7D%7D%7Bn_2%21%7D+%5C+%5Ccdots+%5C+%5Cfrac%7Be%5E%7B-%5Calpha+p_r%7D+%5C+%28%5Calpha+p_r%29%5E%7Bn_r%7D%7D%7Bn_r%21%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(2) &#92; &#92; &#92; &#92; P(N_1=n_1,N_2=n_2,&#92;cdots,N_r=n_r)&amp;=P(N_1=n_1,N_2=n_2,&#92;cdots,N_r=n_r &#92;lvert N=&#92;sum &#92;limits_{k=0}^r n_k) &#92;&#92;&amp;&#92; &#92; &#92; &#92; &#92; &#92;times P(N=&#92;sum &#92;limits_{k=0}^r n_k) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{(&#92;sum &#92;limits_{k=0}^r n_k)!}{n_1! &#92; n_2! &#92; &#92;cdots &#92; n_r!} &#92; p_1^{n_1} &#92; p_2^{n_2} &#92; &#92;cdots &#92; p_r^{n_r} &#92; &#92;times &#92;frac{e^{-&#92;alpha} &#92;alpha^{&#92;sum &#92;limits_{k=0}^r n_k}}{(&#92;sum &#92;limits_{k=0}^r n_k!)} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{e^{-&#92;alpha p_1} &#92; (&#92;alpha p_1)^{n_1}}{n_1!} &#92; &#92;frac{e^{-&#92;alpha p_2} &#92; (&#92;alpha p_2)^{n_2}}{n_2!} &#92; &#92;cdots &#92; &#92;frac{e^{-&#92;alpha p_r} &#92; (&#92;alpha p_r)^{n_r}}{n_r!} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(2) &#92; &#92; &#92; &#92; P(N_1=n_1,N_2=n_2,&#92;cdots,N_r=n_r)&amp;=P(N_1=n_1,N_2=n_2,&#92;cdots,N_r=n_r &#92;lvert N=&#92;sum &#92;limits_{k=0}^r n_k) &#92;&#92;&amp;&#92; &#92; &#92; &#92; &#92; &#92;times P(N=&#92;sum &#92;limits_{k=0}^r n_k) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{(&#92;sum &#92;limits_{k=0}^r n_k)!}{n_1! &#92; n_2! &#92; &#92;cdots &#92; n_r!} &#92; p_1^{n_1} &#92; p_2^{n_2} &#92; &#92;cdots &#92; p_r^{n_r} &#92; &#92;times &#92;frac{e^{-&#92;alpha} &#92;alpha^{&#92;sum &#92;limits_{k=0}^r n_k}}{(&#92;sum &#92;limits_{k=0}^r n_k!)} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{e^{-&#92;alpha p_1} &#92; (&#92;alpha p_1)^{n_1}}{n_1!} &#92; &#92;frac{e^{-&#92;alpha p_2} &#92; (&#92;alpha p_2)^{n_2}}{n_2!} &#92; &#92;cdots &#92; &#92;frac{e^{-&#92;alpha p_r} &#92; (&#92;alpha p_r)^{n_r}}{n_r!} &#92;end{aligned}' class='latex' /></p>
<p>To obtain the marginal probability function of <img src='http://s0.wp.com/latex.php?latex=N_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_j' title='N_j' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=j%3D1%2C2%2C%5Ccdots%2Cr&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j=1,2,&#92;cdots,r' title='j=1,2,&#92;cdots,r' class='latex' />, we sum out the other variables <img src='http://s0.wp.com/latex.php?latex=N_k%3Dn_k&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_k=n_k' title='N_k=n_k' class='latex' /> (<img src='http://s0.wp.com/latex.php?latex=k+%5Cne+j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k &#92;ne j' title='k &#92;ne j' class='latex' />) in <img src='http://s0.wp.com/latex.php?latex=%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2)' title='(2)' class='latex' /> and obtain the following:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%283%29+%5C+%5C+%5C+%5C+P%28N_j%3Dn_j%29%3D%5Cfrac%7Be%5E%7B-%5Calpha+p_j%7D+%5C+%28%5Calpha+p_j%29%5E%7Bn_j%7D%7D%7Bn_j%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (3) &#92; &#92; &#92; &#92; P(N_j=n_j)=&#92;frac{e^{-&#92;alpha p_j} &#92; (&#92;alpha p_j)^{n_j}}{n_j!}' title='&#92;displaystyle (3) &#92; &#92; &#92; &#92; P(N_j=n_j)=&#92;frac{e^{-&#92;alpha p_j} &#92; (&#92;alpha p_j)^{n_j}}{n_j!}' class='latex' /></p>
<p>Thus we can conclude that <img src='http://s0.wp.com/latex.php?latex=N_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_j' title='N_j' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=j%3D1%2C2%2C%5Ccdots%2Cr&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='j=1,2,&#92;cdots,r' title='j=1,2,&#92;cdots,r' class='latex' />, has a Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha+p_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha p_j' title='&#92;alpha p_j' class='latex' />. Furrthermore, the joint probability function of <img src='http://s0.wp.com/latex.php?latex=N_1%2CN_2%2C%5Ccdots%2CN_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1,N_2,&#92;cdots,N_r' title='N_1,N_2,&#92;cdots,N_r' class='latex' /> is the product of the marginal probability functions. Thus we can conclude that <img src='http://s0.wp.com/latex.php?latex=N_1%2CN_2%2C%5Ccdots%2CN_r&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1,N_2,&#92;cdots,N_r' title='N_1,N_2,&#92;cdots,N_r' class='latex' /> are mutually independent.</p>
<p>________________________________________________________________________<br />
<em><strong>Example 1</strong></em><br />
Let <img src='http://s0.wp.com/latex.php?latex=N_1%2CN_2%2CN_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1,N_2,N_3' title='N_1,N_2,N_3' class='latex' /> be the number of customers per hour of type 1, type 2, and type 3, respectively. Here, we attempt to split a Poisson distribution with mean 30 per hour (based on 5 per 10 minutes). Thus <img src='http://s0.wp.com/latex.php?latex=N_1%2CN_2%2CN_3&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1,N_2,N_3' title='N_1,N_2,N_3' class='latex' /> are mutually independent Poisson variables with means <img src='http://s0.wp.com/latex.php?latex=30+%5Ctimes+0.25%3D7.5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='30 &#92;times 0.25=7.5' title='30 &#92;times 0.25=7.5' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=30+%5Ctimes+0.60%3D18&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='30 &#92;times 0.60=18' title='30 &#92;times 0.60=18' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=30+%5Ctimes+0.15%3D4.5&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='30 &#92;times 0.15=4.5' title='30 &#92;times 0.15=4.5' class='latex' />, respectively.</p>
<p><em><strong>Example 2</strong></em><br />
As indicated earlier, each <img src='http://s0.wp.com/latex.php?latex=N_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_i' title='N_i' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=i%3D1%2C2%2C3%2C4%2C5%2C6&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i=1,2,3,4,5,6' title='i=1,2,3,4,5,6' class='latex' />, has a Poisson distribution with mean <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B%5Calpha%7D%7B6%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;frac{&#92;alpha}{6}' title='&#92;frac{&#92;alpha}{6}' class='latex' />. According to <img src='http://s0.wp.com/latex.php?latex=%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2)' title='(2)' class='latex' />, the joint probability function of <img src='http://s0.wp.com/latex.php?latex=N_1%2CN_2%2CN_3%2CN_4%2CN_5%2CN_6&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='N_1,N_2,N_3,N_4,N_5,N_6' title='N_1,N_2,N_3,N_4,N_5,N_6' class='latex' /> is simply the product of the six marginal Poisson probability functions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/probabilityandstats.wordpress.com/2455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/probabilityandstats.wordpress.com/2455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/probabilityandstats.wordpress.com/2455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/probabilityandstats.wordpress.com/2455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/probabilityandstats.wordpress.com/2455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/probabilityandstats.wordpress.com/2455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/probabilityandstats.wordpress.com/2455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/probabilityandstats.wordpress.com/2455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/probabilityandstats.wordpress.com/2455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/probabilityandstats.wordpress.com/2455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/probabilityandstats.wordpress.com/2455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/probabilityandstats.wordpress.com/2455/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/probabilityandstats.wordpress.com/2455/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/probabilityandstats.wordpress.com/2455/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2455&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://probabilityandstats.wordpress.com/2011/07/17/splitting-a-poisson-distribution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31cc16f6389b1b01ea7c6e949e69cab8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">probabilityandstats</media:title>
		</media:content>
	</item>
		<item>
		<title>The Poisson Distribution</title>
		<link>http://probabilityandstats.wordpress.com/2011/07/16/the-poisson-distribution/</link>
		<comments>http://probabilityandstats.wordpress.com/2011/07/16/the-poisson-distribution/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 23:37:00 +0000</pubDate>
		<dc:creator>Dan Ma</dc:creator>
				<category><![CDATA[Probability]]></category>
		<category><![CDATA[Probability Theory]]></category>
		<category><![CDATA[Binomial distribution]]></category>
		<category><![CDATA[Generating function]]></category>
		<category><![CDATA[Normal distribution]]></category>
		<category><![CDATA[Poisson distribution]]></category>
		<category><![CDATA[Poisson process]]></category>
		<category><![CDATA[Probability and statistics]]></category>

		<guid isPermaLink="false">http://probabilityandstats.wordpress.com/?p=2473</guid>
		<description><![CDATA[Let be a positive constant. Consider the following probability distribution: The above distribution is said to be a Poisson distribution with parameter . The Poisson distribution is usually used to model the random number of events occurring in a fixed &#8230; <a href="http://probabilityandstats.wordpress.com/2011/07/16/the-poisson-distribution/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2473&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> be a positive constant. Consider the following probability distribution:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%281%29+%5C+%5C+%5C+%5C+%5C+P%28X%3Dj%29%3D%5Cfrac%7Be%5E%7B-%5Calpha%7D+%5Calpha%5Ej%7D%7Bj%21%7D+%5C+%5C+%5C+%5C+%5C+j%3D0%2C1%2C2%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; P(X=j)=&#92;frac{e^{-&#92;alpha} &#92;alpha^j}{j!} &#92; &#92; &#92; &#92; &#92; j=0,1,2,&#92;cdots' title='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; P(X=j)=&#92;frac{e^{-&#92;alpha} &#92;alpha^j}{j!} &#92; &#92; &#92; &#92; &#92; j=0,1,2,&#92;cdots' class='latex' /></p>
<p>The above distribution is said to be a Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' />. The Poisson distribution is usually used to model the random number of events occurring in a fixed time interval. As will be shown below, <img src='http://s0.wp.com/latex.php?latex=E%28X%29%3D%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(X)=&#92;alpha' title='E(X)=&#92;alpha' class='latex' />. Thus the parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> is the rate of occurrence of the random events; it indicates on average how many events occur per unit of time. Examples of random events that may be modeled by the Poisson distribution include the number of alpha particles emitted by a radioactive substance counted in a prescribed area during a fixed period of time, the number of auto accidents in a fixed period of time or the number of losses arising from a group of insureds during a policy period.</p>
<p>Each of the above examples can be thought of as a process that generates a number of arrivals or changes in a fixed period of time. If such a counting process leads to a Poisson distribution, then the process is said to be a Poisson process.</p>
<p>We now discuss some basic properties of the Poisson distribution. Using the Taylor series expansion of <img src='http://s0.wp.com/latex.php?latex=e%5E%7B%5Calpha%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e^{&#92;alpha}' title='e^{&#92;alpha}' class='latex' />, the following shows that <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' /> is indeed a probability distribution.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+.+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Csum+%5Climits_%7Bj%3D0%7D%5E%5Cinfty+%5Cfrac%7Be%5E%7B-%5Calpha%7D+%5Calpha%5Ej%7D%7Bj%21%7D%3De%5E%7B-%5Calpha%7D+%5Csum+%5Climits_%7Bj%3D0%7D%5E%5Cinfty+%5Cfrac%7B%5Calpha%5Ej%7D%7Bj%21%7D%3De%5E%7B-%5Calpha%7D+e%5E%7B%5Calpha%7D%3D1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle . &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;sum &#92;limits_{j=0}^&#92;infty &#92;frac{e^{-&#92;alpha} &#92;alpha^j}{j!}=e^{-&#92;alpha} &#92;sum &#92;limits_{j=0}^&#92;infty &#92;frac{&#92;alpha^j}{j!}=e^{-&#92;alpha} e^{&#92;alpha}=1' title='&#92;displaystyle . &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;sum &#92;limits_{j=0}^&#92;infty &#92;frac{e^{-&#92;alpha} &#92;alpha^j}{j!}=e^{-&#92;alpha} &#92;sum &#92;limits_{j=0}^&#92;infty &#92;frac{&#92;alpha^j}{j!}=e^{-&#92;alpha} e^{&#92;alpha}=1' class='latex' /></p>
<p>The generating function of the Poisson distribution is <img src='http://s0.wp.com/latex.php?latex=g%28z%29%3De%5E%7B%5Calpha+%28z-1%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)=e^{&#92;alpha (z-1)}' title='g(z)=e^{&#92;alpha (z-1)}' class='latex' /> (see <a href="http://probabilityandstats.wordpress.com/2011/07/15/the-generating-function/" target="_blank">The generating function</a>). The mean and variance can be calculated using the generating function.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%282%29+%5C+%5C+%5C+%5C+%5C+%26E%28X%29%3Dg%27%281%29%3D%5Calpha+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26E%5BX%28X-1%29%5D%3Dg%5E%7B%282%29%7D%281%29%3D%5Calpha%5E2+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26Var%28X%29%3DE%5BX%28X-1%29%5D%2BE%28X%29-E%28X%29%5E2%3D%5Calpha%5E2%2B%5Calpha-%5Calpha%5E2%3D%5Calpha+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(2) &#92; &#92; &#92; &#92; &#92; &amp;E(X)=g&#039;(1)=&#92;alpha &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;E[X(X-1)]=g^{(2)}(1)=&#92;alpha^2 &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;Var(X)=E[X(X-1)]+E(X)-E(X)^2=&#92;alpha^2+&#92;alpha-&#92;alpha^2=&#92;alpha &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(2) &#92; &#92; &#92; &#92; &#92; &amp;E(X)=g&#039;(1)=&#92;alpha &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;E[X(X-1)]=g^{(2)}(1)=&#92;alpha^2 &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;Var(X)=E[X(X-1)]+E(X)-E(X)^2=&#92;alpha^2+&#92;alpha-&#92;alpha^2=&#92;alpha &#92;end{aligned}' class='latex' /></p>
<p>The Poisson distribution can also be interpreted as an approximation to the binomial distribution. It is well known that the Poisson distribution is the limiting case of binomial distributions (see [1] or <a href="http://probabilityandstats.wordpress.com/2011/08/18/poisson-as-a-limiting-case-of-binomial-distribution/" target="_blank">this post</a>).</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%283%29+%5C+%5C+%5C+%5C+%5C+%5Clim+%5Climits_%7Bn+%5Crightarrow+%5Cinfty%7D+%5Cbinom%7Bn%7D%7Bj%7D+%5Cbiggl%28%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5Ej+%5Cbiggl%281-%5Cfrac%7B%5Calpha%7D%7Bn%7D%5Cbiggr%29%5E%7Bn-j%7D%3D%5Cfrac%7Be%5E%7B-%5Calpha%7D+%5Calpha%5Ej%7D%7Bj%21%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (3) &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;binom{n}{j} &#92;biggl(&#92;frac{&#92;alpha}{n}&#92;biggr)^j &#92;biggl(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n-j}=&#92;frac{e^{-&#92;alpha} &#92;alpha^j}{j!}' title='&#92;displaystyle (3) &#92; &#92; &#92; &#92; &#92; &#92;lim &#92;limits_{n &#92;rightarrow &#92;infty} &#92;binom{n}{j} &#92;biggl(&#92;frac{&#92;alpha}{n}&#92;biggr)^j &#92;biggl(1-&#92;frac{&#92;alpha}{n}&#92;biggr)^{n-j}=&#92;frac{e^{-&#92;alpha} &#92;alpha^j}{j!}' class='latex' /></p>
<p>One application of <img src='http://s0.wp.com/latex.php?latex=%283%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(3)' title='(3)' class='latex' /> is that we can use Poisson probabilities to approximate Binomial probabilities. The approximation is reasonably good when the number of trials <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' /> in a binomial distribution is large and the probability of success <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is small. The binomial mean is <img src='http://s0.wp.com/latex.php?latex=n+p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n p' title='n p' class='latex' /> and the variance is <img src='http://s0.wp.com/latex.php?latex=n+p+%281-p%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n p (1-p)' title='n p (1-p)' class='latex' />. When <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' /> is small, <img src='http://s0.wp.com/latex.php?latex=1-p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='1-p' title='1-p' class='latex' /> is close to 1 and the binomial variance is approximately <img src='http://s0.wp.com/latex.php?latex=np+%5Capprox+n+p+%281-p%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='np &#92;approx n p (1-p)' title='np &#92;approx n p (1-p)' class='latex' />. Whenever the mean of a discrete distribution is approximately equaled to the mean, the Poisson approximation is quite good. As a rule of thumb, we can use Poisson to approximate binomial if <img src='http://s0.wp.com/latex.php?latex=n+%5Cle+100&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n &#92;le 100' title='n &#92;le 100' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p+%5Cle+0.01&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p &#92;le 0.01' title='p &#92;le 0.01' class='latex' />.</p>
<p>As an example, we use the Poisson distribution to estimate the probability that at most 1 person out of 1000 will have a birthday on the New Year Day. Let <img src='http://s0.wp.com/latex.php?latex=n%3D1000&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n=1000' title='n=1000' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p%3D365%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p=365^{-1}' title='p=365^{-1}' class='latex' />. So we use the Poisson distribution with <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D1000+365%5E%7B-1%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=1000 365^{-1}' title='&#92;alpha=1000 365^{-1}' class='latex' />. The following is an estimate using the Poisson distribution.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+.+%5C+%5C+%5C+%5C+%5C+%5C+%5C+P%28X+%5Cle+1%29%3De%5E%7B-%5Calpha%7D%2B%5Calpha+e%5E%7B-%5Calpha%7D%3D%281%2B%5Calpha%29+e%5E%7B-%5Calpha%7D%3D0.2415&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle . &#92; &#92; &#92; &#92; &#92; &#92; &#92; P(X &#92;le 1)=e^{-&#92;alpha}+&#92;alpha e^{-&#92;alpha}=(1+&#92;alpha) e^{-&#92;alpha}=0.2415' title='&#92;displaystyle . &#92; &#92; &#92; &#92; &#92; &#92; &#92; P(X &#92;le 1)=e^{-&#92;alpha}+&#92;alpha e^{-&#92;alpha}=(1+&#92;alpha) e^{-&#92;alpha}=0.2415' class='latex' /></p>
<p>Another useful property is that the independent sum of Poisson distributions also has a Poisson distribution. Specifically, if each <img src='http://s0.wp.com/latex.php?latex=X_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_i' title='X_i' class='latex' /> has a Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_i' title='&#92;alpha_i' class='latex' />, then the independent sum <img src='http://s0.wp.com/latex.php?latex=X%3DX_1%2B%5Ccdots%2BX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X=X_1+&#92;cdots+X_n' title='X=X_1+&#92;cdots+X_n' class='latex' /> has a Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D%5Calpha_1%2B%5Ccdots%2B%5Calpha_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=&#92;alpha_1+&#92;cdots+&#92;alpha_n' title='&#92;alpha=&#92;alpha_1+&#92;cdots+&#92;alpha_n' class='latex' />. One way to see this is that the product of Poisson generating functions has the same general form as <img src='http://s0.wp.com/latex.php?latex=g%28z%29%3De%5E%7B%5Calpha+%28z-1%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)=e^{&#92;alpha (z-1)}' title='g(z)=e^{&#92;alpha (z-1)}' class='latex' /> (see <a href="http://probabilityandstats.wordpress.com/2011/07/15/the-generating-function/" target="_blank">The generating function</a>). One interpretation of this property is that when merging several arrival processes, each of which follow a Poisson distribution, the result is still a Poisson distribution.</p>
<p>For example, suppose that in an airline ticket counter, the arrival of first class customers follows a Poisson process with a mean arrival rate of 8 per 15 minutes and the arrival of customers flying coach follows a Poisson distribution with a mean rate of 12 per 15 minutes. Then the arrival of customers of either types has a Poisson distribution with a mean rate of 20 per 15 minutes or 80 per hour.</p>
<p>A Poisson distribution with a large mean can be thought of as an independent sum of Poisson distributions. For example, a Poisson distribution with a mean of 50 is the independent sum of 50 Poisson distributions each with mean 1. Because of the central limit theorem, when the mean is large, we can approximate the Poisson using the normal distribution.</p>
<p>In addition to merging several Poisson distributions into one combined Poisson distribution, we can also split a Poisson into several Poisson distributions. For example, suppose that a stream of customers arrives according to a Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> and each customer can be classified into one of two types (e.g. no purchase vs. purchase) with probabilities <img src='http://s0.wp.com/latex.php?latex=p_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_1' title='p_1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_2' title='p_2' class='latex' />, respectively. Then the number of &#8220;no purchase&#8221; customers and the number of &#8220;purchase&#8221; customers are independent Poisson random variables with parameters <img src='http://s0.wp.com/latex.php?latex=%5Calpha+p_1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha p_1' title='&#92;alpha p_1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Calpha+p_2&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha p_2' title='&#92;alpha p_2' class='latex' />, respectively. For more details on the splitting of Poisson, see <a href="http://probabilityandstats.wordpress.com/2011/07/17/splitting-a-poisson-distribution/" target="_blank">Splitting a Poisson Distribution.<br />
</a></p>
<p><em><strong>Reference</strong></em></p>
<ol>
<li>Feller W. <em>An Introduction to Probability Theory and Its Applications</em>, Third Edition, John Wiley &amp; Sons, New York, 1968</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/probabilityandstats.wordpress.com/2473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/probabilityandstats.wordpress.com/2473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/probabilityandstats.wordpress.com/2473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/probabilityandstats.wordpress.com/2473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/probabilityandstats.wordpress.com/2473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/probabilityandstats.wordpress.com/2473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/probabilityandstats.wordpress.com/2473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/probabilityandstats.wordpress.com/2473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/probabilityandstats.wordpress.com/2473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/probabilityandstats.wordpress.com/2473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/probabilityandstats.wordpress.com/2473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/probabilityandstats.wordpress.com/2473/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/probabilityandstats.wordpress.com/2473/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/probabilityandstats.wordpress.com/2473/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2473&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://probabilityandstats.wordpress.com/2011/07/16/the-poisson-distribution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31cc16f6389b1b01ea7c6e949e69cab8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">probabilityandstats</media:title>
		</media:content>
	</item>
		<item>
		<title>The generating function</title>
		<link>http://probabilityandstats.wordpress.com/2011/07/15/the-generating-function/</link>
		<comments>http://probabilityandstats.wordpress.com/2011/07/15/the-generating-function/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 07:06:46 +0000</pubDate>
		<dc:creator>Dan Ma</dc:creator>
				<category><![CDATA[Probability]]></category>
		<category><![CDATA[Probability Theory]]></category>
		<category><![CDATA[Bernoulli distribution]]></category>
		<category><![CDATA[Binomial distribution]]></category>
		<category><![CDATA[Generating function]]></category>
		<category><![CDATA[Moment generating function]]></category>
		<category><![CDATA[Poisson distribution]]></category>
		<category><![CDATA[Probability and statistics]]></category>

		<guid isPermaLink="false">http://probabilityandstats.wordpress.com/?p=2466</guid>
		<description><![CDATA[Consider the function where is a positive constant. The following shows the derivatives of this function. Note that the derivative of at each order is a multiple of a Poisson probability. Thus the Poisson distribution is coded by the function &#8230; <a href="http://probabilityandstats.wordpress.com/2011/07/15/the-generating-function/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2466&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Consider the function <img src='http://s0.wp.com/latex.php?latex=g%28z%29%3D%5Cdisplaystyle+e%5E%7B%5Calpha+%28z-1%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)=&#92;displaystyle e^{&#92;alpha (z-1)}' title='g(z)=&#92;displaystyle e^{&#92;alpha (z-1)}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=%5Calpha&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha' title='&#92;alpha' class='latex' /> is a positive constant. The following shows the derivatives of this function.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D.+%5C+%5C+%5C+%5C+%5C+%5C+%26g%28z%29%3De%5E%7B%5Calpha+%28z-1%29%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+g%280%29%3De%5E%7B-%5Calpha%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26g%27%28z%29%3De%5E%7B%5Calpha+%28z-1%29%7D+%5C+%5Calpha+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+g%27%280%29%3De%5E%7B-%5Calpha%7D+%5C+%5Calpha+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26g%5E%7B%282%29%7D%28z%29%3De%5E%7B%5Calpha+%28z-1%29%7D+%5C+%5Calpha%5E2+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+g%5E%7B%282%29%7D%280%29%3D2%21+%5C+%5Cfrac%7Be%5E%7B-%5Calpha%7D+%5C+%5Calpha%5E2%7D%7B2%21%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26g%5E%7B%283%29%7D%28z%29%3De%5E%7B%5Calpha+%28z-1%29%7D+%5C+%5Calpha%5E3+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+g%5E%7B%283%29%7D%280%29%3D3%21+%5C+%5Cfrac%7Be%5E%7B-%5Calpha%7D+%5C+%5Calpha%5E3%7D%7B3%21%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Ccdots+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Ccdots+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26g%5E%7B%28n%29%7D%28z%29%3De%5E%7B%5Calpha+%28z-1%29%7D+%5C+%5Calpha%5En+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+g%5E%7B%28n%29%7D%280%29%3Dn%21+%5C+%5Cfrac%7Be%5E%7B-%5Calpha%7D+%5C+%5Calpha%5En%7D%7Bn%21%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}. &#92; &#92; &#92; &#92; &#92; &#92; &amp;g(z)=e^{&#92;alpha (z-1)} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; g(0)=e^{-&#92;alpha} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g&#039;(z)=e^{&#92;alpha (z-1)} &#92; &#92;alpha &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; g&#039;(0)=e^{-&#92;alpha} &#92; &#92;alpha &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(2)}(z)=e^{&#92;alpha (z-1)} &#92; &#92;alpha^2 &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; g^{(2)}(0)=2! &#92; &#92;frac{e^{-&#92;alpha} &#92; &#92;alpha^2}{2!} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(3)}(z)=e^{&#92;alpha (z-1)} &#92; &#92;alpha^3 &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; g^{(3)}(0)=3! &#92; &#92;frac{e^{-&#92;alpha} &#92; &#92;alpha^3}{3!} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;&#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;cdots &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;cdots &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(n)}(z)=e^{&#92;alpha (z-1)} &#92; &#92;alpha^n &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; g^{(n)}(0)=n! &#92; &#92;frac{e^{-&#92;alpha} &#92; &#92;alpha^n}{n!} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}. &#92; &#92; &#92; &#92; &#92; &#92; &amp;g(z)=e^{&#92;alpha (z-1)} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; g(0)=e^{-&#92;alpha} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g&#039;(z)=e^{&#92;alpha (z-1)} &#92; &#92;alpha &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; g&#039;(0)=e^{-&#92;alpha} &#92; &#92;alpha &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(2)}(z)=e^{&#92;alpha (z-1)} &#92; &#92;alpha^2 &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; g^{(2)}(0)=2! &#92; &#92;frac{e^{-&#92;alpha} &#92; &#92;alpha^2}{2!} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(3)}(z)=e^{&#92;alpha (z-1)} &#92; &#92;alpha^3 &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; g^{(3)}(0)=3! &#92; &#92;frac{e^{-&#92;alpha} &#92; &#92;alpha^3}{3!} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;&#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;cdots &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;cdots &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(n)}(z)=e^{&#92;alpha (z-1)} &#92; &#92;alpha^n &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; g^{(n)}(0)=n! &#92; &#92;frac{e^{-&#92;alpha} &#92; &#92;alpha^n}{n!} &#92;end{aligned}' class='latex' /></p>
<p>Note that the derivative of <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' /> at each order is a multiple of a Poisson probability. Thus the Poisson distribution is coded by the function <img src='http://s0.wp.com/latex.php?latex=g%28z%29%3D%5Cdisplaystyle+e%5E%7B%5Calpha+%28z-1%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)=&#92;displaystyle e^{&#92;alpha (z-1)}' title='g(z)=&#92;displaystyle e^{&#92;alpha (z-1)}' class='latex' />. Because of this reason, such a function is called a generating function (or probability generating function). This post discusses some basic facts about the generating function (gf) and its cousin, the moment generating function (mgf). One important characteristic is that these functions generate probabilities and moments. Another important characteristic is that there is a one-to-one correspondence between a probability distribution and its generating function and moment generating function, i.e. two random variables with different cumulative distribution functions cannot have the same gf or mgf. In some situations, this fact is useful in working with independent sum of random variables.</p>
<p>________________________________________________<br />
<em><strong>The Generating Function</strong></em><br />
Suppose that <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> is a random variable that takes only nonegative integer values with the probability function given by</p>
<p><img src='http://s0.wp.com/latex.php?latex=%281%29+%5C+%5C+%5C+%5C+%5C+%5C+P%28X%3Dj%29%3Da_j%2C+%5C+%5C+%5C+%5C+j%3D0%2C1%2C2%2C%5Ccdots&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1) &#92; &#92; &#92; &#92; &#92; &#92; P(X=j)=a_j, &#92; &#92; &#92; &#92; j=0,1,2,&#92;cdots' title='(1) &#92; &#92; &#92; &#92; &#92; &#92; P(X=j)=a_j, &#92; &#92; &#92; &#92; j=0,1,2,&#92;cdots' class='latex' /></p>
<p>The idea of the generating function is that we use a power series to capture the entire probability distribution. The following defines the generating function that is associated with the above sequence <img src='http://s0.wp.com/latex.php?latex=a_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_j' title='a_j' class='latex' />, .</p>
<p><img src='http://s0.wp.com/latex.php?latex=%282%29+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%3Da_0%2Ba_1+%5C+z%2Ba_2+%5C+z%5E2%2B+%5Ccdots%3D%5Csum+%5Climits_%7Bj%3D0%7D%5E%5Cinfty+a_j+%5C+z%5Ej&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2) &#92; &#92; &#92; &#92; &#92; &#92; g(z)=a_0+a_1 &#92; z+a_2 &#92; z^2+ &#92;cdots=&#92;sum &#92;limits_{j=0}^&#92;infty a_j &#92; z^j' title='(2) &#92; &#92; &#92; &#92; &#92; &#92; g(z)=a_0+a_1 &#92; z+a_2 &#92; z^2+ &#92;cdots=&#92;sum &#92;limits_{j=0}^&#92;infty a_j &#92; z^j' class='latex' /></p>
<p>Since the elements of the sequence <img src='http://s0.wp.com/latex.php?latex=a_j&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='a_j' title='a_j' class='latex' /> are probabilities, we can also call <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' /> the generating function of the probability distribution defined by the sequence in <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(1)' title='(1)' class='latex' />. The generating function <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' /> is defined wherever the power series converges. It is clear that at the minimum, the power series in <img src='http://s0.wp.com/latex.php?latex=%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2)' title='(2)' class='latex' /> converges for <img src='http://s0.wp.com/latex.php?latex=%5Clvert+z+%5Clvert+%5Cle+1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;lvert z &#92;lvert &#92;le 1' title='&#92;lvert z &#92;lvert &#92;le 1' class='latex' />.</p>
<p>We discuss the following three properties of generating functions:</p>
<ol>
<li>The generating function completely determines the distribution.</li>
<li>The moments of the distribution can be derived from the derivatives of the generating function.</li>
<li>The generating function of a sum of independent random variables is the product of the individual generating functions.</li>
</ol>
<p>The Poisson generating function at the beginning of the post is an example demonstrating property 1 (see Example 0 below for the derivation of the generating function). In some cases, the probability distribution of an independent sum can be deduced from the product of the individual generating functions. Some examples are given below.</p>
<p>________________________________________________<br />
<em><strong>Generating Probabilities</strong></em><br />
We now discuss the property 1 indicated above. To see that <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' /> generates the probabilities, let&#8217;s look at the derivatives of <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' />:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%283%29+%5C+%5C+%5C+%5C+%5C+%5C+%26g%27%28z%29%3Da_1%2B2+a_2+%5C+z%2B3+a_3+%5C+z%5E2%2B%5Ccdots%3D%5Csum+%5Climits_%7Bj%3D1%7D%5E%5Cinfty+j+a_j+%5C+z%5E%7Bj-1%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26g%5E%7B%282%29%7D%28z%29%3D2+a_2%2B6+a_3+%5C+z%2B+12+a_4+%5C+z%5E2%3D%5Csum+%5Climits_%7Bj%3D2%7D%5E%5Cinfty+j+%28j-1%29+a_j+%5C+z%5E%7Bj-2%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26g%5E%7B%283%29%7D%28z%29%3D6+a_3%2B+24+a_4+%5C+z%2B60+a_5+%5C+z%5E2%3D%5Csum+%5Climits_%7Bj%3D3%7D%5E%5Cinfty+j+%28j-1%29%28j-2%29+a_j+%5C+z%5E%7Bj-3%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Ccdots+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Ccdots+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26g%5E%7B%28n%29%7D%28z%29%3D%5Csum+%5Climits_%7Bj%3Dn%7D%5E%5Cinfty+j%28j-1%29+%5Ccdots+%28j-n%2B1%29+a_j+%5C+z%5E%7Bj-n%7D%3D%5Csum+%5Climits_%7Bj%3Dn%7D%5E%5Cinfty+%5Cbinom%7Bj%7D%7Bn%7D+n%21+%5C+a_j+%5C+z%5E%7Bj-n%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(3) &#92; &#92; &#92; &#92; &#92; &#92; &amp;g&#039;(z)=a_1+2 a_2 &#92; z+3 a_3 &#92; z^2+&#92;cdots=&#92;sum &#92;limits_{j=1}^&#92;infty j a_j &#92; z^{j-1} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(2)}(z)=2 a_2+6 a_3 &#92; z+ 12 a_4 &#92; z^2=&#92;sum &#92;limits_{j=2}^&#92;infty j (j-1) a_j &#92; z^{j-2} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(3)}(z)=6 a_3+ 24 a_4 &#92; z+60 a_5 &#92; z^2=&#92;sum &#92;limits_{j=3}^&#92;infty j (j-1)(j-2) a_j &#92; z^{j-3} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;&#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;cdots &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;cdots &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(n)}(z)=&#92;sum &#92;limits_{j=n}^&#92;infty j(j-1) &#92;cdots (j-n+1) a_j &#92; z^{j-n}=&#92;sum &#92;limits_{j=n}^&#92;infty &#92;binom{j}{n} n! &#92; a_j &#92; z^{j-n} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(3) &#92; &#92; &#92; &#92; &#92; &#92; &amp;g&#039;(z)=a_1+2 a_2 &#92; z+3 a_3 &#92; z^2+&#92;cdots=&#92;sum &#92;limits_{j=1}^&#92;infty j a_j &#92; z^{j-1} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(2)}(z)=2 a_2+6 a_3 &#92; z+ 12 a_4 &#92; z^2=&#92;sum &#92;limits_{j=2}^&#92;infty j (j-1) a_j &#92; z^{j-2} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(3)}(z)=6 a_3+ 24 a_4 &#92; z+60 a_5 &#92; z^2=&#92;sum &#92;limits_{j=3}^&#92;infty j (j-1)(j-2) a_j &#92; z^{j-3} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;&#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;cdots &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;cdots &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(n)}(z)=&#92;sum &#92;limits_{j=n}^&#92;infty j(j-1) &#92;cdots (j-n+1) a_j &#92; z^{j-n}=&#92;sum &#92;limits_{j=n}^&#92;infty &#92;binom{j}{n} n! &#92; a_j &#92; z^{j-n} &#92;end{aligned}' class='latex' /></p>
<p>By letting <img src='http://s0.wp.com/latex.php?latex=z%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z=0' title='z=0' class='latex' /> above, all the terms vanishes except for the constant term. We have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%284%29+%5C+%5C+%5C+%5C+%5C+%5C+g%5E%7B%28n%29%7D%280%29%3Dn%21+%5C+a_n%3Dn%21+%5C+P%28X%3Dn%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4) &#92; &#92; &#92; &#92; &#92; &#92; g^{(n)}(0)=n! &#92; a_n=n! &#92; P(X=n)' title='(4) &#92; &#92; &#92; &#92; &#92; &#92; g^{(n)}(0)=n! &#92; a_n=n! &#92; P(X=n)' class='latex' /></p>
<p>Thus the generating function is a compact way of encoding the probability distribution. The probability distribution determines the generating function as seen in <img src='http://s0.wp.com/latex.php?latex=%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2)' title='(2)' class='latex' />. On the other hand, <img src='http://s0.wp.com/latex.php?latex=%283%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(3)' title='(3)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%284%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(4)' title='(4)' class='latex' /> demonstrate that the generating function also determines the probability distribution.</p>
<p>________________________________________________<br />
<em><strong>Generating Moments</strong></em><br />
The generating function also determines the moments (property 2 indicated above). For example, we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%285%29+%5C+%5C+%5C+%5C+%5C+%5C+%26g%27%281%29%3D0+%5C+a_0%2Ba_1%2B2+a_2%2B3+a_3%2B%5Ccdots%3D%5Csum+%5Climits_%7Bj%3D0%7D%5E%5Cinfty+j+a_j%3DE%28X%29+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26g%5E%7B%282%29%7D%281%29%3D0+a_0+%2B+0+a_1%2B2+a_2%2B6+a_3%2B+12+a_4%2B%5Ccdots%3D%5Csum+%5Climits_%7Bj%3D0%7D%5E%5Cinfty+j+%28j-1%29+a_j%3DE%5BX%28X-1%29%5D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26E%28X%29%3Dg%27%281%29+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26E%28X%5E2%29%3Dg%27%281%29%2Bg%5E%7B%282%29%7D%281%29+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(5) &#92; &#92; &#92; &#92; &#92; &#92; &amp;g&#039;(1)=0 &#92; a_0+a_1+2 a_2+3 a_3+&#92;cdots=&#92;sum &#92;limits_{j=0}^&#92;infty j a_j=E(X) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(2)}(1)=0 a_0 + 0 a_1+2 a_2+6 a_3+ 12 a_4+&#92;cdots=&#92;sum &#92;limits_{j=0}^&#92;infty j (j-1) a_j=E[X(X-1)] &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;E(X)=g&#039;(1) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;E(X^2)=g&#039;(1)+g^{(2)}(1) &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(5) &#92; &#92; &#92; &#92; &#92; &#92; &amp;g&#039;(1)=0 &#92; a_0+a_1+2 a_2+3 a_3+&#92;cdots=&#92;sum &#92;limits_{j=0}^&#92;infty j a_j=E(X) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g^{(2)}(1)=0 a_0 + 0 a_1+2 a_2+6 a_3+ 12 a_4+&#92;cdots=&#92;sum &#92;limits_{j=0}^&#92;infty j (j-1) a_j=E[X(X-1)] &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;E(X)=g&#039;(1) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;E(X^2)=g&#039;(1)+g^{(2)}(1) &#92;end{aligned}' class='latex' /></p>
<p>Note that <img src='http://s0.wp.com/latex.php?latex=g%5E%7B%28n%29%7D%281%29%3DE%5BX%28X-1%29+%5Ccdots+%28X-%28n-1%29%29%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g^{(n)}(1)=E[X(X-1) &#92;cdots (X-(n-1))]' title='g^{(n)}(1)=E[X(X-1) &#92;cdots (X-(n-1))]' class='latex' />. Thus the higher moment <img src='http://s0.wp.com/latex.php?latex=E%28X%5En%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(X^n)' title='E(X^n)' class='latex' /> can be expressed in terms of <img src='http://s0.wp.com/latex.php?latex=g%5E%7B%28n%29%7D%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g^{(n)}(1)' title='g^{(n)}(1)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=g%5E%7B%28k%29%7D%281%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g^{(k)}(1)' title='g^{(k)}(1)' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=k%3Cn&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='k&lt;n' title='k&lt;n' class='latex' />.<br />
________________________________________________<br />
<em><strong>More General Definitions</strong></em><br />
Note that the definition in <img src='http://s0.wp.com/latex.php?latex=%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2)' title='(2)' class='latex' /> can also be interpreted as the mathematical expectation of <img src='http://s0.wp.com/latex.php?latex=z%5EX&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z^X' title='z^X' class='latex' />, i.e., <img src='http://s0.wp.com/latex.php?latex=g%28z%29%3DE%28z%5EX%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)=E(z^X)' title='g(z)=E(z^X)' class='latex' />. This provides a way to define the generating function for random variables that may take on values outside of the nonnegative integers. The following is a more general definition of the generating function of the random variable <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' />, which is defined for all <img src='http://s0.wp.com/latex.php?latex=z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z' title='z' class='latex' /> where the expectation exists.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%286%29+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%3DE%28z%5EX%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6) &#92; &#92; &#92; &#92; &#92; &#92; g(z)=E(z^X)' title='(6) &#92; &#92; &#92; &#92; &#92; &#92; g(z)=E(z^X)' class='latex' /></p>
<p>________________________________________________<br />
<em><strong>The Generating Function of Independent Sum</strong></em><br />
Let <img src='http://s0.wp.com/latex.php?latex=X_1%2CX_2%2C%5Ccdots%2CX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1,X_2,&#92;cdots,X_n' title='X_1,X_2,&#92;cdots,X_n' class='latex' /> be independent random variables with generating functions <img src='http://s0.wp.com/latex.php?latex=g_1%2Cg_2%2C%5Ccdots%2Cg_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_1,g_2,&#92;cdots,g_n' title='g_1,g_2,&#92;cdots,g_n' class='latex' />, respectively. Then the generating function of <img src='http://s0.wp.com/latex.php?latex=X_1%2BX_2%2B%5Ccdots%2BX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1+X_2+&#92;cdots+X_n' title='X_1+X_2+&#92;cdots+X_n' class='latex' /> is given by the product <img src='http://s0.wp.com/latex.php?latex=g_1+%5Ccdot+g_2+%5Ccdots+g_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_1 &#92;cdot g_2 &#92;cdots g_n' title='g_1 &#92;cdot g_2 &#92;cdots g_n' class='latex' />.</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' /> be the generating function of the independent sum <img src='http://s0.wp.com/latex.php?latex=X_1%2BX_2%2B%5Ccdots%2BX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1+X_2+&#92;cdots+X_n' title='X_1+X_2+&#92;cdots+X_n' class='latex' />. The following derives <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' />. Note that the general form of generating function <img src='http://s0.wp.com/latex.php?latex=%286%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(6)' title='(6)' class='latex' /> is used. </p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%287%29+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%26%3DE%28z%5E%7BX_1%2B%5Ccdots%2BX_n%7D%29+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3DE%28z%5E%7BX_1%7D+%5Ccdots+z%5E%7BX_n%7D%29+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3DE%28z%5E%7BX_1%7D%29+%5Ccdots+E%28z%5E%7BX_n%7D%29+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3Dg_1%28z%29+%5Ccdots+g_n%28z%29+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(7) &#92; &#92; &#92; &#92; &#92; &#92; g(z)&amp;=E(z^{X_1+&#92;cdots+X_n}) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=E(z^{X_1} &#92;cdots z^{X_n}) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=E(z^{X_1}) &#92;cdots E(z^{X_n}) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=g_1(z) &#92;cdots g_n(z) &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(7) &#92; &#92; &#92; &#92; &#92; &#92; g(z)&amp;=E(z^{X_1+&#92;cdots+X_n}) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=E(z^{X_1} &#92;cdots z^{X_n}) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=E(z^{X_1}) &#92;cdots E(z^{X_n}) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=g_1(z) &#92;cdots g_n(z) &#92;end{aligned}' class='latex' /></p>
<p>The probability distribution of a random variable is uniquely determined by its generating function. In particular, the generating function <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' /> of the independent sum <img src='http://s0.wp.com/latex.php?latex=X_1%2BX_2%2B%5Ccdots%2BX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1+X_2+&#92;cdots+X_n' title='X_1+X_2+&#92;cdots+X_n' class='latex' /> that is derived in <img src='http://s0.wp.com/latex.php?latex=%287%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(7)' title='(7)' class='latex' /> is unique. So if the generating function is of a particular distribution, we can deduce that the distribution of the sum must be of the same distribution. See the examples below.</p>
<p>________________________________________________<br />
<em><strong>Example 0</strong></em><br />
In this example, we derive the generating function of the Poisson distribution. Based on the definition, we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D.+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%26%3D%5Csum+%5Climits_%7Bj%3D0%7D%5E%5Cinfty+%5Cfrac%7Be%5E%7B-%5Calpha%7D+%5Calpha%5Ej%7D%7Bj%21%7D+%5C+z%5Ej+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Csum+%5Climits_%7Bj%3D0%7D%5E%5Cinfty+%5Cfrac%7Be%5E%7B-%5Calpha%7D+%28%5Calpha+z%29%5Ej%7D%7Bj%21%7D++%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Cfrac%7Be%5E%7B-%5Calpha%7D%7D%7Be%5E%7B-+%5Calpha+z%7D%7D+%5Csum+%5Climits_%7Bj%3D0%7D%5E%5Cinfty+%5Cfrac%7Be%5E%7B-%5Calpha+z%7D+%28%5Calpha+z%29%5Ej%7D%7Bj%21%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3De%5E%7B%5Calpha+%28z-1%29%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}. &#92; &#92; &#92; &#92; &#92; &#92; g(z)&amp;=&#92;sum &#92;limits_{j=0}^&#92;infty &#92;frac{e^{-&#92;alpha} &#92;alpha^j}{j!} &#92; z^j &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;sum &#92;limits_{j=0}^&#92;infty &#92;frac{e^{-&#92;alpha} (&#92;alpha z)^j}{j!}  &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{e^{-&#92;alpha}}{e^{- &#92;alpha z}} &#92;sum &#92;limits_{j=0}^&#92;infty &#92;frac{e^{-&#92;alpha z} (&#92;alpha z)^j}{j!} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=e^{&#92;alpha (z-1)} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}. &#92; &#92; &#92; &#92; &#92; &#92; g(z)&amp;=&#92;sum &#92;limits_{j=0}^&#92;infty &#92;frac{e^{-&#92;alpha} &#92;alpha^j}{j!} &#92; z^j &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;sum &#92;limits_{j=0}^&#92;infty &#92;frac{e^{-&#92;alpha} (&#92;alpha z)^j}{j!}  &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{e^{-&#92;alpha}}{e^{- &#92;alpha z}} &#92;sum &#92;limits_{j=0}^&#92;infty &#92;frac{e^{-&#92;alpha z} (&#92;alpha z)^j}{j!} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=e^{&#92;alpha (z-1)} &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Example 1</strong></em><br />
Suppose that <img src='http://s0.wp.com/latex.php?latex=X_1%2CX_2%2C%5Ccdots%2CX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1,X_2,&#92;cdots,X_n' title='X_1,X_2,&#92;cdots,X_n' class='latex' /> are independent random variables where each <img src='http://s0.wp.com/latex.php?latex=X_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_i' title='X_i' class='latex' /> has a Bernoulli distribution with probability of success <img src='http://s0.wp.com/latex.php?latex=p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p' title='p' class='latex' />. Let <img src='http://s0.wp.com/latex.php?latex=q%3D1-p&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='q=1-p' title='q=1-p' class='latex' />. The following is the generating function for each <img src='http://s0.wp.com/latex.php?latex=X_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_i' title='X_i' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=.+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%3Dq%2Bp+z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='. &#92; &#92; &#92; &#92; &#92; &#92; g(z)=q+p z' title='. &#92; &#92; &#92; &#92; &#92; &#92; g(z)=q+p z' class='latex' /></p>
<p>Then the generating function of the sum <img src='http://s0.wp.com/latex.php?latex=X%3DX_1%2B%5Ccdots%2BX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X=X_1+&#92;cdots+X_n' title='X=X_1+&#92;cdots+X_n' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=g%28z%29%5En%3D%28q%2Bp+z%29%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)^n=(q+p z)^n' title='g(z)^n=(q+p z)^n' class='latex' />. The following is the binomial expansion:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%288%29+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%5En%26%3D%28q%2Bp+z%29%5En+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Csum+%5Climits_%7Bj%3D0%7D%5En+%5Cbinom%7Bn%7D%7Bj%7D+q%5E%7Bn-j%7D+%5C+p%5Ej+%5C+z%5Ej++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(8) &#92; &#92; &#92; &#92; &#92; &#92; g(z)^n&amp;=(q+p z)^n &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;sum &#92;limits_{j=0}^n &#92;binom{n}{j} q^{n-j} &#92; p^j &#92; z^j  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(8) &#92; &#92; &#92; &#92; &#92; &#92; g(z)^n&amp;=(q+p z)^n &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;sum &#92;limits_{j=0}^n &#92;binom{n}{j} q^{n-j} &#92; p^j &#92; z^j  &#92;end{aligned}' class='latex' /></p>
<p>By definition <img src='http://s0.wp.com/latex.php?latex=%282%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(2)' title='(2)' class='latex' />, the generating function of <img src='http://s0.wp.com/latex.php?latex=X%3DX_1%2B%5Ccdots%2BX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X=X_1+&#92;cdots+X_n' title='X=X_1+&#92;cdots+X_n' class='latex' /> is:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%289%29+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%5En%3D%5Csum+%5Climits_%7Bj%3D0%7D%5E%5Cinfty+P%28X%3Dj%29+%5C+z%5Ej&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(9) &#92; &#92; &#92; &#92; &#92; &#92; g(z)^n=&#92;sum &#92;limits_{j=0}^&#92;infty P(X=j) &#92; z^j' title='(9) &#92; &#92; &#92; &#92; &#92; &#92; g(z)^n=&#92;sum &#92;limits_{j=0}^&#92;infty P(X=j) &#92; z^j' class='latex' /></p>
<p>Comparing <img src='http://s0.wp.com/latex.php?latex=%288%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(8)' title='(8)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%289%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(9)' title='(9)' class='latex' />, we have </p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2810%29+%5C+%5C+%5C+%5C+%5C+%5C+P%28X%3Dj%29%3D%5Cleft%5C%7B%5Cbegin%7Bmatrix%7D%5Cdisplaystyle+%5Cbinom%7Bn%7D%7Bj%7D+p%5Ej+%5C+q%5E%7Bn-j%7D%26%5C+0+%5Cle+j+%5Cle+n%5C%5C%7B0%7D%26%5C+j%3En+%5Cend%7Bmatrix%7D%5Cright.&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle (10) &#92; &#92; &#92; &#92; &#92; &#92; P(X=j)=&#92;left&#92;{&#92;begin{matrix}&#92;displaystyle &#92;binom{n}{j} p^j &#92; q^{n-j}&amp;&#92; 0 &#92;le j &#92;le n&#92;&#92;{0}&amp;&#92; j&gt;n &#92;end{matrix}&#92;right.' title='&#92;displaystyle (10) &#92; &#92; &#92; &#92; &#92; &#92; P(X=j)=&#92;left&#92;{&#92;begin{matrix}&#92;displaystyle &#92;binom{n}{j} p^j &#92; q^{n-j}&amp;&#92; 0 &#92;le j &#92;le n&#92;&#92;{0}&amp;&#92; j&gt;n &#92;end{matrix}&#92;right.' class='latex' /></p>
<p>The probability distribution indicated by <img src='http://s0.wp.com/latex.php?latex=%288%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(8)' title='(8)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%2810%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(10)' title='(10)' class='latex' /> is that of a binomial distribution. Since the probability distribution of a random variable is uniquely determined by its generating function, the independent sum of Bernoulli distributions must ave a Binomial distribution.</p>
<p><em><strong>Example 2</strong></em><br />
Suppose that <img src='http://s0.wp.com/latex.php?latex=X_1%2CX_2%2C%5Ccdots%2CX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_1,X_2,&#92;cdots,X_n' title='X_1,X_2,&#92;cdots,X_n' class='latex' /> are independent and have Poisson distributions with parameters <img src='http://s0.wp.com/latex.php?latex=%5Calpha_1%2C%5Calpha_2%2C%5Ccdots%2C%5Calpha_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_1,&#92;alpha_2,&#92;cdots,&#92;alpha_n' title='&#92;alpha_1,&#92;alpha_2,&#92;cdots,&#92;alpha_n' class='latex' />, respectively. Then the independent sum <img src='http://s0.wp.com/latex.php?latex=X%3DX_1%2B%5Ccdots%2BX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X=X_1+&#92;cdots+X_n' title='X=X_1+&#92;cdots+X_n' class='latex' /> has a Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D%5Calpha_1%2B%5Ccdots%2B%5Calpha_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=&#92;alpha_1+&#92;cdots+&#92;alpha_n' title='&#92;alpha=&#92;alpha_1+&#92;cdots+&#92;alpha_n' class='latex' />.</p>
<p>Let <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' /> be the generating function of <img src='http://s0.wp.com/latex.php?latex=X%3DX_1%2B%5Ccdots%2BX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X=X_1+&#92;cdots+X_n' title='X=X_1+&#92;cdots+X_n' class='latex' />. For each <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' />, the generating function of <img src='http://s0.wp.com/latex.php?latex=X_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X_i' title='X_i' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=g_i%28z%29%3De%5E%7B%5Calpha_i+%28z-1%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_i(z)=e^{&#92;alpha_i (z-1)}' title='g_i(z)=e^{&#92;alpha_i (z-1)}' class='latex' />. The key to the proof is that the product of the <img src='http://s0.wp.com/latex.php?latex=g_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_i' title='g_i' class='latex' /> has the same general form as the individual <img src='http://s0.wp.com/latex.php?latex=g_i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g_i' title='g_i' class='latex' />.   </p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2811%29+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%26%3Dg_1%28z%29+%5Ccdots+g_n%28z%29+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3De%5E%7B%5Calpha_1+%28z-1%29%7D+%5Ccdots+e%5E%7B%5Calpha_n+%28z-1%29%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3De%5E%7B%28%5Calpha_1%2B%5Ccdots%2B%5Calpha_n%29%28z-1%29%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(11) &#92; &#92; &#92; &#92; &#92; &#92; g(z)&amp;=g_1(z) &#92;cdots g_n(z) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=e^{&#92;alpha_1 (z-1)} &#92;cdots e^{&#92;alpha_n (z-1)} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=e^{(&#92;alpha_1+&#92;cdots+&#92;alpha_n)(z-1)} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(11) &#92; &#92; &#92; &#92; &#92; &#92; g(z)&amp;=g_1(z) &#92;cdots g_n(z) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=e^{&#92;alpha_1 (z-1)} &#92;cdots e^{&#92;alpha_n (z-1)} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=e^{(&#92;alpha_1+&#92;cdots+&#92;alpha_n)(z-1)} &#92;end{aligned}' class='latex' /></p>
<p>The generating function in <img src='http://s0.wp.com/latex.php?latex=%2811%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(11)' title='(11)' class='latex' /> is that of a Poisson distribution with mean <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D%5Calpha_1%2B%5Ccdots%2B%5Calpha_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=&#92;alpha_1+&#92;cdots+&#92;alpha_n' title='&#92;alpha=&#92;alpha_1+&#92;cdots+&#92;alpha_n' class='latex' />. Since the generating function uniquely determines the distribution, we can deduce that the sum <img src='http://s0.wp.com/latex.php?latex=X%3DX_1%2B%5Ccdots%2BX_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X=X_1+&#92;cdots+X_n' title='X=X_1+&#92;cdots+X_n' class='latex' /> has a Poisson distribution with parameter <img src='http://s0.wp.com/latex.php?latex=%5Calpha%3D%5Calpha_1%2B%5Ccdots%2B%5Calpha_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha=&#92;alpha_1+&#92;cdots+&#92;alpha_n' title='&#92;alpha=&#92;alpha_1+&#92;cdots+&#92;alpha_n' class='latex' />.</p>
<p><em><strong>Example 3</strong></em><br />
In rolling a fair die, let <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> be the number shown on the up face. The associated generating function is:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle.+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%3D%5Cfrac%7B1%7D%7B6%7D%28z%2Bz%5E2%2Bz%5E3%2Bz%5E4%2Bz%5E5%2Bz%5E6%29%3D%5Cfrac%7Bz%281-z%5E6%29%7D%7B6%281-z%29%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle. &#92; &#92; &#92; &#92; &#92; &#92; g(z)=&#92;frac{1}{6}(z+z^2+z^3+z^4+z^5+z^6)=&#92;frac{z(1-z^6)}{6(1-z)}' title='&#92;displaystyle. &#92; &#92; &#92; &#92; &#92; &#92; g(z)=&#92;frac{1}{6}(z+z^2+z^3+z^4+z^5+z^6)=&#92;frac{z(1-z^6)}{6(1-z)}' class='latex' /></p>
<p>The generating function can be further reduced as:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D.+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%26%3D%5Cfrac%7Bz%281-z%5E6%29%7D%7B6%281-z%29%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Cfrac%7Bz%281-z%5E3%29%281%2Bz%5E3%29%7D%7B6%281-z%29%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Cfrac%7Bz%281-z%29%281%2Bz%2Bz%5E2%29%281%2Bz%5E3%29%7D%7B6%281-z%29%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Cfrac%7Bz%281%2Bz%2Bz%5E2%29%281%2Bz%5E3%29%7D%7B6%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}. &#92; &#92; &#92; &#92; &#92; &#92; g(z)&amp;=&#92;frac{z(1-z^6)}{6(1-z)} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{z(1-z^3)(1+z^3)}{6(1-z)} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{z(1-z)(1+z+z^2)(1+z^3)}{6(1-z)} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{z(1+z+z^2)(1+z^3)}{6}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}. &#92; &#92; &#92; &#92; &#92; &#92; g(z)&amp;=&#92;frac{z(1-z^6)}{6(1-z)} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{z(1-z^3)(1+z^3)}{6(1-z)} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{z(1-z)(1+z+z^2)(1+z^3)}{6(1-z)} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{z(1+z+z^2)(1+z^3)}{6}  &#92;end{aligned}' class='latex' /></p>
<p>Suppose that we roll the fair dice 4 times. Let <img src='http://s0.wp.com/latex.php?latex=W&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='W' title='W' class='latex' /> be the sum of the 4 rolls. Then the generating function of <img src='http://s0.wp.com/latex.php?latex=Z&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='Z' title='Z' class='latex' /> is </p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle.+%5C+%5C+%5C+%5C+%5C+%5C++g%28z%29%5E4%3D%5Cfrac%7Bz%5E4+%281%2Bz%5E3%29%5E4+%281%2Bz%2Bz%5E2%29%5E4%7D%7B6%5E4%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle. &#92; &#92; &#92; &#92; &#92; &#92;  g(z)^4=&#92;frac{z^4 (1+z^3)^4 (1+z+z^2)^4}{6^4}' title='&#92;displaystyle. &#92; &#92; &#92; &#92; &#92; &#92;  g(z)^4=&#92;frac{z^4 (1+z^3)^4 (1+z+z^2)^4}{6^4}' class='latex' /></p>
<p>The random variable <img src='http://s0.wp.com/latex.php?latex=W&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='W' title='W' class='latex' /> ranges from 4 to 24. Thus the probability function ranges from <img src='http://s0.wp.com/latex.php?latex=P%28W%3D4%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(W=4)' title='P(W=4)' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=P%28W%3D24%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(W=24)' title='P(W=24)' class='latex' />. To find these probabilities, we simply need to decode the generating function <img src='http://s0.wp.com/latex.php?latex=g%28z%29%5E4&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)^4' title='g(z)^4' class='latex' />. For example, to find <img src='http://s0.wp.com/latex.php?latex=P%28W%3D12%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(W=12)' title='P(W=12)' class='latex' />, we need to find the coefficient of the term <img src='http://s0.wp.com/latex.php?latex=z%5E%7B12%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z^{12}' title='z^{12}' class='latex' /> in the polynomial <img src='http://s0.wp.com/latex.php?latex=g%28z%29%5E4&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)^4' title='g(z)^4' class='latex' />. To help this decoding, we can expand two of the polynomials in <img src='http://s0.wp.com/latex.php?latex=g%28z%29%5E4&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)^4' title='g(z)^4' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D.+%5C+%5C+%5C+%5C+%5C+%5C+g%28z%29%5E4%26%3D%5Cfrac%7Bz%5E4+%281%2Bz%5E3%29%5E4+%281%2Bz%2Bz%5E2%29%5E4%7D%7B6%5E4%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26%3D%5Cfrac%7Bz%5E4+%5Ctimes+A+%5Ctimes+B%7D%7B6%5E4%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26A%3D%281%2Bz%5E3%29%5E4%3D1%2B4z%5E3%2B6z%5E6%2B4z%5E9%2Bz%5E%7B12%7D+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26B%3D%281%2Bz%2Bz%5E2%29%5E4%3D1%2B4z%2B10z%5E2%2B16z%5E3%2B19z%5E4%2B16z%5E5%2B10z%5E6%2B4z%5E7%2Bz%5E8++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}. &#92; &#92; &#92; &#92; &#92; &#92; g(z)^4&amp;=&#92;frac{z^4 (1+z^3)^4 (1+z+z^2)^4}{6^4} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{z^4 &#92;times A &#92;times B}{6^4} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;A=(1+z^3)^4=1+4z^3+6z^6+4z^9+z^{12} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;B=(1+z+z^2)^4=1+4z+10z^2+16z^3+19z^4+16z^5+10z^6+4z^7+z^8  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}. &#92; &#92; &#92; &#92; &#92; &#92; g(z)^4&amp;=&#92;frac{z^4 (1+z^3)^4 (1+z+z^2)^4}{6^4} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;=&#92;frac{z^4 &#92;times A &#92;times B}{6^4} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;A=(1+z^3)^4=1+4z^3+6z^6+4z^9+z^{12} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;B=(1+z+z^2)^4=1+4z+10z^2+16z^3+19z^4+16z^5+10z^6+4z^7+z^8  &#92;end{aligned}' class='latex' /></p>
<p>Based on the above polynomials, there are three ways of forming <img src='http://s0.wp.com/latex.php?latex=z%5E%7B12%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='z^{12}' title='z^{12}' class='latex' />. They are: <img src='http://s0.wp.com/latex.php?latex=%28z%5E4+%5Ctimes+1+%5Ctimes+z%5E8%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(z^4 &#92;times 1 &#92;times z^8)' title='(z^4 &#92;times 1 &#92;times z^8)' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%28z%5E4+%5Ctimes+4z%5E3+%5Ctimes+16z%5E5%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(z^4 &#92;times 4z^3 &#92;times 16z^5)' title='(z^4 &#92;times 4z^3 &#92;times 16z^5)' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=%28z%5E4+%5Ctimes+6z%5E6+%5Ctimes+10z%5E2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(z^4 &#92;times 6z^6 &#92;times 10z^2)' title='(z^4 &#92;times 6z^6 &#92;times 10z^2)' class='latex' />. Thus we have: </p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle.+%5C+%5C+%5C+%5C+%5C+%5C++P%28W%3D12%29%3D%5Cfrac%7B1%7D%7B6%5E4%7D%281%2B4+%5Ctimes+16%2B6+%5Ctimes+10%29%3D%5Cfrac%7B125%7D%7B6%5E4%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle. &#92; &#92; &#92; &#92; &#92; &#92;  P(W=12)=&#92;frac{1}{6^4}(1+4 &#92;times 16+6 &#92;times 10)=&#92;frac{125}{6^4}' title='&#92;displaystyle. &#92; &#92; &#92; &#92; &#92; &#92;  P(W=12)=&#92;frac{1}{6^4}(1+4 &#92;times 16+6 &#92;times 10)=&#92;frac{125}{6^4}' class='latex' /></p>
<p>To find the other probabilities, we can follow the same decoding process.</p>
<p>________________________________________________<br />
<em><strong>Remark</strong></em><br />
The probability distribution of a random variable is uniquely determined by its generating function. This fundamental property is useful in determining the distribution of an independent sum. The generating function of the independent sum is simply the product of the individual generating functions. If the product is of a certain distributional form (as in Example 1 and Example 2), then we can deduce that the sum must be of the same distribution. </p>
<p>We can also decode the product of generating functions to obtain the probability function of the independent sum (as in Example 3). The method in Example 3 is quite tedious. But one advantage is that it is a &#8220;machine process&#8221;, a pretty fool proof process that can be performed mechanically. </p>
<p>The machine process is this: Code the individual probability distribution in a generating function <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' />. Then raise it to <img src='http://s0.wp.com/latex.php?latex=n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='n' title='n' class='latex' />. After performing some manipulation to <img src='http://s0.wp.com/latex.php?latex=g%28z%29%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)^n' title='g(z)^n' class='latex' />, decode the probabilities from <img src='http://s0.wp.com/latex.php?latex=g%28z%29%5En&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)^n' title='g(z)^n' class='latex' />. </p>
<p>As long as we can perform the algebraic manipulation carefully and correctly, this process will be sure to provide the probability distribution of an independent sum.</p>
<p>________________________________________________<br />
<em><strong>The Moment Generating Function</strong></em><br />
The moment generating function of a random variable <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='X' title='X' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=M_X%28t%29%3DE%28e%5E%7BtX%7D%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M_X(t)=E(e^{tX})' title='M_X(t)=E(e^{tX})' class='latex' /> on all real numbers <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> for which the expected value exists. The moments can be computed more directly using an mgf. From the theory of mathematical analysis, it can be shown that if <img src='http://s0.wp.com/latex.php?latex=M_X%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M_X(t)' title='M_X(t)' class='latex' /> exists on some interval <img src='http://s0.wp.com/latex.php?latex=-a%3Ct%3Ca&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='-a&lt;t&lt;a' title='-a&lt;t&lt;a' class='latex' />, then the derivatives of <img src='http://s0.wp.com/latex.php?latex=M_X%28t%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='M_X(t)' title='M_X(t)' class='latex' /> of all orders exist at <img src='http://s0.wp.com/latex.php?latex=t%3D0&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t=0' title='t=0' class='latex' />. Furthermore, it can be show that <img src='http://s0.wp.com/latex.php?latex=E%28X%5En%29%3DM_X%5E%7B%28n%29%7D%280%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='E(X^n)=M_X^{(n)}(0)' title='E(X^n)=M_X^{(n)}(0)' class='latex' />. </p>
<p>Suppose that <img src='http://s0.wp.com/latex.php?latex=g%28z%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='g(z)' title='g(z)' class='latex' /> is the generating function of a random variable. The following relates the generating function and the moment generating function.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D.+%5C+%5C+%5C+%5C+%5C+%5C+%26M_X%28t%29%3Dg%28e%5Et%29+%5C%5C%26%5Ctext%7B+%7D+%5C%5C%26g%28z%29%3DM_X%28ln+z%29++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}. &#92; &#92; &#92; &#92; &#92; &#92; &amp;M_X(t)=g(e^t) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g(z)=M_X(ln z)  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}. &#92; &#92; &#92; &#92; &#92; &#92; &amp;M_X(t)=g(e^t) &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;g(z)=M_X(ln z)  &#92;end{aligned}' class='latex' /></p>
<p>________________________________________________</p>
<p><em><strong>Reference</strong></em></p>
<ol>
<li>Feller W.  <em>An Introduction to Probability Theory and Its Applications</em>, Third Edition, John Wiley &amp; Sons, New York, 1968</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/probabilityandstats.wordpress.com/2466/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/probabilityandstats.wordpress.com/2466/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/probabilityandstats.wordpress.com/2466/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/probabilityandstats.wordpress.com/2466/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/probabilityandstats.wordpress.com/2466/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/probabilityandstats.wordpress.com/2466/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/probabilityandstats.wordpress.com/2466/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/probabilityandstats.wordpress.com/2466/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/probabilityandstats.wordpress.com/2466/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/probabilityandstats.wordpress.com/2466/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/probabilityandstats.wordpress.com/2466/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/probabilityandstats.wordpress.com/2466/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/probabilityandstats.wordpress.com/2466/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/probabilityandstats.wordpress.com/2466/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=probabilityandstats.wordpress.com&amp;blog=10213339&amp;post=2466&amp;subd=probabilityandstats&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://probabilityandstats.wordpress.com/2011/07/15/the-generating-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/31cc16f6389b1b01ea7c6e949e69cab8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">probabilityandstats</media:title>
		</media:content>
	</item>
	</channel>
</rss>
