<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>probability &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/probability/</link>
	<description>Feed of posts on WordPress.com tagged "probability"</description>
	<pubDate>Tue, 01 Dec 2009 12:50:15 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Latest News: Probability Win at EGR Awards 2009]]></title>
<link>http://mcpete.wordpress.com/2009/12/01/latest-news-probability-win-at-egr-awards-2009/</link>
<pubDate>Tue, 01 Dec 2009 11:01:39 +0000</pubDate>
<dc:creator>mcpete</dc:creator>
<guid>http://mcpete.wordpress.com/2009/12/01/latest-news-probability-win-at-egr-awards-2009/</guid>
<description><![CDATA[Earlier in the year I announced the shortlist for this year&#8217;s EGaming Review Awards, for the c]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Earlier in the year I <a href="http://mcpete.wordpress.com/2009/10/29/egr-awards-2009-nominees-announced/" target="_blank">announced the shortlist</a> for this year&#8217;s EGaming Review Awards, for the category of &#8216;Mobile Operator of the Year&#8217; &#8211; well last night was the night in question, and the winner was Probability.</p>
<p><img class="alignnone size-full wp-image-294" title="egr-awards" src="http://mcpete.wordpress.com/files/2009/12/egr-awards-operator-of-the-year-shortlist_2009-10-30_small.jpg" alt="" width="177" height="117" /></p>
<p>Special mention was also given to Betfair, for their relatively new mobile offerings.</p>
<p>The full list of winners is as follows: -</p>
<ul>
<li>Operator of the Year &#8211; Bwin</li>
<li>Innovation of the Year &#8211; Gamesys (Jackpotjoy)</li>
<li>Online Marketing Campaign of the Year &#8211; PKR</li>
<li>Affiliate Program of the Year &#8211; Virgin Games</li>
<li>Offline Marketing Campaign &#8211; Betclick</li>
<li>Mobile Operator of the Year &#8211; Probability (Ladylucks)</li>
<li>Socially Responsbile Operator of the Year &#8211; Betsson</li>
<li>Asian Operator of the Year &#8211; SBO Bet</li>
<li>Latin American Operator of the Year &#8211; Betboo</li>
<li>Bingo Operator of the Year &#8211; Cashcade (Foxy Bingo)</li>
<li>European Sports Betting Operator of the Year &#8211; Unibet</li>
<li>UK Sports Betting Operator of the Year &#8211; Betfair</li>
<li>Casino Operator of the Year &#8211; 888</li>
<li>Poker Operator of the Year &#8211; Party Gaming</li>
<li>Financial Betting Operator of the Year &#8211; Bet on Markets</li>
<li>Rising Star of the Year &#8211; Gaming Media Group</li>
<li>European Live Gaming Operator of the Year &#8211; Unibet</li>
<li>Asian Live Gaming Operator of the Year &#8211; VCBetAsia</li>
</ul>
<p>What do you think of the decision? Would you have nominated the same companies for the awards? Would love to hear your views on who should have (and shouldn&#8217;t have) won last night!</p>
<p style="text-align:center;"><a name="pd_a_2325036"></a><div class="PDS_Poll" id="PDI_container2325036" style="display:inline-block;"></div><script type="text/javascript" language="javascript" charset="utf-8" src="http://static.polldaddy.com/p/2325036.js"></script>
		<noscript>
		<a href="http://answers.polldaddy.com/poll/2325036/">View This Poll</a><br/><span style="font-size:10px;"><a href="http://answers.polldaddy.com">trends</a></span>
		</noscript></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Chi-square Distributions - II]]></title>
<link>http://probabilityandstats.wordpress.com/2009/11/28/chi-square-distributions-ii/</link>
<pubDate>Sat, 28 Nov 2009 21:49:52 +0000</pubDate>
<dc:creator>Dan Ma</dc:creator>
<guid>http://probabilityandstats.wordpress.com/2009/11/28/chi-square-distributions-ii/</guid>
<description><![CDATA[This is a further discussion on the chi-square distribution. The gamma density function is . The par]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This is a further discussion on the chi-square distribution. The gamma density function is <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cbeta%7D%28x%29%3D%5Cfrac%7B%5Calpha%5E%5Cbeta%7D%7B%5CGamma%28%5Cbeta%29%7D+%5Cthinspace+x%5E%7B%5Cbeta-1%7D+%5Cthinspace+e%5E%7B-%5Calpha+x%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\beta}(x)=\frac{\alpha^\beta}{\Gamma(\beta)} \thinspace x^{\beta-1} \thinspace e^{-\alpha x}&amp;s=-1' title='f_{\alpha,\beta}(x)=\frac{\alpha^\beta}{\Gamma(\beta)} \thinspace x^{\beta-1} \thinspace e^{-\alpha x}&amp;s=-1' class='latex' />. The parameter <img src='http://l.wordpress.com/latex.php?latex=%5Calpha&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\alpha' title='\alpha' class='latex' /> is the scale parameter and <img src='http://l.wordpress.com/latex.php?latex=%5Cbeta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\beta' title='\beta' class='latex' /> is the shape parameter. Thus the chi-square density function is of the form <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2%7D%2C%5Cfrac%7Br%7D%7B2%7D%7D%28x%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2},\frac{r}{2}}(x)&amp;s=-1' title='f_{\frac{1}{2},\frac{r}{2}}(x)&amp;s=-1' class='latex' /> where <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> is a positive integer. This is the chi-square distribution with <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> degrees of freedom, denoted by <img src='http://l.wordpress.com/latex.php?latex=%5Cchi%5E2%28r%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\chi^2(r)&amp;s=-1' title='\chi^2(r)&amp;s=-1' class='latex' />.</p>
<p>The goal is to establish these basic facts. If <img src='http://l.wordpress.com/latex.php?latex=Z%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z&amp;s=-1' title='Z&amp;s=-1' class='latex' /> follows a normal distribution with zero mean and variance <img src='http://l.wordpress.com/latex.php?latex=%5Csigma%5E2%26%2362%3B0%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\sigma^2&gt;0&amp;s=-1' title='\sigma^2&gt;0&amp;s=-1' class='latex' />, that is <img src='http://l.wordpress.com/latex.php?latex=Z+%5Csim+N%280%2C%5Csigma%5E2%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z \sim N(0,\sigma^2)&amp;s=-1' title='Z \sim N(0,\sigma^2)&amp;s=-1' class='latex' />, then the density of <img src='http://l.wordpress.com/latex.php?latex=Z%5E2%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z^2&amp;s=-1' title='Z^2&amp;s=-1' class='latex' /> is the gamma density <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2+%5Csigma%5E2%7D%2C%5Cfrac%7B1%7D%7B2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2 \sigma^2},\frac{1}{2}}&amp;s=-1' title='f_{\frac{1}{2 \sigma^2},\frac{1}{2}}&amp;s=-1' class='latex' />. If <img src='http://l.wordpress.com/latex.php?latex=Z+%5Csim+N%280%2C1%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z \sim N(0,1)&amp;s=-1' title='Z \sim N(0,1)&amp;s=-1' class='latex' />, then <img src='http://l.wordpress.com/latex.php?latex=Z%5E2%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z^2&amp;s=-1' title='Z^2&amp;s=-1' class='latex' /> has the chi-square density function <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2%7D%2C%5Cfrac%7B1%7D%7B2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2},\frac{1}{2}}&amp;s=-1' title='f_{\frac{1}{2},\frac{1}{2}}&amp;s=-1' class='latex' /> (chi-square distribution with one degree of freedom). As a result, we have some corollaries about sum of squares of normal variables.</p>
<p><em><strong>Theorem 1</strong></em>. If <img src='http://l.wordpress.com/latex.php?latex=Z+%5Csim+N%280%2C%5Csigma%5E2%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z \sim N(0,\sigma^2)&amp;s=-1' title='Z \sim N(0,\sigma^2)&amp;s=-1' class='latex' />, then <img src='http://l.wordpress.com/latex.php?latex=T%3DZ%5E2%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='T=Z^2&amp;s=-1' title='T=Z^2&amp;s=-1' class='latex' /> has the gamma density function <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2+%5Csigma%5E2%7D%2C%5Cfrac%7B1%7D%7B2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2 \sigma^2},\frac{1}{2}}&amp;s=-1' title='f_{\frac{1}{2 \sigma^2},\frac{1}{2}}&amp;s=-1' class='latex' />.</p>
<p><em><strong>Proof.</strong></em> The density function of <img src='http://l.wordpress.com/latex.php?latex=Z%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z&amp;s=-1' title='Z&amp;s=-1' class='latex' /> is <img src='http://l.wordpress.com/latex.php?latex=f_Z%28z%29%3D%5Cfrac%7B1%7D%7B%5Csigma+%5Csqrt%7B2+%5Cpi%7D%7D+%5Cthinspace+e%5E%7B-%5Cfrac%7Bz%5E2%7D%7B2+%5Csigma%5E2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_Z(z)=\frac{1}{\sigma \sqrt{2 \pi}} \thinspace e^{-\frac{z^2}{2 \sigma^2}}&amp;s=-1' title='f_Z(z)=\frac{1}{\sigma \sqrt{2 \pi}} \thinspace e^{-\frac{z^2}{2 \sigma^2}}&amp;s=-1' class='latex' />. We derive the distribution function <img src='http://l.wordpress.com/latex.php?latex=F_T%28t%29%3DP%5BT+%5Cleq+t%5D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='F_T(t)=P[T \leq t]&amp;s=-1' title='F_T(t)=P[T \leq t]&amp;s=-1' class='latex' /> and we obtain the density function <img src='http://l.wordpress.com/latex.php?latex=f_T%28t%29%3DF_T%5E%7B%27%7D%28t%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_T(t)=F_T^{&#039;}(t)&amp;s=-1' title='f_T(t)=F_T^{&#039;}(t)&amp;s=-1' class='latex' />.</p>
<p><img src='http://l.wordpress.com/latex.php?latex=F_T%28t%29%3DP%5BT+%5Cleq+t%5D%3DP%5BZ%5E2+%5Cleq+t%5D%3DP%5B-%5Csqrt%7Bt%7D+%5Cleq+Z+%5Cleq+%5Csqrt%7Bt%7D%5D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='F_T(t)=P[T \leq t]=P[Z^2 \leq t]=P[-\sqrt{t} \leq Z \leq \sqrt{t}]&amp;s=-1' title='F_T(t)=P[T \leq t]=P[Z^2 \leq t]=P[-\sqrt{t} \leq Z \leq \sqrt{t}]&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%3D%5Cint_%7B-%5Csqrt%7Bt%7D%7D%5E%7B%5Csqrt%7Bt%7D%7D+%5Cfrac%7B1%7D%7B%5Csigma+%5Csqrt%7B2+%5Cpi%7D%7D+%5Cthinspace+e%5E%7B-%5Cfrac%7Bx%5E2%7D%7B2+%5Csigma%5E2%7D%7D+%5Cthinspace+dx+%3D2%5Cint_%7B0%7D%5E%7B%5Csqrt%7Bt%7D%7D+%5Cfrac%7B1%7D%7B%5Csigma+%5Csqrt%7B2+%5Cpi%7D%7D+%5Cthinspace+e%5E%7B-%5Cfrac%7Bx%5E2%7D%7B2+%5Csigma%5E2%7D%7D+%5Cthinspace+dx%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='=\int_{-\sqrt{t}}^{\sqrt{t}} \frac{1}{\sigma \sqrt{2 \pi}} \thinspace e^{-\frac{x^2}{2 \sigma^2}} \thinspace dx =2\int_{0}^{\sqrt{t}} \frac{1}{\sigma \sqrt{2 \pi}} \thinspace e^{-\frac{x^2}{2 \sigma^2}} \thinspace dx&amp;s=-1' title='=\int_{-\sqrt{t}}^{\sqrt{t}} \frac{1}{\sigma \sqrt{2 \pi}} \thinspace e^{-\frac{x^2}{2 \sigma^2}} \thinspace dx =2\int_{0}^{\sqrt{t}} \frac{1}{\sigma \sqrt{2 \pi}} \thinspace e^{-\frac{x^2}{2 \sigma^2}} \thinspace dx&amp;s=-1' class='latex' /></p>
<p>With a change of variable using <img src='http://l.wordpress.com/latex.php?latex=x%3D%5Csqrt%7By%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x=\sqrt{y}&amp;s=-1' title='x=\sqrt{y}&amp;s=-1' class='latex' />, we have the following:<br />
<img src='http://l.wordpress.com/latex.php?latex=F_T%28t%29%3D%5Cint_0%5E%7Bt%7D+%5Cfrac%7B1%7D%7B%5Csigma+%5Csqrt%7B2+%5Cpi+y%7D%7D+%5Cthinspace+e%5E%7B-%5Cfrac%7By%7D%7B2+%5Csigma%5E2%7D%7D+%5Cthinspace+dy%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='F_T(t)=\int_0^{t} \frac{1}{\sigma \sqrt{2 \pi y}} \thinspace e^{-\frac{y}{2 \sigma^2}} \thinspace dy&amp;s=-1' title='F_T(t)=\int_0^{t} \frac{1}{\sigma \sqrt{2 \pi y}} \thinspace e^{-\frac{y}{2 \sigma^2}} \thinspace dy&amp;s=-1' class='latex' /></p>
<p>We then differentiate to get the density function:<br />
<img src='http://l.wordpress.com/latex.php?latex=f_T%28t%29%3DF_T%5E%7B%27%7D%28t%29%3D%5Cfrac%7B1%7D%7B%5Csigma+%5Csqrt%7B2+%5Cpi+t%7D%7D+%5Cthinspace+e%5E%7B-%5Cfrac%7Bt%7D%7B2+%5Csigma%5E2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_T(t)=F_T^{&#039;}(t)=\frac{1}{\sigma \sqrt{2 \pi t}} \thinspace e^{-\frac{t}{2 \sigma^2}}&amp;s=-1' title='f_T(t)=F_T^{&#039;}(t)=\frac{1}{\sigma \sqrt{2 \pi t}} \thinspace e^{-\frac{t}{2 \sigma^2}}&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%3D%5Cfrac%7B1%7D%7B%5Csqrt%7B%5Cpi%7D+%5Csqrt%7B2+%5Csigma%5E2%7D%7D+%5Cthinspace+t%5E%7B%5Cfrac%7B1%7D%7B2%7D-1%7D+%5Cthinspace+e%5E%7B-%5Cfrac%7B1%7D%7B2+%5Csigma%5E2%7Dt%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='=\frac{1}{\sqrt{\pi} \sqrt{2 \sigma^2}} \thinspace t^{\frac{1}{2}-1} \thinspace e^{-\frac{1}{2 \sigma^2}t}&amp;s=-1' title='=\frac{1}{\sqrt{\pi} \sqrt{2 \sigma^2}} \thinspace t^{\frac{1}{2}-1} \thinspace e^{-\frac{1}{2 \sigma^2}t}&amp;s=-1' class='latex' /></p>
<p>Note that <img src='http://l.wordpress.com/latex.php?latex=%5CGamma%28%5Cfrac%7B1%7D%7B2%7D%29%3D%5Csqrt%7B%5Cpi%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\Gamma(\frac{1}{2})=\sqrt{\pi}&amp;s=-1' title='\Gamma(\frac{1}{2})=\sqrt{\pi}&amp;s=-1' class='latex' />. Thus <img src='http://l.wordpress.com/latex.php?latex=f_T%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_T&amp;s=-1' title='f_T&amp;s=-1' class='latex' /> is the gamma density <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2+%5Csigma%5E2%7D%2C%5Cfrac%7B1%7D%7B2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2 \sigma^2},\frac{1}{2}}&amp;s=-1' title='f_{\frac{1}{2 \sigma^2},\frac{1}{2}}&amp;s=-1' class='latex' />.</p>
<p><em><strong>Corollary 1</strong></em>. If <img src='http://l.wordpress.com/latex.php?latex=Z+%5Csim+N%280%2C1%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z \sim N(0,1)&amp;s=-1' title='Z \sim N(0,1)&amp;s=-1' class='latex' />, then <img src='http://l.wordpress.com/latex.php?latex=T%3DZ%5E2%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='T=Z^2&amp;s=-1' title='T=Z^2&amp;s=-1' class='latex' /> has the chi-square density function <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2%7D%2C%5Cfrac%7B1%7D%7B2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2},\frac{1}{2}}&amp;s=-1' title='f_{\frac{1}{2},\frac{1}{2}}&amp;s=-1' class='latex' />. That is, <img src='http://l.wordpress.com/latex.php?latex=Z%5E2%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z^2&amp;s=-1' title='Z^2&amp;s=-1' class='latex' /> has a chi-square distribution of one degree of freedom, <img src='http://l.wordpress.com/latex.php?latex=%5Cchi%5E2%281%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\chi^2(1)&amp;s=-1' title='\chi^2(1)&amp;s=-1' class='latex' />.</p>
<p><em><strong>Corollary 2</strong></em>. If <img src='http://l.wordpress.com/latex.php?latex=Z_1%2CZ_2%2C...%2CZ_n%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z_1,Z_2,...,Z_n&amp;s=-1' title='Z_1,Z_2,...,Z_n&amp;s=-1' class='latex' /> are independent standard normal random variables, then the sum <img src='http://l.wordpress.com/latex.php?latex=Z_1%5E2%2B...%2BZ_n%5E2%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z_1^2+...+Z_n^2&amp;s=-1' title='Z_1^2+...+Z_n^2&amp;s=-1' class='latex' /> has the chi-square density function <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2%7D%2C%5Cfrac%7Bn%7D%7B2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2},\frac{n}{2}}&amp;s=-1' title='f_{\frac{1}{2},\frac{n}{2}}&amp;s=-1' class='latex' />. That is, <img src='http://l.wordpress.com/latex.php?latex=Z_1%5E2%2B...%2BZ_n%5E2%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z_1^2+...+Z_n^2&amp;s=-1' title='Z_1^2+...+Z_n^2&amp;s=-1' class='latex' /> has a chi-square distribution with <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> degrees of freedom, <img src='http://l.wordpress.com/latex.php?latex=%5Cchi%5E2%28n%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\chi^2(n)&amp;s=-1' title='\chi^2(n)&amp;s=-1' class='latex' />.</p>
<p><em><strong>Corollary 3</strong></em>. If <img src='http://l.wordpress.com/latex.php?latex=X_1%2CX_2%2C...%2CX_n%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X_1,X_2,...,X_n&amp;s=-1' title='X_1,X_2,...,X_n&amp;s=-1' class='latex' /> are independent normal random variables with the common distribution <img src='http://l.wordpress.com/latex.php?latex=N%28%5Cmu%2C%5Csigma%5E2%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='N(\mu,\sigma^2)&amp;s=-1' title='N(\mu,\sigma^2)&amp;s=-1' class='latex' />, then <img src='http://l.wordpress.com/latex.php?latex=%5CSigma_1%5En+%5Cfrac%7B%28X_i+-+%5Cmu%29%5E2%7D%7B%5Csigma%5E2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\Sigma_1^n \frac{(X_i - \mu)^2}{\sigma^2}&amp;s=-1' title='\Sigma_1^n \frac{(X_i - \mu)^2}{\sigma^2}&amp;s=-1' class='latex' /> has a chi-square distribution with <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> degrees of freedom.</p>
<p><em><strong>Comment</strong></em>. Corollary 2 and Corollary 3 are possible because the independent sum of chi-square distributions is a chi-square distribution. This can be seen using convolution of gamma densities (<a href="http://probabilityandstats.wordpress.com/2009/11/27/convolutions-of-the-gamma-densities/" target="_blank">see this post</a>).</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Probability and Computing: Chapter 7 Exercises]]></title>
<link>http://thethong.wordpress.com/2009/11/28/probability-and-computing-chapter-7-exercises/</link>
<pubDate>Sat, 28 Nov 2009 09:12:22 +0000</pubDate>
<dc:creator>thethong</dc:creator>
<guid>http://thethong.wordpress.com/2009/11/28/probability-and-computing-chapter-7-exercises/</guid>
<description><![CDATA[Exercise 7.12: Let be the sum of independent rolls of a fair dice. Show that, for any , . Solution: ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Exercise 7.12: </strong>Let <img src='http://l.wordpress.com/latex.php?latex=X_%7Bn%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X_{n}' title='X_{n}' class='latex' /> be the sum of <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> independent rolls of a fair dice. Show that, for any <img src='http://l.wordpress.com/latex.php?latex=k+%26%2362%3B+2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='k &gt; 2' title='k &gt; 2' class='latex' />, <img src='http://l.wordpress.com/latex.php?latex=%5Clim_%7Bn+%5Crightarrow+%5Cinfty%7D%28X_%7Bn%7D+%5Ctext%7Bis+divisible+by+k%7D%29+%3D+%5Cfrac%7B1%7D%7Bk%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lim_{n \rightarrow \infty}(X_{n} \text{is divisible by k}) = \frac{1}{k}' title='\lim_{n \rightarrow \infty}(X_{n} \text{is divisible by k}) = \frac{1}{k}' class='latex' />.</p>
<p><strong>Solution: </strong>Let <img src='http://l.wordpress.com/latex.php?latex=%28Y_%7Bn%7D%29_%7Bn+%5Cge+0%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(Y_{n})_{n \ge 0}' title='(Y_{n})_{n \ge 0}' class='latex' /> be a Markov chain on state space <img src='http://l.wordpress.com/latex.php?latex=I&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='I' title='I' class='latex' /> consist of <img src='http://l.wordpress.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='k' title='k' class='latex' /> states: <img src='http://l.wordpress.com/latex.php?latex=0%2C1%2C...%2C+k+-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0,1,..., k -1' title='0,1,..., k -1' class='latex' />, where the chain reaches state <img src='http://l.wordpress.com/latex.php?latex=i&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='i' title='i' class='latex' /> if and only if <img src='http://l.wordpress.com/latex.php?latex=X_%7Bn%7D%5Cequiv+i+%5Cpmod%7Bk%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X_{n}\equiv i \pmod{k}' title='X_{n}\equiv i \pmod{k}' class='latex' />.<br />
The transition matrix <img src='http://l.wordpress.com/latex.php?latex=P&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P' title='P' class='latex' /> is <img src='http://l.wordpress.com/latex.php?latex=p_%7Bi%2C%28i+%2B+j%29+%5Cbmod+k%7D+%3D+%5Cfrac%7B1%7D%7B6%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='p_{i,(i + j) \bmod k} = \frac{1}{6}' title='p_{i,(i + j) \bmod k} = \frac{1}{6}' class='latex' /> for <img src='http://l.wordpress.com/latex.php?latex=0+%5Cle+i+%5Cle+k-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0 \le i \le k-1' title='0 \le i \le k-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=1+%5Cle+j+%5Cle+6&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='1 \le j \le 6' title='1 \le j \le 6' class='latex' />. The claim is equivalent to</p>
<p><img src='http://l.wordpress.com/latex.php?latex=%5Clim_%7Bn+%5Crightarrow+%5Cinfty%7D%28Y_%7Bn%7D+%3D+0%29+%3D+%5Cfrac%7B1%7D%7Bk%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lim_{n \rightarrow \infty}(Y_{n} = 0) = \frac{1}{k}' title='\lim_{n \rightarrow \infty}(Y_{n} = 0) = \frac{1}{k}' class='latex' /></p>
<p>We know that if a Markov chain <img src='http://l.wordpress.com/latex.php?latex=%28Y_%7Bn%7D%29_%7Bn+%5Cge+0%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(Y_{n})_{n \ge 0}' title='(Y_{n})_{n \ge 0}' class='latex' /> has an irreducible, aperiodic transition matrix and an invariant distribution <img src='http://l.wordpress.com/latex.php?latex=%5Cpi&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' />, then <img src='http://l.wordpress.com/latex.php?latex=%5Clim_%7Bn+%5Crightarrow+%5Cinfty%7D%28Y_%7Bn%7D+%3D+j%29+%3D+%5Cpi_%7Bj%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lim_{n \rightarrow \infty}(Y_{n} = j) = \pi_{j}' title='\lim_{n \rightarrow \infty}(Y_{n} = j) = \pi_{j}' class='latex' /> for all <img src='http://l.wordpress.com/latex.php?latex=j&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='j' title='j' class='latex' /> of the state space.</p>
<p>We will prove the defined above <img src='http://l.wordpress.com/latex.php?latex=P&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P' title='P' class='latex' /> is irreducible, aperiodic and then find the invariant distribution <img src='http://l.wordpress.com/latex.php?latex=%5Cpi&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' /> of <img src='http://l.wordpress.com/latex.php?latex=P&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P' title='P' class='latex' />(it will turn out that <img src='http://l.wordpress.com/latex.php?latex=%5Cpi_%7B0%7D+%3D+%5Cfrac%7B1%7D%7Bk%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\pi_{0} = \frac{1}{k}' title='\pi_{0} = \frac{1}{k}' class='latex' /> as we need).</p>
<p><strong>Exercise 7.21:</strong> Consider a Markov chain on the states <img src='http://l.wordpress.com/latex.php?latex=%5C%7B+0%2C1%2C%5Cldots+%2C+n%5C%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\{ 0,1,\ldots , n\}' title='\{ 0,1,\ldots , n\}' class='latex' />, where for <img src='http://l.wordpress.com/latex.php?latex=i+%26%2360%3B+n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='i &lt; n' title='i &lt; n' class='latex' /> we have <img src='http://l.wordpress.com/latex.php?latex=P_%7Bi%2Ci%2B1%7D+%3D+%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P_{i,i+1} = \frac{1}{2}' title='P_{i,i+1} = \frac{1}{2}' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=P_%7Bi%2C0%7D+%3D+%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P_{i,0} = \frac{1}{2}' title='P_{i,0} = \frac{1}{2}' class='latex' />. Also, <img src='http://l.wordpress.com/latex.php?latex=P_%7Bn%2Cn%7D+%3D+%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P_{n,n} = \frac{1}{2}' title='P_{n,n} = \frac{1}{2}' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=P_%7Bn%2C0%7D+%3D+%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P_{n,0} = \frac{1}{2}' title='P_{n,0} = \frac{1}{2}' class='latex' />. This process can be viewed as a random walk on a directed graph with vertices <img src='http://l.wordpress.com/latex.php?latex=%5C%7B+0%2C1%2C+%5Cldots+%2Cn%5C%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\{ 0,1, \ldots ,n\}' title='\{ 0,1, \ldots ,n\}' class='latex' />, where each vertex has two directed edges: one that returns to <img src='http://l.wordpress.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0' title='0' class='latex' /> and one that moves to the vertex with the next higher number(with a self-loop at vertex <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' />). Find the stationary distribution of this chain.(This example shows that random walks on directed graphs are very different than random walks on undirected graph).</p>
<p><strong>Solution: </strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Complex Decision Making Explained]]></title>
<link>http://mosaicprojects.wordpress.com/2009/11/28/complex-decision-making-explained/</link>
<pubDate>Sat, 28 Nov 2009 05:59:18 +0000</pubDate>
<dc:creator>Lynda Bourne</dc:creator>
<guid>http://mosaicprojects.wordpress.com/2009/11/28/complex-decision-making-explained/</guid>
<description><![CDATA[Complex decision making is a vital project management skill; required not only by the project manage]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Complex decision making is a vital project management skill; required not only by the project manager but also by the project’s sponsor and client / customer among others.</p>
<p>Some of the key areas involving complex decisions include risk management, many aspects of planning (particularly optimising choices) and dealing effectively with issues and problems in a range of areas from scope and quality to cost and performance.</p>
<p>There is an underlaying assumption in project management (derived from traditional scientific management) that decisions will be based on a rational assessment of the situation to optimise outcomes. Unfortunately this is not true! As complexity increases assuming a ‘rational decision making paradigm’ becomes increasingly unrealistic. Human decision makers become ‘predictably irrational’.</p>
<p>Understanding the built in biases and ‘predictable irrational’ decision making processes used by people confronted with complex decisions can help managers requiring optimised decisions to craft strategies to minimise suboptimal outcomes. But where can busy project managers access this information?</p>
<p>I have just finished reading the most amazing paper on the subject that canvases the whole spectrum from risk aversion to behavioural economics in a practical, easy to read format; and it is free!</p>
<p><em><strong>Behavioural economics and complex decision making: implications for the Australian tax and transfer system</strong></em> has been written by Andrew Reeson and Simon Dunsttall of the Australian national science agency, CSIRO. The report was commissioned by the ‘Henry Review’ into the Australian taxation system and is published on their web site. Whilst you can safely skip the last section which focuses on applying the knowledge to our tax system. The preceding 7 sections are focused on how people make complex decisions in any sphere and are just as relevant to complex project decisions as to complex investment and taxation decisions.</p>
<p>You can download this free resource from the review panel’s website: <a title="Download paper" href="http://taxreview.treasury.gov.au/Content/Content.aspx?doc=html/commissioned_work.htm" target="_blank">download the paper</a> (a copy is also on the Mosaic web site on the assumption the Government site is temporary and will close once the Henry Review has reported: <a title="Download the paper" href="http://www.mosaicprojects.com.au/PDF/Complex_Decision_Making.pdf" target="_blank">download from Mosaic</a>).</p>
<p>If you find the report useful and you don’t live in Australia, you can buy the next Australian you meet a beer; it was his or her taxes that paid for this amazingly useful report. I know I will be keeping my copy handy for a very long time to come.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[PMI COS Seminar]]></title>
<link>http://mosaicprojects.wordpress.com/2009/11/28/pmi-cos-seminar/</link>
<pubDate>Sat, 28 Nov 2009 05:04:25 +0000</pubDate>
<dc:creator>Pat Weaver</dc:creator>
<guid>http://mosaicprojects.wordpress.com/2009/11/28/pmi-cos-seminar/</guid>
<description><![CDATA[This week, I will be presenting live from Australia the final session of the Fall PMI College Of Sch]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This week, I will be presenting live from Australia the final session of the Fall PMI College Of Scheduling (COS) Wednesday Webinar Series: <em><strong><a title="Download the paper" href="http://www.mosaicprojects.com.au/Resources_Papers_089.html" target="_blank">Scheduling in the Age of Complexity</a></strong></em>. This hour-long event will provide key insights for better scheduling from a personal level: What is the role of the scheduler and what is our future?</p>
<p>The PMI-COS Fall series is designed to bring highlights from the 6th Annual Scheduling Conference held in Boston, MA earlier this year.  Archived presentations are available at <a href="http://www.pmicos.org/ondemandlearning.asp">http://www.pmicos.org/ondemandlearning.asp</a> if you find them of interest, why not sign up for the College?</p>
<p><strong>The Featured Presentation:</strong>  <em><strong> Scheduling in the Age of Complexity</strong></em></p>
<p>Scheduling was developed as a computer based modelling process at a time when &#8216;command and control&#8217; was the dominant management paradigm. The mathematical precision of the early scheduling calculations were somehow translated into certain project outcomes. Today, the certainties are no longer so apparent. Most projects run late and uncertainty and complexity are starting to take center stage.</p>
<p>This paper identifies the key elements in Complexity Theory to suggest the real role of a schedule in &#8216;the age of complexity&#8217;. It concludes by recommending a way to re-establish the role of the scheduler in the successful delivery of projects in the 21st Century.</p>
<p>DATE:  Wednesday, December 2, 2009<br />
TIME:   5:00pm EST (US Eastern Daylight Savings Time); Doors open at 4:45pm</p>
<p>LOCATION: <a title="Webinar URL (presentation time only)" href="http://pmi.acrobat.com/r31077016/" target="_blank">http://pmi.acrobat.com/r31077016/</a></p>
<p>There is no dial-in telephone option for the presentation. All voice will be through the classroom platform.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Convolutions of the gamma densities]]></title>
<link>http://probabilityandstats.wordpress.com/2009/11/27/convolutions-of-the-gamma-densities/</link>
<pubDate>Fri, 27 Nov 2009 18:21:08 +0000</pubDate>
<dc:creator>Dan Ma</dc:creator>
<guid>http://probabilityandstats.wordpress.com/2009/11/27/convolutions-of-the-gamma-densities/</guid>
<description><![CDATA[The purpose of this post is to show that the gamma density functions are closed under the operation ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The purpose of this post is to show that the gamma density functions are closed under the operation of convolutions. As a result of this fact, we observe that (1) the sum of two independent gamma variables with the same scale parameter has a gamma distribution, (2) the independent sum of exponential variables with identical mean has an Erlang distribution, and (3) the independent sum of chi-square distributions is a chi-square distribution. See <a href="http://probabilityandstats.wordpress.com/2009/11/26/chi-square-distribution-i/" target="_blank">this post </a>for a basic discussion of the chi-square distribution.</p>
<p>Two parameters determine the gamma density &#8211; the scale parameter <img src='http://l.wordpress.com/latex.php?latex=%5Calpha%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\alpha&amp;s=-1' title='\alpha&amp;s=-1' class='latex' /> and the shape parameter <img src='http://l.wordpress.com/latex.php?latex=%5Cbeta%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\beta&amp;s=-1' title='\beta&amp;s=-1' class='latex' />. The following is the gamma density function:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cbeta%7D%28x%29%3D%5Cfrac%7B%5Calpha%5E%7B%5Cbeta%7D%7D%7B%5CGamma%28%5Cbeta%29%7D+%5Cthinspace+x%5E%7B%5Cbeta-1%7D+%5Cthinspace+e%5E%7B-%5Calpha+x%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\beta}(x)=\frac{\alpha^{\beta}}{\Gamma(\beta)} \thinspace x^{\beta-1} \thinspace e^{-\alpha x}&amp;s=-1' title='f_{\alpha,\beta}(x)=\frac{\alpha^{\beta}}{\Gamma(\beta)} \thinspace x^{\beta-1} \thinspace e^{-\alpha x}&amp;s=-1' class='latex' />.</p>
<p>The convolution relationship we want to establish is: <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cbeta%7D%2Af_%7B%5Calpha%2C%5Cdelta%7D%3Df_%7B%5Calpha%2C%5Cbeta%2B%5Cdelta%7D.%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\beta}*f_{\alpha,\delta}=f_{\alpha,\beta+\delta}.&amp;s=-1' title='f_{\alpha,\beta}*f_{\alpha,\delta}=f_{\alpha,\beta+\delta}.&amp;s=-1' class='latex' /> Note that if the shape parameter <img src='http://l.wordpress.com/latex.php?latex=%5Cbeta%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\beta&amp;s=-1' title='\beta&amp;s=-1' class='latex' /> is a positive integer, then we have an Erlang distribution. In this case, we can think of the distribution as a model for the total waiting time for <img src='http://l.wordpress.com/latex.php?latex=%5Cbeta%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\beta&amp;s=-1' title='\beta&amp;s=-1' class='latex' /> changes to occur in a Poisson process and <img src='http://l.wordpress.com/latex.php?latex=%5Calpha%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\alpha&amp;s=-1' title='\alpha&amp;s=-1' class='latex' /> is the mean rate of arrival of changes. If <img src='http://l.wordpress.com/latex.php?latex=%5Cbeta%3D1%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\beta=1&amp;s=-1' title='\beta=1&amp;s=-1' class='latex' />, we have an expoential distribution. If <img src='http://l.wordpress.com/latex.php?latex=%5Calpha%3D%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\alpha=\frac{1}{2}&amp;s=-1' title='\alpha=\frac{1}{2}&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%5Cbeta%3D%5Cfrac%7Br%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\beta=\frac{r}{2}&amp;s=-1' title='\beta=\frac{r}{2}&amp;s=-1' class='latex' /> where <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> is a positive integer, then <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2%7D%2C%5Cfrac%7Br%7D%7B2%7D%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2},\frac{r}{2}}' title='f_{\frac{1}{2},\frac{r}{2}}' class='latex' /> is the chi-square density (the chi-square distribution with <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> degrees of freedom,<img src='http://l.wordpress.com/latex.php?latex=%5Cchi%5E2%28r%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\chi^2(r)&amp;s=-1' title='\chi^2(r)&amp;s=-1' class='latex' />).</p>
<p align="center"> <em><strong>Convolutions</strong></em> </p>
<p>Let <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y&amp;s=-1' title='Y&amp;s=-1' class='latex' /> be two continuous random variables with densities <img src='http://l.wordpress.com/latex.php?latex=f%28x%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f(x)' title='f(x)' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=g%28y%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='g(y)' title='g(y)' class='latex' />, respectively. The convolution of the two densities is defined as:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=f%2Ag%28z%29%3D%5Cint_%7B-%5Cinfty%7D%5E%7B%2B%5Cinfty%7D+%5Cthinspace+f%28z-y%29+%5Cthinspace+g%28y%29+%5Cthinspace+dy%3D%5Cint_%7B-%5Cinfty%7D%5E%7B%2B%5Cinfty%7D+%5Cthinspace+g%28z-x%29+%5Cthinspace+f%28x%29+%5Cthinspace+dx.%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f*g(z)=\int_{-\infty}^{+\infty} \thinspace f(z-y) \thinspace g(y) \thinspace dy=\int_{-\infty}^{+\infty} \thinspace g(z-x) \thinspace f(x) \thinspace dx.&amp;s=-1' title='f*g(z)=\int_{-\infty}^{+\infty} \thinspace f(z-y) \thinspace g(y) \thinspace dy=\int_{-\infty}^{+\infty} \thinspace g(z-x) \thinspace f(x) \thinspace dx.&amp;s=-1' class='latex' /></p>
<p>If the two random variables <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y&amp;s=-1' title='Y&amp;s=-1' class='latex' /> are independent, then <img src='http://l.wordpress.com/latex.php?latex=f%2Ag%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f*g&amp;s=-1' title='f*g&amp;s=-1' class='latex' /> is the density function of the sum <img src='http://l.wordpress.com/latex.php?latex=Z%3DX%2BY%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z=X+Y&amp;s=-1' title='Z=X+Y&amp;s=-1' class='latex' />.</p>
<p>If the random variables <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y&amp;s=-1' title='Y&amp;s=-1' class='latex' /> only take on positive real numbers, then the convolution of the two densities is:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=f%2Ag%28z%29%3D%5Cint_%7B0%7D%5E%7Bz%7D+%5Cthinspace+f%28z-y%29+%5Cthinspace+g%28y%29+%5Cthinspace+dy%3D%5Cint_%7B0%7D%5E%7Bz%7D+%5Cthinspace+g%28z-x%29+%5Cthinspace+f%28x%29+%5Cthinspace+dx.%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f*g(z)=\int_{0}^{z} \thinspace f(z-y) \thinspace g(y) \thinspace dy=\int_{0}^{z} \thinspace g(z-x) \thinspace f(x) \thinspace dx.&amp;s=-1' title='f*g(z)=\int_{0}^{z} \thinspace f(z-y) \thinspace g(y) \thinspace dy=\int_{0}^{z} \thinspace g(z-x) \thinspace f(x) \thinspace dx.&amp;s=-1' class='latex' /></p>
<p align="center"> <em><strong>Convolutions of Gamma Densities</strong></em> </p>
<p>Given two gamma densities <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cbeta%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\beta}&amp;s=-1' title='f_{\alpha,\beta}&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cdelta%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\delta}&amp;s=-1' title='f_{\alpha,\delta}&amp;s=-1' class='latex' />, the convolution is again a gamma density: <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cbeta%7D%2Af_%7B%5Calpha%2C%5Cdelta%7D%3Df_%7B%5Calpha%2C%5Cbeta%2B%5Cdelta%7D.%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\beta}*f_{\alpha,\delta}=f_{\alpha,\beta+\delta}.&amp;s=-1' title='f_{\alpha,\beta}*f_{\alpha,\delta}=f_{\alpha,\beta+\delta}.&amp;s=-1' class='latex' /> The following shows the derivation:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cbeta%7D%2Af_%7B%5Calpha%2C%5Cdelta%7D%28z%29%3D%5Cint_%7B0%7D%5E%7Bz%7D+%5Cthinspace+f_%7B%5Calpha%2C%5Cbeta%7D%28z-y%29+%5Cthinspace+f_%7B%5Calpha%2C%5Cdelta%7D%28y%29+%5Cthinspace+dy%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\beta}*f_{\alpha,\delta}(z)=\int_{0}^{z} \thinspace f_{\alpha,\beta}(z-y) \thinspace f_{\alpha,\delta}(y) \thinspace dy&amp;s=-1' title='f_{\alpha,\beta}*f_{\alpha,\delta}(z)=\int_{0}^{z} \thinspace f_{\alpha,\beta}(z-y) \thinspace f_{\alpha,\delta}(y) \thinspace dy&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%3D%5Cfrac%7B%5Calpha%5E%7B%5Cbeta%2B%5Cdelta%7D%7D%7B%5CGamma%28%5Cbeta%29+%5CGamma%28%5Cdelta%29%7D+%5Cthinspace+e%5E%7B-%5Calpha+z%7D+%5Cthinspace+%5Cint_%7B0%7D%5E%7Bz%7D+%28z-y%29%5E%7B%5Cbeta-1%7D+%5Cthinspace+y%5E%7B%5Cdelta-1%7D+%5Cthinspace+dy%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='=\frac{\alpha^{\beta+\delta}}{\Gamma(\beta) \Gamma(\delta)} \thinspace e^{-\alpha z} \thinspace \int_{0}^{z} (z-y)^{\beta-1} \thinspace y^{\delta-1} \thinspace dy&amp;s=-1' title='=\frac{\alpha^{\beta+\delta}}{\Gamma(\beta) \Gamma(\delta)} \thinspace e^{-\alpha z} \thinspace \int_{0}^{z} (z-y)^{\beta-1} \thinspace y^{\delta-1} \thinspace dy&amp;s=-1' class='latex' /></p>
<p>In the above integral, perform a change of variable using <img src='http://l.wordpress.com/latex.php?latex=y%3Dzt%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='y=zt&amp;s=-1' title='y=zt&amp;s=-1' class='latex' /> and we have the following:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cbeta%7D%2Af_%7B%5Calpha%2C%5Cdelta%7D%28z%29%3D%5Cfrac%7B%5Calpha%5E%7B%5Cbeta%2B%5Cdelta%7D%7D%7B%5CGamma%28%5Cbeta%29+%5CGamma%28%5Cdelta%29%7D+%5Cthinspace+z%5E%7B%5Cbeta%2B%5Cdelta-1%7D+%5Cthinspace+e%5E%7B-%5Calpha+z%7D+%5Cthinspace+%5Cint_%7B0%7D%5E%7B1%7D+%281-t%29%5E%7B%5Cbeta-1%7D+%5Cthinspace+t%5E%7B%5Cdelta-1%7D+%5Cthinspace+dt%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\beta}*f_{\alpha,\delta}(z)=\frac{\alpha^{\beta+\delta}}{\Gamma(\beta) \Gamma(\delta)} \thinspace z^{\beta+\delta-1} \thinspace e^{-\alpha z} \thinspace \int_{0}^{1} (1-t)^{\beta-1} \thinspace t^{\delta-1} \thinspace dt&amp;s=-1' title='f_{\alpha,\beta}*f_{\alpha,\delta}(z)=\frac{\alpha^{\beta+\delta}}{\Gamma(\beta) \Gamma(\delta)} \thinspace z^{\beta+\delta-1} \thinspace e^{-\alpha z} \thinspace \int_{0}^{1} (1-t)^{\beta-1} \thinspace t^{\delta-1} \thinspace dt&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cbeta%7D%2Af_%7B%5Calpha%2C%5Cdelta%7D%28z%29%3D%5Cfrac%7B%5Calpha%5E%7B%5Cbeta%2B%5Cdelta%7D%7D%7B%5CGamma%28%5Cbeta%2B%5Cdelta%29%7D+%5Cthinspace+z%5E%7B%5Cbeta%2B%5Cdelta-1%7D+%5Cthinspace+e%5E%7B-%5Calpha+z%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\beta}*f_{\alpha,\delta}(z)=\frac{\alpha^{\beta+\delta}}{\Gamma(\beta+\delta)} \thinspace z^{\beta+\delta-1} \thinspace e^{-\alpha z}&amp;s=-1' title='f_{\alpha,\beta}*f_{\alpha,\delta}(z)=\frac{\alpha^{\beta+\delta}}{\Gamma(\beta+\delta)} \thinspace z^{\beta+\delta-1} \thinspace e^{-\alpha z}&amp;s=-1' class='latex' /></p>
<p>Note that in the above derivation, we utilize the beta integral <img src='http://l.wordpress.com/latex.php?latex=B%28%5Cbeta%2C%5Cdelta%29%3D%5Cint_%7B0%7D%5E%7B1%7D+%281-t%29%5E%7B%5Cbeta-1%7D+%5Cthinspace+t%5E%7B%5Cdelta-1%7D+%5Cthinspace+dt%3D%5Cfrac%7B%5CGamma%28%5Cbeta%29+%5CGamma%28%5Cdelta%29%7D%7B%5CGamma%28%5Cbeta%2B%5Cdelta%29%7D.%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='B(\beta,\delta)=\int_{0}^{1} (1-t)^{\beta-1} \thinspace t^{\delta-1} \thinspace dt=\frac{\Gamma(\beta) \Gamma(\delta)}{\Gamma(\beta+\delta)}.&amp;s=-1' title='B(\beta,\delta)=\int_{0}^{1} (1-t)^{\beta-1} \thinspace t^{\delta-1} \thinspace dt=\frac{\Gamma(\beta) \Gamma(\delta)}{\Gamma(\beta+\delta)}.&amp;s=-1' class='latex' /></p>
<p align="center"> <em><strong>Observations</strong></em> </p>
<p>If <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y&amp;s=-1' title='Y&amp;s=-1' class='latex' /> are independent gamma variables with densities <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cbeta%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\beta}&amp;s=-1' title='f_{\alpha,\beta}&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cdelta%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\delta}&amp;s=-1' title='f_{\alpha,\delta}&amp;s=-1' class='latex' />, respectively, then the sum <img src='http://l.wordpress.com/latex.php?latex=Z%3DX%2BY%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z=X+Y&amp;s=-1' title='Z=X+Y&amp;s=-1' class='latex' /> has density function <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C%5Cbeta%2B%5Cdelta%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,\beta+\delta}&amp;s=-1' title='f_{\alpha,\beta+\delta}&amp;s=-1' class='latex' />. If <img src='http://l.wordpress.com/latex.php?latex=X_1%2CX_2%2C...%2CX_n%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X_1,X_2,...,X_n&amp;s=-1' title='X_1,X_2,...,X_n&amp;s=-1' class='latex' /> are independent exponential random variables having common density <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2C1%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,1}&amp;s=-1' title='f_{\alpha,1}&amp;s=-1' class='latex' />, then the sum <img src='http://l.wordpress.com/latex.php?latex=Z%3DX_1%2B...%2BX_n%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z=X_1+...+X_n&amp;s=-1' title='Z=X_1+...+X_n&amp;s=-1' class='latex' /> has density function <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Calpha%2Cn%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\alpha,n}&amp;s=-1' title='f_{\alpha,n}&amp;s=-1' class='latex' />, which is an Erlang density function.</p>
<p>With respect to the chi-square distribution, if <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> has density function <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2%7D%2C%5Cfrac%7Br%7D%7B2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2},\frac{r}{2}}&amp;s=-1' title='f_{\frac{1}{2},\frac{r}{2}}&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y&amp;s=-1' title='Y&amp;s=-1' class='latex' /> has density function <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2%7D%2C%5Cfrac%7Bs%7D%7B2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2},\frac{s}{2}}&amp;s=-1' title='f_{\frac{1}{2},\frac{s}{2}}&amp;s=-1' class='latex' /> and if <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y&amp;s=-1' title='Y&amp;s=-1' class='latex' /> are independent, then the sum <img src='http://l.wordpress.com/latex.php?latex=Z%3DX%2BY%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z=X+Y&amp;s=-1' title='Z=X+Y&amp;s=-1' class='latex' /> has density function <img src='http://l.wordpress.com/latex.php?latex=f_%7B%5Cfrac%7B1%7D%7B2%7D%2C%5Cfrac%7Br%2Bs%7D%7B2%7D%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_{\frac{1}{2},\frac{r+s}{2}}&amp;s=-1' title='f_{\frac{1}{2},\frac{r+s}{2}}&amp;s=-1' class='latex' />. In other words, the independent sum of two chi-square distributions <img src='http://l.wordpress.com/latex.php?latex=%5Cchi%5E2%28r%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\chi^2(r)&amp;s=-1' title='\chi^2(r)&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%5Cchi%5E2%28s%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\chi^2(s)&amp;s=-1' title='\chi^2(s)&amp;s=-1' class='latex' /> is <img src='http://l.wordpress.com/latex.php?latex=%5Cchi%5E2%28r%2Bs%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\chi^2(r+s)&amp;s=-1' title='\chi^2(r+s)&amp;s=-1' class='latex' />.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Chi-square Distribution - I]]></title>
<link>http://probabilityandstats.wordpress.com/2009/11/26/chi-square-distribution-i/</link>
<pubDate>Thu, 26 Nov 2009 18:34:40 +0000</pubDate>
<dc:creator>Dan Ma</dc:creator>
<guid>http://probabilityandstats.wordpress.com/2009/11/26/chi-square-distribution-i/</guid>
<description><![CDATA[This is Part 1 of a basic discussion on chi-square distribution. The purpose is to lay the ground wo]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This is Part 1 of a basic discussion on chi-square distribution. The purpose is to lay the ground work for future discussion. The chi-square distribution is a special case of the gamma distribution. Looking at it in the context of the Poisson-Exponential-Erlang-Gamma distributions helps put chi-square in prespectives (Erlang distribution is a special case of the gamma distribution). So this is the objective of this discussion. This is a very light discussion. The goal is to establish a good handle on the probability density function (pdf) of the chi-square distribution through the angle of Poisson-Exponential-Erlang-Gamma. This discussion may be helpful to someone who is studying for a test on this topic. In subsequent posts I will discuss chi-square in more details including applications.</p>
<p align="center"> <em><strong>The Poisson-Exponential-Erlang-Gamma Angle </strong></em> </p>
<p>Think of a Poisson process where the mean rate of arrival of changes is <img src='http://l.wordpress.com/latex.php?latex=%5Clambda%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lambda&amp;s=-1' title='\lambda&amp;s=-1' class='latex' />. Then <img src='http://l.wordpress.com/latex.php?latex=%5Cfrac%7B1%7D%7B%5Clambda%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac{1}{\lambda}&amp;s=-1' title='\frac{1}{\lambda}&amp;s=-1' class='latex' /> is the mean time until the next change in this Poisson process. For a more detailed discussion on the Poisson process, see [1]. Now think of the following three random variables derived from the same Poisson process.</p>
<ol>
<li>Poisson <img src='http://l.wordpress.com/latex.php?latex=%28N%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(N)&amp;s=-1' title='(N)&amp;s=-1' class='latex' />: the number of changes in the time interval <img src='http://l.wordpress.com/latex.php?latex=%5B0%2C1%5D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='[0,1]&amp;s=-1' title='[0,1]&amp;s=-1' class='latex' />. The mean number of arrivals is <img src='http://l.wordpress.com/latex.php?latex=%5Clambda%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lambda&amp;s=-1' title='\lambda&amp;s=-1' class='latex' />.</li>
<li>Exponential <img src='http://l.wordpress.com/latex.php?latex=%28T_1%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(T_1)&amp;s=-1' title='(T_1)&amp;s=-1' class='latex' />: the waiting time until the arrival of the first (or next) change. The mean waiting time is <img src='http://l.wordpress.com/latex.php?latex=%5Cfrac%7B1%7D%7B%5Clambda%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac{1}{\lambda}&amp;s=-1' title='\frac{1}{\lambda}&amp;s=-1' class='latex' />.</li>
<li>Erlang <img src='http://l.wordpress.com/latex.php?latex=%28T_n%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(T_n)&amp;s=-1' title='(T_n)&amp;s=-1' class='latex' />: the waiting time until the arrival of the <img src='http://l.wordpress.com/latex.php?latex=n%5E%7Bth%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^{th}&amp;s=-1' title='n^{th}&amp;s=-1' class='latex' /> change where <img src='http://l.wordpress.com/latex.php?latex=n%26%2362%3B1%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n&gt;1&amp;s=-1' title='n&gt;1&amp;s=-1' class='latex' /> is a positive integer. The mean waiting time is <img src='http://l.wordpress.com/latex.php?latex=%5Cfrac%7Bn%7D%7B%5Clambda%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac{n}{\lambda}&amp;s=-1' title='\frac{n}{\lambda}&amp;s=-1' class='latex' />.</li>
</ol>
<p>Here&#8217;s are the probability function and density functions:</p>
<ol>
<li>Poisson <img src='http://l.wordpress.com/latex.php?latex=%28N%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(N)&amp;s=-1' title='(N)&amp;s=-1' class='latex' />: <img src='http://l.wordpress.com/latex.php?latex=P%5BN%3Dn%5D%3D%5Cfrac%7B%28%5Clambda%29%5En+e%5E%7B-%5Clambda%7D%7D%7Bn%21%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P[N=n]=\frac{(\lambda)^n e^{-\lambda}}{n!}' title='P[N=n]=\frac{(\lambda)^n e^{-\lambda}}{n!}' class='latex' /> where <img src='http://l.wordpress.com/latex.php?latex=n%3D0%2C1%2C2%2C3%2C...%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n=0,1,2,3,...&amp;s=-1' title='n=0,1,2,3,...&amp;s=-1' class='latex' /> with <img src='http://l.wordpress.com/latex.php?latex=E%5BN%5D%3D%5Clambda%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[N]=\lambda&amp;s=-1' title='E[N]=\lambda&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Var%5BN%5D%3D%5Clambda%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[N]=\lambda&amp;s=-1' title='Var[N]=\lambda&amp;s=-1' class='latex' />.</li>
<li>Exponential <img src='http://l.wordpress.com/latex.php?latex=%28T_1%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(T_1)&amp;s=-1' title='(T_1)&amp;s=-1' class='latex' />: <img src='http://l.wordpress.com/latex.php?latex=f_1%28t%29%3D%5Clambda+e%5E%7B-%5Clambda+t%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_1(t)=\lambda e^{-\lambda t}' title='f_1(t)=\lambda e^{-\lambda t}' class='latex' />, <img src='http://l.wordpress.com/latex.php?latex=t%26%2362%3B0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='t&gt;0' title='t&gt;0' class='latex' />, with <img src='http://l.wordpress.com/latex.php?latex=E%5BT_1%5D%3D%5Cfrac%7B1%7D%7B%5Clambda%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[T_1]=\frac{1}{\lambda}&amp;s=-1' title='E[T_1]=\frac{1}{\lambda}&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Var%5BT_1%5D%3D%5Cfrac%7B1%7D%7B%5Clambda%5E2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[T_1]=\frac{1}{\lambda^2}&amp;s=-1' title='Var[T_1]=\frac{1}{\lambda^2}&amp;s=-1' class='latex' />.</li>
<li>Erlang <img src='http://l.wordpress.com/latex.php?latex=%28T_n%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(T_n)&amp;s=-1' title='(T_n)&amp;s=-1' class='latex' />: <img src='http://l.wordpress.com/latex.php?latex=f_n%28t%29%3D%5Cfrac%7B%5Clambda%5En%7D%7B%28n-1%29%21%7D+%5Cthinspace+t%5E%7Bn-1%7D+%5Cthinspace+e%5E%7B-%5Clambda+t%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f_n(t)=\frac{\lambda^n}{(n-1)!} \thinspace t^{n-1} \thinspace e^{-\lambda t}&amp;s=-1' title='f_n(t)=\frac{\lambda^n}{(n-1)!} \thinspace t^{n-1} \thinspace e^{-\lambda t}&amp;s=-1' class='latex' />, <img src='http://l.wordpress.com/latex.php?latex=t%26%2362%3B0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='t&gt;0' title='t&gt;0' class='latex' />, with <img src='http://l.wordpress.com/latex.php?latex=E%5BT_n%5D%3D%5Cfrac%7Bn%7D%7B%5Clambda%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[T_n]=\frac{n}{\lambda}&amp;s=-1' title='E[T_n]=\frac{n}{\lambda}&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Var%5BT_n%5D%3D%5Cfrac%7Bn%7D%7B%5Clambda%5E2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[T_n]=\frac{n}{\lambda^2}&amp;s=-1' title='Var[T_n]=\frac{n}{\lambda^2}&amp;s=-1' class='latex' />.</li>
</ol>
<p>Two parameters determine the Erlang distribution &#8211; <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> (the number of arrivals of changes) and <img src='http://l.wordpress.com/latex.php?latex=%5Clambda%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lambda&amp;s=-1' title='\lambda&amp;s=-1' class='latex' /> (the mean arrival rate in the Poisson process). The parameter <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> is called the shape parameter since it determines the shape of the distribution (e.g. compare the shape of the density curves for <img src='http://l.wordpress.com/latex.php?latex=n%3D1%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n=1&amp;s=-1' title='n=1&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=n%3D2%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n=2&amp;s=-1' title='n=2&amp;s=-1' class='latex' />). The parameter <img src='http://l.wordpress.com/latex.php?latex=%5Clambda%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lambda&amp;s=-1' title='\lambda&amp;s=-1' class='latex' /> is called the scale parameter.</p>
<p>We now generalize Erlang to the gamma distribution. The pdf has the same form as the Erlang pdf, except that <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> can now take on any positive real number and the factorial <img src='http://l.wordpress.com/latex.php?latex=%28n-1%29%21%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(n-1)!&amp;s=-1' title='(n-1)!&amp;s=-1' class='latex' /> is replaced by the gamma function <img src='http://l.wordpress.com/latex.php?latex=%5CGamma%28n%29%3D%5Cint_0%5E%5Cinfty+%5Cthinspace+y%5E%7Bn-1%7D+%5Cthinspace+e%5E%7B-y%7D+%5Cthinspace+dy%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\Gamma(n)=\int_0^\infty \thinspace y^{n-1} \thinspace e^{-y} \thinspace dy&amp;s=-1' title='\Gamma(n)=\int_0^\infty \thinspace y^{n-1} \thinspace e^{-y} \thinspace dy&amp;s=-1' class='latex' />. Thus the gamma pdf is:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=f%28x%29%3D%5Cfrac%7B%5Clambda%5E%5Calpha%7D%7B%5CGamma%28%5Calpha%29%7D+%5Cthinspace+x%5E%7B%5Calpha-1%7D+%5Cthinspace+e%5E%7B-%5Clambda+x%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f(x)=\frac{\lambda^\alpha}{\Gamma(\alpha)} \thinspace x^{\alpha-1} \thinspace e^{-\lambda x}&amp;s=-1' title='f(x)=\frac{\lambda^\alpha}{\Gamma(\alpha)} \thinspace x^{\alpha-1} \thinspace e^{-\lambda x}&amp;s=-1' class='latex' /> where <img src='http://l.wordpress.com/latex.php?latex=x%26%2362%3B0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x&gt;0' title='x&gt;0' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=E%5BX%5D%3D%5Cfrac%7B%5Calpha%7D%7B%5Clambda%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[X]=\frac{\alpha}{\lambda}&amp;s=-1' title='E[X]=\frac{\alpha}{\lambda}&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Var%5BX%5D%3D%5Cfrac%7B%5Calpha%7D%7B%5Clambda%5E2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[X]=\frac{\alpha}{\lambda^2}&amp;s=-1' title='Var[X]=\frac{\alpha}{\lambda^2}&amp;s=-1' class='latex' />.</p>
<p>As with Erlang, the gamma distribution is determined by two parameters <img src='http://l.wordpress.com/latex.php?latex=%5Calpha&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\alpha' title='\alpha' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%5Clambda%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lambda&amp;s=-1' title='\lambda&amp;s=-1' class='latex' />. The parameter <img src='http://l.wordpress.com/latex.php?latex=%5Calpha&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\alpha' title='\alpha' class='latex' /> is the shape parameter (the one in the exponent of <img src='http://l.wordpress.com/latex.php?latex=x&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x' title='x' class='latex' /> in the pdf). The parameter <img src='http://l.wordpress.com/latex.php?latex=%5Clambda%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lambda&amp;s=-1' title='\lambda&amp;s=-1' class='latex' /> is the scale parameter (the one in the exponent of <img src='http://l.wordpress.com/latex.php?latex=e&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='e' title='e' class='latex' /> in the pdf).</p>
<p align="center"> <em><strong>The Chi-square Distribution </strong></em> </p>
<p>The chi-square distribution is a gamma distribution where the shape parameter is <img src='http://l.wordpress.com/latex.php?latex=%5Cfrac%7Br%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac{r}{2}&amp;s=-1' title='\frac{r}{2}&amp;s=-1' class='latex' /> where <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> is a positive integer and the scale parameter is <img src='http://l.wordpress.com/latex.php?latex=%5Clambda%3D%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lambda=\frac{1}{2}&amp;s=-1' title='\lambda=\frac{1}{2}&amp;s=-1' class='latex' />. When <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> is an even integer, we get an Erlang distribution and we can think of the shape parameter <img src='http://l.wordpress.com/latex.php?latex=%5Cfrac%7Br%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac{r}{2}&amp;s=-1' title='\frac{r}{2}&amp;s=-1' class='latex' /> as the number of arrivals in a Poisson process. The scale parameter <img src='http://l.wordpress.com/latex.php?latex=%5Clambda%3D%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lambda=\frac{1}{2}&amp;s=-1' title='\lambda=\frac{1}{2}&amp;s=-1' class='latex' /> would be the mean arrival rate in the Poisson process (so the mean time until the next change is 2). Familiarity of the Poisson-Erlang-Gamma relationship gives a good handle on the chi-square density function. Thus the following is the pdf of the chi-square distribution along with its mean and variance.</p>
<p><img src='http://l.wordpress.com/latex.php?latex=f%28x%29%3D%5Cfrac%7B1%7D%7B%5CGamma%28r%2F2%29+%5Cthinspace+2%5E%7Br%2F2%7D%7D+%5Cthinspace+x%5E%7B%5Cfrac%7Br%7D%7B2%7D-1%7D+%5Cthinspace+e%5E%7B-%5Cfrac%7B1%7D%7B2%7D+x%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f(x)=\frac{1}{\Gamma(r/2) \thinspace 2^{r/2}} \thinspace x^{\frac{r}{2}-1} \thinspace e^{-\frac{1}{2} x}&amp;s=-1' title='f(x)=\frac{1}{\Gamma(r/2) \thinspace 2^{r/2}} \thinspace x^{\frac{r}{2}-1} \thinspace e^{-\frac{1}{2} x}&amp;s=-1' class='latex' /> where <img src='http://l.wordpress.com/latex.php?latex=x%26%2362%3B0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x&gt;0' title='x&gt;0' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=E%5BX%5D%3Dr%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[X]=r&amp;s=-1' title='E[X]=r&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Var%5BX%5D%3D2r%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[X]=2r&amp;s=-1' title='Var[X]=2r&amp;s=-1' class='latex' />.</p>
<p>If the random variable <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> is distributed according to the above pdf, <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> is said to have the chi-square distribution with <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> degrees of freedom. The distribution is abbreviated by <img src='http://l.wordpress.com/latex.php?latex=%5Cchi%5E2%28r%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\chi^2(r)&amp;s=-1' title='\chi^2(r)&amp;s=-1' class='latex' />.</p>
<p>Consider an example based a Poisson process. Suppose the arrivals of cars at a toll booth is modeled by a Poisson process. Suppose on average cars arrive at the booth at the rate of 30 cars per hour. What is the probability that the toll booth worker will have to wait 16 minutes for the next 5 cars to arrive? Here, the mean rate of arrival per minute is <img src='http://l.wordpress.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac{1}{2}&amp;s=-1' title='\frac{1}{2}&amp;s=-1' class='latex' />. This is the scale parameter. The shape parameter is <img src='http://l.wordpress.com/latex.php?latex=%5Cfrac%7Br%7D%7B2%7D%3D5%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac{r}{2}=5&amp;s=-1' title='\frac{r}{2}=5&amp;s=-1' class='latex' />. Thus, if <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> is the waiting time until the fifth car, this is <img src='http://l.wordpress.com/latex.php?latex=%5Cchi%5E2%2810%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\chi^2(10)&amp;s=-1' title='\chi^2(10)&amp;s=-1' class='latex' />. Using a Chi-square table in a probability and statistics text (e.g. [1]), <img src='http://l.wordpress.com/latex.php?latex=P%5BX+%5Cleq+15.99%5D%3D0.9%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P[X \leq 15.99]=0.9&amp;s=-1' title='P[X \leq 15.99]=0.9&amp;s=-1' class='latex' />. Thus <img src='http://l.wordpress.com/latex.php?latex=P%5BX+%26%2362%3B+15.99%5D%3D0.1%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P[X &gt; 15.99]=0.1&amp;s=-1' title='P[X &gt; 15.99]=0.1&amp;s=-1' class='latex' />.</p>
<p>One quick note about the Erlang distribution. The Erlang distribution plays an important role in queuing theory and is a member of a wider class of distributions called the phase-type distributions. Distributions in this class break down the total time of a process into phases, each having an exponential distribution. In an Erlang distribution, all of the <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> phases are in series and have the same exponential parameter.</p>
<p align="center"> <em><strong>Reference</strong></em> </p>
<ol>
<li>Hogg, R. V., Tanis, E. A., <em>Probability and Statistical Inference, Second Edition</em>, Macmillan, New York, 1983.</li>
</ol>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Two dice can be tricky]]></title>
<link>http://systematicchaos.wordpress.com/2009/11/26/tricky_dice/</link>
<pubDate>Thu, 26 Nov 2009 03:54:15 +0000</pubDate>
<dc:creator>jonsn0w</dc:creator>
<guid>http://systematicchaos.wordpress.com/2009/11/26/tricky_dice/</guid>
<description><![CDATA[In the 17th century French salons, one of the favourite pastimes was gambling. One of the essayists ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>
In the 17th century French salons, one of the favourite pastimes was gambling. One of the essayists of those times, Chevalier de M&#233;r&#233; was playing the following game: roll a single die 4 times and bet of getting a 6. His reasoning was the following: if the chance of getting 6 for one roll is 1/6, then for 4 rolls it would be 4/6, so in the long run he would win more than he would lose.
</p>
<p>
When nobody wanted to play with him anymore because he was winning, he changed his game a little: roll 2 dice 24 times and bet on getting a double 6. I this case his reasoning was: the chance of getting a double 6 for one roll (of 2 dice) is 1/36. So by throwing 24 time the probability would be 24/36 = 4/6 so he would still win (although it would take a longer time) but the game being different he could convince people to play again with him. To his total surprise he started to lose in this game. Since he could not explain this he asked one of his friends, <a href="http://en.wikipedia.org/wiki/Blaise_Pascal">Blaise Pascal</a> to help him with the mathematics.
</p>
<p>
So let&#8217;s see the correct way to estimate the probabilities in this (simple) case.
</p>
<h3>Game 1</h3>
<p>
First of all it is not correct to add probabilities in this case. If we have 2 events A and B then:<br />
<br /><code>P(A or B) = P(A) + P(B) - P(A and B)</code><br />
P(A and B) is 0 only if the events are <i>mutually exclusive</i>, that is if A happens then B will not happen. In our case that means if we get 6 on the first roll of die then it is not possible not get 6 on the second roll, which is obviously wrong.
</p>
<p>
The correct way to calculate the probability is the following:<br />
<br /><code>P(to get at least one 6 in 4 rolls) =<br />1 - P(to not get 6 in any roll)</code><br />
Now <code>P(to not get 6 in any roll)</code> is just <code>P(not get 6 on the first roll AND not get 6 on the second roll AND ... so on)</code>. For 2 events:<br />
<br /><code>P(A and B) = P(A)P(B)</code><br />
<b>only</b> if the 2 events are <i>independent</i> that is A happening has no influence over B happening. In our case that means that getting 6 on the first roll has no influence over getting 6 on the second roll which is true.
</p>
<p>
So the correct probability for this game is:<br />
<br /><code>P(win) = 1 - (5/6)(5/6)(5/6)(5/6) = 1 - (5/6)<sup>4</sup> = 0.51775</code><br />
Thus, Chevalier de M&#233;r&#233; had almost 52% chance of winning (instead of his estimate of 66.6%) so we can say he was lucky in his probability estimation.
</p>
<p>
The <a href="http://en.wikipedia.org/wiki/Expected_value">expected value</a> is a useful measure of the winnings/losses in the long run. Assuming that each participant is paying 1 dollar per game the expected value is:<br />
<br /><code>E = 2&#183;P(win) + (-2)&#183;P(lose) = 0.071</code>
</p>
<h3>Game 2</h3>
<p>
As seen from the previous game, in this case the correct probability is:<br />
<br /><code>P(win) = 1 - (35/36)<sup>24</sup> = 0.4914</code><br />
and the expected value:<br />
<br /><code>E = 2&#183;P(win) + (-2)&#183;P(lose) = -0.035</code>
</p>
<p>
As indicated by practice (presumably) Chevalier de M&#233;r&#233; would lose on this second game. If there&#8217;s a lesson we can learn from this is don&#8217;t estimate probability if you don&#8217;t know the rules, you will get it wrong even for simple 2 dice games.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Of Risk Control and Thanksgiving Turkeys]]></title>
<link>http://paulbarsch.wordpress.com/2009/11/24/of-risk-control-and-thanksgiving-turkeys/</link>
<pubDate>Tue, 24 Nov 2009 20:35:04 +0000</pubDate>
<dc:creator>paulbarsch</dc:creator>
<guid>http://paulbarsch.wordpress.com/2009/11/24/of-risk-control-and-thanksgiving-turkeys/</guid>
<description><![CDATA[To forecast the future, marketing leaders often look to the past. But the past isn’t always a very r]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://paulbarsch.wordpress.com/files/2009/11/turkey1.jpg"><img class="alignleft size-full wp-image-312" title="turkey1" src="http://paulbarsch.wordpress.com/files/2009/11/turkey1.jpg" alt="" width="124" height="114" /></a>To forecast the future, marketing leaders often look to the past. But the past isn’t always a very reliable gauge of future conditions. For proof, we need to look back to a day-in-the-life of a turkey, and implications of not preparing for possible “extreme” events around the corner.</p>
<p>First, let’s start with a fun exercise courtesy of <a href="http://wilmottmag.com/article.cfm?NoCookies=Yes&#38;forumid=1">Wilmott Magazine</a>. Let’s look at damage estimates of earthquakes in California from 1970 to 1993 in the table below. Can you make an educated calculation of losses due to earthquakes in 1994?</p>
<p><a href="http://paulbarsch.wordpress.com/files/2009/11/risk-table22.jpg"><img class="alignleft size-full wp-image-316" title="risk table2" src="http://paulbarsch.wordpress.com/files/2009/11/risk-table22.jpg" alt="" width="500" height="214" /></a></p>
<p>Taking a look at the distribution of data, notice the low end is “0” and at high end, the most damage caused was “129”. So what’s your guess?</p>
<p>If you’re like me, you probably guessed wrong. Using the above numbers as an “<a href="http://http//www.mpdailyfix.com/2009/02/predicting_the_future_anchors.html">anchor</a>”, most people would reasonably assume that 1994’s earthquake was either an average of the above numbers or perhaps a bit higher than 129. Maybe you even threw out “129” as an outlier in the dataset. To be honest, I guessed around “200”.</p>
<p>The correct answer is “2217.2”! <a href="http://www.fema.gov/news/newsrelease.fema?id=9962">FEMA estimates</a> that every year earthquake losses in the United States add up to $4.4 billion a year. But then, some extreme outliers can really skew that number, especially years like 1994 where just the <a href="http://en.wikipedia.org/wiki/1994_Northridge_earthquake">Northridge Earthquake in California</a> alone tallied $20B in damage!</p>
<p>Let’s get back to talking turkeys via a parable from Nassim Taleb, author of the “<a href="http://www.fooledbyrandomness.com/"><strong>Black Swan</strong></a>”. Dr. Taleb reminds us that fat, dumb and happy is probably the best way to describe the life of a turkey. They’re fed and nurtured for three years straight. Day after day, they expect the same thing. But then, one fateful day arrives and the “life” of a turkey ends quite abruptly.</p>
<p>Can we accurately predict the future based on reviewing and analyzing historical data? Sometimes, but we have to make assumptions of <a href="http://smartdatacollective.com/Home/blog/filteredlist?cat=16">similar conditions</a>, a <a href="http://en.wikipedia.org/wiki/Normal_distribution">normal distribution</a>, and <a href="http://en.wikipedia.org/wiki/Independence_%28probability_theory%29">event independence.</a> Complex systems will have none of these characteristics.  Dr. Taleb says as much; “Real life isn’t a casino.”</p>
<p>Indeed, the parable of the turkey and the earthquake loss estimation exercise show us that predicting the future in complex systems can be a futile exercise because there are so many unknowns, changing conditions, and inter-connecting relationships. Extreme events that carry a huge impact happen, and some would argue they’re happening a whole lot more often as interlocking financial markets and globalization become commonplace.</p>
<p>Should prediction exercises be avoided? Nassim Taleb would argue otherwise; “We need to start thinking of the inconceivable,” he says. And while we cannot determine the exact probability of tomorrow’s events, we can “get a general idea about the possibility of their occurrence.”</p>
<p>And that’s where <a href="http://en.wikipedia.org/wiki/Scenario_planning">scenario planning </a>comes into play. Bill Ziemba, author of the aforementioned Wilmott Magazine article says, “Getting all the scenarios and their probabilities right is impossible and doesn’t matter much anyway. What is important is to cover the board of possible occurrences. Then you will make sound decisions with risk under control.”</p>
<p>The fact is, like the turkey, we just don’t know what tomorrow will bring. So, plan for the five to seven most likely occurrences and then develop contingencies based on those scenarios. French microbiologist Louis Pasteur says it best, “In the fields of observation chance favors only the prepared mind.”</p>
<p>For a turkey, today may appear like any other “normal” day. However, tomorrow could be the chopping block.</p>
<p>Questions:</p>
<ul>
<li>Nassim Taleb says, “It is only in very rare circumstances that probability (by itself) is a guide to decision making.” Does this mean that historical data analysis isn’t worth the effort?</li>
<li>If chance favors the prepared mind, what’s the “next unexpected twist” that marketers should be looking for?</li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Sex, Lies and Polygraph Tests]]></title>
<link>http://thebernoullitrial.wordpress.com/2009/11/24/sex-lies-and-polygraph-tests/</link>
<pubDate>Tue, 24 Nov 2009 11:04:56 +0000</pubDate>
<dc:creator>Stanley</dc:creator>
<guid>http://thebernoullitrial.wordpress.com/2009/11/24/sex-lies-and-polygraph-tests/</guid>
<description><![CDATA[The Premier of South Australia, Mike Rann, is embroiled in something of a sex scandal at the moment.]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The Premier of South Australia, Mike Rann, is embroiled in something of a sex scandal at the moment.  I won&#8217;t go into all the sordid details, but, briefly, a woman by the name of Michelle Chantelois is claiming that Rann had sex with her several years ago (he was single but she was married at the time), a claim he is emphatically denying.  The political vultures are circling because, given the denial, if a &#8220;smoking gun&#8221; (or perhaps more aptly a &#8220;blue dress&#8221;) <em>is </em>produced then Rann is cactus.</p>
<p>Anyway, none of this is really interesting to me.  Actually, it&#8217;s hardly <em>anybody&#8217;s </em>business.  The shenanigans these two people did, or did not, get up to in their private lives years ago is entirely between them and their families as far as I&#8217;m concerned.  But today Chantelois has come out and volunteered to take a lie detector test to determine who is telling the truth.  So I wonder, statistically what&#8217;s the probability that she will pass the test?</p>
<p>To answer this question we&#8217;ll use <a href="http://en.wikipedia.org/wiki/Baye%27s_Theorem" target="_blank">Bayes&#8217; Theorem</a> and some rather dodgy data points I picked up around the internet.  It&#8217;s on the internet, you see, so it must be true.</p>
<p>The first bit of information we need is the probability that Chantelois is actually telling the truth.  In a recent, and utterly meaningless straw poll conducted by the <a href="http://www.news.com.au/adelaidenow/story/0,22606,26382226-2682,00.html?from=public_rss" target="_blank">Adelaide Advertiser</a>, this probability is precisely 53%.</p>
<blockquote><p>Shortly before 3pm, 53 per cent of respondents to an AdelaideNow poll believed former Parliament House waitress Ms Chantelois was telling the truth about claims of a sexual relationship with Mr Rann, while 47 per cent believed the Premier&#8217;s rejection of the allegations.</p></blockquote>
<p>Therefore P(Chantelois is telling the truth) = P(T) = 0.53;</p>
<p>and P(Chantelois is not telling the truth) = P(N) = 1-P(T) = 0.47.</p>
<p>The next bit of information we need concerns the reliability of polygraph tests themselves.  Personally I&#8217;ve always been more than a little sceptical of the infernal things.  Polygraphs smell like voodoo science to me, and according to <a href="http://en.wikipedia.org/wiki/Polygraph#Validity" target="_blank">Wikipedia</a>,</p>
<blockquote><p>Polygraph testing has little credibility among scientists.<sup> </sup>Despite claims of 90-95% validity by polygraph advocates, critics maintain that rather than a &#8220;test&#8221;, the method amounts to an inherently unstandardizable interrogation technique whose accuracy cannot be established.  A 1997 survey of 421 psychologists estimated the test&#8217;s average accuracy at about 61%, a little better than chance.</p></blockquote>
<p>Therefore P(polygraph says you&#8217;re telling the truth, <em>given </em>that you&#8217;re telling the truth) = P(+&#124;T) = 0.61; and</p>
<p>P(polygraph says you&#8217;re telling the truth, <em>given </em>that you&#8217;re lying) = P(+&#124;N) = 1-P(+&#124;T) = 0.39.</p>
<p>Now using Bayes&#8217; Theorem, we can calculate Chantelois&#8217; chance of evading the lie detector test.</p>
<p>P(Chantelois is <em>not</em> telling the truth, <em>given that the polygraph says she is</em>)</p>
<p>= P(N&#124;+)</p>
<p>= P(+&#124;N) x P(N) / P(+)</p>
<p>= [ P(+&#124;N) x P(N) ] / [ P(+&#124;T)xP(T) + P(+&#124;N)xP(N) ]</p>
<p>= [ 0.39 x 0.47 ] / [ 0.61 x 0.53 + 0.39 x 0.47 ]</p>
<p>= 0.362 (i.e. 36.2%)</p>
<p>Too high to put any kind of faith in the results of the test.</p>
<p>The calculations above were all done with tongue planted firmly in cheek and are not to be taken seriously.  Whether it&#8217;s Rann or Chantelois really telling the truth I don&#8217;t know or care.  What <em>is </em>important is that Bayes&#8217; Theorem shows us that, even with accurate tests, there is a good chance of a misclassification.  A single test is usually not enough.</p>
<p>&#8212;&#8212;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Lazy random walks on the torus via Dirichlet forms]]></title>
<link>http://ergodicity.net/2009/11/23/lazy-random-walks-on-the-torus/</link>
<pubDate>Mon, 23 Nov 2009 23:46:33 +0000</pubDate>
<dc:creator>asarwate</dc:creator>
<guid>http://ergodicity.net/2009/11/23/lazy-random-walks-on-the-torus/</guid>
<description><![CDATA[One of the simple example graphs I&#8217;ve used in some of my research on gossip algorithms has bee]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>One of the simple example graphs I&#8217;ve used in some of my research on gossip algorithms has been the 2-dimensional torus with <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> vertices, which looks like a <img src='http://l.wordpress.com/latex.php?latex=%5Csqrt%7Bn%7D+%5Ctimes+%5Csqrt%7Bn%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\sqrt{n} \times \sqrt{n}' title='\sqrt{n} \times \sqrt{n}' class='latex' /> grid with the top and left edges wrapped around to  connect with the bottom and right edges.  Every vertex has 4 neighbors.  Now imagine a very lazy random walk on this graph in which a random walker moves from vertex <img src='http://l.wordpress.com/latex.php?latex=u&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='u' title='u' class='latex' /> to one of its neighbors with probability <img src='http://l.wordpress.com/latex.php?latex=1%2Fn&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='1/n' title='1/n' class='latex' />.  It&#8217;s &#8220;well known&#8221; that this random walk takes around <img src='http://l.wordpress.com/latex.php?latex=n%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^2' title='n^2' class='latex' /> steps to mix.  That is, if <img src='http://l.wordpress.com/latex.php?latex=P&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P' title='P' class='latex' /> is the matrix of transition probabilities then</p>
<p><img src='http://l.wordpress.com/latex.php?latex=T_%7Br%7D+%3D+%5Cfrac%7B1%7D%7B1+-+%5Clambda_2%28P%29%7D+%5Capprox+n%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='T_{r} = \frac{1}{1 - \lambda_2(P)} \approx n^2' title='T_{r} = \frac{1}{1 - \lambda_2(P)} \approx n^2' class='latex' /></p>
<p>Here <img src='http://l.wordpress.com/latex.php?latex=%5Clambda_2%28P%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\lambda_2(P)' title='\lambda_2(P)' class='latex' /> is the second largest eigenvalue of <img src='http://l.wordpress.com/latex.php?latex=P&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P' title='P' class='latex' /> and the relaxation time <img src='http://l.wordpress.com/latex.php?latex=T_%7Br%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='T_{r}' title='T_{r}' class='latex' /> is the inverse of the <i>spectral gap</i> of the matrix.  One way of characterizing <img src='http://l.wordpress.com/latex.php?latex=T_%7Br%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='T_{r}' title='T_{r}' class='latex' /> for reversible Markov chains is via the <i>Dirichlet form</i>.  For a function <img src='http://l.wordpress.com/latex.php?latex=f+%3A+V+%5Cto+%5Cmathbb%7BR%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f : V \to \mathbb{R}' title='f : V \to \mathbb{R}' class='latex' /> on the states of the chain define the Dirichlet form <img src='http://l.wordpress.com/latex.php?latex=D%28f%2Cf%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='D(f,f)' title='D(f,f)' class='latex' /> by</p>
<p><img src='http://l.wordpress.com/latex.php?latex=D%28f%2Cf%29+%3D+%5Cfrac%7B1%7D%7B2%7D+%5Csum_%7Bu%2Cv+%5Cin+V%7D+%5Cpi_u+P_%7Buv%7D+%28f%28u%29+-+f%28v%29%29%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='D(f,f) = \frac{1}{2} \sum_{u,v \in V} \pi_u P_{uv} (f(u) - f(v))^2' title='D(f,f) = \frac{1}{2} \sum_{u,v \in V} \pi_u P_{uv} (f(u) - f(v))^2' class='latex' /></p>
<p>In our example the stationary distribution <img src='http://l.wordpress.com/latex.php?latex=pi_u+%3D+1%2Fn&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='pi_u = 1/n' title='pi_u = 1/n' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=P_%7Buv%7D+%3D+1%2Fn&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='P_{uv} = 1/n' title='P_{uv} = 1/n' class='latex' /> for all edges in the graph.  We write <img src='http://l.wordpress.com/latex.php?latex=f+%5Cperp+%5Cpi&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f \perp \pi' title='f \perp \pi' class='latex' /> if</p>
<p><img src='http://l.wordpress.com/latex.php?latex=%5Csum_%7Bv+%5Cin+V%7D+%5Cpi_v+f%28v%29+%3D+0&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\sum_{v \in V} \pi_v f(v) = 0' title='\sum_{v \in V} \pi_v f(v) = 0' class='latex' /></p>
<p>Define a norm associated with <img src='http://l.wordpress.com/latex.php?latex=%5Cpi&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\pi' title='\pi' class='latex' /> via</p>
<p><img src='http://l.wordpress.com/latex.php?latex=%5C%26%23124%3Bf%5C%26%23124%3B%5E2+%3D+%5Csum_%7Bv+%5Cin+V%7D+%5Cpi_i+f%28v%29%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\&#124;f\&#124;^2 = \sum_{v \in V} \pi_i f(v)^2' title='\&#124;f\&#124;^2 = \sum_{v \in V} \pi_i f(v)^2' class='latex' /></p>
<p>Then the characterization is</p>
<p><img src='http://l.wordpress.com/latex.php?latex=T_%7Br%7D+%3D+%5Csup_%7Bf+%5Cperp+%5Cpi%2C+f+%5Cne+0%7D+%5Cfrac%7B+%5C%26%23124%3Bf%5C%26%23124%3B%5E2+%7D%7B+D%28f%2Cf%29+%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='T_{r} = \sup_{f \perp \pi, f \ne 0} \frac{ \&#124;f\&#124;^2 }{ D(f,f) }' title='T_{r} = \sup_{f \perp \pi, f \ne 0} \frac{ \&#124;f\&#124;^2 }{ D(f,f) }' class='latex' /></p>
<p>One question I asked myself today was whether it was &#8220;easy&#8221; to see what <img src='http://l.wordpress.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f' title='f' class='latex' /> you should choose in the grid example to get the scaling of <img src='http://l.wordpress.com/latex.php?latex=n%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n^2' title='n^2' class='latex' />.  Here&#8217;s one choice that gives the correct scaling.   We&#8217;ll set <img src='http://l.wordpress.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f' title='f' class='latex' /> to be constant on each column.  Assume without loss of generality that <img src='http://l.wordpress.com/latex.php?latex=%5Csqrt%7Bn%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\sqrt{n}' title='\sqrt{n}' class='latex' /> is divisible by 4 and set <img src='http://l.wordpress.com/latex.php?latex=m+%3D+%5Csqrt%7Bn%7D%2F4&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='m = \sqrt{n}/4' title='m = \sqrt{n}/4' class='latex' />.  The values for <img src='http://l.wordpress.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f' title='f' class='latex' /> on the columns will be like two triangles:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=%5C%7B%5Cfrac%7B1%7D%7Bn%7D%2C+%5Cfrac%7B2%7D%7Bn%7D%2C+%5Cldots%2C+%5Cfrac%7Bm%7D%7Bn%7D%2C++%5Cfrac%7Bm%7D%7Bn%7D%2C+%5Cfrac%7Bm-1%7D%7Bn%7D%2C+%5Cldots%2C+%5Cfrac%7B1%7D%7Bn%7D%2C+%5Cfrac%7B-1%7D%7Bn%7D%2C+%5Cfrac%7B-2%7D%7Bn%7D%2C+%5Cldots%2C+%5Cfrac%7B-m%7D%7Bn%7D%2C+%5Cfrac%7B-m%7D%7Bn%7D%2C+%5Cfrac%7B-m%2B1%7D%7Bn%7D%2C+%5Cldots%2C+%5Cfrac%7B-1%7D%7Bn%7D+%5C%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\{\frac{1}{n}, \frac{2}{n}, \ldots, \frac{m}{n},  \frac{m}{n}, \frac{m-1}{n}, \ldots, \frac{1}{n}, \frac{-1}{n}, \frac{-2}{n}, \ldots, \frac{-m}{n}, \frac{-m}{n}, \frac{-m+1}{n}, \ldots, \frac{-1}{n} \}' title='\{\frac{1}{n}, \frac{2}{n}, \ldots, \frac{m}{n},  \frac{m}{n}, \frac{m-1}{n}, \ldots, \frac{1}{n}, \frac{-1}{n}, \frac{-2}{n}, \ldots, \frac{-m}{n}, \frac{-m}{n}, \frac{-m+1}{n}, \ldots, \frac{-1}{n} \}' class='latex' /></p>
<p>Now we can evaluate the norm, noting that there are <img src='http://l.wordpress.com/latex.php?latex=%5Csqrt%7Bn%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\sqrt{n}' title='\sqrt{n}' class='latex' /> vertices per column:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=%5C%26%23124%3Bf%5C%26%23124%3B%5E2+%3D+4+%5Csum_%7Bi+%3D1%7D%5E%7Bm%7D+%5Cfrac%7B1%7D%7Bn%7D+%5Csqrt%7Bn%7D+%5Cfrac%7Bi%5E2%7D%7Bn%5E2%7D+%3D+c+%5Cfrac%7B1%7D%7Bn%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\&#124;f\&#124;^2 = 4 \sum_{i =1}^{m} \frac{1}{n} \sqrt{n} \frac{i^2}{n^2} = c \frac{1}{n}' title='\&#124;f\&#124;^2 = 4 \sum_{i =1}^{m} \frac{1}{n} \sqrt{n} \frac{i^2}{n^2} = c \frac{1}{n}' class='latex' /></p>
<p>This is because the sum of the first <img src='http://l.wordpress.com/latex.php?latex=m&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='m' title='m' class='latex' /> squares scales like <img src='http://l.wordpress.com/latex.php?latex=m%5E3&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='m^3' title='m^3' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=m+%3D+%5Csqrt%7Bn%7D%2F4&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='m = \sqrt{n}/4' title='m = \sqrt{n}/4' class='latex' />.  Now turning to the Dirichlet form, note that each difference between columns is at most <img src='http://l.wordpress.com/latex.php?latex=2%2Fn&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='2/n' title='2/n' class='latex' /> and there are fewer than <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> edges for which <img src='http://l.wordpress.com/latex.php?latex=f%28u%29+%5Cne+f%28v%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f(u) \ne f(v)' title='f(u) \ne f(v)' class='latex' />.  Thus:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=D%28f%2Cf%29+%5Cle+%5Cfrac%7B1%7D%7B2%7D+n+%5Cfrac%7B1%7D%7Bn%7D+%5Cfrac%7B1%7D%7Bn%7D+%5Cfrac%7B4%7D%7Bn%5E2%7D+%3D+c%27+%5Cfrac%7B1%7D%7Bn%5E3%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='D(f,f) \le \frac{1}{2} n \frac{1}{n} \frac{1}{n} \frac{4}{n^2} = c&#039; \frac{1}{n^3}' title='D(f,f) \le \frac{1}{2} n \frac{1}{n} \frac{1}{n} \frac{4}{n^2} = c&#039; \frac{1}{n^3}' class='latex' /></p>
<p>Taking the ratio gives the lower bound of <img src='http://l.wordpress.com/latex.php?latex=T_r+%5Cge+c%27%27%2Fn%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='T_r \ge c&#039;&#039;/n^2' title='T_r \ge c&#039;&#039;/n^2' class='latex' /> as desired.</p>
<p>The first <img src='http://l.wordpress.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f' title='f' class='latex' /> I tried was just equal to +1 on the first half of the columns and -1 on the second half of the columns.  This ends up giving a suboptimal bound, because the norm <img src='http://l.wordpress.com/latex.php?latex=%5C%26%23124%3Bf%5C%26%23124%3B%5E2+%3D+1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\&#124;f\&#124;^2 = 1' title='\&#124;f\&#124;^2 = 1' class='latex' /> but in the denominator we get <img src='http://l.wordpress.com/latex.php?latex=2+%5Csqrt%7Bn%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='2 \sqrt{n}' title='2 \sqrt{n}' class='latex' /> positive terms.  The key is to make all the differences <img src='http://l.wordpress.com/latex.php?latex=%28f%28u%29+-+f%28v%29%29%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(f(u) - f(v))^2' title='(f(u) - f(v))^2' class='latex' /> in the denominator small while keeping the average of <img src='http://l.wordpress.com/latex.php?latex=%5C%26%23124%3Bf%5C%26%23124%3B%5E2&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\&#124;f\&#124;^2' title='\&#124;f\&#124;^2' class='latex' /> large enough.  Even though you sum over <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> small differences in the denominator, it stays small enough to pay for the <img src='http://l.wordpress.com/latex.php?latex=%5C%26%23124%3Bf%5C%26%23124%3B%5E2+%3D+c%2Fn&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\&#124;f\&#124;^2 = c/n' title='\&#124;f\&#124;^2 = c/n' class='latex' /> in the numerator.</p>
<p>While doing this calculation, I noticed that the book <a href="http://www.ams.org/bookstore-getitem/item=mbk-58">Markov Chains and Mixing Times</a> is also <a href="http://www.uoregon.edu/~dlevin/MARKOV/markovmixing.pdf">online</a> &#8212; it makes a handy reference and is a little easier to use than my old go-to, the <a href="http://www.stat.berkeley.edu/~aldous/RWG/book.html">Aldous-Fill</a> book.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Same flop twice in a row - common impossibilities with millions of hands]]></title>
<link>http://bigtpoker.wordpress.com/2009/11/23/same-flop-twice-in-a-row-common-impossibilities-with-millions-of-hands/</link>
<pubDate>Mon, 23 Nov 2009 08:45:46 +0000</pubDate>
<dc:creator>bigtpoker</dc:creator>
<guid>http://bigtpoker.wordpress.com/2009/11/23/same-flop-twice-in-a-row-common-impossibilities-with-millions-of-hands/</guid>
<description><![CDATA[One game has just concluded and the flop for the next comes up. Whoa! You get a strange sense of dej]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div><!-- Same flop twice in a row - common impossibilities with millions of hands --></p>
<div>
<p>One game has just concluded and the flop for the next comes up. Whoa! You get a strange sense of deja vu. The flop is the same as the last flop. These things are supposed to be random. How can it happen twice in a row? Something must be up. But in fact such things happen so commonly that you shouldn&#8217;t even take note of them.</p>
<h3>A mistaken calculation</h3>
<p>What is the chance to get a particular <a href="http://bigtpoker.com/Note/flop" target="_self">flop</a> twice in a row? First just ignore the card ordering and consider all the possible flop <a href="http://bigtpoker.com/Note/combination" target="_self">combinations</a>. The order of the cards doesn&#8217;t interest us since all the cards are flopped at once. There are 22100 combinations of 3 cards from a deck of 52. The chance to get one particular combination is thus 1 in 22100. So that chance to get it twice in a row is 22100 * 21100, or about 1 in 500 million.</p>
<p>Even given the volume of online play that is a rare event. Except that an error has been made in the calculation. An honest mistake that many people may not immediately see.</p>
<p>The solved question has been restated as &#8220;the chance to get a particular flop twice in a row&#8221; which is actually quite different from &#8220;a flop being the same as the one before&#8221;. There is no particular starting flop in the desired calculation; any flop will do. Thus to duplicate any particular flop has merely a 1 in 22100 chance.</p>
<h3>That still seems rare</h3>
<p>While a 1 in 22100 chance seems unlikely still, it is by no means in the category of rare events. In the <a href="http://bigtpoker.com/Note/brick_and_mortar" target="_self">brick and mortar</a> world <a href="http://bigtpoker.com/Note/hands" target="_self">hands</a> aren&#8217;t dealt so fast, but in an online world a player can easily push through 50 hands even on a slow <a href="http://bigtpoker.com/Note/table" target="_self">table</a>.</p>
<div>
<p style="text-align:center;"><em>A professional <a href="http://bigtpoker.com/Note/multi-table_play" target="_self">multi-table player</a> online could easily put in 16k hands a week.</em></p>
</div>
<p>A modest hobby player who puts in only 10 hours a week will end up seeing some 2000 hands in a month. After a year they will have put in over 24000 hands. We can reasonably expect that such a player will have seen this duplicate flop occurrence at least once in a year. Consider now a slightly more dedicated player putting in 2 hours a day and playing 4 tables simultaneously. At the lower rate of 50 hands per hand per table they will be getting in well over 100k hands per year. They can expect to see a duplicate flop about 5 times in the year.</p>
<p>It actually becomes even more likely for a multi-table player. They would reasonable consider any duplicate flops on any of their tables to be a match. That means for a four table player, on any flop there are not just 1 in 22100, but a 3 in 22100 chance that another table matches. Add to this that the player may consider the following flop on any of those tables as well, which now means a 7 in 22100 chance. So in the year this multi-table player can expect to see the duplicate flop about 35 times, or almost once a week.</p>
<h3>Far too common to even notice</h3>
<div>
<p style="text-align:center;"><em>Thousands of players ensure uncommon things happen often.</em></p>
</div>
<p>Despite the numbers an individual player may do a double take and make a comment about their duplicate flop. It doesn&#8217;t mean anybody else will take notice however. As shown above even the modest player will see it often enough not to care. Consider further that popular online poker rooms can easily reach 20000 players. With this volume of players, even if they are all only playing a single table, the duplicate flop will happen to somebody about 50 times an hour, so almost once every minute.</p>
<p>At these volumes of play even the impossible becomes common. Instead of flops which have the same cards, what about the flops where the order of the cards is identical as well. Two flops with the exact same cards in the same order will surely get a comment from a player. With the order kept, there are still only 132k different possible flops. So again with those 20k players playing 50 hands an hour, this will happen about 8 times an hour.</p>
<p>An even more unlikely case is a player receiving the same pocket cards and flop two times in a row. This has only a 1 in 26 million chance of occurring. For an individual player this is truly rare indeed. Though here again, with a million hands being played online every hour this rarity occurs about once a day.</p>
<p>The final lesson here is that seemingly rare events happen quite frequently given the number of active players. Such information can be used to quell one&#8217;s fears that the system is cheating or has a serious defect. This is no to say there aren&#8217;t truly rare events that do infrequently happen. To brag about those one should do a few quick calculations first, lest they celebrate the mundane.</p>
</div>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Simple Math for Belichick's Decision]]></title>
<link>http://techguyinmidtown.com/2009/11/22/simple-math-for-belichicks-decision/</link>
<pubDate>Mon, 23 Nov 2009 01:36:05 +0000</pubDate>
<dc:creator>Greg</dc:creator>
<guid>http://techguyinmidtown.com/2009/11/22/simple-math-for-belichicks-decision/</guid>
<description><![CDATA[All week long the sports media has refused to use simple math to analyze Bill Belichick&#8217;s deci]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>All week long the sports media has refused to use simple math to analyze Bill Belichick&#8217;s decision last week to go for it on 4th down versus the Colts.  Even though the media assumes (correctly?) that the viewer is an intellectual slouch, football media machine always projects an attitude of analysis and discussion.</p>
<p>I did read <a href="http://www.boston.com/sports/football/patriots/articles/2009/11/17/belichick_had_the_numbers_on_his_side/">one article</a> that offered a proper analysis, but its tone gives the impression that it involves extreme math.  In fact, the analysis is simple conditional probability.  Using the probability from that article, this diagram shows how simple the decision is.</p>
<p><a href="http://techguyinmidtown.wordpress.com/files/2009/11/patriots_colts_decision.png"><img class="alignnone size-full wp-image-291" title="Patriots_Colts_Decision" src="http://techguyinmidtown.wordpress.com/files/2009/11/patriots_colts_decision.png" alt="" width="480" height="469" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Bayes Theorem and the Justice System]]></title>
<link>http://stevethemathsman.wordpress.com/2009/11/22/bayes-theorem-and-the-justice-system/</link>
<pubDate>Sun, 22 Nov 2009 07:06:22 +0000</pubDate>
<dc:creator>Stephen Godfrey</dc:creator>
<guid>http://stevethemathsman.wordpress.com/2009/11/22/bayes-theorem-and-the-justice-system/</guid>
<description><![CDATA[I have been reading a previous issue of New Scientist and came across an article by Angela Saini whi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have been reading a previous issue of <a href="http://www.newscientist.com/">New Scientist</a> and came across an article by <a href="http://www.angelasaini.co.uk/">Angela Saini</a> which you can find <a href="http://www.newscientist.com/article/mg20427311.500-probably-guilty-bad-mathematics-means-rough-justice.html">here</a> on how probability is used in the court room. Also if you goto the page you can take an online test to determine if the article is relevant for you next time you get stuck on jury duty.</p>
<p>It appears that to be a good jury member you need to have a good understanding of conditional and Bayesian Probability. So firstly what do I mean by conditional probability?</p>
<p>Let us consider two events <img src='http://l.wordpress.com/latex.php?latex=%7BA%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{A}&amp;fg=000000' title='{A}&amp;fg=000000' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%7BB%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{B}&amp;fg=000000' title='{B}&amp;fg=000000' class='latex' /> then the conditional probability of <img src='http://l.wordpress.com/latex.php?latex=%7BA%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{A}&amp;fg=000000' title='{A}&amp;fg=000000' class='latex' /> occurring given that <img src='http://l.wordpress.com/latex.php?latex=%7BB%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{B}&amp;fg=000000' title='{B}&amp;fg=000000' class='latex' /> has already happened is denoted by <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28A%26%23124%3BB%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(A&#124;B)}&amp;fg=000000' title='{\mathbf{P}(A&#124;B)}&amp;fg=000000' class='latex' />. Let us consider a fairly simple example. Consider rolling two unique 6 sided dice, let <img src='http://l.wordpress.com/latex.php?latex=%7BA%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{A}&amp;fg=000000' title='{A}&amp;fg=000000' class='latex' /> be the even where the sum of the dice is <img src='http://l.wordpress.com/latex.php?latex=%7B8%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{8}&amp;fg=000000' title='{8}&amp;fg=000000' class='latex' /> and let <img src='http://l.wordpress.com/latex.php?latex=%7BB%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{B}&amp;fg=000000' title='{B}&amp;fg=000000' class='latex' /> be the event where one dice landed on 4. So here we have that <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28A%29%3D5%2F36%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(A)=5/36}&amp;fg=000000' title='{\mathbf{P}(A)=5/36}&amp;fg=000000' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28B%29%3D1%2F6%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(B)=1/6}&amp;fg=000000' title='{\mathbf{P}(B)=1/6}&amp;fg=000000' class='latex' />, however here we have that</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cdisplaystyle+%5Cmathbf%7BP%7D%28A%26%23124%3BB%29%3D%5Cfrac%7B1%7D%7B6%7D%2C+%5C+%5C+%5C+%5C+%5C+%281%29%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\displaystyle \mathbf{P}(A&#124;B)=\frac{1}{6}, \ \ \ \ \ (1)&amp;fg=000000' title='\displaystyle \mathbf{P}(A&#124;B)=\frac{1}{6}, \ \ \ \ \ (1)&amp;fg=000000' class='latex' /></p>
<p>because we already know that we have one dice being a 4 so the other dice also needs to be a 4 and that only happens one time in six.</p>
<p>Technical aside: To those probability nerds out there I know I should have labeled these dice, die 1 and die 2 to avoid any complications in finding <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28B%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(B)}&amp;fg=000000' title='{\mathbf{P}(B)}&amp;fg=000000' class='latex' /> however I am just trying to give a simple overview and will just skim over this.</p>
<p>The actual definition of conditional probability is given as follows. If <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28B%29%26%2362%3B0%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(B)&gt;0}&amp;fg=000000' title='{\mathbf{P}(B)&gt;0}&amp;fg=000000' class='latex' />, the conditional probability of <img src='http://l.wordpress.com/latex.php?latex=%7BA%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{A}&amp;fg=000000' title='{A}&amp;fg=000000' class='latex' /> given <img src='http://l.wordpress.com/latex.php?latex=%7BB%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{B}&amp;fg=000000' title='{B}&amp;fg=000000' class='latex' /> is</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cdisplaystyle+%5Cmathbf%7BP%7D%28A%26%23124%3BB%29%3D%5Cfrac%7B%5Cmathbf%7BP%7D%28AB%29%7D%7B%5Cmathbf%7BP%7D%28B%29%7D%2C+%5C+%5C+%5C+%5C+%5C+%282%29%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\displaystyle \mathbf{P}(A&#124;B)=\frac{\mathbf{P}(AB)}{\mathbf{P}(B)}, \ \ \ \ \ (2)&amp;fg=000000' title='\displaystyle \mathbf{P}(A&#124;B)=\frac{\mathbf{P}(AB)}{\mathbf{P}(B)}, \ \ \ \ \ (2)&amp;fg=000000' class='latex' /></p>
<p>where we read <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28AB%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(AB)}&amp;fg=000000' title='{\mathbf{P}(AB)}&amp;fg=000000' class='latex' /> as the probability of both <img src='http://l.wordpress.com/latex.php?latex=%7BA%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{A}&amp;fg=000000' title='{A}&amp;fg=000000' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%7BB%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{B}&amp;fg=000000' title='{B}&amp;fg=000000' class='latex' /> occurring at the same time. You can check that we could have used this expression in the above example.</p>
<p>The key point here is that the probability of an even occurring can change if we are given some extra information. Also note that if the two events are independent (i.e. are not related to each other) then <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28A%26%23124%3BB%29%3D%5Cmathbf%7BP%7D%28A%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(A&#124;B)=\mathbf{P}(A)}&amp;fg=000000' title='{\mathbf{P}(A&#124;B)=\mathbf{P}(A)}&amp;fg=000000' class='latex' />.</p>
<p>Now what has this got to do with court cases? It has all to do with how some evidence will be presented in court, normally you should consider it as a conditional probability. We have all watched a some tv show that has involved some court case where an expert witness has said that &#8220;only 3% of the population has a AB blood type and so does the defendant&#8221; So what would we make of this in terms of probability?</p>
<p>Let <img src='http://l.wordpress.com/latex.php?latex=%7BI%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{I}&amp;fg=000000' title='{I}&amp;fg=000000' class='latex' /> be the even the defendant is innocent and let <img src='http://l.wordpress.com/latex.php?latex=%7BE%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{E}&amp;fg=000000' title='{E}&amp;fg=000000' class='latex' /> be the event that some evidence is being used for or against the defendant. So what out expert witness has given us is <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28E%26%23124%3BI%29%3D0.03%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(E&#124;I)=0.03}&amp;fg=000000' title='{\mathbf{P}(E&#124;I)=0.03}&amp;fg=000000' class='latex' />. We view it this way any person from that 3% of the population could have left that blood and secondly we assume innocence and have to prove guilt.</p>
<p>What we want to know is <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28I%26%23124%3BE%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(I&#124;E)}&amp;fg=000000' title='{\mathbf{P}(I&#124;E)}&amp;fg=000000' class='latex' /> so we need some way to relate these two probabilities. This is where Bayes formula comes into the picture.</p>
<p>Let <img src='http://l.wordpress.com/latex.php?latex=%7BI%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{I}&amp;fg=000000' title='{I}&amp;fg=000000' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%7BE%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{E}&amp;fg=000000' title='{E}&amp;fg=000000' class='latex' /> be the same events as above then</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cdisplaystyle+%5Cmathbf%7BP%7D%28I%26%23124%3BE%29%3D%5Cfrac%7B%5Cmathbf%7BP%7D%28E%26%23124%3BI%29%5Cmathbf%7BP%7D%28I%29%7D%7B%5Cmathbf%7BP%7D%28E%29%7D.+%5C+%5C+%5C+%5C+%5C+%283%29%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\displaystyle \mathbf{P}(I&#124;E)=\frac{\mathbf{P}(E&#124;I)\mathbf{P}(I)}{\mathbf{P}(E)}. \ \ \ \ \ (3)&amp;fg=000000' title='\displaystyle \mathbf{P}(I&#124;E)=\frac{\mathbf{P}(E&#124;I)\mathbf{P}(I)}{\mathbf{P}(E)}. \ \ \ \ \ (3)&amp;fg=000000' class='latex' /></p>
<p>Here you the jury would have a gut feel for what <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28I%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(I)}&amp;fg=000000' title='{\mathbf{P}(I)}&amp;fg=000000' class='latex' /> should be, for instance motive, past record and even the way he looks. The probability <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28E%26%23124%3BI%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(E&#124;I)}&amp;fg=000000' title='{\mathbf{P}(E&#124;I)}&amp;fg=000000' class='latex' /> would be given to you by the person that gives the evidence and <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28E%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(E)}&amp;fg=000000' title='{\mathbf{P}(E)}&amp;fg=000000' class='latex' /> can be calculated as</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Barray%7D%7Bll%7D+%5Cmathbf%7BP%7D%28E%29%26%2338%3B%3D+%5Cmathbf%7BP%7D%28E%26%23124%3BI%29%5Cmathbf%7BP%7D%28I%29%2B%5Cmathbf%7BP%7D%28E%26%23124%3B%5Csim+I%29%5Cmathbf%7BP%7D%28%5Csim+I%29%5C%5C+%26%2338%3B%3D%5Cmathbf%7BP%7D%28E%26%23124%3BI%29%5Cmathbf%7BP%7D%28I%29%2B%5Cmathbf%7BP%7D%28%5Csim+I%29%2C+%5Cend%7Barray%7D+%5C+%5C+%5C+%5C+%5C+%284%29%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\displaystyle \begin{array}{ll} \mathbf{P}(E)&amp;= \mathbf{P}(E&#124;I)\mathbf{P}(I)+\mathbf{P}(E&#124;\sim I)\mathbf{P}(\sim I)\\ &amp;=\mathbf{P}(E&#124;I)\mathbf{P}(I)+\mathbf{P}(\sim I), \end{array} \ \ \ \ \ (4)&amp;fg=000000' title='\displaystyle \begin{array}{ll} \mathbf{P}(E)&amp;= \mathbf{P}(E&#124;I)\mathbf{P}(I)+\mathbf{P}(E&#124;\sim I)\mathbf{P}(\sim I)\\ &amp;=\mathbf{P}(E&#124;I)\mathbf{P}(I)+\mathbf{P}(\sim I), \end{array} \ \ \ \ \ (4)&amp;fg=000000' class='latex' /></p>
<p>where <img src='http://l.wordpress.com/latex.php?latex=%7B%5Csim%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\sim}&amp;fg=000000' title='{\sim}&amp;fg=000000' class='latex' /> stands for not i.e. <img src='http://l.wordpress.com/latex.php?latex=%7B%5Csim+I%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\sim I}&amp;fg=000000' title='{\sim I}&amp;fg=000000' class='latex' /> means not innocent. Also note that <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28E%26%23124%3B%5Csim+I%29%3D1%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(E&#124;\sim I)=1}&amp;fg=000000' title='{\mathbf{P}(E&#124;\sim I)=1}&amp;fg=000000' class='latex' />, as here the defendant actually committed the crime. Lets have a look at the example</p>
<p>Suppose that you are 80% certain that the defendant is innocent. So we have <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28I%29%3D0.8%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(I)=0.8}&amp;fg=000000' title='{\mathbf{P}(I)=0.8}&amp;fg=000000' class='latex' />. A Forensics expert gives some evidence that states that some blood of type AB was found at the scene and only 3% of the population have that type of blood and that the defendant has type AB blood. This means that we take <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28E%26%23124%3BI%29%3D0.03%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(E&#124;I)=0.03}&amp;fg=000000' title='{\mathbf{P}(E&#124;I)=0.03}&amp;fg=000000' class='latex' />. To find <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28E%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(E)}&amp;fg=000000' title='{\mathbf{P}(E)}&amp;fg=000000' class='latex' /> we substitute in to the equation</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cdisplaystyle+%5Cmathbf%7BP%7D%28E%29%3D%5Cmathbf%7BP%7D%28E%26%23124%3BI%29%5Cmathbf%7BP%7D%28I%29%2B%5Cmathbf%7BP%7D%28%5Csim+I%29%3D%280.03%5Ctimes0.8%29%2B0.2%3D0.224+%5C+%5C+%5C+%5C+%5C+%285%29%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\displaystyle \mathbf{P}(E)=\mathbf{P}(E&#124;I)\mathbf{P}(I)+\mathbf{P}(\sim I)=(0.03\times0.8)+0.2=0.224 \ \ \ \ \ (5)&amp;fg=000000' title='\displaystyle \mathbf{P}(E)=\mathbf{P}(E&#124;I)\mathbf{P}(I)+\mathbf{P}(\sim I)=(0.03\times0.8)+0.2=0.224 \ \ \ \ \ (5)&amp;fg=000000' class='latex' /></p>
<p>So once this evidence is given to you the defendants probable innocents plummets from 80% down to 22.4%. In this example you could still not convict using just this pice of evidence. What you can do is keep on adjusting <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28I%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(I)}&amp;fg=000000' title='{\mathbf{P}(I)}&amp;fg=000000' class='latex' /> during the entire trial (where relevant) using the above reasoning.</p>
<p>I will finish this post with four problems in understanding probabilities in court cases are (in no real order):</p>
<ul>
<li>1) <a href="http://en.wikipedia.org/wiki/Prosecutor%27s_Fallacy"><strong>Prosecutor&#8217;s or Defendant&#8217;s Fallacy</strong></a></li>
<li>2) <strong>Ultimate Issue Error</strong> Explicitly taking a small <img src='http://l.wordpress.com/latex.php?latex=%7B%5Cmathbf%7BP%7D%28E%26%23124%3BI%29%7D%26%2338%3Bfg%3D000000&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='{\mathbf{P}(E&#124;I)}&amp;fg=000000' title='{\mathbf{P}(E&#124;I)}&amp;fg=000000' class='latex' /> with the defendants likelihood of innocence.</li>
<li>3) <a href="http://en.wikipedia.org/wiki/False_positive_paradox"><strong>Base-Rate Neglect</strong></a></li>
<li>4) <strong>Dependent Evidence Fallacy</strong> This is related to the independence or dependence of events. In terms of court cases this would pop up in genetic effects. For instance we all know that certain physiological problems run in the family be it breast cancer or disease. If two events are independent from each other then the probability of both of these events happening can be found by multiplying both of the probabilities together.<br />However using the breast cancer example there is a 1/8 chance of a women having breast cancer during her life. So what is the probability of a mother and daughter both developing cancer during there lives. Well if mother has breast cancer then it is more likely that the daughter could develop breast cancer sometime during her life. I don&#8217;t know what that chance is so for sake of argument lets just say that it is twice as likely then the average person, that is a 1/4 chance. So we would find that there is a (1/8)(1/4)=1/32 chance that both mother and daughter will have cancer some time during there lives.</li>
</ul>
<p>So this begs the question, if every one can be called up for jury duty should we be teaching more probability in schools so every one can understand trials that can include many confusing probabilities?</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Math is probably for you]]></title>
<link>http://f241vc15.wordpress.com/2009/11/22/math-is-probably-for-you/</link>
<pubDate>Sun, 22 Nov 2009 05:34:47 +0000</pubDate>
<dc:creator>f241vc15</dc:creator>
<guid>http://f241vc15.wordpress.com/2009/11/22/math-is-probably-for-you/</guid>
<description><![CDATA[Math can be really fun. Seriously. This post is the 2nd in a series of posts I&#8217;m planning to h]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Math can be really fun. <em>Seriously</em>.</p>
<p>This post is the 2nd in a series of posts I&#8217;m planning to have about why math is such a beautiful, useful, and awe-inspiring subject, and that a lot of us can do math (advanced/seemingly difficult math even). Math is such an integral part of humanity since our cave dwelling days, and much more so now in most of our technology driven lives. Previously I wrote about how even <a href="http://f241vc15.wordpress.com/2009/11/01/gather-round-kids-its-time-for-math/" target="_blank">advanced math, particularly advanced geometry, can be easily tackled with just your imagination</a>. This time it&#8217;s about probability. I can just imagine some of you cringe at the thought of math, let alone probability. But I&#8217;ll try to show you that often times, logical reasoning is all that it takes to wrap your head around probabilities, even the ones that confound a lot of brilliant people, even some mathematicians themselves. In fact, we&#8217;ll end this article with a simulation of a game/game show. Not bad huh? <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Probability and people</h2>
<p>In a nutshell, probability is the area of math which deals with the likelihood of an event happening. It is usually expressed as a number, whether a fraction or a decimal, between 0 and 1, with a probability of 1 meaning the event will surely happen and a probability of 0 meaning the event won&#8217;t happen.</p>
<p>Now, don&#8217;t be too hard on yourself thinking that probability is too hard for you, unlike most of the human population. In fact, probability is one really confounding area of math and problems in it that seem to be easy in hindsight, turn out to be deceptively difficult or tricky, even for  mathematicians, teachers, and other brilliant men and women around the globe. In fact a lot of us have trouble wrapping our heads around probabilities. You mix that with human hopefulness and also the difficulty of grasping very large numbers and what you get is the staggering number of people around the world falling in line to get their lotto tickets so they could win the multi-million prize money.</p>
<p>In fact, if we do the math, in a typical 6/49 game of lotto (6 unique numbers chosen out of 49 numbers, where the order of the 6 numbers is not important) we find that your chances of winning today after buying that lotto ticket is 1 in about 14,000,000. So if Lucy (one of the earliest hominids/proto-humans known to us) or her people, or perhaps even Neanderthals started betting on the lottery at the beginning of their lives, some of them should be millionaires by now. That&#8217;s how bad we are at assessing odds, especially coupled with large numbers. So when you go buy that lotto ticket later, I&#8217;m afraid the odds are so much against you.</p>
<p>However, I&#8217;ll discuss next a particularly perplexing probability problem pondered by people, even brilliant ones, and found the solution to be deceptively trivial after all. Actually, even after you get the explanation, from a practical standpoint it doesn&#8217;t seem like so. But the logical reasoning will quite surely buy you out. But don&#8217;t fret, all you need again is imagination and logical reasoning. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Game time</h2>
<p>Some of you may have heard/read about the American game show <em>Let&#8217;s Make a Deal</em>. The Monty Hall problem (MHP) was named after the show&#8217;s host. Simply stated, the rules of the game are as follows:</p>
<blockquote><p>The game master (GM), has 3 doors: 2 with goats behind them and one with a car behind it. The GM lets you choose one door, which you think holds the prize car behind it. Since the GM&#8217;s job is to make you and the audience excited and enjoy the game, the GM opens another door. But since the GM knows the placement of the goats and the car i.e. which door has which item behind it, the GM opens a door which has a goat behind it. Now, the GM poses a question to you: Do you or do you not want to change the door you initially picked i.e. the GM gives you an opportunity to stay with the door you originally picked, or to choose the other door, knowing that one of the doors, which the GM opened, has a goat behind it.</p></blockquote>
<p>The GM in the show is of course Monty Hall (MH). Now, you&#8217;d most probably think that since there are only 2 doors left unopened, that the probability of getting either a goat or a car is now 50/50 or 50% right i.e. it doesn&#8217;t matter whether you switch doors or not?</p>
<p><em>Nope.</em></p>
<p><em> </em>In fact, however counterintuitive this may seem, your chances of getting the car at this point of the game <em>doubles</em> if you decide to change the door you initially picked. How? Let&#8217;s find out shall we? <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Goat, Car, Goat</h2>
<p>Now let&#8217;s strap on our imagination and logical reasoning caps to find out how the probability of getting the car increases two-fold if you switch your chosen door, and that it&#8217;s not a 50/50 chance of getting the car once a door with a goat has been opened by the GM.</p>
<div id="attachment_454" class="wp-caption aligncenter" style="width: 460px"><a href="http://f241vc15.wordpress.com/files/2009/11/monty-hall-prob1.png"><img class="size-full wp-image-454" title="Monty Hall problem" src="http://f241vc15.wordpress.com/files/2009/11/monty-hall-prob1.png" alt="Monty Hall problem" width="450" height="436" /></a><p class="wp-caption-text">Monty Hall problem</p></div>
<p>One way of looking at how this counterintuitive probability problem is correctly tackled is by taking the possibility of the events one at a time (refer to the figure above please). In this scenario we show that when you switch doors, you always double your chances of winning. Here&#8217;s how:</p>
<p style="padding-left:30px;">1. First event, say you picked a door and it happened to have the prize car behind it.  Regardless of which door the GM opens, switching in this case either gives you goat A or goat B i.e. you lose the prize car. Out of the 3 possible scenarios (2 of which are listed right after this one), in this one event/case do you lose the prize car.</p>
<p style="padding-left:30px;">2. Second event, you choose a door with a goat (goat A) behind it. The GM opens a door again with a goat (goat B) behind it. If you switch in this case, you get the car. This event, wherein you get the car by switching, is one event which you get the prize car. Score one for you. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="padding-left:30px;">3. Third event, you choose the 3rd door with a goat(goat B) behind it. The GM again opens a door with a goat (this time, goat A). So when you switch, you get the car again. Yay. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  This event, wherein you again get the car by switching, is another event which lets you take home the prize.</p>
<p>So what did we get from all this? We saw that out of 3 events/cases of picking either of the 3 doors, you always get 2 events (event 2. and 3.) which favor switching and which lets you walk away with the prize (or in this case, drive away with the prize). So the odds of getting the car/prize in the MHP is not 50% as a lot of us would initially assume, but instead, is really 2/3 or approximately 66.7%.</p>
<p>It can take a while to sink in, but the reasoning/explanation is quite logical and sound.</p>
<h2>Try it out!</h2>
<p>I actually tried this out with my mother and at another time with my younger brother. What I did was I got 3 opaque plastic cups (simulating the doors) and 2 toy cows (no goat toys in our house at that time) and 1 robot toy that transforms into a car (not bad for a prize no?). I made them act as a GM at one time, with me being the game contestant. Of course to prove my point I always switched. We did this about 20 times and I got the prize car (or robot) at around 14 times out of the 20 (roughly 2/3 of 20). Then I acted as a GM and they acted as the contestant. Then their job was <em>not</em> to switch doors (or cups), just to prove my point that you get the prize more often than not (2/3 of the time remember?) by switching instead of staying with your original door/cup.</p>
<p>They even asked me if I was doing a magic trick on them. I told them it was the power of mathematics and of logical thinking. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Imagine what much more primitive, let&#8217;s say Bronze-aged men, would think of me, with this knowledge, even without modern devices like a cellphone. Perhaps they&#8217;d think of me as an oracle or even a god. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Great, great. But what’s the use?</h2>
<p>I think one important thing we can get from this (other than to show you that you can do maths you thought were too hard or complicated for you) is that with math, we can make decisions in our lives (sports betting, lottery, game shows and so on) with more clarity, logic, and sound reasoning, instead of just blind optimism.</p>
<p>If you didn&#8217;t get the logic on how to win the game at first glance, or if you thought it was 50/50, don&#8217;t be ashamed, a lot of people (some brilliant even) fell for it too. In fact, out of 228 subjects in a study, only 13% chose to switch, and that the rest (87%) assumed that the switching didn&#8217;t matter since the likelihood of getting the car out of the 2 unopened doors are equal (<a href="http://econwpa.wustl.edu/eps/exp/papers/9906/9906001.html" target="_blank">research by Mueser and Granberg, 1999</a>).</p>
<p>Quoting cognitive psychologist <a href="http://books.google.com/books?id=pgQQv8W_IgIC&#38;pg=PA5&#38;dq=%22monty+hall+paradox%22+inauthor:savant&#38;lr=&#38;as_brr=0&#38;as_pt=ALLTYPES&#38;ei=aETYSZDDDoWqlQSIgMHlAg#PPA6,M1" target="_blank">Massimo Piattelli-Palmarini</a></p>
<blockquote><p><a title="Massimo Piattelli-Palmarini (page does not exist)" href="/w/index.php?title=Massimo_Piattelli-Palmarini&#38;action=edit&#38;redlink=1"></a> &#8220;&#8230; no other statistical puzzle comes so close to fooling all the people all the time&#8221;</p></blockquote>
<p>and</p>
<blockquote><p>&#8220;that even Nobel physicists systematically give the wrong answer, and that they <em>insist</em> on it, and they are ready to berate in print those who propose the right answer.&#8221;</p></blockquote>
<p>So, not bad eh? Still think math (or at least those areas you think are too advanced or complicated for you) isn&#8217;t for the average person? If so, then look forward to my next posts about math. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>References, resources, and further reading</h2>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Lottery_mathematics" target="_blank">Wikipedia article on the mathematics of lottery</a></li>
<li><a href="http://en.wikipedia.org/wiki/Monty_Hall_problem" target="_blank">Wikipedia article on the Monty Hall problem</a></li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ความน่าจะเป็นและกระบวนการสุ่มสําหรับวิศวกรคอมพิวเตอร์]]></title>
<link>http://sclaimon.wordpress.com/2009/11/21/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%99%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b0%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%81%e0%b8%a3%e0%b8%b0%e0%b8%9a%e0%b8%a7%e0%b8%99/</link>
<pubDate>Sat, 21 Nov 2009 08:08:20 +0000</pubDate>
<dc:creator>SoClaimon</dc:creator>
<guid>http://sclaimon.wordpress.com/2009/11/21/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%99%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b0%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%81%e0%b8%a3%e0%b8%b0%e0%b8%9a%e0%b8%a7%e0%b8%99/</guid>
<description><![CDATA[204312     ความน่าจะเป็นและกระบวนการสุ่มสํ าหรับวิศวกรคอมพิวเตอร์     Probability and Random Process]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>204312     ความน่าจะเป็นและกระบวนการสุ่มสํ าหรับวิศวกรคอมพิวเตอร์     Probability and Random Processes for Computer Engineers</p>
<p>ความน่าจะเป็น ความน่าจะเป็นแบบมีเงื่อนไข ความเป็นอิสระของเหตุการณ์ ตัวแปรสุ่ม ฟังก์ชันการแจกแจงและความหนาแน่น ฟังก์ชันของตัวแปรสุ่มเดียว ตัวแปรสุ่มหลายตัวการดํ าเนินการกับตัวแปรสุ่มตัวเดียวและหลายตัว กฎของจํ านวนเลขขนาดใหญ่ ทฤษฎีจํ ากัดช่วงกลางกระบวนการสุ่มและการประยุกต์ การประยุกต์กับปัญหาทางวิศวกรรมคอมพิวเตอร์</p>
<p>(Probability; conditional probability and independence of events; random variables; distribution and density functions; functions of one random variable; multiple random variables; operations on one and multiple random variables; laws of large numbers; central limit theorem; random processes and their applications; application to computer engineering problems.)</p>
<p>(204312 มหาวิทยาลัยเกษตรศาสตร์)</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ความน่าจะเป็นประยุกต์สําหรับวิศวกรไฟฟ้า]]></title>
<link>http://sclaimon.wordpress.com/2009/11/21/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%99%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b0%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%9b%e0%b8%a3%e0%b8%b0%e0%b8%a2%e0%b8%b8%e0%b8%81%e0%b8%95%e0%b9%8c%e0%b8%aa/</link>
<pubDate>Sat, 21 Nov 2009 06:49:25 +0000</pubDate>
<dc:creator>SoClaimon</dc:creator>
<guid>http://sclaimon.wordpress.com/2009/11/21/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%99%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b0%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%9b%e0%b8%a3%e0%b8%b0%e0%b8%a2%e0%b8%b8%e0%b8%81%e0%b8%95%e0%b9%8c%e0%b8%aa/</guid>
<description><![CDATA[205215     ความน่าจะเป็นประยุกต์สํ าหรับวิศวกรไฟฟ้า     Applied Probability for Electrical Engineers]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>205215     ความน่าจะเป็นประยุกต์สํ าหรับวิศวกรไฟฟ้า     Applied Probability for Electrical Engineers</p>
<p>ความน่าจะเป็นแบบร่วมและแบบมีเงื่อนไข ความเป็นอิสระทางสถิติ ตัวแปรสุ่มแบบไม่ต่อเนื่องและแบบต่อเนื่อง ฟังก์ชันการแจกแจงและความหนาแน่น การดํ าเนินการบนตัวแปรสุม่ ตัวเดียวและหลายตัว การคาดหมาย โมเมนต์และฟังก์ชันลักษณะเฉพาะ กฎของตัวเลขขนาดใหญ่ ทฤษฎีขีดจํ ากัดกลาง การคํ านวณความเชื่อถือได้เบื้องต้น การทดสอบรูปแบบการกระจายของข้อมูล</p>
<p>(Joint and conditional probability, statistical independence, discrete and continuous random variables, distribution and density functions, operations on one and multiple random variables, expectation, moments and characteristic functions, law of large numbers, central limit theorem, basic reliability calculations, testing the fit of a distribution of data.)</p>
<p>(205215 มหาวิทยาลัยเกษตรศาสตร์)</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ความน่าจะเป็นและสถิติประยุกต์สําหรับวิศวกร]]></title>
<link>http://sclaimon.wordpress.com/2009/11/20/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%99%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b0%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%aa%e0%b8%96%e0%b8%b4%e0%b8%95%e0%b8%b4%e0%b8%9b/</link>
<pubDate>Fri, 20 Nov 2009 15:38:44 +0000</pubDate>
<dc:creator>SoClaimon</dc:creator>
<guid>http://sclaimon.wordpress.com/2009/11/20/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%99%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b0%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%aa%e0%b8%96%e0%b8%b4%e0%b8%95%e0%b8%b4%e0%b8%9b/</guid>
<description><![CDATA[206221     ความน่าจะเป็นและสถิติประยุกต์สํ าหรับวิศวกร     Applied Probability and Statistics for En]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>206221     ความน่าจะเป็นและสถิติประยุกต์สํ าหรับวิศวกร     Applied Probability and Statistics for Engineers</p>
<p>ความน่าจะเป็น ค่าคาดคะเนและการแจกแจงความน่าจะเป็นที่ใช้ทั่วไป การแจกแจงจากการสุ่มตัวอย่าง การอนุมานทางสถิติสํ าหรับปัญหาการสุ่มตัวอย่างหนึ่งและสองชุดการวิเคราะห์การถดถอย การวิเคราะห์ความแปรปรวนและการประยุกต์สถิติกับระบบอุตสาหกรรม</p>
<p>(Probability, expectation and common probability distributions, sampling distributions, statistical inference for one &#8211; and &#8211; two &#8211; sample problems, regression analysis, analysis of variance and their applications to industrial systems.)</p>
<p>(206221 มหาวิทยาลัยเกษตรศาสตร์)</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Conditional Distributions With Linear Mean]]></title>
<link>http://probabilityandstats.wordpress.com/2009/11/19/conditional-distributions-with-linear-mean/</link>
<pubDate>Fri, 20 Nov 2009 02:38:11 +0000</pubDate>
<dc:creator>Dan Ma</dc:creator>
<guid>http://probabilityandstats.wordpress.com/2009/11/19/conditional-distributions-with-linear-mean/</guid>
<description><![CDATA[Let and be random variables with joint pdf . Many applications are concerned with the conditional di]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Let <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y&amp;s=-1' title='Y&amp;s=-1' class='latex' /> be random variables with joint pdf <img src='http://l.wordpress.com/latex.php?latex=f%28x%2Cy%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f(x,y)&amp;s=-1' title='f(x,y)&amp;s=-1' class='latex' />. Many applications are concerned with the conditional distribution of a random variable (e.g. <img src='http://l.wordpress.com/latex.php?latex=Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y&amp;s=-1' title='Y&amp;s=-1' class='latex' />) given a realized value of another random variable (e.g. <img src='http://l.wordpress.com/latex.php?latex=X%3Dx%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X=x&amp;s=-1' title='X=x&amp;s=-1' class='latex' />). Sometimes the mean of the conditional distribution of <img src='http://l.wordpress.com/latex.php?latex=Y+%5Cvert+X%3Dx%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y \vert X=x&amp;s=-1' title='Y \vert X=x&amp;s=-1' class='latex' /> is linear in <img src='http://l.wordpress.com/latex.php?latex=x%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x&amp;s=-1' title='x&amp;s=-1' class='latex' />, i.e. <img src='http://l.wordpress.com/latex.php?latex=E%5BY+%5Cvert+X%3Dx%5D%3Dax%2Bb%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[Y \vert X=x]=ax+b&amp;s=-1' title='E[Y \vert X=x]=ax+b&amp;s=-1' class='latex' /> for some constants <img src='http://l.wordpress.com/latex.php?latex=a%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a&amp;s=-1' title='a&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=b%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='b&amp;s=-1' title='b&amp;s=-1' class='latex' />. In such situations, it turns out that the conditional mean can be expressed as follows:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=E%5BY+%5Cvert+X%3Dx%5D%3D%5Cmu_Y%2B%5Crho+%5Cfrac%7B%5Csigma_Y%7D%7B%5Csigma_X%7D%28x-%5Cmu_X%29+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%281%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[Y \vert X=x]=\mu_Y+\rho \frac{\sigma_Y}{\sigma_X}(x-\mu_X) \ \ \ \ \ \ \ \ \ (1)&amp;s=-1' title='E[Y \vert X=x]=\mu_Y+\rho \frac{\sigma_Y}{\sigma_X}(x-\mu_X) \ \ \ \ \ \ \ \ \ (1)&amp;s=-1' class='latex' /></p>
<p>Furthermore, when the conditional variance <img src='http://l.wordpress.com/latex.php?latex=Var%5BY+%5Cvert+X%3Dx%5D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[Y \vert X=x]&amp;s=-1' title='Var[Y \vert X=x]&amp;s=-1' class='latex' /> is constant, it can be expressed as follows:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=Var%5BY+%5Cvert+X%3Dx%5D%3D%5Csigma%5E2_Y%281-%5Crho%5E2%29+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%282%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[Y \vert X=x]=\sigma^2_Y(1-\rho^2) \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (2)&amp;s=-1' title='Var[Y \vert X=x]=\sigma^2_Y(1-\rho^2) \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (2)&amp;s=-1' class='latex' /></p>
<p>Both <img src='http://l.wordpress.com/latex.php?latex=%281%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(1)&amp;s=-1' title='(1)&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%282%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(2)&amp;s=-1' title='(2)&amp;s=-1' class='latex' /> hold when <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y&amp;s=-1' title='Y&amp;s=-1' class='latex' /> are jointly distributed according to the bivariate normal distribution. In this post, I prove both <img src='http://l.wordpress.com/latex.php?latex=%281%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(1)&amp;s=-1' title='(1)&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%282%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(2)&amp;s=-1' title='(2)&amp;s=-1' class='latex' /> and give a simple non-bivariate normal example where these two conditions hold. I will discuss bivariate normal distribution in a subsequent post.</p>
<p align="center"> <em><strong>DISCUSSION OF EQUATION (1)</strong></em> </p>
<p>Given that <img src='http://l.wordpress.com/latex.php?latex=E%5BY+%5Cvert+X%5D%3DaX%2Bb%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[Y \vert X]=aX+b&amp;s=-1' title='E[Y \vert X]=aX+b&amp;s=-1' class='latex' />, we can take expected value on both sides. In some of the expectation below, the subscript <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> indicates that the expectation is taken with the marginal desnsity of <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' />.</p>
<p><img src='http://l.wordpress.com/latex.php?latex=%5Cdisplaystyle+E%5BY+%5Cvert+X%5D%3DaX%2Bb+%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+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%283%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\displaystyle E[Y \vert X]=aX+b \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (3)&amp;s=-1' title='\displaystyle E[Y \vert X]=aX+b \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (3)&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%5Cdisplaystyle+E_X%5BE%5BY+%5Cvert+X%5D%5D%3DE_X%5BaX%2Bb%5D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\displaystyle E_X[E[Y \vert X]]=E_X[aX+b]&amp;s=-1' title='\displaystyle E_X[E[Y \vert X]]=E_X[aX+b]&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%5Cdisplaystyle+E%5BY%5D%3DaE%5BX%5D%2Bb%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\displaystyle E[Y]=aE[X]+b&amp;s=-1' title='\displaystyle E[Y]=aE[X]+b&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%5Cdisplaystyle+%5Cmu_Y%3Da%5Cmu_X%2Bb+%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+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%284%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\displaystyle \mu_Y=a\mu_X+b \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (4)&amp;s=-1' title='\displaystyle \mu_Y=a\mu_X+b \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (4)&amp;s=-1' class='latex' /></p>
<p><img src='http://l.wordpress.com/latex.php?latex=%284%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(4)&amp;s=-1' title='(4)&amp;s=-1' class='latex' /> is an equation in terms of <img src='http://l.wordpress.com/latex.php?latex=a%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a&amp;s=-1' title='a&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=b%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='b&amp;s=-1' title='b&amp;s=-1' class='latex' />. We can find another equation of <img src='http://l.wordpress.com/latex.php?latex=a%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a&amp;s=-1' title='a&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=b%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='b&amp;s=-1' title='b&amp;s=-1' class='latex' /> by multiplying both sides of <img src='http://l.wordpress.com/latex.php?latex=%283%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(3)&amp;s=-1' title='(3)&amp;s=-1' class='latex' /> by <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' />. Then we take expectation with respect to <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' />.</p>
<p><img src='http://l.wordpress.com/latex.php?latex=E%5BY+%5Cvert+X%5DX%3D%28aX%2Bb%29X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[Y \vert X]X=(aX+b)X&amp;s=-1' title='E[Y \vert X]X=(aX+b)X&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=E%5BXY+%5Cvert+X%5D%3DaX%5E2%2BbX%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[XY \vert X]=aX^2+bX&amp;s=-1' title='E[XY \vert X]=aX^2+bX&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=E_X%5BE%5BXY+%5Cvert+X%5D%5D%3DE_X%5BaX%5E2%2BbX%5D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E_X[E[XY \vert X]]=E_X[aX^2+bX]&amp;s=-1' title='E_X[E[XY \vert X]]=E_X[aX^2+bX]&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=E%5BXY%5D%3DaE%5BX%5E2%5D%2BbE%5BX%5D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[XY]=aE[X^2]+bE[X]&amp;s=-1' title='E[XY]=aE[X^2]+bE[X]&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=Cov%28X%2CY%29%2BE%5BX%5DE%5BY%5D%3Da%5BVar%28X%29%2BE%5BX%5D%5E2%5D%2BbE%5BX%5D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Cov(X,Y)+E[X]E[Y]=a[Var(X)+E[X]^2]+bE[X]&amp;s=-1' title='Cov(X,Y)+E[X]E[Y]=a[Var(X)+E[X]^2]+bE[X]&amp;s=-1' class='latex' /></p>
<p>Substituting <img src='http://l.wordpress.com/latex.php?latex=Cov%28X%2CY%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Cov(X,Y)&amp;s=-1' title='Cov(X,Y)&amp;s=-1' class='latex' /> with <img src='http://l.wordpress.com/latex.php?latex=%5Crho+%5Csigma_X+%5Csigma_Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\rho \sigma_X \sigma_Y&amp;s=-1' title='\rho \sigma_X \sigma_Y&amp;s=-1' class='latex' />, we obtain the following equation:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=a%28%5Csigma%5E2_X%2B%5Cmu%5E2_X%29%2Bb+%5Cmu_X%3D%5Crho+%5Csigma_X+%5Csigma_Y%2B%5Cmu_X+%5Cmu_Y+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%285%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a(\sigma^2_X+\mu^2_X)+b \mu_X=\rho \sigma_X \sigma_Y+\mu_X \mu_Y \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (5)&amp;s=-1' title='a(\sigma^2_X+\mu^2_X)+b \mu_X=\rho \sigma_X \sigma_Y+\mu_X \mu_Y \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (5)&amp;s=-1' class='latex' /></p>
<p>Using equations (4) and (5) to solve for <img src='http://l.wordpress.com/latex.php?latex=a&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a' title='a' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=b&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='b' title='b' class='latex' />, we obtain the solutions:<br />
<img src='http://l.wordpress.com/latex.php?latex=a%3D%5Crho+%5Cfrac%7B%5Csigma_Y%7D%7B%5Csigma_X%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a=\rho \frac{\sigma_Y}{\sigma_X}&amp;s=-1' title='a=\rho \frac{\sigma_Y}{\sigma_X}&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=b%3D%5Cmu_Y-%5Crho+%5Cfrac%7B%5Csigma_Y%7D%7B%5Csigma_X%7D%5Cmu_X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='b=\mu_Y-\rho \frac{\sigma_Y}{\sigma_X}\mu_X&amp;s=-1' title='b=\mu_Y-\rho \frac{\sigma_Y}{\sigma_X}\mu_X&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=E%5BY+%5Cvert+X%3Dx%5D%3D%5Cmu_Y-%5Crho+%5Cfrac%7B%5Csigma_Y%7D%7B%5Csigma_X%7D%28x-%5Cmu_X%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[Y \vert X=x]=\mu_Y-\rho \frac{\sigma_Y}{\sigma_X}(x-\mu_X)&amp;s=-1' title='E[Y \vert X=x]=\mu_Y-\rho \frac{\sigma_Y}{\sigma_X}(x-\mu_X)&amp;s=-1' class='latex' /></p>
<p align="center"> <em><strong>DISCUSSION OF EQUATION (2)</strong></em> </p>
<p>The conditional variance <img src='http://l.wordpress.com/latex.php?latex=Var%5BY+%5Cvert+X%5D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[Y \vert X]&amp;s=-1' title='Var[Y \vert X]&amp;s=-1' class='latex' /> is a function of <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' />:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=h%28X%29%3DVar%5BY+%5Cvert+X%5D%3DE%5B%5Clbrace%7BY-E%5BY+%5Cvert+X%5D%7D%5Crbrace%5E2+%5Cvert+X%5D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='h(X)=Var[Y \vert X]=E[\lbrace{Y-E[Y \vert X]}\rbrace^2 \vert X]&amp;s=-1' title='h(X)=Var[Y \vert X]=E[\lbrace{Y-E[Y \vert X]}\rbrace^2 \vert X]&amp;s=-1' class='latex' /></p>
<p>Let&#8217;s plug the linear conditional mean into the conditional variance <img src='http://l.wordpress.com/latex.php?latex=h%28X%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='h(X)&amp;s=-1' title='h(X)&amp;s=-1' class='latex' />.</p>
<p><img src='http://l.wordpress.com/latex.php?latex=h%28X%29%3DE%5Clbrace%7B%5BY-%5Cmu_Y-%5Crho+%5Cfrac%7B%5Csigma_Y%7D%7B%5Csigma_X%7D%28X-%5Cmu_X%29%5D%5E2%5Cvert+X%7D%5Crbrace%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='h(X)=E\lbrace{[Y-\mu_Y-\rho \frac{\sigma_Y}{\sigma_X}(X-\mu_X)]^2\vert X}\rbrace&amp;s=-1' title='h(X)=E\lbrace{[Y-\mu_Y-\rho \frac{\sigma_Y}{\sigma_X}(X-\mu_X)]^2\vert X}\rbrace&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%3DE%5Clbrace%7B%5BY-%5Cmu_Y%5D%5E2-2+%5Crho+%5Cfrac%7B%5Csigma_Y%7D%7B%5Csigma_X%7D%28X-%5Cmu_X%29%28Y-%5Cmu_Y%29%2B%5Crho%5E2+%5Cfrac%7B%5Csigma%5E2_Y%7D%7B%5Csigma%5E2_X%7D%28X-%5Cmu_X%29%5E2+%5Cvert+X%7D%5Crbrace%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='=E\lbrace{[Y-\mu_Y]^2-2 \rho \frac{\sigma_Y}{\sigma_X}(X-\mu_X)(Y-\mu_Y)+\rho^2 \frac{\sigma^2_Y}{\sigma^2_X}(X-\mu_X)^2 \vert X}\rbrace&amp;s=-1' title='=E\lbrace{[Y-\mu_Y]^2-2 \rho \frac{\sigma_Y}{\sigma_X}(X-\mu_X)(Y-\mu_Y)+\rho^2 \frac{\sigma^2_Y}{\sigma^2_X}(X-\mu_X)^2 \vert X}\rbrace&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%3DE%5Clbrace%7B%5BY-%5Cmu_Y%5D%5E2+%5Cvert+X%7D%5Crbrace-2+%5Crho+%5Cfrac%7B%5Csigma_Y%7D%7B%5Csigma_X%7DE%5Clbrace%7B%28X-%5Cmu_X%29%28Y-%5Cmu_Y%29%5Cvert+X%7D%5Crbrace%2B%5Crho%5E2+%5Cfrac%7B%5Csigma%5E2_Y%7D%7B%5Csigma%5E2_X%7DE%5Clbrace%7B%28X-%5Cmu_X%29%5E2+%5Cvert+X%7D%5Crbrace%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='=E\lbrace{[Y-\mu_Y]^2 \vert X}\rbrace-2 \rho \frac{\sigma_Y}{\sigma_X}E\lbrace{(X-\mu_X)(Y-\mu_Y)\vert X}\rbrace+\rho^2 \frac{\sigma^2_Y}{\sigma^2_X}E\lbrace{(X-\mu_X)^2 \vert X}\rbrace&amp;s=-1' title='=E\lbrace{[Y-\mu_Y]^2 \vert X}\rbrace-2 \rho \frac{\sigma_Y}{\sigma_X}E\lbrace{(X-\mu_X)(Y-\mu_Y)\vert X}\rbrace+\rho^2 \frac{\sigma^2_Y}{\sigma^2_X}E\lbrace{(X-\mu_X)^2 \vert X}\rbrace&amp;s=-1' class='latex' /></p>
<p>Now, take expectation with respect to <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' />.<br />
<img src='http://l.wordpress.com/latex.php?latex=E_X%5Bh%28X%29%5D%3DVar%5BY%5D-2+%5Crho+%5Cfrac%7B%5Csigma_Y%7D%7B%5Csigma_X%7D+E%5B%28X-%5Cmu_X%29%28Y-%5Cmu_Y%29%5D%2B%5Crho%5E2+%5Cfrac%7B%5Csigma%5E2_Y%7D%7B%5Csigma%5E2_X%7D+Var%28X%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E_X[h(X)]=Var[Y]-2 \rho \frac{\sigma_Y}{\sigma_X} E[(X-\mu_X)(Y-\mu_Y)]+\rho^2 \frac{\sigma^2_Y}{\sigma^2_X} Var(X)&amp;s=-1' title='E_X[h(X)]=Var[Y]-2 \rho \frac{\sigma_Y}{\sigma_X} E[(X-\mu_X)(Y-\mu_Y)]+\rho^2 \frac{\sigma^2_Y}{\sigma^2_X} Var(X)&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%3DVar%5BY%5D-2+%5Crho+%5Cfrac%7B%5Csigma_Y%7D%7B%5Csigma_X%7D+Cov%28X%2CY%29%2B%5Crho%5E2+%5Cfrac%7B%5Csigma%5E2_Y%7D%7B%5Csigma%5E2_X%7D+Var%28X%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='=Var[Y]-2 \rho \frac{\sigma_Y}{\sigma_X} Cov(X,Y)+\rho^2 \frac{\sigma^2_Y}{\sigma^2_X} Var(X)&amp;s=-1' title='=Var[Y]-2 \rho \frac{\sigma_Y}{\sigma_X} Cov(X,Y)+\rho^2 \frac{\sigma^2_Y}{\sigma^2_X} Var(X)&amp;s=-1' class='latex' /></p>
<p>Plugging <img src='http://l.wordpress.com/latex.php?latex=%5Crho+%5Csigma_X+%5Csigma_Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\rho \sigma_X \sigma_Y&amp;s=-1' title='\rho \sigma_X \sigma_Y&amp;s=-1' class='latex' /> into <img src='http://l.wordpress.com/latex.php?latex=Cov%28X%2CY%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Cov(X,Y)&amp;s=-1' title='Cov(X,Y)&amp;s=-1' class='latex' />, we obtain:<br />
<img src='http://l.wordpress.com/latex.php?latex=E_X%5Bh%28X%29%5D%3D%5Csigma%5E2_Y%281-%5Crho%5E2%29+%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+%5C+%286%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E_X[h(X)]=\sigma^2_Y(1-\rho^2) \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (6)&amp;s=-1' title='E_X[h(X)]=\sigma^2_Y(1-\rho^2) \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (6)&amp;s=-1' class='latex' /></p>
<p>If the conditional variance <img src='http://l.wordpress.com/latex.php?latex=h%28X%29%3DVar%28Y+%5Cvert+X%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='h(X)=Var(Y \vert X)&amp;s=-1' title='h(X)=Var(Y \vert X)&amp;s=-1' class='latex' /> is constant, then the equation (6) above becomes:<br />
<img src='http://l.wordpress.com/latex.php?latex=Var%28Y+%5Cvert+X%29%3D%5Csigma%5E2_Y%281-%5Crho%5E2%29%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var(Y \vert X)=\sigma^2_Y(1-\rho^2)&amp;s=-1' title='Var(Y \vert X)=\sigma^2_Y(1-\rho^2)&amp;s=-1' class='latex' />.</p>
<p align="center"> <em><strong>EXAMPLE</strong></em> </p>
<p>Consider <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Y%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y&amp;s=-1' title='Y&amp;s=-1' class='latex' /> with the following joint pdf:</p>
<p>For <img src='http://l.wordpress.com/latex.php?latex=x%26%2362%3B0%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x&gt;0&amp;s=-1' title='x&gt;0&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=x%26%2360%3By+%5Cleq+x+%2B%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x&lt;y \leq x +\frac{1}{2}&amp;s=-1' title='x&lt;y \leq x +\frac{1}{2}&amp;s=-1' class='latex' />:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=f%28x%2Cy%29%3D%284y-4x%29+%5Clambda+e%5E%7B-%5Clambda+x%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f(x,y)=(4y-4x) \lambda e^{-\lambda x}&amp;s=-1' title='f(x,y)=(4y-4x) \lambda e^{-\lambda x}&amp;s=-1' class='latex' />.</p>
<p>For <img src='http://l.wordpress.com/latex.php?latex=x%26%2362%3B0%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x&gt;0&amp;s=-1' title='x&gt;0&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=x%2B%5Cfrac%7B1%7D%7B2%7D%26%2360%3By+%5Cleq+x+%2B1%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x+\frac{1}{2}&lt;y \leq x +1&amp;s=-1' title='x+\frac{1}{2}&lt;y \leq x +1&amp;s=-1' class='latex' />:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=f%28x%2Cy%29%3D%28-4y%2B4x%2B4%29+%5Clambda+e%5E%7B-%5Clambda+x%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='f(x,y)=(-4y+4x+4) \lambda e^{-\lambda x}&amp;s=-1' title='f(x,y)=(-4y+4x+4) \lambda e^{-\lambda x}&amp;s=-1' class='latex' />.</p>
<p>Using the given joint density, we can calculate the following:<br />
<img src='http://l.wordpress.com/latex.php?latex=%5Ctext%7B%28a%29+marginal+density+of+X%3A%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+f_X%28x%29%3D%5Clambda+e%5E%7B-%5Clambda+x%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\text{(a) marginal density of X:} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ f_X(x)=\lambda e^{-\lambda x}&amp;s=-1' title='\text{(a) marginal density of X:} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ f_X(x)=\lambda e^{-\lambda x}&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%5Ctext%7B%28b%29+conditiona+density+of+Y%3A%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\text{(b) conditiona density of Y:}&amp;s=-1' title='\text{(b) conditiona density of Y:}&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%5Ctext%7B%28b1%29%7D+%5Cphantom%7BXXX%7D+f%28y+%5Clvert+x%29%3D%284y-4x%29+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+x%26%2362%3B0+%5Cphantom%7BX%7D+%5Ctext%7Band%7D+%5Cphantom%7BX%7D+x%26%2360%3By+%5Cleq+x+%2B%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\text{(b1)} \phantom{XXX} f(y \lvert x)=(4y-4x) \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ x&gt;0 \phantom{X} \text{and} \phantom{X} x&lt;y \leq x +\frac{1}{2}&amp;s=-1' title='\text{(b1)} \phantom{XXX} f(y \lvert x)=(4y-4x) \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ x&gt;0 \phantom{X} \text{and} \phantom{X} x&lt;y \leq x +\frac{1}{2}&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%5Ctext%7B%28b2%29%7D+%5Cphantom%7BXXX%7D+f%28y+%5Clvert+x%29%3D%28-4y%2B4x%2B4%29+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+x%26%2362%3B0+%5Cphantom%7BX%7D+%5Ctext%7Band%7D+%5Cphantom%7BX%7D+x%2B%5Cfrac%7B1%7D%7B2%7D%26%2360%3By+%5Cleq+x+%2B1%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\text{(b2)} \phantom{XXX} f(y \lvert x)=(-4y+4x+4) \ \ \ \ \ \ \ \ \ \ \ \ \ \ x&gt;0 \phantom{X} \text{and} \phantom{X} x+\frac{1}{2}&lt;y \leq x +1&amp;s=-1' title='\text{(b2)} \phantom{XXX} f(y \lvert x)=(-4y+4x+4) \ \ \ \ \ \ \ \ \ \ \ \ \ \ x&gt;0 \phantom{X} \text{and} \phantom{X} x+\frac{1}{2}&lt;y \leq x +1&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%5Ctext%7B%28c%29+conditional+mean+of+Y%3A%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+E%5BY+%5Clvert+X%3Dx%5D%3Dx%2B%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\text{(c) conditional mean of Y:} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ E[Y \lvert X=x]=x+\frac{1}{2}&amp;s=-1' title='\text{(c) conditional mean of Y:} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ E[Y \lvert X=x]=x+\frac{1}{2}&amp;s=-1' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%5Ctext%7B%28d%29+conditional+variance+of+Y%3A%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5C+Var%5BY+%5Clvert+X%3Dx%5D%3D%5Cfrac%7B1%7D%7B24%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\text{(d) conditional variance of Y:} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Var[Y \lvert X=x]=\frac{1}{24}&amp;s=-1' title='\text{(d) conditional variance of Y:} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Var[Y \lvert X=x]=\frac{1}{24}&amp;s=-1' class='latex' /></p>
<p>Note that the conditional density for <img src='http://l.wordpress.com/latex.php?latex=X%3Dx%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X=x&amp;s=-1' title='X=x&amp;s=-1' class='latex' /> is simply the result of shifting of the variable <img src='http://l.wordpress.com/latex.php?latex=Z%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z&amp;s=-1' title='Z&amp;s=-1' class='latex' /> the following density:<br />
<img src='http://l.wordpress.com/latex.php?latex=g%28z%29%3D4z%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='g(z)=4z&amp;s=-1' title='g(z)=4z&amp;s=-1' class='latex' /> for <img src='http://l.wordpress.com/latex.php?latex=0%26%2360%3Bz%26%2360%3B%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='0&lt;z&lt;\frac{1}{2}&amp;s=-1' title='0&lt;z&lt;\frac{1}{2}&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=g%28z%29%3D-4z%2B4%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='g(z)=-4z+4&amp;s=-1' title='g(z)=-4z+4&amp;s=-1' class='latex' /> for <img src='http://l.wordpress.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D%26%2360%3Bz%26%2360%3B1%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac{1}{2}&lt;z&lt;1&amp;s=-1' title='\frac{1}{2}&lt;z&lt;1&amp;s=-1' class='latex' />.</p>
<p>The mean and variance of <img src='http://l.wordpress.com/latex.php?latex=Z%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Z&amp;s=-1' title='Z&amp;s=-1' class='latex' /> are: <img src='http://l.wordpress.com/latex.php?latex=E%5BZ%5D%3D%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[Z]=\frac{1}{2}&amp;s=-1' title='E[Z]=\frac{1}{2}&amp;s=-1' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=Var%5BZ%5D%3D%5Cfrac%7B1%7D%7B24%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[Z]=\frac{1}{24}&amp;s=-1' title='Var[Z]=\frac{1}{24}&amp;s=-1' class='latex' />. Other than the adjustment due to the shifting, <img src='http://l.wordpress.com/latex.php?latex=Y+%5Clvert+X%3Dx%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Y \lvert X=x&amp;s=-1' title='Y \lvert X=x&amp;s=-1' class='latex' /> is identically distributed (hence the variance is constant with <img src='http://l.wordpress.com/latex.php?latex=Var%5BY+%5Clvert+X%3Dx%5D%3D%5Cfrac%7B1%7D%7B24%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[Y \lvert X=x]=\frac{1}{24}&amp;s=-1' title='Var[Y \lvert X=x]=\frac{1}{24}&amp;s=-1' class='latex' />). The shifting causes the conditional mean to be linear: <img src='http://l.wordpress.com/latex.php?latex=E%5BY+%5Clvert+X%3Dx%5D%3Dx%2B%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[Y \lvert X=x]=x+\frac{1}{2}&amp;s=-1' title='E[Y \lvert X=x]=x+\frac{1}{2}&amp;s=-1' class='latex' />.</p>
<p>The unconditional mean of <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> is <img src='http://l.wordpress.com/latex.php?latex=%5Cmu_X%3DE%5BX%5D%3D%5Cfrac%7B1%7D%7B%5Clambda%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\mu_X=E[X]=\frac{1}{\lambda}&amp;s=-1' title='\mu_X=E[X]=\frac{1}{\lambda}&amp;s=-1' class='latex' />. The unconditional variance of <img src='http://l.wordpress.com/latex.php?latex=X%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='X&amp;s=-1' title='X&amp;s=-1' class='latex' /> is <img src='http://l.wordpress.com/latex.php?latex=%5Csigma%5E2_X%3D%5Cfrac%7B1%7D%7B%5Clambda%5E2%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\sigma^2_X=\frac{1}{\lambda^2}' title='\sigma^2_X=\frac{1}{\lambda^2}' class='latex' />. Comparing the conditional mean <img src='http://l.wordpress.com/latex.php?latex=E%5BY+%5Clvert+X%3Dx%5D%3Dx%2B%5Cfrac%7B1%7D%7B2%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='E[Y \lvert X=x]=x+\frac{1}{2}&amp;s=-1' title='E[Y \lvert X=x]=x+\frac{1}{2}&amp;s=-1' class='latex' /> with equation (1) and the conditional variance <img src='http://l.wordpress.com/latex.php?latex=Var%5BY+%5Clvert+X%3Dx%5D%3D%5Cfrac%7B1%7D%7B24%7D%26%2338%3Bs%3D-1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='Var[Y \lvert X=x]=\frac{1}{24}&amp;s=-1' title='Var[Y \lvert X=x]=\frac{1}{24}&amp;s=-1' class='latex' /> with equation (2), we obtain the following:</p>
<p><img src='http://l.wordpress.com/latex.php?latex=%5Cmu_Y%3DE%5BY%5D%3D%5Cfrac%7B1%7D%7B2%7D%2B%5Cfrac%7B1%7D%7B%5Clambda%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\mu_Y=E[Y]=\frac{1}{2}+\frac{1}{\lambda}' title='\mu_Y=E[Y]=\frac{1}{2}+\frac{1}{\lambda}' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%5Csigma%5E2_Y%3D%5Cfrac%7B1%7D%7B24%7D%2B%5Cfrac%7B1%7D%7B%5Clambda%5E2%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\sigma^2_Y=\frac{1}{24}+\frac{1}{\lambda^2}' title='\sigma^2_Y=\frac{1}{24}+\frac{1}{\lambda^2}' class='latex' /><br />
<img src='http://l.wordpress.com/latex.php?latex=%5Crho%3D%5Csqrt%7B%5Cfrac%7B24%7D%7B%5Clambda%5E2%2B24%7D%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\rho=\sqrt{\frac{24}{\lambda^2+24}}' title='\rho=\sqrt{\frac{24}{\lambda^2+24}}' class='latex' /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The Power of Prayer?]]></title>
<link>http://mattwisdom.wordpress.com/2009/11/19/the-power-of-prayer/</link>
<pubDate>Thu, 19 Nov 2009 18:14:17 +0000</pubDate>
<dc:creator>Matt</dc:creator>
<guid>http://mattwisdom.wordpress.com/2009/11/19/the-power-of-prayer/</guid>
<description><![CDATA[Last night a friend of our family was at our home and told about how they quit praying because it di]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://mattwisdom.wordpress.com/files/2009/11/prayer.jpg"><img src="http://mattwisdom.wordpress.com/files/2009/11/prayer.jpg?w=300" alt="" title="prayer" width="300" height="225" class="alignnone size-medium wp-image-2456" /></a></p>
<p>Last night a friend of our family was at our home and told about how they quit praying because it did not seem to do any good.  This person would fervently lobby God, but each time the request would fall on deaf ears.  This person was notably discouraged by this lack of response and therefore made the decision that prayer did not work.</p>
<p>Though I held my tongue at the time, I wanted to give her a hearty amen.</p>
<p>I haven’t been a real believer in the supposed power of prayer for quite some time and I must admit cringing a bit when others see fit to invoke it.  This doubt is not the product of some selfish want that God didn’t fulfill, it’s not because God didn’t rain money from heaven like Joel Osteen or those of his ilk might claim, rather, it is the product of much time and thought and study.</p>
<p>First of all, I think the idea of successful intercessory prayer comes from a skewed or perhaps even nonexistent understanding of statistical probability.  When one realizes that improbable does not equal impossible, the idea of a “miraculous” recovery takes on a much more realistic bend.  Just because the chance of an event’s success is at the far end of the bell curve does not mean it cannot happen without divine help.  Ask as atheist who survived an improbable health scare or the family of a believer who died and maybe that will put it in perspective.  It does seem a bit arbitrary when you consider who makes it and who doesn’t.  There was <a href="http://www.nytimes.com/2006/03/31/health/31pray.html">a recent study</a> released on the phenomena of intercessory prayer and you can read about that here.</p>
<p>I wonder why people only pray for things within the realm of probability.  Recovery from cancer is possible.  In <a href="http://www.scribd.com/doc/19537977/The-God-Debate-by-Sam-Harris-Rick-Warren-And-Newsweek">his debate with Rick Warren</a>, atheist Sam Harris puts it this way:</p>
<blockquote><p>You could prove to the satisfaction of every scientist that intercessory prayer works if you set up a simple experiment.  Get a billion Christians to pray for a single amputee.  Get them to pray that God regrow that missing limb.  This happens to salamanders every day, presumably without prayer, so this is within the capacity of God.  I find it interesting that people of faith only tend to pray for conditions that are self-limiting.</p></blockquote>
<p>Thus you begin to wonder if Christians even believe in the power of prayer.</p>
<p>Now, this does not mean that prayer is not a useful tool.  I feel quite certain that the peace of mind provided by having loved ones pray over you or by offering up your own prayer can be a great aid in recovery.  While this may not be supernatural and is certainly not a gift solely relegated to Christianity, the belief that one will recover can go a long way.  I imagine the psychological benefits are great for both those who receive and say prayers.</p>
<p>On another note, I often wonder if some prayers (not ones for physical recovery) stem from little more than laziness on the part of Christians.  We can pray for God to feed the hungry and take care of those in need, but if we are not willing to get out in the world and actually work to make it a better place, what does that say of us?  </p>
<p>Again, this is not to discourage anyone from praying or to say that I never will (I do).  Instead, I’m just thinking some things through and wanting to put them in perspective.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Midrasha Mathematicae: The Mathematics of Oded Schramm]]></title>
<link>http://gilkalai.wordpress.com/2009/11/19/midrasha-mathematicae-the-mathematics-of-oded-schramm/</link>
<pubDate>Thu, 19 Nov 2009 09:26:48 +0000</pubDate>
<dc:creator>Gil Kalai</dc:creator>
<guid>http://gilkalai.wordpress.com/2009/11/19/midrasha-mathematicae-the-mathematics-of-oded-schramm/</guid>
<description><![CDATA[Our Winter school on Probability and Geometry is approaching. It will take place at the Hebrew Unive]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://gilkalai.wordpress.com/files/2009/09/midrasha2.jpg"></a></p>
<p><a href="http://www.as.huji.ac.il/schools/math14/"><img class="alignnone size-full wp-image-4694" title="posteroded" src="http://gilkalai.wordpress.com/files/2009/09/posteroded.jpg" alt="" width="450" height="636" /></a></p>
<p>Our Winter school on Probability and Geometry is approaching. <strong>It will take place at the Hebrew University of Jerusalem on December 15-23.</strong> The deadline for application is <strong>November 25, 2009;</strong> by all means,<strong> apply!</strong> it will be a very nice event. We got additional support from The <strong>Clay Mathematics Institute</strong> and from <strong>Microsoft Research.</strong> Financial support (local expences, and, in some cases, partial support for the travel) may be available.</p>
<p>The poster gives the updated list of confirmed speaker. (There may be 1-2 additional speakers that did not confirm yet.)</p>
<p>Here is the link to the <a href="http://www.as.huji.ac.il/schools/math14/">site of the school</a>.  I will update this page regarding program and schedule. <strong>UPDATE</strong> (<a href="http://www.as.huji.ac.il/schools/math14/program.pdf">Preliminary program</a>)</p>
<p><!--more--></p>
<p>Among the ptlanned opics for the lecture series: <strong>Probability on Trees and Graphs; Percolation;  Graph limits;  Random triangulations and KPZ;  Random walks and Brownian motions; SLE  I;  SLE and the Ising Model;  Boolean functions, Noise sensitivity and Fourier analysis; Applications to Physics;  Further connections to Geometry.<br />
</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ความน่าจะเป็นและสถิติสําหรับวิศวกรซอฟต์แวร์และความรู้]]></title>
<link>http://sclaimon.wordpress.com/2009/11/19/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%99%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b0%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%aa%e0%b8%96%e0%b8%b4%e0%b8%95%e0%b8%b4%e0%b8%aa-2/</link>
<pubDate>Thu, 19 Nov 2009 08:58:22 +0000</pubDate>
<dc:creator>SoClaimon</dc:creator>
<guid>http://sclaimon.wordpress.com/2009/11/19/%e0%b8%84%e0%b8%a7%e0%b8%b2%e0%b8%a1%e0%b8%99%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b0%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b9%81%e0%b8%a5%e0%b8%b0%e0%b8%aa%e0%b8%96%e0%b8%b4%e0%b8%95%e0%b8%b4%e0%b8%aa-2/</guid>
<description><![CDATA[219323     ความน่าจะเป็นและสถิติสําหรับวิศวกรซอฟต์แวร์และความรู้     Probability and Statistics for ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>219323     ความน่าจะเป็นและสถิติสําหรับวิศวกรซอฟต์แวร์และความรู้     Probability and Statistics for Software and Knowledge Engineer</p>
<p>ความน่าจะเป็น ความน่าจะเป็นแบบมีเงื่อนไข ค่าคาดคะเน และการแจกแจงความน่าจะเป็นทั่วไป การแจกแจง การสุ่มตัวอย่าง การอนุมานทางสถิติ การวิเคราะห์การถดถอย การวิเคราะห์ความแปรปรวนและการประยุกต์</p>
<p>(Probability; conditional probability; expectation and common probability distributions; sample distributions; statistical interference; regression analysis; analysis of variance and their applications.)</p>
<p>(219323 มหาวิทยาลัยเกษตรศาสตร์)</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Are you presentologist or a futurologist?]]></title>
<link>http://flowingmotion.wordpress.com/2009/11/18/are-you-presentologist-or-a-futurologist/</link>
<pubDate>Wed, 18 Nov 2009 20:45:04 +0000</pubDate>
<dc:creator>Jo Jordan</dc:creator>
<guid>http://flowingmotion.wordpress.com/2009/11/18/are-you-presentologist-or-a-futurologist/</guid>
<description><![CDATA[Presentology or futurology?  Which is your pick? I think most of us think that it is good to defer g]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h2>Presentology or futurology?  Which is your pick?</h2>
<p>I think most of us think that it is good to defer gratification. Well we know it is.  We all know by now the story of the kids given a marshmallow and told they will get another if they leave it untouched until the experimenter gets back. The 30% of kids who resist the urge to wolf down the marshmallow do better in life.</p>
<p>So it is better to be a futurologist?  Not so?</p>
<h2>But what is the future?</h2>
<p>Our fascination with the future rests in a great part on a fallacy of prediction.</p>
<p>Since mankind has kept records we have been pretty keen on consulting oracles, reading the tea leaves, listening to the weather reports ~ anything to allow us to know <em>what will happen and to be on the right side of history</em>.</p>
<p>We desperately want to know and we desperately want the world to be as predictable as the sun coming up in the morning.</p>
<h3>Some predictability is good</h3>
<p>I see nothing wrong with that.  Personally, I like my keys to be where I left them.  And I quite like it if my black dog doesn&#8217;t lie in a dark passage way for me to trip over him.</p>
<p style="padding-left:30px;">Here in lies the important point.  <em>It is not forecasting the future that is important.  It is understanding how the world works that is important.</em></p>
<p>If there is no one else in the house it would be jolly strange if my keys moved from where I put them.  If there is anyone else in the house, even a black dog who likes keys, some dogs do, then my keys might not be where I left them.  It is the mechanism not the prediction that is important.</p>
<p>When we know the mechanism, then we can do something about it.  We must know the mechanism and all the mechanisms that are relevant. Keys rarely move by themselves but other people might move them without telling me.  Mechanisms introduce randomness and it is better to allow for randomness than get fixated on certainty.</p>
<p>Let&#8217;s take my dear black dog as a second example.  He might lie in the dark passageway quite often, but I can&#8217;t predict when he will.  I can only allow for the possibility that he might and either walk more slowly or whistle and hope he moves and makes a noise so I can hear him.  Knowing how the world works and <em>the range of possibilities</em> we might encounter is what matters.</p>
<h2>So what is better: presentology or futurology?</h2>
<p>Now I have explained this like this, it seems quite obvious but what does this affect the choice of presentology or futurology?  How does this relate to the kids and the marshmallows?</p>
<p>I need to know the mechanisms to know what I  can do now, RIGHT NOW.  Because the future follows from now, I want to know how I can change now.</p>
<ul>
<li>I want to change now so that now is better.</li>
<li>And I want to act now because now is the only time we can act.</li>
<li>I want to act because I like action. Action makes us feel good.</li>
<li>And I want to change now because it makes the future more interesting!</li>
</ul>
<p>Instead of worrying whether or not I will trip over my black dog, I ask myself what mechanisms I can manage to walk safely to my destination.  Calling to my dog is one of them.  If I want to get to the end of the passage safely, I must manage all of the mechanisms, on their own terms, as they come up.</p>
<p>Knowing that I want to get to the end of the passage safely or knowing that I get to the end of the passage safely 90% of the time simply doesn&#8217;t help me.</p>
<p>But knowing that a black dog tends to lie there quietly, and knowing that dogs do respond when you call, knowing these mechanisms helps me manage possibilities and helps me rearrange NOW, in this case what is going on in my head.   By understanding now and rearranging it, I allow possibilities to evolve that I might enjoy.</p>
<h2>Presentology : the art of now</h2>
<p>What needs to be done now?</p>
<p>We are all talking about now. Personal kanbans, productivity, mindfulness, solidarity, happiness. It is all about being master of the present ~ master of what is happening this minute!</p>
<p>&#160;</p>
<p>&#160;</p>
<p>Note:  The late Russ Ackhoff used the term presentology to describe his philosophy of management</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Come and dance with me, Michael... and help me shift this furniture]]></title>
<link>http://onlythesangfroid.wordpress.com/2009/11/18/come-and-dance-with-me-michael/</link>
<pubDate>Tue, 17 Nov 2009 14:17:17 +0000</pubDate>
<dc:creator>onlythesangfroid</dc:creator>
<guid>http://onlythesangfroid.wordpress.com/2009/11/18/come-and-dance-with-me-michael/</guid>
<description><![CDATA[I have removalists arriving tomorrow. I don&#8217;t know when they will arrive. It&#8217;s times lik]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I have removalists arriving tomorrow. I don&#8217;t know when they will arrive.</p>
<p>It&#8217;s times like these that I think about the <a href="http://philrsss.anu.edu.au/people-defaults/alanh/papers/cable_guy_paradox.pdf">Cable Guy Paradox</a> by Hajek.</p>
<p>Imagine that you&#8217;re like me and you&#8217;ve called a removalist (or &#8211; in the original &#8211; a guy to come and fix your cable television). They&#8217;ve told you that they will, with 100% certainty, be at your place between 9am and 3pm. So there are three hours in which they could arrive before noon and three hours in which they could arrive after noon. If you ignore the chance that the removalist will arrive at exactly noon, there is a 50% chance that she will arrive in the morning and an equal chance that she will arrive in the afternoon.</p>
<p>Your housemate decides to have a bit of a wager with you as to when the removalist will arrive: morning or afternoon?</p>
<p>&#8216;<em>[W]e may put the reasoning in terms of a plausible diachronic rationality principle somewhat in the spirit of van Fraassen’s ‘Reflection Principle’ (1984 and 1995). The idea is that you should not knowingly frustrate a rational future self of yours. I will call it the ‘Avoid Certain Frustration Principle’:</em></p>
<p><em>Suppose you now have a choice between two options. You should not choose one of these options if you are certain that a rational future self of yours will prefer that you had chosen the other one—unless both your options have this property.</em>&#8216; &#8212; Hajek [<a href="http://philrsss.anu.edu.au/people-defaults/alanh/papers/cable_guy_paradox.pdf">Source</a>]</p>
<p>So we&#8217;re placing this bet and we&#8217;re trying to avoid certain frustration. If we are to place our bet on the removalist arriving in the morning, for each second that passses, the odds increase that the removalist will arrive in the afternoon.</p>
<p>For example, if the removalist has not arrived by 10am, then there are only two morning hours left, but three afternoon hours left.</p>
<p>&#8216;<em>The choice to bet on the morning interval falls squarely under the purview of the Avoid Certain Frustration Principle. It is thus ruled out. Rationality, then, requires you to bet on the afternoon interval (the only choice that is not so ruled out). This is paradoxical, because your initial reasoning that there is nothing to favour one interval over the other seemed impeccable.</em>&#8216; &#8212; Hajek [ibid.]</p>
<p>If you&#8217;ve got a 50-50 chance of being correct, it doesn&#8217;t matter which you choose because you&#8217;ve got equal chance of being correct. And yet, here we are, knowing that, in the future, these even odds will change predictably against us if we choose the morning bet.</p>
<p>Isn&#8217;t that cool? Yes, yes it is.</p>
<p>Interestingly (perhaps worryingly), Hajek thinks that the Avoid Certain Frustration Principle should be challenged.</p>
<p>&#8216;<em>Sometimes it is rational to knowingly act against your rationally-formed future preferences, even when you know exactly how to avoid doing so.</em>&#8216; &#8212; Hajek [ibid.]</p>
<p>Over on his blog, Consequentially.org, Greg Restall says:</p>
<p>&#8216;<em>Hájek uses this example to motivate a rejection and revision of the <em>Avoid Certain Frustration Principle</em>.  I think that rejecting this principle seems sound, but I don’t think that this example shows it.  Here’s why: </em></p>
<p><em>I don’t think that in this case I am <em>certain</em> to be frustrated.  For I’m not <em>certain</em> that there is, in fact, an interval of time where I will regret making the bet. First, the bet might be cancelled for some reason – the guy might arrive <em>early</em>, contrary to his promise.  More interestingly, we might decide to go out and leave someone <em>else</em> to mind the house, only to return after 4pm. In that case, at any time after 8am, I don’t know that the guy hasn’t arrived, so I don’t have the same grounds for regret. So, I’m not <em>certain</em> that I’ll have my regret.</em>&#8216; &#8212; Restall [<a href="http://consequently.org/news/2006/04/20/on_the_cable_guy_paradox/">Source</a>]</p>
<p>For me, it seems that Restall bypasses the point. The point is that you&#8217;re given 50-50 odds and yet know that these odds are going to shift against you. Within the context of just the bet, these odds are going to change.</p>
<p>Imagine that you&#8217;re sitting an introduction to probability class. You&#8217;re asked the question: &#8216;You&#8217;ve got a six-sided fair dice and you roll it. What are the odds that you&#8217;ll roll a 6.&#8217; The correct answer is not: &#8216;Well, it would be one in six but it&#8217;s slightly less because you&#8217;re not accounting for your pet dog eating the dice when you roll it, or the <a href="http://lhc.web.cern.ch/lhc/">Large Hadron Collider</a> creates a miniature black hole which swallows your dice, or&#8230; &#38;c., &#38;c., &#38;c.&#8217;</p>
<p>Sure, you&#8217;re correct that these are all possible but they&#8217;re not really relevant to the problem at hand. Restall&#8217;s objection can be easily bypassed with the following.</p>
<p>&#8216;There is 100% certaintly event S will happen between time <em>t0</em> and time <em>t1</em>. Time <em>t0.5</em> is directly between <em>t0</em> and <em>t1</em>. P(S occurs after <em>t0.5</em>) = 0.5. If S has not happened by any time after <em>t0</em>, P(S occurs after <em>to.5</em>) increase.&#8217;</p>
<p>The Avoid Certain Frustration Principle still holds but worries about being mugged and the like no longer apply.</p>
<p>It is interesting that both Hajek and Restall suggest rejecting the ACF Principle and not rejecting the unstated Principle of Making Decisions Based Exclusively on Probability. As we know that the probability will change, we should ignore the odds and go with our rational deliberations. Probability is only one tool in our reasoning toolkit. Just as you don&#8217;t use a screwdriver to chop down the mightiest oak in the forest, you wouldn&#8217;t exclusively use probability to decide how you&#8217;ll place your bet.</p>
<p>Don&#8217;t get me wrong. That&#8217;s really, really <em>weird</em>. The origins of probability go back to when mathematicians would rip off people in ye ancient pubs by keeping the odds in their (the mathematicians&#8217;) favour. To say that there is a class of gamble which doesn&#8217;t come down to probability is a bit disturbing.</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
