<?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>bayes-formula &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/bayes-formula/</link>
	<description>Feed of posts on WordPress.com tagged "bayes-formula"</description>
	<pubDate>Wed, 19 Jun 2013 21:20:13 +0000</pubDate>

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

<item>
<title><![CDATA[Another Example of a Joint Distribution]]></title>
<link>http://probabilityandstatsproblemsolve.wordpress.com/2013/02/10/another-example-of-a-joint-distribution/</link>
<pubDate>Mon, 11 Feb 2013 05:34:27 +0000</pubDate>
<dc:creator>Dan Ma</dc:creator>
<guid>http://probabilityandstatsproblemsolve.wordpress.com/2013/02/10/another-example-of-a-joint-distribution/</guid>
<description><![CDATA[In an earlier post called An Example of a Joint Distribution, we worked a problem involving a joint]]></description>
<content:encoded><![CDATA[<p>In an earlier post called <a href="http://probabilityandstatsproblemsolve.wordpress.com/2012/01/27/an-example-of-a-joint-distribution-1/" target="_blank">An Example of a Joint Distribution</a>, we worked a problem involving a joint distribution that is constructed from taking product of a conditional distribution and a marginial distribution (both discrete distributions). In this post, we work on similar problems for the continuous case. We work problem A. Problem B is left as exercises.</p>
<p>_________________________________________________________________</p>
<p><em><strong>Problem A</strong></em><br />
Let <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> be a random variable with the density function <img src='http://s0.wp.com/latex.php?latex=f_X%28x%29%3D%5Calpha%5E2+%5C+x+%5C+e%5E%7B-%5Calpha+x%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='f_X(x)=&#92;alpha^2 &#92; x &#92; e^{-&#92;alpha x}' title='f_X(x)=&#92;alpha^2 &#92; x &#92; e^{-&#92;alpha x}' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=x%26%2362%3B0&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x&gt;0' title='x&gt;0' class='latex' />. For each realized value <img src='http://s0.wp.com/latex.php?latex=X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X=x' title='X=x' class='latex' />, the conditional variable <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x' title='Y &#92;lvert X=x' class='latex' /> is uniformly distributed over the interval <img src='http://s0.wp.com/latex.php?latex=%280%2Cx%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(0,x)' title='(0,x)' class='latex' />, denoted symbolically by <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx+%5Csim+U%280%2Cx%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x &#92;sim U(0,x)' title='Y &#92;lvert X=x &#92;sim U(0,x)' class='latex' />. Obtain solutions for the following:</p>
<ol>
<li>Discuss the joint density function for <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' />.</li>
<li>Calculate the marginal distribution of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' />, in particular the mean and variance.</li>
<li>Calculate the marginal distribution of <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' />, in particular, the density function, mean and variance.</li>
<li>Use the joint density in part A-1 to calculate the covariance <img src='http://s0.wp.com/latex.php?latex=Cov%28X%2CY%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Cov(X,Y)' title='Cov(X,Y)' class='latex' /> and the correlation coefficient <img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' />.</li>
</ol>
<p>_________________________________________________________________</p>
<p><em><strong>Problem B</strong></em><br />
Let <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> be a random variable with the density function <img src='http://s0.wp.com/latex.php?latex=f_X%28x%29%3D4+%5C+x%5E3&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='f_X(x)=4 &#92; x^3' title='f_X(x)=4 &#92; x^3' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=0%26%2360%3Bx%26%2360%3B1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='0&lt;x&lt;1' title='0&lt;x&lt;1' class='latex' />. For each realized value <img src='http://s0.wp.com/latex.php?latex=X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X=x' title='X=x' class='latex' />, the conditional variable <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x' title='Y &#92;lvert X=x' class='latex' /> is uniformly distributed over the interval <img src='http://s0.wp.com/latex.php?latex=%280%2Cx%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(0,x)' title='(0,x)' class='latex' />, denoted symbolically by <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx+%5Csim+U%280%2Cx%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x &#92;sim U(0,x)' title='Y &#92;lvert X=x &#92;sim U(0,x)' class='latex' />. Obtain solutions for the following:</p>
<ol>
<li>Discuss the joint density function for <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' />.</li>
<li>Calculate the marginal distribution of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' />, in particular the mean and variance.</li>
<li>Calculate the marginal distribution of <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' />, in particular, the density function, mean and variance.</li>
<li>Use the joint density in part B-1 to calculate the covariance <img src='http://s0.wp.com/latex.php?latex=Cov%28X%2CY%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Cov(X,Y)' title='Cov(X,Y)' class='latex' /> and the correlation coefficient <img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' />.</li>
</ol>
<p>_________________________________________________________________</p>
<p align="center"> <em><strong>Discussion of Problem A</strong></em> </p>
<p><em><strong>Problem A-1</strong></em></p>
<p>The support of the joint density function <img src='http://s0.wp.com/latex.php?latex=f_%7BX%2CY%7D%28x%2Cy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='f_{X,Y}(x,y)' title='f_{X,Y}(x,y)' class='latex' /> is the unbounded lower triangle in the xy-plane (see the shaded region in green in the figure below).</p>
<p><em><strong>Figure 1</strong></em><br />
<img src="http://probabilityandstatsproblemsolve.files.wordpress.com/2013/02/joint-distribution-support-11.jpg?w=440&#038;h=326" alt="" title=" Joint Distribution Support " width="440" height="326" class="alignnone size-full wp-image-704" /></p>
<p>The unbounded green region consists of vertical lines: for each <img src='http://s0.wp.com/latex.php?latex=x%26%2362%3B0&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x&gt;0' title='x&gt;0' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y' title='y' class='latex' /> ranges from <img src='http://s0.wp.com/latex.php?latex=0&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='0' title='0' class='latex' /> to <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' /> (the red vertical line in the figure below is one such line).</p>
<p><em><strong>Figure 2</strong></em><br />
<img src="http://probabilityandstatsproblemsolve.files.wordpress.com/2013/02/joint-distribution-support-2.jpg?w=440&#038;h=326" alt="" title=" Joint Distribution Support " width="440" height="326" class="alignnone size-full wp-image-708" /></p>
<p>For each point <img src='http://s0.wp.com/latex.php?latex=%28x%2Cy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(x,y)' title='(x,y)' class='latex' /> in each vertical line, we assign a density value <img src='http://s0.wp.com/latex.php?latex=f_%7BX%2CY%7D%28x%2Cy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='f_{X,Y}(x,y)' title='f_{X,Y}(x,y)' class='latex' /> which is a positive number. Taken together these density values sum to 1.0 and describe the behavior of the variables <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> across the green region. If a realized value of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' />, then the conditional density function of <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x' title='Y &#92;lvert X=x' class='latex' /> is:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+f_%7BY+%5Clvert+X%3Dx%7D%28y+%5Clvert+x%29%3D%5Cfrac%7Bf_%7BX%2CY%7D%28x%2Cy%29%7D%7Bf_X%28x%29%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle f_{Y &#92;lvert X=x}(y &#92;lvert x)=&#92;frac{f_{X,Y}(x,y)}{f_X(x)}' title='&#92;displaystyle f_{Y &#92;lvert X=x}(y &#92;lvert x)=&#92;frac{f_{X,Y}(x,y)}{f_X(x)}' class='latex' />
</ul>
<p>Thus we have <img src='http://s0.wp.com/latex.php?latex=f_%7BX%2CY%7D%28x%2Cy%29+%3D+f_%7BY+%5Clvert+X%3Dx%7D%28y+%5Clvert+x%29+%5Ctimes+f_X%28x%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='f_{X,Y}(x,y) = f_{Y &#92;lvert X=x}(y &#92;lvert x) &#92;times f_X(x)' title='f_{X,Y}(x,y) = f_{Y &#92;lvert X=x}(y &#92;lvert x) &#92;times f_X(x)' class='latex' />. In our problem at hand, the joint density function is:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+f_%7BX%2CY%7D%28x%2Cy%29%26%2338%3B%3Df_%7BY+%5Clvert+X%3Dx%7D%28y+%5Clvert+x%29+%5Ctimes+f_X%28x%29+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7Bx%7D+%5Ctimes+%5Calpha%5E2+%5C+x+%5C+e%5E%7B-%5Calpha+x%7D+%5C%5C%26%2338%3B%3D%5Calpha%5E2+%5C+e%5E%7B-%5Calpha+x%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} f_{X,Y}(x,y)&amp;=f_{Y &#92;lvert X=x}(y &#92;lvert x) &#92;times f_X(x) &#92;&#92;&amp;=&#92;frac{1}{x} &#92;times &#92;alpha^2 &#92; x &#92; e^{-&#92;alpha x} &#92;&#92;&amp;=&#92;alpha^2 &#92; e^{-&#92;alpha x}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} f_{X,Y}(x,y)&amp;=f_{Y &#92;lvert X=x}(y &#92;lvert x) &#92;times f_X(x) &#92;&#92;&amp;=&#92;frac{1}{x} &#92;times &#92;alpha^2 &#92; x &#92; e^{-&#92;alpha x} &#92;&#92;&amp;=&#92;alpha^2 &#92; e^{-&#92;alpha x}  &#92;end{aligned}' class='latex' />
</ul>
<p>As indicated above, the support of <img src='http://s0.wp.com/latex.php?latex=f_%7BX%2CY%7D%28x%2Cy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='f_{X,Y}(x,y)' title='f_{X,Y}(x,y)' class='latex' /> is the region <img src='http://s0.wp.com/latex.php?latex=x%26%2362%3B0&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x&gt;0' title='x&gt;0' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=0%26%2360%3By%26%2360%3Bx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='0&lt;y&lt;x' title='0&lt;y&lt;x' class='latex' /> (the region shaded green in the above figures).</p>
<p><em><strong>Problem A-2</strong></em></p>
<p>The unconditional density function of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=f_X%28x%29%3D%5Calpha%5E2+%5C+x+%5C+e%5E%7B-%5Calpha+x%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='f_X(x)=&#92;alpha^2 &#92; x &#92; e^{-&#92;alpha x}' title='f_X(x)=&#92;alpha^2 &#92; x &#92; e^{-&#92;alpha x}' class='latex' /> (given above in the problem) is the density function of the sum of two independent exponential variables with the common density <img src='http://s0.wp.com/latex.php?latex=f%28x%29%3D%5Calpha+e%5E%7B-%5Calpha+x%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='f(x)=&#92;alpha e^{-&#92;alpha x}' title='f(x)=&#92;alpha e^{-&#92;alpha x}' class='latex' /> (see <a href="http://probabilityexam.wordpress.com/2011/05/26/examples-of-convolution-continuous-case/" target="_blank">this blog post</a> for the derivation using convolution method). Since <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> is the independent sum of two identical exponential distributions, the mean and variance of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> is twice that of the same item of the exponential distribution. We have:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+E%28X%29%3D%5Cfrac%7B2%7D%7B%5Calpha%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle E(X)=&#92;frac{2}{&#92;alpha}' title='&#92;displaystyle E(X)=&#92;frac{2}{&#92;alpha}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+Var%28X%29%3D%5Cfrac%7B2%7D%7B%5Calpha%5E2%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle Var(X)=&#92;frac{2}{&#92;alpha^2}' title='&#92;displaystyle Var(X)=&#92;frac{2}{&#92;alpha^2}' class='latex' /></p>
</ul>
<p><em><strong>Problem A-3</strong></em></p>
<p>To find the marginal density of <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' />, for each applicable <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y' title='y' class='latex' />, we need to sum out the <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' />. According to the following figure, for each <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y' title='y' class='latex' />, we sum out all <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' /> values in a horizontal line such that <img src='http://s0.wp.com/latex.php?latex=y%26%2360%3Bx%26%2360%3B%5Cinfty&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y&lt;x&lt;&#92;infty' title='y&lt;x&lt;&#92;infty' class='latex' /> (see the blue horizontal line).</p>
<p><em><strong>Figure 3</strong></em><br />
<img src="http://probabilityandstatsproblemsolve.files.wordpress.com/2013/02/joint-distribution-support-3.jpg?w=440&#038;h=326" alt="" title=" Joint Distribution Support " width="440" height="326" class="alignnone size-full wp-image-708" /></p>
<p>Thus we have:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+f_Y%28y%29%26%2338%3B%3D%5Cint_y%5E%5Cinfty+f_%7BX%2CY%7D%28x%2Cy%29+%5C+dy+%5C+dx+%5C%5C%26%2338%3B%3D%5Cint_y%5E%5Cinfty+%5Calpha%5E2+%5C+e%5E%7B-%5Calpha+x%7D+%5C+dy+%5C+dx+%5C%5C%26%2338%3B%3D%5Calpha+%5Cint_y%5E%5Cinfty+%5Calpha+%5C+e%5E%7B-%5Calpha+x%7D+%5C+dy+%5C+dx+%5C%5C%26%2338%3B%3D+%5Calpha+e%5E%7B-%5Calpha+y%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} f_Y(y)&amp;=&#92;int_y^&#92;infty f_{X,Y}(x,y) &#92; dy &#92; dx &#92;&#92;&amp;=&#92;int_y^&#92;infty &#92;alpha^2 &#92; e^{-&#92;alpha x} &#92; dy &#92; dx &#92;&#92;&amp;=&#92;alpha &#92;int_y^&#92;infty &#92;alpha &#92; e^{-&#92;alpha x} &#92; dy &#92; dx &#92;&#92;&amp;= &#92;alpha e^{-&#92;alpha y}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} f_Y(y)&amp;=&#92;int_y^&#92;infty f_{X,Y}(x,y) &#92; dy &#92; dx &#92;&#92;&amp;=&#92;int_y^&#92;infty &#92;alpha^2 &#92; e^{-&#92;alpha x} &#92; dy &#92; dx &#92;&#92;&amp;=&#92;alpha &#92;int_y^&#92;infty &#92;alpha &#92; e^{-&#92;alpha x} &#92; dy &#92; dx &#92;&#92;&amp;= &#92;alpha e^{-&#92;alpha y}  &#92;end{aligned}' class='latex' />
</ul>
<p>Thus the marginal distribution of <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> is an exponential distribution. The mean and variance of <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> are:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+E%28Y%29%3D%5Cfrac%7B1%7D%7B%5Calpha%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle E(Y)=&#92;frac{1}{&#92;alpha}' title='&#92;displaystyle E(Y)=&#92;frac{1}{&#92;alpha}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+Var%28Y%29%3D%5Cfrac%7B1%7D%7B%5Calpha%5E2%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle Var(Y)=&#92;frac{1}{&#92;alpha^2}' title='&#92;displaystyle Var(Y)=&#92;frac{1}{&#92;alpha^2}' class='latex' /></p>
</ul>
<p><em><strong>Problem A-4</strong></em></p>
<p>The covariance of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> is defined as <img src='http://s0.wp.com/latex.php?latex=Cov%28X%2CY%29%3DE%5B%28X-%5Cmu_X%29+%28Y-%5Cmu_Y%29%5D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Cov(X,Y)=E[(X-&#92;mu_X) (Y-&#92;mu_Y)]' title='Cov(X,Y)=E[(X-&#92;mu_X) (Y-&#92;mu_Y)]' class='latex' />, which is equivalent to:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+Cov%28X%2CY%29%3DE%28X+Y%29-%5Cmu_X+%5Cmu_Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle Cov(X,Y)=E(X Y)-&#92;mu_X &#92;mu_Y' title='&#92;displaystyle Cov(X,Y)=E(X Y)-&#92;mu_X &#92;mu_Y' class='latex' />
</ul>
<p>where <img src='http://s0.wp.com/latex.php?latex=%5Cmu_X%3DE%28X%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mu_X=E(X)' title='&#92;mu_X=E(X)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cmu_Y%3DE%28Y%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mu_Y=E(Y)' title='&#92;mu_Y=E(Y)' class='latex' />. Knowing the joint density <img src='http://s0.wp.com/latex.php?latex=f_%7BX%2CY%7D%28x%2Cy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='f_{X,Y}(x,y)' title='f_{X,Y}(x,y)' class='latex' />, we can calculate <img src='http://s0.wp.com/latex.php?latex=Cov%28X%2CY%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Cov(X,Y)' title='Cov(X,Y)' class='latex' /> directly. We have:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+E%28X+Y%29%26%2338%3B%3D%5Cint_0%5E%5Cinfty+%5Cint_0%5Ex++xy+%5C+f_%7BX%2CY%7D%28x%2Cy%29+%5C+dy+%5C+dx+%5C%5C%26%2338%3B%3D%5Cint_0%5E%5Cinfty+%5Cint_0%5Ex+xy+%5C+%5Calpha%5E2+%5C+e%5E%7B-%5Calpha+x%7D+%5C+dy+%5C+dx+%5C%5C%26%2338%3B%3D%5Cint_0%5E%5Cinfty+%5Cfrac%7B%5Calpha%5E2%7D%7B2%7D+%5C+x%5E3+%5C+e%5E%7B-%5Calpha+x%7D+%5C+dy+%5C+dx+%5C%5C%26%2338%3B%3D+%5Cfrac%7B3%7D%7B%5Calpha%5E2%7D+%5Cint_0%5E%5Cinfty+%5Cfrac%7B%5Calpha%5E4%7D%7B3%21%7D+%5C+x%5E%7B4-1%7D+%5C+e%5E%7B-%5Calpha+x%7D+%5C+dy+%5C+dx+%5C%5C%26%2338%3B%3D+%5Cfrac%7B3%7D%7B%5Calpha%5E2%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} E(X Y)&amp;=&#92;int_0^&#92;infty &#92;int_0^x  xy &#92; f_{X,Y}(x,y) &#92; dy &#92; dx &#92;&#92;&amp;=&#92;int_0^&#92;infty &#92;int_0^x xy &#92; &#92;alpha^2 &#92; e^{-&#92;alpha x} &#92; dy &#92; dx &#92;&#92;&amp;=&#92;int_0^&#92;infty &#92;frac{&#92;alpha^2}{2} &#92; x^3 &#92; e^{-&#92;alpha x} &#92; dy &#92; dx &#92;&#92;&amp;= &#92;frac{3}{&#92;alpha^2} &#92;int_0^&#92;infty &#92;frac{&#92;alpha^4}{3!} &#92; x^{4-1} &#92; e^{-&#92;alpha x} &#92; dy &#92; dx &#92;&#92;&amp;= &#92;frac{3}{&#92;alpha^2} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} E(X Y)&amp;=&#92;int_0^&#92;infty &#92;int_0^x  xy &#92; f_{X,Y}(x,y) &#92; dy &#92; dx &#92;&#92;&amp;=&#92;int_0^&#92;infty &#92;int_0^x xy &#92; &#92;alpha^2 &#92; e^{-&#92;alpha x} &#92; dy &#92; dx &#92;&#92;&amp;=&#92;int_0^&#92;infty &#92;frac{&#92;alpha^2}{2} &#92; x^3 &#92; e^{-&#92;alpha x} &#92; dy &#92; dx &#92;&#92;&amp;= &#92;frac{3}{&#92;alpha^2} &#92;int_0^&#92;infty &#92;frac{&#92;alpha^4}{3!} &#92; x^{4-1} &#92; e^{-&#92;alpha x} &#92; dy &#92; dx &#92;&#92;&amp;= &#92;frac{3}{&#92;alpha^2} &#92;end{aligned}' class='latex' />
</ul>
<p>Note that the last integrand in the last integral in the above derivation is that of a Gamma distribution (hence the integral is 1.0). Now the covariance of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> is:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+Cov%28X%2CY%29%3D%5Cfrac%7B3%7D%7B%5Calpha%5E2%7D-%5Cfrac%7B2%7D%7B%5Calpha%7D+%5Cfrac%7B1%7D%7B%5Calpha%7D%3D%5Cfrac%7B1%7D%7B%5Calpha%5E2%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle Cov(X,Y)=&#92;frac{3}{&#92;alpha^2}-&#92;frac{2}{&#92;alpha} &#92;frac{1}{&#92;alpha}=&#92;frac{1}{&#92;alpha^2}' title='&#92;displaystyle Cov(X,Y)=&#92;frac{3}{&#92;alpha^2}-&#92;frac{2}{&#92;alpha} &#92;frac{1}{&#92;alpha}=&#92;frac{1}{&#92;alpha^2}' class='latex' />
</ul>
<p>The following is the calculation of the correlation coefficient:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+%5Crho%26%2338%3B%3D%5Cfrac%7BCov%28X%2CY%29%7D%7B%5Csigma_X+%5C+%5Csigma_Y%7D+%3D+%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B%5Calpha%5E2%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B%5Csqrt%7B2%7D%7D%7B%5Calpha%7D+%5C+%5Cfrac%7B1%7D%7B%5Calpha%7D%7D+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B%5Csqrt%7B2%7D%7D+%3D+0.7071+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} &#92;rho&amp;=&#92;frac{Cov(X,Y)}{&#92;sigma_X &#92; &#92;sigma_Y} = &#92;frac{&#92;displaystyle &#92;frac{1}{&#92;alpha^2}}{&#92;displaystyle &#92;frac{&#92;sqrt{2}}{&#92;alpha} &#92; &#92;frac{1}{&#92;alpha}} &#92;&#92;&amp;=&#92;frac{1}{&#92;sqrt{2}} = 0.7071 &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} &#92;rho&amp;=&#92;frac{Cov(X,Y)}{&#92;sigma_X &#92; &#92;sigma_Y} = &#92;frac{&#92;displaystyle &#92;frac{1}{&#92;alpha^2}}{&#92;displaystyle &#92;frac{&#92;sqrt{2}}{&#92;alpha} &#92; &#92;frac{1}{&#92;alpha}} &#92;&#92;&amp;=&#92;frac{1}{&#92;sqrt{2}} = 0.7071 &#92;end{aligned}' class='latex' />
</ul>
<p>Even without the calculation of <img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' />, we know that <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> are positively and quite strongly correlated. The conditional distribution of <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x' title='Y &#92;lvert X=x' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=U%280%2Cx%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='U(0,x)' title='U(0,x)' class='latex' /> which increases with <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' />. The calculation of <img src='http://s0.wp.com/latex.php?latex=Cov%28X%2CY%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Cov(X,Y)' title='Cov(X,Y)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;rho' title='&#92;rho' class='latex' /> confirms our observation.</p>
<p>_________________________________________________________________</p>
<p align="center"> <em><strong>Answers for Problem B</strong></em> </p>
<p><em><strong>Problem B-1</strong></em></p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+f_%7BX%2CY%7D%28x%2Cy%29%3D4+%5C+x%5E2&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle f_{X,Y}(x,y)=4 &#92; x^2' title='&#92;displaystyle f_{X,Y}(x,y)=4 &#92; x^2' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=x%26%2362%3B0&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x&gt;0' title='x&gt;0' class='latex' />, and <img src='http://s0.wp.com/latex.php?latex=0%26%2360%3By%26%2360%3Bx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='0&lt;y&lt;x' title='0&lt;y&lt;x' class='latex' />.
</ul>
<p><em><strong>Problem B-2</strong></em></p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+E%28X%29%3D%5Cfrac%7B4%7D%7B5%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle E(X)=&#92;frac{4}{5}' title='&#92;displaystyle E(X)=&#92;frac{4}{5}' class='latex' /><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+Var%28X%29%3D%5Cfrac%7B2%7D%7B75%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle Var(X)=&#92;frac{2}{75}' title='&#92;displaystyle Var(X)=&#92;frac{2}{75}' class='latex' />
</ul>
<p><em><strong>Problem B-3</strong></em></p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+f_Y%28y%29%3D%5Cfrac%7B4%7D%7B3%7D+%5C+%281-+y%5E3%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle f_Y(y)=&#92;frac{4}{3} &#92; (1- y^3)' title='&#92;displaystyle f_Y(y)=&#92;frac{4}{3} &#92; (1- y^3)' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+E%28Y%29%3D%5Cfrac%7B2%7D%7B5%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle E(Y)=&#92;frac{2}{5}' title='&#92;displaystyle E(Y)=&#92;frac{2}{5}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+Var%28Y%29%3D%5Cfrac%7B14%7D%7B225%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle Var(Y)=&#92;frac{14}{225}' title='&#92;displaystyle Var(Y)=&#92;frac{14}{225}' class='latex' />
</ul>
<p><em><strong>Problem B-4</strong></em></p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+Cov%28X%2CY%29%3D%5Cfrac%7B1%7D%7B75%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle Cov(X,Y)=&#92;frac{1}{75}' title='&#92;displaystyle Cov(X,Y)=&#92;frac{1}{75}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Crho+%3D+%5Cfrac%7B%5Csqrt%7B3%7D%7D%7B2+%5Csqrt%7B7%7D%7D%3D0.327327&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;rho = &#92;frac{&#92;sqrt{3}}{2 &#92;sqrt{7}}=0.327327' title='&#92;displaystyle &#92;rho = &#92;frac{&#92;sqrt{3}}{2 &#92;sqrt{7}}=0.327327' class='latex' />
</ul>
<p>_________________________________________________________________</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Mixing Bowls of Balls]]></title>
<link>http://probabilityandstatsproblemsolve.wordpress.com/2013/02/05/mixing-bowls-of-balls/</link>
<pubDate>Wed, 06 Feb 2013 07:19:15 +0000</pubDate>
<dc:creator>Dan Ma</dc:creator>
<guid>http://probabilityandstatsproblemsolve.wordpress.com/2013/02/05/mixing-bowls-of-balls/</guid>
<description><![CDATA[We present problems involving mixture distributions in the context of choosing bowls of balls, as we]]></description>
<content:encoded><![CDATA[<p>We present problems involving mixture distributions in the context of choosing bowls of balls, as well as related problems involving Bayes&#8217; formula. Problem 1a and Problem 1b are discussed. Problem 2a and Problem 2b are left as exercises.</p>
<p>____________________________________________________________</p>
<p><em><strong>Problem 1a</strong></em><br />
There are two identical looking bowls. Let&#8217;s call them Bowl 1 and Bowl 2. In Bowl 1, there are 1 red ball and 4 white balls. In Bowl 2, there are 4 red balls and 1 white ball. One bowl is selected at random and its identify is kept from you. From the chosen bowl, you randomly select 5 balls (one at a time, putting it back before picking another one). What is the expected number of red balls in the 5 selected balls? What the variance of the number of red balls?</p>
<p><em><strong>Problem 1b</strong></em><br />
Use the same information in Problem 1a. Suppose there are 3 red balls in the 5 selected balls. What is the probability that the unknown chosen bowl is Bowl 1? What is the probability that the unknown chosen bowl is Bowl 2?</p>
<p>____________________________________________________________</p>
<p><em><strong>Problem 2a</strong></em><br />
There are three identical looking bowls. Let&#8217;s call them Bowl 1, Bowl 2 and Bowl 3. Bowl 1 has 1 red ball and 9 white balls. Bowl 2 has 4 red balls and 6 white balls. Bowl 3 has 6 red balls and 4 white balls. A bowl is chosen according to the following probabilities: </p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%5Ctext%7BProbabilities%3A%7D+%5C+%5C+%5C+%5C+%5C+%26%2338%3BP%28%5Ctext%7BBowl+1%7D%29%3D0.6+%5C%5C%26%2338%3BP%28%5Ctext%7BBowl+2%7D%29%3D0.3+%5C%5C%26%2338%3BP%28%5Ctext%7BBowl+3%7D%29%3D0.1+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}&#92;text{Probabilities:} &#92; &#92; &#92; &#92; &#92; &amp;P(&#92;text{Bowl 1})=0.6 &#92;&#92;&amp;P(&#92;text{Bowl 2})=0.3 &#92;&#92;&amp;P(&#92;text{Bowl 3})=0.1 &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}&#92;text{Probabilities:} &#92; &#92; &#92; &#92; &#92; &amp;P(&#92;text{Bowl 1})=0.6 &#92;&#92;&amp;P(&#92;text{Bowl 2})=0.3 &#92;&#92;&amp;P(&#92;text{Bowl 3})=0.1 &#92;end{aligned}' class='latex' /></p>
<p>The bowl is chosen so that its identity is kept from you. From the chosen bowl, 5 balls are selected sequentially with replacement. What is the expected number of red balls in the 5 selected balls? What is the variance of the number of red balls?</p>
<p><em><strong>Problem 2b</strong></em><br />
Use the same information in Problem 2a. Given that there are 4 red balls in the 5 selected balls, what is the probability that the chosen bowl is Bowl i, where <img src='http://s0.wp.com/latex.php?latex=i+%3D+1%2C2%2C3&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='i = 1,2,3' title='i = 1,2,3' class='latex' />?</p>
<p>____________________________________________________________<br />
<em><strong>Solution &#8211; Problem 1a</strong></em></p>
<p>Problem 1a is a mixture of two binomial distributions and is similar to Problem 1 in the previous post <a href="http://probabilityandstatsproblemsolve.wordpress.com/2012/01/20/mixing-binomial-distributions/" target="_blank">Mixing Binomial Distributions</a>. Let <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> be the number of red balls in the 5 balls chosen from the unknown bowl. The following is the probability function:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%28X%3Dx%29%3D0.5+%5Cbinom%7B5%7D%7Bx%7D+%5Cbiggl%5B%5Cfrac%7B1%7D%7B5%7D%5Cbiggr%5D%5Ex+%5Cbiggl%5B%5Cfrac%7B4%7D%7B5%7D%5Cbiggr%5D%5E%7B4-x%7D%2B0.5+%5Cbinom%7B5%7D%7Bx%7D+%5Cbiggl%5B%5Cfrac%7B4%7D%7B5%7D%5Cbiggr%5D%5Ex+%5Cbiggl%5B%5Cfrac%7B1%7D%7B5%7D%5Cbiggr%5D%5E%7B4-x%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle P(X=x)=0.5 &#92;binom{5}{x} &#92;biggl[&#92;frac{1}{5}&#92;biggr]^x &#92;biggl[&#92;frac{4}{5}&#92;biggr]^{4-x}+0.5 &#92;binom{5}{x} &#92;biggl[&#92;frac{4}{5}&#92;biggr]^x &#92;biggl[&#92;frac{1}{5}&#92;biggr]^{4-x}' title='&#92;displaystyle P(X=x)=0.5 &#92;binom{5}{x} &#92;biggl[&#92;frac{1}{5}&#92;biggr]^x &#92;biggl[&#92;frac{4}{5}&#92;biggr]^{4-x}+0.5 &#92;binom{5}{x} &#92;biggl[&#92;frac{4}{5}&#92;biggr]^x &#92;biggl[&#92;frac{1}{5}&#92;biggr]^{4-x}' class='latex' />
</ul>
<p>where <img src='http://s0.wp.com/latex.php?latex=X%3D0%2C1%2C2%2C3%2C4%2C5&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X=0,1,2,3,4,5' title='X=0,1,2,3,4,5' class='latex' />.</p>
<p>The above probability function is the weighted average of two conditional binomial distributions (with equal weights). Thus the mean (first moment) and the second moment of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> would be the weighted averages of the two same items of the conditional distributions. We have:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+E%28X%29%3D0.5+%5Cbiggl%5B+5+%5Ctimes+%5Cfrac%7B1%7D%7B5%7D+%5Cbiggr%5D+%2B+0.5+%5Cbiggl%5B+5+%5Ctimes+%5Cfrac%7B4%7D%7B5%7D+%5Cbiggr%5D+%3D%5Cfrac%7B5%7D%7B2%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle E(X)=0.5 &#92;biggl[ 5 &#92;times &#92;frac{1}{5} &#92;biggr] + 0.5 &#92;biggl[ 5 &#92;times &#92;frac{4}{5} &#92;biggr] =&#92;frac{5}{2}' title='&#92;displaystyle E(X)=0.5 &#92;biggl[ 5 &#92;times &#92;frac{1}{5} &#92;biggr] + 0.5 &#92;biggl[ 5 &#92;times &#92;frac{4}{5} &#92;biggr] =&#92;frac{5}{2}' class='latex' />
</ul>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+E%28X%5E2%29%3D0.5+%5Cbiggl%5B+5+%5Ctimes+%5Cfrac%7B1%7D%7B5%7D+%5Ctimes+%5Cfrac%7B4%7D%7B5%7D+%2B%5Cbiggl%28+5+%5Ctimes+%5Cfrac%7B1%7D%7B5%7D+%5Cbiggr%29%5E2+%5Cbiggr%5D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle E(X^2)=0.5 &#92;biggl[ 5 &#92;times &#92;frac{1}{5} &#92;times &#92;frac{4}{5} +&#92;biggl( 5 &#92;times &#92;frac{1}{5} &#92;biggr)^2 &#92;biggr]' title='&#92;displaystyle E(X^2)=0.5 &#92;biggl[ 5 &#92;times &#92;frac{1}{5} &#92;times &#92;frac{4}{5} +&#92;biggl( 5 &#92;times &#92;frac{1}{5} &#92;biggr)^2 &#92;biggr]' class='latex' /></p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2B+0.5+%5Cbiggl%5B+5+%5Ctimes+%5Cfrac%7B4%7D%7B5%7D+%5Ctimes+%5Cfrac%7B1%7D%7B5%7D+%2B%5Cbiggl%28+5+%5Ctimes+%5Cfrac%7B4%7D%7B5%7D+%5Cbiggr%29%5E2+%5Cbiggr%5D%3D%5Cfrac%7B93%7D%7B10%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle + 0.5 &#92;biggl[ 5 &#92;times &#92;frac{4}{5} &#92;times &#92;frac{1}{5} +&#92;biggl( 5 &#92;times &#92;frac{4}{5} &#92;biggr)^2 &#92;biggr]=&#92;frac{93}{10}' title='&#92;displaystyle + 0.5 &#92;biggl[ 5 &#92;times &#92;frac{4}{5} &#92;times &#92;frac{1}{5} +&#92;biggl( 5 &#92;times &#92;frac{4}{5} &#92;biggr)^2 &#92;biggr]=&#92;frac{93}{10}' class='latex' />
</ul>
</ul>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+Var%28X%29%3D%5Cfrac%7B93%7D%7B10%7D+-+%5Cbiggl%28+%5Cfrac%7B5%7D%7B2%7D+%5Cbiggr%29%5E2%3D%5Cfrac%7B61%7D%7B20%7D%3D3.05&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle Var(X)=&#92;frac{93}{10} - &#92;biggl( &#92;frac{5}{2} &#92;biggr)^2=&#92;frac{61}{20}=3.05' title='&#92;displaystyle Var(X)=&#92;frac{93}{10} - &#92;biggl( &#92;frac{5}{2} &#92;biggr)^2=&#92;frac{61}{20}=3.05' class='latex' />
</ul>
<p>See <a href="http://probabilityandstatsproblemsolve.wordpress.com/2012/01/20/mixing-binomial-distributions/" target="_blank">Mixing Binomial Distributions</a> for a more detailed explanation of the calculation.</p>
<p>____________________________________________________________</p>
<p><em><strong>Solution &#8211; Problem 1b</strong></em><br />
As above, let <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> be the number of red balls in the 5 selected balls. The probability <img src='http://s0.wp.com/latex.php?latex=P%28X%3D3%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=3)' title='P(X=3)' class='latex' /> must account for the two bowls. Thus it is obtained by mixing two binomial probabilities:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%28X%3D3%29%3D%5Cfrac%7B1%7D%7B2%7D+%5Cbinom%7B5%7D%7B3%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B5%7D%5Cbiggr%29%5E3+%5Cbiggl%28%5Cfrac%7B4%7D%7B5%7D%5Cbiggr%29%5E2%2B%5Cfrac%7B1%7D%7B2%7D+%5Cbinom%7B5%7D%7B3%7D+%5Cbiggl%28%5Cfrac%7B4%7D%7B5%7D%5Cbiggr%29%5E3+%5Cbiggl%28%5Cfrac%7B1%7D%7B5%7D%5Cbiggr%29%5E2&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle P(X=3)=&#92;frac{1}{2} &#92;binom{5}{3} &#92;biggl(&#92;frac{1}{5}&#92;biggr)^3 &#92;biggl(&#92;frac{4}{5}&#92;biggr)^2+&#92;frac{1}{2} &#92;binom{5}{3} &#92;biggl(&#92;frac{4}{5}&#92;biggr)^3 &#92;biggl(&#92;frac{1}{5}&#92;biggr)^2' title='&#92;displaystyle P(X=3)=&#92;frac{1}{2} &#92;binom{5}{3} &#92;biggl(&#92;frac{1}{5}&#92;biggr)^3 &#92;biggl(&#92;frac{4}{5}&#92;biggr)^2+&#92;frac{1}{2} &#92;binom{5}{3} &#92;biggl(&#92;frac{4}{5}&#92;biggr)^3 &#92;biggl(&#92;frac{1}{5}&#92;biggr)^2' class='latex' />
</ul>
<p>The following is the conditional probability <img src='http://s0.wp.com/latex.php?latex=P%28%5Ctext%7BBowl+1%7D+%5Clvert+X%3D3%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(&#92;text{Bowl 1} &#92;lvert X=3)' title='P(&#92;text{Bowl 1} &#92;lvert X=3)' class='latex' />:</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+P%28%5Ctext%7BBowl+1%7D+%5Clvert+X%3D3%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B2%7D+%5Cbinom%7B5%7D%7B3%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B5%7D%5Cbiggr%29%5E3+%5Cbiggl%28%5Cfrac%7B4%7D%7B5%7D%5Cbiggr%29%5E2%7D%7BP%28X%3D3%29%7D+%5C%5C%26%2338%3B%3D%5Cfrac%7B16%7D%7B16%2B64%7D+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B5%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} P(&#92;text{Bowl 1} &#92;lvert X=3)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{2} &#92;binom{5}{3} &#92;biggl(&#92;frac{1}{5}&#92;biggr)^3 &#92;biggl(&#92;frac{4}{5}&#92;biggr)^2}{P(X=3)} &#92;&#92;&amp;=&#92;frac{16}{16+64} &#92;&#92;&amp;=&#92;frac{1}{5} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} P(&#92;text{Bowl 1} &#92;lvert X=3)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{2} &#92;binom{5}{3} &#92;biggl(&#92;frac{1}{5}&#92;biggr)^3 &#92;biggl(&#92;frac{4}{5}&#92;biggr)^2}{P(X=3)} &#92;&#92;&amp;=&#92;frac{16}{16+64} &#92;&#92;&amp;=&#92;frac{1}{5} &#92;end{aligned}' class='latex' />
</ul>
<p>Thus <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%28%5Ctext%7BBowl+1%7D+%5Clvert+X%3D3%29%3D%5Cfrac%7B4%7D%7B5%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle P(&#92;text{Bowl 1} &#92;lvert X=3)=&#92;frac{4}{5}' title='&#92;displaystyle P(&#92;text{Bowl 1} &#92;lvert X=3)=&#92;frac{4}{5}' class='latex' /></p>
<p>____________________________________________________________</p>
<p><em><strong>Answers for Problem 2</strong></em></p>
<p>Problem 2a<br />
Let <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> be the number of red balls in the 5 balls chosen random from the unknown bowl.</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=E%28X%29%3D1.2&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='E(X)=1.2' title='E(X)=1.2' class='latex' /><br />
<img src='http://s0.wp.com/latex.php?latex=Var%28X%29%3D1.56&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Var(X)=1.56' title='Var(X)=1.56' class='latex' />
</ul>
<p>Problem 2b</p>
<ul>
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%28%5Ctext%7BBowl+1%7D+%5Clvert+X%3D4%29%3D%5Cfrac%7B27%7D%7B4923%7D%3D0.0055&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle P(&#92;text{Bowl 1} &#92;lvert X=4)=&#92;frac{27}{4923}=0.0055' title='&#92;displaystyle P(&#92;text{Bowl 1} &#92;lvert X=4)=&#92;frac{27}{4923}=0.0055' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%28%5Ctext%7BBowl+2%7D+%5Clvert+X%3D4%29%3D%5Cfrac%7B2304%7D%7B4923%7D%3D0.4680&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle P(&#92;text{Bowl 2} &#92;lvert X=4)=&#92;frac{2304}{4923}=0.4680' title='&#92;displaystyle P(&#92;text{Bowl 2} &#92;lvert X=4)=&#92;frac{2304}{4923}=0.4680' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%28%5Ctext%7BBowl+3%7D+%5Clvert+X%3D4%29%3D%5Cfrac%7B2592%7D%7B4923%7D%3D0.5265&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle P(&#92;text{Bowl 3} &#92;lvert X=4)=&#92;frac{2592}{4923}=0.5265' title='&#92;displaystyle P(&#92;text{Bowl 3} &#92;lvert X=4)=&#92;frac{2592}{4923}=0.5265' class='latex' />
</ul>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Bayesian Visual Graphs]]></title>
<link>http://prateekchandrajha.wordpress.com/2013/01/27/bayesian-visual-graphs/</link>
<pubDate>Sun, 27 Jan 2013 10:30:36 +0000</pubDate>
<dc:creator>prateekchandrajha</dc:creator>
<guid>http://prateekchandrajha.wordpress.com/2013/01/27/bayesian-visual-graphs/</guid>
<description><![CDATA[I enjoyed how the 3.16 section of the Stanford Artificial Intelligence class presented the Bayes the]]></description>
<content:encoded><![CDATA[I enjoyed how the 3.16 section of the Stanford Artificial Intelligence class presented the Bayes the]]></content:encoded>
</item>
<item>
<title><![CDATA[Bayes on the radio (regrets)]]></title>
<link>http://xianblog.wordpress.com/2012/11/13/bayes-on-the-radio-regrets/</link>
<pubDate>Tue, 13 Nov 2012 10:13:56 +0000</pubDate>
<dc:creator>xi'an</dc:creator>
<guid>http://xianblog.wordpress.com/2012/11/13/bayes-on-the-radio-regrets/</guid>
<description><![CDATA[While running this morning I was reconsidering (over and over) my discussion of Bayes&#8217; formula]]></description>
<content:encoded><![CDATA[<p style="text-align:justify;"><strong><a href="http://xianblog.files.wordpress.com/2012/11/dsc_3474.jpg"><img class="aligncenter  wp-image-18465" title="sculpture on an Hausmanian building, rue de Grenelle, Paris, Nov. 10, 2012" alt="" src="http://xianblog.files.wordpress.com/2012/11/dsc_3474-e1352749948890.jpg?w=450&#038;h=257" height="257" width="450" /></a>W</strong>hile running this morning I was reconsidering (over and over) my discussion of <a title="Bayes on the radio" href="http://xianblog.wordpress.com/2012/11/10/bayes-on-the-radio/">Bayes&#8217; formula on the radio</a> and thought I should have turned the presentation of Bayes&#8217; theorem differently. I spent much too much time on the math side of Bayes&#8217; formula and not enough on the stat side. The math aspect is not of real importance as it is <a title="Bayes’ Theorem" href="http://xianblog.wordpress.com/2009/01/22/bayes-theorem/">a mere reformulation</a> of conditional probabilities. The stat side is what matters as introducing a (prior) distribution on the parameter (space) is the #1 specificity of Bayesian statistics&#8230;. And the focus point of most criticisms, as expressed later by the physicist working on the Higgs boson, <a href="http://www.franceculture.fr/sites/default/files/imagecache/ressource_full/2012/11/10/4533285/Dirk-Zerwas.png">Dirk Zerwas</a>.</p>
<p style="text-align:justify;"><strong>I</strong> also regret not mentioning that Bayes&#8217; formula was taught in French high schools, as illustrated by the anecdote of <a title="Bayes at the Bac’ [and out!]" href="http://xianblog.wordpress.com/2011/06/24/bayes-at-the-bac/">Bayes at the bac</a>. And not reacting at the question about Bayes in the courtroom with yet another anecdote of Bayes&#8217; formula been thrown out of the accepted tools by an <a href="http://www.guardian.co.uk/law/2011/oct/02/formula-justice-bayes-theorem-miscarriage">English court of appeal</a> about a year ago. Oh well, another argument for sticking to the written world.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[CFA Level 1 Quant –Probability Concepts]]></title>
<link>http://obscenelyrich.co.uk/2012/06/04/cfa-level-1-quant-probability-concepts/</link>
<pubDate>Mon, 04 Jun 2012 19:29:12 +0000</pubDate>
<dc:creator>obscenelyrich</dc:creator>
<guid>http://obscenelyrich.co.uk/2012/06/04/cfa-level-1-quant-probability-concepts/</guid>
<description><![CDATA[The next chapter is a continuation of evaluation by working with probability to determine the likene]]></description>
<content:encoded><![CDATA[The next chapter is a continuation of evaluation by working with probability to determine the likene]]></content:encoded>
</item>
<item>
<title><![CDATA[An Introduction to the Bayes' Formula]]></title>
<link>http://probabilityandstats.wordpress.com/2012/02/25/an-introduction-to-the-bayes-formula/</link>
<pubDate>Sat, 25 Feb 2012 08:40:06 +0000</pubDate>
<dc:creator>Dan Ma</dc:creator>
<guid>http://probabilityandstats.wordpress.com/2012/02/25/an-introduction-to-the-bayes-formula/</guid>
<description><![CDATA[We open up a discussion of the Bayes&#8217; formula by going through a basic example. The Bayes]]></description>
<content:encoded><![CDATA[<p>We open up a discussion of the Bayes&#8217; formula by going through a basic example. The Bayes&#8217; formula or theorem is a method that can be used to compute &#8220;backward&#8221; conditional probabilities such as the examples described here. The formula will be stated after we examine the calculation from Example 1. The following diagram describes Example 1. Example 2 is presented at the end of the post and is left as exercise. For a basic discussion of the Bayes&#8217; formula, see [1] and chapter 4 of [2].</p>
<p><em><strong>Example 1</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/02/bayes-example-1a.jpg?w=640&#038;h=829" alt="" title="Bayes Example 1" width="640" height="829" class="alignnone size-full wp-image-323" /></p>
<p>As indicated in the diagram, Box 1 has 1 red ball and three white balls and Box 2 has 2 red balls and 2 white balls. The example involves a sequence of two steps. In the first step (the green arrow in the above diagram), a box is randomly chosen from two boxes. In the second step (the blue arrow), a ball is randomly selected from the chosen box. We assume that the identity of the chosen box is unknown to the participants of this random experiment (e.g. suppose the two boxes are identical in appearance and a box is chosen by your friend and its identity is kept from you). Since a box is chosen at random, it is easy to see that <img src='http://s0.wp.com/latex.php?latex=P%28B_1%29%3DP%28B_2%29%3D0.5&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(B_1)=P(B_2)=0.5' title='P(B_1)=P(B_2)=0.5' class='latex' />.</p>
<p>The example involves conditional probabilities. Some of the conditional probabilities are natural and are easy to see. For example, if the chosen box is Box 1, it is clear that the probability of selecting a red ball is <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cfrac%7B1%7D%7B4%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;frac{1}{4}' title='&#92;displaystyle &#92;frac{1}{4}' class='latex' />, i.e. <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%28R+%5Clvert+B_1%29%3D%5Cfrac%7B1%7D%7B4%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle P(R &#92;lvert B_1)=&#92;frac{1}{4}' title='&#92;displaystyle P(R &#92;lvert B_1)=&#92;frac{1}{4}' class='latex' />. Likewise, the conditional probability <img src='http://s0.wp.com/latex.php?latex=P%28R+%5Clvert+B_2%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(R &#92;lvert B_2)' title='P(R &#92;lvert B_2)' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cfrac%7B2%7D%7B4%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;frac{2}{4}' title='&#92;displaystyle &#92;frac{2}{4}' class='latex' />. These two conditional probabilities are &#8220;forward&#8221; conditional probabilities since the events <img src='http://s0.wp.com/latex.php?latex=R+%5Clvert+B_1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R &#92;lvert B_1' title='R &#92;lvert B_1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=R+%5Clvert+B_2&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R &#92;lvert B_2' title='R &#92;lvert B_2' class='latex' /> occur in a natural chronological order.</p>
<p>What about the reversed conditional probabilities <img src='http://s0.wp.com/latex.php?latex=P%28B_1+%5Clvert+R%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(B_1 &#92;lvert R)' title='P(B_1 &#92;lvert R)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=P%28B_2+%5Clvert+R%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(B_2 &#92;lvert R)' title='P(B_2 &#92;lvert R)' class='latex' />? In other words, if the selected ball from the unknown box (unknown to you) is red, what is the probability that the ball is from Box 1?</p>
<p>The above question seems a little backward. After the box is randomly chosen, it is fixed (though the identity is unknown to you). Since it is fixed, shouldn&#8217;t the probability that the box being Box 1 is <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cfrac%7B1%7D%7B2%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;frac{1}{2}' title='&#92;displaystyle &#92;frac{1}{2}' class='latex' />? Since the box is already chosen, how can the identity of the box be influenced by the color of the ball selected from it? The answer is of course no.</p>
<p>We should not look at the chronological sequence of events. Instead, the key to understanding the example is through performing the random experiment repeatedly. Think of the experiment of choosing one box and then selecting one ball from the chosen box. Focus only on the trials that result in a red ball. For the result to be a red ball, we need to get either Box 1/ Red or Box 2/Red. Compute the probabilities of these two cases. Then add these two probabilities, we will obtain the probability that the selected ball is red. The following diagram illustrates this calculation.</p>
<p><em><strong>Example 1 &#8211; Tree Diagram</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/02/bayes-example-1-tree.jpg?w=640&#038;h=759" alt="" title="Bayes Tree Diagram" width="640" height="759" class="alignnone size-full wp-image-320" /></p>
<p>The outcomes with red border in the above diagram are the outcomes that result in a red ball. The diagram shows that if we perform this experiment many times, about 37.5% of the trials will result in a red ball (on average 3 out of 8 trials will result in a red ball). In how many of these trials, is Box 1 the source of the red ball? In the diagram, we see that the case Box 2/Red is twice as likely as the case Box 1/Red. We conclude that the case Box 1/Red accounts for about one third of the cases when the selected ball is red. In other words, one third of the red balls come from Box 1 and two third of the red balls come from Box 2. We have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%281%29+%5C+%5C+%5C+%5C+%5C+P%28B_1+%5Clvert+R%29%3D%5Cfrac%7B1%7D%7B3%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; P(B_1 &#92;lvert R)=&#92;frac{1}{3}' title='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; P(B_1 &#92;lvert R)=&#92;frac{1}{3}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%282%29+%5C+%5C+%5C+%5C+%5C+P%28B_2+%5Clvert+R%29%3D%5Cfrac%7B2%7D%7B3%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle (2) &#92; &#92; &#92; &#92; &#92; P(B_2 &#92;lvert R)=&#92;frac{2}{3}' title='&#92;displaystyle (2) &#92; &#92; &#92; &#92; &#92; P(B_2 &#92;lvert R)=&#92;frac{2}{3}' class='latex' /></p>
<p>Instead of using the tree diagram or the reasoning indicated in the paragraph after the tree diagram, we could just as easily apply the Bayes&#8217; formula:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%283%29+%5C+%5C+%5C+%5C+%5C+P%28B_1+%5Clvert+R%29%26%2338%3B%3D%5Cfrac%7BP%28R+%5Clvert+B_1%29+%5Ctimes+P%28B_1%29%7D%7BP%28R%29%7D+%5C%5C%26%2338%3B%3D%5Cfrac%7B%5Cfrac%7B1%7D%7B2%7D+%5Ctimes+%5Cfrac%7B1%7D%7B4%7D%7D%7B%5Cfrac%7B3%7D%7B8%7D%7D+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B3%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(3) &#92; &#92; &#92; &#92; &#92; P(B_1 &#92;lvert R)&amp;=&#92;frac{P(R &#92;lvert B_1) &#92;times P(B_1)}{P(R)} &#92;&#92;&amp;=&#92;frac{&#92;frac{1}{2} &#92;times &#92;frac{1}{4}}{&#92;frac{3}{8}} &#92;&#92;&amp;=&#92;frac{1}{3}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(3) &#92; &#92; &#92; &#92; &#92; P(B_1 &#92;lvert R)&amp;=&#92;frac{P(R &#92;lvert B_1) &#92;times P(B_1)}{P(R)} &#92;&#92;&amp;=&#92;frac{&#92;frac{1}{2} &#92;times &#92;frac{1}{4}}{&#92;frac{3}{8}} &#92;&#92;&amp;=&#92;frac{1}{3}  &#92;end{aligned}' class='latex' /></p>
<p>In the calculation in <img src='http://s0.wp.com/latex.php?latex=%283%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(3)' title='(3)' class='latex' /> (as in the tree diagram), we use the law of total probability:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%284%29+%5C+%5C+%5C+%5C+%5C+P%28R%29%26%2338%3B%3DP%28R+%5Clvert+B_1%29+%5Ctimes+P%28B_1%29%2BP%28R+%5Clvert+B_2%29+%5Ctimes+P%28B_2%29+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B4%7D+%5Ctimes+%5Cfrac%7B1%7D%7B2%7D%2B%5Cfrac%7B2%7D%7B4%7D+%5Ctimes+%5Cfrac%7B1%7D%7B2%7D+%5C%5C%26%2338%3B%3D%5Cfrac%7B3%7D%7B8%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(4) &#92; &#92; &#92; &#92; &#92; P(R)&amp;=P(R &#92;lvert B_1) &#92;times P(B_1)+P(R &#92;lvert B_2) &#92;times P(B_2) &#92;&#92;&amp;=&#92;frac{1}{4} &#92;times &#92;frac{1}{2}+&#92;frac{2}{4} &#92;times &#92;frac{1}{2} &#92;&#92;&amp;=&#92;frac{3}{8}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(4) &#92; &#92; &#92; &#92; &#92; P(R)&amp;=P(R &#92;lvert B_1) &#92;times P(B_1)+P(R &#92;lvert B_2) &#92;times P(B_2) &#92;&#92;&amp;=&#92;frac{1}{4} &#92;times &#92;frac{1}{2}+&#92;frac{2}{4} &#92;times &#92;frac{1}{2} &#92;&#92;&amp;=&#92;frac{3}{8}  &#92;end{aligned}' class='latex' /></p>
<p>______________________________________________________________<br />
<em><strong>Remark</strong></em></p>
<p>We are not saying that an earlier event (the choosing of the box) is altered in some way by a subsequent event (the observing of a red ball). The above probabilities are subjective. How strongly do you believe that the &#8220;unknown&#8221; box is Box 1? If you use probabilities to quantify your belief, without knowing any additional information, you would say the probability that the &#8220;unknown&#8221; box being Box 1 is <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;frac{1}{2}' title='&#92;frac{1}{2}' class='latex' />.</p>
<p>Suppose you reach into the &#8220;unknown&#8221; box and get a red ball. This additional information alters your belief about the chosen box. Since Box 2 has more red balls, the fact that you observe a red ball will tell you that it is more likely that the &#8220;unknown&#8221; chosen box is Box 2. According to the above calculation, you update the probability of the chosen box being Box 1 to <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B3%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;frac{1}{3}' title='&#92;frac{1}{3}' class='latex' /> and the probability of it being Box 2 as <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B2%7D%7B3%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;frac{2}{3}' title='&#92;frac{2}{3}' class='latex' />.</p>
<p>In the language of Bayesian probability theory, the initial belief of <img src='http://s0.wp.com/latex.php?latex=P%28B_1%29%3D0.5&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(B_1)=0.5' title='P(B_1)=0.5' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=P%28B_2%29%3D0.5&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(B_2)=0.5' title='P(B_2)=0.5' class='latex' /> is called the prior probability distribution. After a red ball is observed, the updated belief as in the probabilities <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%28B_1+%5Clvert+R%29%3D%5Cfrac%7B1%7D%7B3%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle P(B_1 &#92;lvert R)=&#92;frac{1}{3}' title='&#92;displaystyle P(B_1 &#92;lvert R)=&#92;frac{1}{3}' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+P%28B_2+%5Clvert+R%29%3D%5Cfrac%7B2%7D%7B3%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle P(B_2 &#92;lvert R)=&#92;frac{2}{3}' title='&#92;displaystyle P(B_2 &#92;lvert R)=&#92;frac{2}{3}' class='latex' /> is called the posterior probability distribution.</p>
<p>As demonstrated by this example, the Bayes&#8217; formula is for updating probabilities in light of new information. Though the updated probabilities are subjective, they are not arbitrary. We can make sense of these probabilities by assessing the long run results of the experiment objectively.</p>
<p>______________________________________________________________<br />
<em><strong>An Insurance Perspective</strong></em></p>
<p>The example discussed here has an insurance interpretation. Suppose an insurer has two groups of policyholders, both equal in size. One group consists of low risk insureds where the probability of experiencing a claim in a year is <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B4%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;frac{1}{4}' title='&#92;frac{1}{4}' class='latex' /> (i.e. the proportion of red balls in Box 1). The insureds in other group, a high risk group, have a higher probability of experiencing a claim in a year, which is <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B2%7D%7B4%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;frac{2}{4}' title='&#92;frac{2}{4}' class='latex' /> (i.e. the proportion of red balls in Box 2). </p>
<p>Suppose someone just purchase a policy. Initially, the risk profile of this newly insured is uncertain. So the initial belief is that it is equally likely for him to be in the low risk group as in the high risk group.</p>
<p>Suppose that during the first policy year, the insured has incurred one claim. The observation alters our belief about this insured. With the additional information of having one claim, the probability that the insured belong to the high risk group is increased to <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B2%7D%7B3%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;frac{2}{3}' title='&#92;frac{2}{3}' class='latex' />. The risk profile of this insured is altered based on new information. The insurance point of view described here has the exact same calculation as in the box-ball example and is that of using past claims experience to update future claims experience. </p>
<p>______________________________________________________________<br />
<em><strong>Bayes&#8217; Formula</strong></em></p>
<p>Suppose we have a collection of mutually exclusive events <img src='http://s0.wp.com/latex.php?latex=B_1%2C+B_2%2C+%5Ccdots%2C+B_n&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='B_1, B_2, &#92;cdots, B_n' title='B_1, B_2, &#92;cdots, B_n' class='latex' />. That is, the probabilities <img src='http://s0.wp.com/latex.php?latex=P%28B_i%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(B_i)' title='P(B_i)' class='latex' /> sum to 1.0. Suppose <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R' title='R' class='latex' /> is an event. Think of the events <img src='http://s0.wp.com/latex.php?latex=B_i&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='B_i' title='B_i' class='latex' /> as &#8220;causes&#8221; that can explain the event <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R' title='R' class='latex' />, an observed result. Given <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R' title='R' class='latex' /> is observed, what is the probability that the cause of <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R' title='R' class='latex' /> is <img src='http://s0.wp.com/latex.php?latex=B_k&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='B_k' title='B_k' class='latex' />? In other words, we are interested in finding the conditional probability <img src='http://s0.wp.com/latex.php?latex=P%28B_k+%5Clvert+R%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(B_k &#92;lvert R)' title='P(B_k &#92;lvert R)' class='latex' />.</p>
<p>Before we have the observed result <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R' title='R' class='latex' />, the probabilities <img src='http://s0.wp.com/latex.php?latex=P%28B_i%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(B_i)' title='P(B_i)' class='latex' /> are the prior probabilities of the causes. We also know the probability of observing <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R' title='R' class='latex' /> given a particular cause (i.e. we know <img src='http://s0.wp.com/latex.php?latex=P%28R+%5Clvert+B_i&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(R &#92;lvert B_i' title='P(R &#92;lvert B_i' class='latex' />). The probabilities <img src='http://s0.wp.com/latex.php?latex=P%28R+%5Clvert+B_i%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(R &#92;lvert B_i)' title='P(R &#92;lvert B_i)' class='latex' /> are &#8220;forward&#8221; conditional probabilities. </p>
<p>Given that we observe <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R' title='R' class='latex' />, we are interested in knowing the &#8220;backward&#8221; probabilities <img src='http://s0.wp.com/latex.php?latex=P%28B_i+%5Clvert+R%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(B_i &#92;lvert R)' title='P(B_i &#92;lvert R)' class='latex' />. These probabilities are called the posterior probabilities of the causes. Mathematically, the Bayes&#8217; formula is simply an alternative way of writing the following conditional probability.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%285%29+%5C+%5C+%5C+%5C+%5C+P%28B_k+%5Clvert+R%29%3D%5Cfrac%7BP%28B_k+%5Ccap+R%29%7D%7BP%28R%29%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92; P(B_k &#92;lvert R)=&#92;frac{P(B_k &#92;cap R)}{P(R)}' title='&#92;displaystyle (5) &#92; &#92; &#92; &#92; &#92; P(B_k &#92;lvert R)=&#92;frac{P(B_k &#92;cap R)}{P(R)}' class='latex' /></p>
<p>In <img src='http://s0.wp.com/latex.php?latex=%285%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(5)' title='(5)' class='latex' />, as in the discussion of the random experiment of choosing box and selecting ball, we are restricting ourselves to only the cases where the event <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R' title='R' class='latex' /> is observed. Then we ask, out of all the cases where <img src='http://s0.wp.com/latex.php?latex=R&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='R' title='R' class='latex' /> is observed, how many of these cases are caused by the event <img src='http://s0.wp.com/latex.php?latex=B_k&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='B_k' title='B_k' class='latex' />?</p>
<p>The numerator of <img src='http://s0.wp.com/latex.php?latex=%285%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(5)' title='(5)' class='latex' /> can be written as </p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%286%29+%5C+%5C+%5C+%5C+%5C+P%28B_k+%5Ccap+R%29%3DP%28R+%5Clvert+B_k%29+%5Ctimes+P%28B_k%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle (6) &#92; &#92; &#92; &#92; &#92; P(B_k &#92;cap R)=P(R &#92;lvert B_k) &#92;times P(B_k)' title='&#92;displaystyle (6) &#92; &#92; &#92; &#92; &#92; P(B_k &#92;cap R)=P(R &#92;lvert B_k) &#92;times P(B_k)' class='latex' /> </p>
<p>The denominator of <img src='http://s0.wp.com/latex.php?latex=%285%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(5)' title='(5)' class='latex' /> is obtained from applying the total law of probability.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%287%29+%5C+%5C+%5C+%5C+%5C+P%28R%29%3DP%28R+%5Clvert+B_1%29+P%28B_1%29+%2B+P%28R+%5Clvert+B_2%29+P%28B_2%29%2B+%5Ccdots+%2B+P%28R+%5Clvert+B_n%29+P%28B_n%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle (7) &#92; &#92; &#92; &#92; &#92; P(R)=P(R &#92;lvert B_1) P(B_1) + P(R &#92;lvert B_2) P(B_2)+ &#92;cdots + P(R &#92;lvert B_n) P(B_n)' title='&#92;displaystyle (7) &#92; &#92; &#92; &#92; &#92; P(R)=P(R &#92;lvert B_1) P(B_1) + P(R &#92;lvert B_2) P(B_2)+ &#92;cdots + P(R &#92;lvert B_n) P(B_n)' class='latex' /></p>
<p>Plugging <img src='http://s0.wp.com/latex.php?latex=%286%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(6)' title='(6)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%287%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(7)' title='(7)' class='latex' /> into <img src='http://s0.wp.com/latex.php?latex=%285%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(5)' title='(5)' class='latex' />, we obtain a statement of the Bayes&#8217; formula.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%288%29+%5C+%5C+%5C+%5C+%5C+P%28B_k+%5Clvert+R%29%3D%5Cfrac%7BP%28P%28R+%5Clvert+B_k%29+%5Ctimes+P%28B_k%29%7D%7B%5Csum+%5Climits_%7Bj%3D1%7D%5En+P%28R+%5Clvert+B_j%29+%5Ctimes+P%28B_j%29%7D+%5C+%5C+%5C+%5C+%5C+%5C+%5C+%5Ctext%7B%28Bayes%27+Formula%29%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle (8) &#92; &#92; &#92; &#92; &#92; P(B_k &#92;lvert R)=&#92;frac{P(P(R &#92;lvert B_k) &#92;times P(B_k)}{&#92;sum &#92;limits_{j=1}^n P(R &#92;lvert B_j) &#92;times P(B_j)} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;text{(Bayes&#039; Formula)}' title='&#92;displaystyle (8) &#92; &#92; &#92; &#92; &#92; P(B_k &#92;lvert R)=&#92;frac{P(P(R &#92;lvert B_k) &#92;times P(B_k)}{&#92;sum &#92;limits_{j=1}^n P(R &#92;lvert B_j) &#92;times P(B_j)} &#92; &#92; &#92; &#92; &#92; &#92; &#92; &#92;text{(Bayes&#039; Formula)}' class='latex' /></p>
<p>Of course, for any computation problem involving the Bayes&#8217; formula, it is best not to memorize the formula in <img src='http://s0.wp.com/latex.php?latex=%288%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(8)' title='(8)' class='latex' />. Instead, simply apply the thought process that gives rise to the formula (e.g. the tree diagram shown above).</p>
<p>The Bayes&#8217; formula has some profound philosophical implications, evidenced by the fact that it spawned a separate school of thought called Bayesian statistics. However, our discussion here is solely on its original role in finding certain backward conditional probabilities.</p>
<p>______________________________________________________________<br />
<em><strong>Example 2</strong></em></p>
<p><img src="http://basicmathsuccess.files.wordpress.com/2012/02/bayes-example-2.jpg?w=640&#038;h=1062" alt="" title="Bayes Example 2" width="640" height="1062" class="alignnone size-full wp-image-325" /></p>
<p>Example 2 is left as exercise. The event that both selected balls are red would give even more weight to Box 2. In other words, in the event that a red ball is selected twice in a row, we would believe that it is even more likely that the unknown box is Box 2.<br />
______________________________________________________________<br />
<em><strong>Reference</strong></em></p>
<ol>
<li>Feller, W., <em>An Introduction to Probability Theory and Its Applications</em>, third edition, John Wiley &#38; Sons, New York, 1968.</li>
<li>Grinstead, C. M., Snell, J. L. <em>Introduction to Probability</em>, <a href="http://www.math.dartmouth.edu/~prob/prob/prob.pdf" target="_blank">Online Book in PDF format</a>.</li>
</ol>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Bayesian inference as filtering (part 1)]]></title>
<link>http://mattsstats.wordpress.com/2012/01/30/bayesian-inference-as-filtering-part-1/</link>
<pubDate>Sun, 29 Jan 2012 22:00:45 +0000</pubDate>
<dc:creator>mattsstats</dc:creator>
<guid>http://mattsstats.wordpress.com/2012/01/30/bayesian-inference-as-filtering-part-1/</guid>
<description><![CDATA[Filtering is the science of making sense of noisy measurements, i.e. sorting signal (what you want)]]></description>
<content:encoded><![CDATA[<p>Filtering is the science of making sense of noisy measurements, i.e. sorting signal (what you want) from noise (what you don&#8217;t want). For example, suppose <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y' title='y' class='latex' /> is a noisy measurement of <img src='http://s0.wp.com/latex.php?latex=x.&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x.' title='x.' class='latex' /> Then, given a model for the noise, you would like to know <img src='http://s0.wp.com/latex.php?latex=p%28x%26%23124%3By%29.&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='p(x&#124;y).' title='p(x&#124;y).' class='latex' /></p>
<p>It occurred to me that Bayesian inference can thought of as filtering: the objects of interest are the model parameters but, instead of being measured directly, their measurement is implicit in the data.</p>
<p>Consider standard linear regression:</p>
<p><img src='http://s0.wp.com/latex.php?latex=y%3DX%5Ctheta+%2B+%5Cepsilon%2C&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y=X&#92;theta + &#92;epsilon,' title='y=X&#92;theta + &#92;epsilon,' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y' title='y' class='latex' /> is an <img src='http://s0.wp.com/latex.php?latex=n%5Ctimes+1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='n&#92;times 1' title='n&#92;times 1' class='latex' /> vector of observations, <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> is an <img src='http://s0.wp.com/latex.php?latex=n%5Ctimes+p&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='n&#92;times p' title='n&#92;times p' class='latex' /> matrix, <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' /> is a <img src='http://s0.wp.com/latex.php?latex=p%5Ctimes+1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='p&#92;times 1' title='p&#92;times 1' class='latex' /> parameter vector and <img src='http://s0.wp.com/latex.php?latex=%5Cepsilon&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;epsilon' title='&#92;epsilon' class='latex' /> is an <img src='http://s0.wp.com/latex.php?latex=n%5Ctimes+1&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='n&#92;times 1' title='n&#92;times 1' class='latex' /> noise vector. Typically, we take normally distributed noise, <img src='http://s0.wp.com/latex.php?latex=%5Cepsilon+%5Csim+%7B%5Ccal+N%7D%280%2C%5CSigma%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;epsilon &#92;sim {&#92;cal N}(0,&#92;Sigma)' title='&#92;epsilon &#92;sim {&#92;cal N}(0,&#92;Sigma)' class='latex' />, and here we&#8217;ll assume the covariance matrix <img src='http://s0.wp.com/latex.php?latex=%5CSigma&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;Sigma' title='&#92;Sigma' class='latex' /> is known. Thus our probabilistic model is</p>
<p><img src='http://s0.wp.com/latex.php?latex=y%26%23124%3BX%2C%5Ctheta%5Csim%7B%5Ccal+N%7D%28X%5Ctheta%2C%5CSigma%29.&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y&#124;X,&#92;theta&#92;sim{&#92;cal N}(X&#92;theta,&#92;Sigma).' title='y&#124;X,&#92;theta&#92;sim{&#92;cal N}(X&#92;theta,&#92;Sigma).' class='latex' /></p>
<p>In Bayesian inference, what we are after is <img src='http://s0.wp.com/latex.php?latex=p%28%5Ctheta%26%23124%3BX%2Cy%29.&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='p(&#92;theta&#124;X,y).' title='p(&#92;theta&#124;X,y).' class='latex' /> This connects to filtering if you think of the pair <img src='http://s0.wp.com/latex.php?latex=%28X%2Cy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(X,y)' title='(X,y)' class='latex' /> as an implicit measurement of <img src='http://s0.wp.com/latex.php?latex=%5Ctheta%2C&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;theta,' title='&#92;theta,' class='latex' /> given the model. Bayes&#8217; formula tells us</p>
<p><img src='http://s0.wp.com/latex.php?latex=p%28%5Ctheta%26%23124%3BX%2Cy%29%3D%5Cfrac%7Bp%28y%26%23124%3BX%2C%5Ctheta%29+p%28%5Ctheta%26%23124%3BX%29%7D%7Bp%28y%26%23124%3BX%29%7D.&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='p(&#92;theta&#124;X,y)=&#92;frac{p(y&#124;X,&#92;theta) p(&#92;theta&#124;X)}{p(y&#124;X)}.' title='p(&#92;theta&#124;X,y)=&#92;frac{p(y&#124;X,&#92;theta) p(&#92;theta&#124;X)}{p(y&#124;X)}.' class='latex' /></p>
<p>where <img src='http://s0.wp.com/latex.php?latex=p%28%5Ctheta%26%23124%3BX%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='p(&#92;theta&#124;X)' title='p(&#92;theta&#124;X)' class='latex' /> is our prior for the parameters <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' /> given <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' />. Typically, however, our prior beliefs about <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' /> will be independent of <img src='http://s0.wp.com/latex.php?latex=X%2C&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X,' title='X,' class='latex' /> i.e. <img src='http://s0.wp.com/latex.php?latex=p%28%5Ctheta%26%23124%3BX%29%3Dp%28%5Ctheta%29.&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='p(&#92;theta&#124;X)=p(&#92;theta).' title='p(&#92;theta&#124;X)=p(&#92;theta).' class='latex' /></p>
<p>For simplicity, we&#8217;ll assume a normal prior: <img src='http://s0.wp.com/latex.php?latex=%5Ctheta%5Csim%7B%5Ccal+N%7D%280%2CW%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;theta&#92;sim{&#92;cal N}(0,W)' title='&#92;theta&#92;sim{&#92;cal N}(0,W)' class='latex' />, and, in a later post, we&#8217;ll compute the posterior for <img src='http://s0.wp.com/latex.php?latex=%5Ctheta&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;theta' title='&#92;theta' class='latex' />, which is a nice little mathematical problem in its own right! Till then, I&#8217;ll only point out that the posterior is also a normal:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctheta%26%23124%3BX%2Cy%5Csim%7B%5Ccal+N%7D%28%5Cmu%2C%5Cwidetilde%7BW%7D%29.&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;theta&#124;X,y&#92;sim{&#92;cal N}(&#92;mu,&#92;widetilde{W}).' title='&#92;theta&#124;X,y&#92;sim{&#92;cal N}(&#92;mu,&#92;widetilde{W}).' class='latex' /></p>
<p>Our job is to compute <img src='http://s0.wp.com/latex.php?latex=%5Cmu&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;mu' title='&#92;mu' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cwidetilde%7BW%7D.&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;widetilde{W}.' title='&#92;widetilde{W}.' class='latex' /></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[An Example of a Joint Distribution]]></title>
<link>http://probabilityandstatsproblemsolve.wordpress.com/2012/01/27/an-example-of-a-joint-distribution-1/</link>
<pubDate>Sat, 28 Jan 2012 06:48:24 +0000</pubDate>
<dc:creator>Dan Ma</dc:creator>
<guid>http://probabilityandstatsproblemsolve.wordpress.com/2012/01/27/an-example-of-a-joint-distribution-1/</guid>
<description><![CDATA[Probem 1 Let be the value of one roll of a fair die. If the value of the die is , we are given that]]></description>
<content:encoded><![CDATA[<p><em><strong>Probem 1</strong></em><br />
Let <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> be the value of one roll of a fair die. If the value of the die is <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' />, we are given that <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x' title='Y &#92;lvert X=x' class='latex' /> has a binomial distribution with <img src='http://s0.wp.com/latex.php?latex=n%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='n=x' title='n=x' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p%3D%5Cfrac%7B1%7D%7B4%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='p=&#92;frac{1}{4}' title='p=&#92;frac{1}{4}' class='latex' /> (we use the notation <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx+%5Csim+%5Ctext%7Bbinom%7D%28x%2C%5Cfrac%7B1%7D%7B4%7D%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x &#92;sim &#92;text{binom}(x,&#92;frac{1}{4})' title='Y &#92;lvert X=x &#92;sim &#92;text{binom}(x,&#92;frac{1}{4})' class='latex' />).</p>
<ol>
<li>Discuss how the joint probability function <img src='http://s0.wp.com/latex.php?latex=P%5BX%3Dx%2CY%3Dy%5D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P[X=x,Y=y]' title='P[X=x,Y=y]' class='latex' /> is computed for <img src='http://s0.wp.com/latex.php?latex=x%3D1%2C2%2C3%2C4%2C5%2C6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x=1,2,3,4,5,6' title='x=1,2,3,4,5,6' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=y%3D0%2C1%2C+%5Ccdots%2C+x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y=0,1, &#92;cdots, x' title='y=0,1, &#92;cdots, x' class='latex' />.</li>
<li>Compute the conditional binomial distributions <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x' title='Y &#92;lvert X=x' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=x%3D1%2C2%2C3%2C4%2C5%2C6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x=1,2,3,4,5,6' title='x=1,2,3,4,5,6' class='latex' />.</li>
<li>Compute the marginal probability function of <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> and the mean and variance of <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' />.</li>
<li>Compute <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx+%5Clvert+Y%3Dy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x &#92;lvert Y=y)' title='P(X=x &#92;lvert Y=y)' class='latex' /> for all applicable <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y' title='y' class='latex' />.</li>
</ol>
<p>_____________________________________________________________<br />
<em><strong>Discussion of Problem 1</strong></em></p>
<p>Problem 2 is found at the end of the post.</p>
<p><em><strong>Problem 1.1</strong></em><br />
This is an example of a joint distribution that is constructed from taking product of conditional distributions and a marginial distribution. The marginal distribution of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> is a uniform distribution on the set <img src='http://s0.wp.com/latex.php?latex=%5Cleft%5C%7B1%2C2%2C3%2C4%2C5%2C6+%5Cright%5C%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;left&#92;{1,2,3,4,5,6 &#92;right&#92;}' title='&#92;left&#92;{1,2,3,4,5,6 &#92;right&#92;}' class='latex' /> (rolling a fiar die). Conditional of <img src='http://s0.wp.com/latex.php?latex=X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X=x' title='X=x' class='latex' />, <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> has a binomial distribution <img src='http://s0.wp.com/latex.php?latex=%5Ctext%7Bbinom%7D%28x%2C%5Cfrac%7B1%7D%7B4%7D%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;text{binom}(x,&#92;frac{1}{4})' title='&#92;text{binom}(x,&#92;frac{1}{4})' class='latex' />. Think of the conditional variable of <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x' title='Y &#92;lvert X=x' class='latex' /> as tossing a coin <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' /> times where the probability of a head is <img src='http://s0.wp.com/latex.php?latex=p%3D%5Cfrac%7B1%7D%7B4%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='p=&#92;frac{1}{4}' title='p=&#92;frac{1}{4}' class='latex' />. The following is the sample space of the joint distribution of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' />.</p>
<p><em><strong>Figure 1</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/sample-space-joint-distribution-1.jpg?w=640&#038;h=524" alt="" title="Sample Space - Joint Distribution" width="640" height="524" class="alignnone size-full wp-image-198" /></p>
<p>The joint probability function of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> may be written as:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%281%29+%5C+%5C+%5C+%5C+%5C+P%28X%3Dx%2CY%3Dy%29%3DP%28Y%3Dy+%5Clvert+X%3Dx%29+%5Ctimes+P%28X%3Dx%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; P(X=x,Y=y)=P(Y=y &#92;lvert X=x) &#92;times P(X=x)' title='&#92;displaystyle (1) &#92; &#92; &#92; &#92; &#92; P(X=x,Y=y)=P(Y=y &#92;lvert X=x) &#92;times P(X=x)' class='latex' /></p>
<p>Thus the probability at each point in Figure 1 is the product of <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x)' title='P(X=x)' class='latex' />, which is <img src='http://s0.wp.com/latex.php?latex=%5Cfrac%7B1%7D%7B6%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;frac{1}{6}' title='&#92;frac{1}{6}' class='latex' />, with the conditional probability <img src='http://s0.wp.com/latex.php?latex=P%28Y%3Dy+%5Clvert+X%3Dx%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(Y=y &#92;lvert X=x)' title='P(Y=y &#92;lvert X=x)' class='latex' />, which is binomial. For example, the following diagram and equation demonstrate the calculation of <img src='http://s0.wp.com/latex.php?latex=P%28X%3D4%2CY%3D3%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=4,Y=3)' title='P(X=4,Y=3)' class='latex' /></p>
<p><em><strong>Figure 2</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/sample-space-joint-distribution-2.jpg?w=640&#038;h=524" alt="" title="Sample Space - Joint Distribution" width="640" height="524" class="alignnone size-full wp-image-201" /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%281a%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D4%2CY%3D3%29%26%2338%3B%3DP%28Y%3D3+%5Clvert+X%3D4%29+%5Ctimes+P%28X%3D4%29+%5C%5C%26%2338%3B%3D%5Cbinom%7B4%7D%7B3%7D+%5Cbiggl%5B%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%5D%5E3+%5Cbiggl%5B%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%5D%5E1+%5Ctimes+%5Cfrac%7B1%7D%7B6%7D+%5C%5C%26%2338%3B%3D%5Cfrac%7B12%7D%7B256%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(1a) &#92; &#92; &#92; &#92; &#92; P(X=4,Y=3)&amp;=P(Y=3 &#92;lvert X=4) &#92;times P(X=4) &#92;&#92;&amp;=&#92;binom{4}{3} &#92;biggl[&#92;frac{1}{4}&#92;biggr]^3 &#92;biggl[&#92;frac{3}{4}&#92;biggr]^1 &#92;times &#92;frac{1}{6} &#92;&#92;&amp;=&#92;frac{12}{256}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(1a) &#92; &#92; &#92; &#92; &#92; P(X=4,Y=3)&amp;=P(Y=3 &#92;lvert X=4) &#92;times P(X=4) &#92;&#92;&amp;=&#92;binom{4}{3} &#92;biggl[&#92;frac{1}{4}&#92;biggr]^3 &#92;biggl[&#92;frac{3}{4}&#92;biggr]^1 &#92;times &#92;frac{1}{6} &#92;&#92;&amp;=&#92;frac{12}{256}  &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Problem 1.2</strong></em><br />
The following shows the calculation of the binomial distributions.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+%282%29+%5C+%5C+%5C+Y+%5Clvert+X%3D1+%5C+%5C+%5C+%5C+%5C+%26%2338%3BP%28Y%3D0+%5Clvert+X%3D1%29%3D%5Cfrac%7B3%7D%7B4%7D+%5C%5C%26%2338%3BP%28Y%3D1+%5Clvert+X%3D1%29%3D%5Cfrac%7B1%7D%7B4%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} (2) &#92; &#92; &#92; Y &#92;lvert X=1 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=1)=&#92;frac{3}{4} &#92;&#92;&amp;P(Y=1 &#92;lvert X=1)=&#92;frac{1}{4} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} (2) &#92; &#92; &#92; Y &#92;lvert X=1 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=1)=&#92;frac{3}{4} &#92;&#92;&amp;P(Y=1 &#92;lvert X=1)=&#92;frac{1}{4} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+%283%29+%5C+%5C+%5C+Y+%5Clvert+X%3D2+%5C+%5C+%5C+%5C+%5C+%26%2338%3BP%28Y%3D0+%5Clvert+X%3D2%29%3D%5Cbinom%7B2%7D%7B0%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E0+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E2%3D%5Cfrac%7B9%7D%7B16%7D+%5C%5C%26%2338%3BP%28Y%3D1+%5Clvert+X%3D2%29%3D%5Cbinom%7B2%7D%7B1%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E1+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E1%3D%5Cfrac%7B6%7D%7B16%7D+%5C%5C%26%2338%3BP%28Y%3D2+%5Clvert+X%3D2%29%3D%5Cbinom%7B2%7D%7B2%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E2+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E0%3D%5Cfrac%7B1%7D%7B16%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} (3) &#92; &#92; &#92; Y &#92;lvert X=2 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=2)=&#92;binom{2}{0} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^0 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^2=&#92;frac{9}{16} &#92;&#92;&amp;P(Y=1 &#92;lvert X=2)=&#92;binom{2}{1} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^1 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^1=&#92;frac{6}{16} &#92;&#92;&amp;P(Y=2 &#92;lvert X=2)=&#92;binom{2}{2} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^2 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^0=&#92;frac{1}{16} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} (3) &#92; &#92; &#92; Y &#92;lvert X=2 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=2)=&#92;binom{2}{0} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^0 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^2=&#92;frac{9}{16} &#92;&#92;&amp;P(Y=1 &#92;lvert X=2)=&#92;binom{2}{1} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^1 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^1=&#92;frac{6}{16} &#92;&#92;&amp;P(Y=2 &#92;lvert X=2)=&#92;binom{2}{2} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^2 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^0=&#92;frac{1}{16} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+%284%29+%5C+%5C+%5C+Y+%5Clvert+X%3D3+%5C+%5C+%5C+%5C+%5C+%26%2338%3BP%28Y%3D0+%5Clvert+X%3D3%29%3D%5Cbinom%7B3%7D%7B0%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E0+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E3%3D%5Cfrac%7B27%7D%7B64%7D+%5C%5C%26%2338%3BP%28Y%3D1+%5Clvert+X%3D3%29%3D%5Cbinom%7B3%7D%7B1%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E1+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E2%3D%5Cfrac%7B27%7D%7B64%7D+%5C%5C%26%2338%3BP%28Y%3D2+%5Clvert+X%3D3%29%3D%5Cbinom%7B3%7D%7B2%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E2+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E1%3D%5Cfrac%7B9%7D%7B64%7D+%5C%5C%26%2338%3BP%28Y%3D3+%5Clvert+X%3D3%29%3D%5Cbinom%7B3%7D%7B3%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E3+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E0%3D%5Cfrac%7B1%7D%7B64%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} (4) &#92; &#92; &#92; Y &#92;lvert X=3 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=3)=&#92;binom{3}{0} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^0 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^3=&#92;frac{27}{64} &#92;&#92;&amp;P(Y=1 &#92;lvert X=3)=&#92;binom{3}{1} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^1 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^2=&#92;frac{27}{64} &#92;&#92;&amp;P(Y=2 &#92;lvert X=3)=&#92;binom{3}{2} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^2 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^1=&#92;frac{9}{64} &#92;&#92;&amp;P(Y=3 &#92;lvert X=3)=&#92;binom{3}{3} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^3 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^0=&#92;frac{1}{64} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} (4) &#92; &#92; &#92; Y &#92;lvert X=3 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=3)=&#92;binom{3}{0} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^0 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^3=&#92;frac{27}{64} &#92;&#92;&amp;P(Y=1 &#92;lvert X=3)=&#92;binom{3}{1} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^1 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^2=&#92;frac{27}{64} &#92;&#92;&amp;P(Y=2 &#92;lvert X=3)=&#92;binom{3}{2} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^2 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^1=&#92;frac{9}{64} &#92;&#92;&amp;P(Y=3 &#92;lvert X=3)=&#92;binom{3}{3} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^3 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^0=&#92;frac{1}{64} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+%285%29+%5C+%5C+%5C+Y+%5Clvert+X%3D4+%5C+%5C+%5C+%5C+%5C+%26%2338%3BP%28Y%3D0+%5Clvert+X%3D4%29%3D%5Cbinom%7B4%7D%7B0%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E0+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E4%3D%5Cfrac%7B81%7D%7B256%7D+%5C%5C%26%2338%3BP%28Y%3D1+%5Clvert+X%3D4%29%3D%5Cbinom%7B4%7D%7B1%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E1+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E3%3D%5Cfrac%7B108%7D%7B256%7D+%5C%5C%26%2338%3BP%28Y%3D2+%5Clvert+X%3D4%29%3D%5Cbinom%7B4%7D%7B2%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E2+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E2%3D%5Cfrac%7B54%7D%7B256%7D+%5C%5C%26%2338%3BP%28Y%3D3+%5Clvert+X%3D4%29%3D%5Cbinom%7B4%7D%7B3%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E3+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E1%3D%5Cfrac%7B12%7D%7B256%7D+%5C%5C%26%2338%3BP%28Y%3D4+%5Clvert+X%3D4%29%3D%5Cbinom%7B4%7D%7B4%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E4+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E0%3D%5Cfrac%7B1%7D%7B256%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} (5) &#92; &#92; &#92; Y &#92;lvert X=4 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=4)=&#92;binom{4}{0} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^0 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^4=&#92;frac{81}{256} &#92;&#92;&amp;P(Y=1 &#92;lvert X=4)=&#92;binom{4}{1} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^1 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^3=&#92;frac{108}{256} &#92;&#92;&amp;P(Y=2 &#92;lvert X=4)=&#92;binom{4}{2} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^2 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^2=&#92;frac{54}{256} &#92;&#92;&amp;P(Y=3 &#92;lvert X=4)=&#92;binom{4}{3} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^3 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^1=&#92;frac{12}{256} &#92;&#92;&amp;P(Y=4 &#92;lvert X=4)=&#92;binom{4}{4} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^4 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^0=&#92;frac{1}{256} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} (5) &#92; &#92; &#92; Y &#92;lvert X=4 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=4)=&#92;binom{4}{0} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^0 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^4=&#92;frac{81}{256} &#92;&#92;&amp;P(Y=1 &#92;lvert X=4)=&#92;binom{4}{1} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^1 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^3=&#92;frac{108}{256} &#92;&#92;&amp;P(Y=2 &#92;lvert X=4)=&#92;binom{4}{2} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^2 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^2=&#92;frac{54}{256} &#92;&#92;&amp;P(Y=3 &#92;lvert X=4)=&#92;binom{4}{3} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^3 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^1=&#92;frac{12}{256} &#92;&#92;&amp;P(Y=4 &#92;lvert X=4)=&#92;binom{4}{4} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^4 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^0=&#92;frac{1}{256} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+%286%29+%5C+%5C+%5C+Y+%5Clvert+X%3D5+%5C+%5C+%5C+%5C+%5C+%26%2338%3BP%28Y%3D0+%5Clvert+X%3D5%29%3D%5Cbinom%7B5%7D%7B0%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E0+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E5%3D%5Cfrac%7B243%7D%7B1024%7D+%5C%5C%26%2338%3BP%28Y%3D1+%5Clvert+X%3D5%29%3D%5Cbinom%7B5%7D%7B1%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E1+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E4%3D%5Cfrac%7B405%7D%7B1024%7D+%5C%5C%26%2338%3BP%28Y%3D2+%5Clvert+X%3D5%29%3D%5Cbinom%7B5%7D%7B2%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E2+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E3%3D%5Cfrac%7B270%7D%7B1024%7D+%5C%5C%26%2338%3BP%28Y%3D3+%5Clvert+X%3D5%29%3D%5Cbinom%7B5%7D%7B3%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E3+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E2%3D%5Cfrac%7B90%7D%7B1024%7D+%5C%5C%26%2338%3BP%28Y%3D4+%5Clvert+X%3D5%29%3D%5Cbinom%7B5%7D%7B4%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E4+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E1%3D%5Cfrac%7B15%7D%7B1024%7D+%5C%5C%26%2338%3BP%28Y%3D5+%5Clvert+X%3D5%29%3D%5Cbinom%7B5%7D%7B5%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E5+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E0%3D%5Cfrac%7B1%7D%7B1024%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} (6) &#92; &#92; &#92; Y &#92;lvert X=5 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=5)=&#92;binom{5}{0} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^0 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^5=&#92;frac{243}{1024} &#92;&#92;&amp;P(Y=1 &#92;lvert X=5)=&#92;binom{5}{1} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^1 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^4=&#92;frac{405}{1024} &#92;&#92;&amp;P(Y=2 &#92;lvert X=5)=&#92;binom{5}{2} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^2 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^3=&#92;frac{270}{1024} &#92;&#92;&amp;P(Y=3 &#92;lvert X=5)=&#92;binom{5}{3} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^3 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^2=&#92;frac{90}{1024} &#92;&#92;&amp;P(Y=4 &#92;lvert X=5)=&#92;binom{5}{4} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^4 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^1=&#92;frac{15}{1024} &#92;&#92;&amp;P(Y=5 &#92;lvert X=5)=&#92;binom{5}{5} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^5 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^0=&#92;frac{1}{1024} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} (6) &#92; &#92; &#92; Y &#92;lvert X=5 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=5)=&#92;binom{5}{0} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^0 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^5=&#92;frac{243}{1024} &#92;&#92;&amp;P(Y=1 &#92;lvert X=5)=&#92;binom{5}{1} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^1 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^4=&#92;frac{405}{1024} &#92;&#92;&amp;P(Y=2 &#92;lvert X=5)=&#92;binom{5}{2} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^2 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^3=&#92;frac{270}{1024} &#92;&#92;&amp;P(Y=3 &#92;lvert X=5)=&#92;binom{5}{3} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^3 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^2=&#92;frac{90}{1024} &#92;&#92;&amp;P(Y=4 &#92;lvert X=5)=&#92;binom{5}{4} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^4 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^1=&#92;frac{15}{1024} &#92;&#92;&amp;P(Y=5 &#92;lvert X=5)=&#92;binom{5}{5} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^5 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^0=&#92;frac{1}{1024} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+%287%29+%5C+%5C+%5C+Y+%5Clvert+X%3D6+%5C+%5C+%5C+%5C+%5C+%26%2338%3BP%28Y%3D0+%5Clvert+X%3D6%29%3D%5Cbinom%7B6%7D%7B0%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E0+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E6%3D%5Cfrac%7B729%7D%7B4096%7D+%5C%5C%26%2338%3BP%28Y%3D1+%5Clvert+X%3D6%29%3D%5Cbinom%7B6%7D%7B1%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E1+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E5%3D%5Cfrac%7B1458%7D%7B4096%7D+%5C%5C%26%2338%3BP%28Y%3D2+%5Clvert+X%3D6%29%3D%5Cbinom%7B6%7D%7B2%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E2+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E4%3D%5Cfrac%7B1215%7D%7B4096%7D+%5C%5C%26%2338%3BP%28Y%3D3+%5Clvert+X%3D6%29%3D%5Cbinom%7B6%7D%7B3%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E3+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E3%3D%5Cfrac%7B540%7D%7B4096%7D+%5C%5C%26%2338%3BP%28Y%3D4+%5Clvert+X%3D6%29%3D%5Cbinom%7B6%7D%7B4%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E4+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E2%3D%5Cfrac%7B135%7D%7B4096%7D+%5C%5C%26%2338%3BP%28Y%3D5+%5Clvert+X%3D6%29%3D%5Cbinom%7B6%7D%7B5%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E5+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E1%3D%5Cfrac%7B18%7D%7B4096%7D+%5C%5C%26%2338%3BP%28Y%3D6+%5Clvert+X%3D6%29%3D%5Cbinom%7B6%7D%7B6%7D+%5Cbiggl%28%5Cfrac%7B1%7D%7B4%7D%5Cbiggr%29%5E6+%5Cbiggl%28%5Cfrac%7B3%7D%7B4%7D%5Cbiggr%29%5E0%3D%5Cfrac%7B1%7D%7B4096%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} (7) &#92; &#92; &#92; Y &#92;lvert X=6 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=6)=&#92;binom{6}{0} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^0 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^6=&#92;frac{729}{4096} &#92;&#92;&amp;P(Y=1 &#92;lvert X=6)=&#92;binom{6}{1} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^1 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^5=&#92;frac{1458}{4096} &#92;&#92;&amp;P(Y=2 &#92;lvert X=6)=&#92;binom{6}{2} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^2 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^4=&#92;frac{1215}{4096} &#92;&#92;&amp;P(Y=3 &#92;lvert X=6)=&#92;binom{6}{3} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^3 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^3=&#92;frac{540}{4096} &#92;&#92;&amp;P(Y=4 &#92;lvert X=6)=&#92;binom{6}{4} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^4 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^2=&#92;frac{135}{4096} &#92;&#92;&amp;P(Y=5 &#92;lvert X=6)=&#92;binom{6}{5} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^5 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^1=&#92;frac{18}{4096} &#92;&#92;&amp;P(Y=6 &#92;lvert X=6)=&#92;binom{6}{6} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^6 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^0=&#92;frac{1}{4096} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} (7) &#92; &#92; &#92; Y &#92;lvert X=6 &#92; &#92; &#92; &#92; &#92; &amp;P(Y=0 &#92;lvert X=6)=&#92;binom{6}{0} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^0 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^6=&#92;frac{729}{4096} &#92;&#92;&amp;P(Y=1 &#92;lvert X=6)=&#92;binom{6}{1} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^1 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^5=&#92;frac{1458}{4096} &#92;&#92;&amp;P(Y=2 &#92;lvert X=6)=&#92;binom{6}{2} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^2 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^4=&#92;frac{1215}{4096} &#92;&#92;&amp;P(Y=3 &#92;lvert X=6)=&#92;binom{6}{3} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^3 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^3=&#92;frac{540}{4096} &#92;&#92;&amp;P(Y=4 &#92;lvert X=6)=&#92;binom{6}{4} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^4 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^2=&#92;frac{135}{4096} &#92;&#92;&amp;P(Y=5 &#92;lvert X=6)=&#92;binom{6}{5} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^5 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^1=&#92;frac{18}{4096} &#92;&#92;&amp;P(Y=6 &#92;lvert X=6)=&#92;binom{6}{6} &#92;biggl(&#92;frac{1}{4}&#92;biggr)^6 &#92;biggl(&#92;frac{3}{4}&#92;biggr)^0=&#92;frac{1}{4096} &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Problem 1.3</strong></em><br />
To find the marginal probability <img src='http://s0.wp.com/latex.php?latex=P%28Y%3Dy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(Y=y)' title='P(Y=y)' class='latex' />, we need to sum <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx%2CY%3Dy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x,Y=y)' title='P(X=x,Y=y)' class='latex' /> over all <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' />. For example, <img src='http://s0.wp.com/latex.php?latex=P%28Y%3D2%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(Y=2)' title='P(Y=2)' class='latex' /> is the sum of <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx%2CY%3D2%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x,Y=2)' title='P(X=x,Y=2)' class='latex' /> for all <img src='http://s0.wp.com/latex.php?latex=x%3D2%2C3%2C4%2C5%2C6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x=2,3,4,5,6' title='x=2,3,4,5,6' class='latex' />. See the following diagram</p>
<p><em><strong>Figure 3</strong></em><br />
<img src="http://basicmathsuccess.files.wordpress.com/2012/01/sample-space-joint-distribution-3.jpg?w=640&#038;h=524" alt="" title="Sample Space - Joint Distribution" width="640" height="524" class="alignnone size-full wp-image-203" /></p>
<p>As indicated in <img src='http://s0.wp.com/latex.php?latex=%281%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(1)' title='(1)' class='latex' />, each <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx%2CY%3D2%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x,Y=2)' title='P(X=x,Y=2)' class='latex' /> is the product of a conditional probability <img src='http://s0.wp.com/latex.php?latex=P%28Y%3Dy+%5Clvert+X%3Dx%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(Y=y &#92;lvert X=x)' title='P(Y=y &#92;lvert X=x)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx%29%3D%5Cfrac%7B1%7D%7B6%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x)=&#92;frac{1}{6}' title='P(X=x)=&#92;frac{1}{6}' class='latex' />. Thus the probability indicated in Figure 3 can be translated as:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%288%29+%5C+%5C+%5C+%5C+%5C+P%28Y%3D2%29%26%2338%3B%3D%5Csum+%5Climits_%7Bx%3D2%7D%5E6+P%28Y%3D2+%5Clvert+X%3Dx%29+P%28X%3Dx%29++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(8) &#92; &#92; &#92; &#92; &#92; P(Y=2)&amp;=&#92;sum &#92;limits_{x=2}^6 P(Y=2 &#92;lvert X=x) P(X=x)  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(8) &#92; &#92; &#92; &#92; &#92; P(Y=2)&amp;=&#92;sum &#92;limits_{x=2}^6 P(Y=2 &#92;lvert X=x) P(X=x)  &#92;end{aligned}' class='latex' /></p>
<p>We now begin the calculation.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%289%29+%5C+%5C+%5C+%5C+%5C+P%28Y%3D0%29%26%2338%3B%3D%5Csum+%5Climits_%7Bx%3D1%7D%5E6+P%28Y%3D0+%5Clvert+X%3Dx%29+P%28X%3Dx%29+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B6%7D+%5Cbiggl%5B+%5Cfrac%7B3%7D%7B4%7D%2B%5Cfrac%7B9%7D%7B16%7D%2B%5Cfrac%7B27%7D%7B64%7D+%5C%5C%26%2338%3B%2B+%5C+%5C+%5C+%5Cfrac%7B81%7D%7B256%7D%2B%5Cfrac%7B243%7D%7B1024%7D%2B%5Cfrac%7B729%7D%7B4096%7D+%5Cbiggr%5D+%5C%5C%26%2338%3B%3D%5Cfrac%7B10101%7D%7B24576%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(9) &#92; &#92; &#92; &#92; &#92; P(Y=0)&amp;=&#92;sum &#92;limits_{x=1}^6 P(Y=0 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{3}{4}+&#92;frac{9}{16}+&#92;frac{27}{64} &#92;&#92;&amp;+ &#92; &#92; &#92; &#92;frac{81}{256}+&#92;frac{243}{1024}+&#92;frac{729}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{10101}{24576} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(9) &#92; &#92; &#92; &#92; &#92; P(Y=0)&amp;=&#92;sum &#92;limits_{x=1}^6 P(Y=0 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{3}{4}+&#92;frac{9}{16}+&#92;frac{27}{64} &#92;&#92;&amp;+ &#92; &#92; &#92; &#92;frac{81}{256}+&#92;frac{243}{1024}+&#92;frac{729}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{10101}{24576} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2810%29+%5C+%5C+%5C+%5C+%5C+P%28Y%3D1%29%26%2338%3B%3D%5Csum+%5Climits_%7Bx%3D1%7D%5E6+P%28Y%3D1+%5Clvert+X%3Dx%29+P%28X%3Dx%29+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B6%7D+%5Cbiggl%5B+%5Cfrac%7B1%7D%7B4%7D%2B%5Cfrac%7B6%7D%7B16%7D%2B%5Cfrac%7B27%7D%7B64%7D+%5C%5C%26%2338%3B%2B+%5C+%5C+%5C+%5Cfrac%7B108%7D%7B256%7D%2B%5Cfrac%7B405%7D%7B1024%7D%2B%5Cfrac%7B1458%7D%7B4096%7D+%5Cbiggr%5D+%5C%5C%26%2338%3B%3D%5Cfrac%7B9094%7D%7B24576%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(10) &#92; &#92; &#92; &#92; &#92; P(Y=1)&amp;=&#92;sum &#92;limits_{x=1}^6 P(Y=1 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{4}+&#92;frac{6}{16}+&#92;frac{27}{64} &#92;&#92;&amp;+ &#92; &#92; &#92; &#92;frac{108}{256}+&#92;frac{405}{1024}+&#92;frac{1458}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{9094}{24576} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(10) &#92; &#92; &#92; &#92; &#92; P(Y=1)&amp;=&#92;sum &#92;limits_{x=1}^6 P(Y=1 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{4}+&#92;frac{6}{16}+&#92;frac{27}{64} &#92;&#92;&amp;+ &#92; &#92; &#92; &#92;frac{108}{256}+&#92;frac{405}{1024}+&#92;frac{1458}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{9094}{24576} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2811%29+%5C+%5C+%5C+%5C+%5C+P%28Y%3D2%29%26%2338%3B%3D%5Csum+%5Climits_%7Bx%3D2%7D%5E6+P%28Y%3D2+%5Clvert+X%3Dx%29+P%28X%3Dx%29+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B6%7D+%5Cbiggl%5B+%5Cfrac%7B1%7D%7B16%7D%2B%5Cfrac%7B9%7D%7B64%7D+%5C%5C%26%2338%3B%2B+%5C+%5C+%5C+%5Cfrac%7B54%7D%7B256%7D%2B%5Cfrac%7B270%7D%7B1024%7D%2B%5Cfrac%7B1215%7D%7B4096%7D+%5Cbiggr%5D+%5C%5C%26%2338%3B%3D%5Cfrac%7B3991%7D%7B24576%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(11) &#92; &#92; &#92; &#92; &#92; P(Y=2)&amp;=&#92;sum &#92;limits_{x=2}^6 P(Y=2 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{16}+&#92;frac{9}{64} &#92;&#92;&amp;+ &#92; &#92; &#92; &#92;frac{54}{256}+&#92;frac{270}{1024}+&#92;frac{1215}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{3991}{24576} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(11) &#92; &#92; &#92; &#92; &#92; P(Y=2)&amp;=&#92;sum &#92;limits_{x=2}^6 P(Y=2 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{16}+&#92;frac{9}{64} &#92;&#92;&amp;+ &#92; &#92; &#92; &#92;frac{54}{256}+&#92;frac{270}{1024}+&#92;frac{1215}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{3991}{24576} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2812%29+%5C+%5C+%5C+%5C+%5C+P%28Y%3D3%29%26%2338%3B%3D%5Csum+%5Climits_%7Bx%3D3%7D%5E6+P%28Y%3D3+%5Clvert+X%3Dx%29+P%28X%3Dx%29+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B6%7D+%5Cbiggl%5B+%5Cfrac%7B1%7D%7B64%7D+%5C%5C%26%2338%3B%2B+%5C+%5C+%5C+%5Cfrac%7B12%7D%7B256%7D%2B%5Cfrac%7B90%7D%7B1024%7D%2B%5Cfrac%7B540%7D%7B4096%7D+%5Cbiggr%5D+%5C%5C%26%2338%3B%3D%5Cfrac%7B1156%7D%7B24576%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(12) &#92; &#92; &#92; &#92; &#92; P(Y=3)&amp;=&#92;sum &#92;limits_{x=3}^6 P(Y=3 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{64} &#92;&#92;&amp;+ &#92; &#92; &#92; &#92;frac{12}{256}+&#92;frac{90}{1024}+&#92;frac{540}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{1156}{24576} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(12) &#92; &#92; &#92; &#92; &#92; P(Y=3)&amp;=&#92;sum &#92;limits_{x=3}^6 P(Y=3 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{64} &#92;&#92;&amp;+ &#92; &#92; &#92; &#92;frac{12}{256}+&#92;frac{90}{1024}+&#92;frac{540}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{1156}{24576} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2813%29+%5C+%5C+%5C+%5C+%5C+P%28Y%3D4%29%26%2338%3B%3D%5Csum+%5Climits_%7Bx%3D4%7D%5E6+P%28Y%3D4+%5Clvert+X%3Dx%29+P%28X%3Dx%29+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B6%7D+%5Cbiggl%5B+%5Cfrac%7B1%7D%7B256%7D%2B%5Cfrac%7B15%7D%7B1024%7D%2B%5Cfrac%7B135%7D%7B4096%7D+%5Cbiggr%5D+%5C%5C%26%2338%3B%3D%5Cfrac%7B211%7D%7B24576%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(13) &#92; &#92; &#92; &#92; &#92; P(Y=4)&amp;=&#92;sum &#92;limits_{x=4}^6 P(Y=4 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{256}+&#92;frac{15}{1024}+&#92;frac{135}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{211}{24576} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(13) &#92; &#92; &#92; &#92; &#92; P(Y=4)&amp;=&#92;sum &#92;limits_{x=4}^6 P(Y=4 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{256}+&#92;frac{15}{1024}+&#92;frac{135}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{211}{24576} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2814%29+%5C+%5C+%5C+%5C+%5C+P%28Y%3D5%29%26%2338%3B%3D%5Csum+%5Climits_%7Bx%3D5%7D%5E6+P%28Y%3D5+%5Clvert+X%3Dx%29+P%28X%3Dx%29+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B6%7D+%5Cbiggl%5B+%5Cfrac%7B1%7D%7B1024%7D%2B%5Cfrac%7B18%7D%7B4096%7D+%5Cbiggr%5D+%5C%5C%26%2338%3B%3D%5Cfrac%7B22%7D%7B24576%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(14) &#92; &#92; &#92; &#92; &#92; P(Y=5)&amp;=&#92;sum &#92;limits_{x=5}^6 P(Y=5 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{1024}+&#92;frac{18}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{22}{24576} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(14) &#92; &#92; &#92; &#92; &#92; P(Y=5)&amp;=&#92;sum &#92;limits_{x=5}^6 P(Y=5 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{1024}+&#92;frac{18}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{22}{24576} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2815%29+%5C+%5C+%5C+%5C+%5C+P%28Y%3D6%29%26%2338%3B%3D%5Csum+%5Climits_%7Bx%3D6%7D%5E6+P%28Y%3D6+%5Clvert+X%3Dx%29+P%28X%3Dx%29+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B6%7D+%5Cbiggl%5B+%5Cfrac%7B1%7D%7B4096%7D+%5Cbiggr%5D+%5C%5C%26%2338%3B%3D%5Cfrac%7B1%7D%7B24576%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(15) &#92; &#92; &#92; &#92; &#92; P(Y=6)&amp;=&#92;sum &#92;limits_{x=6}^6 P(Y=6 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{1}{24576} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(15) &#92; &#92; &#92; &#92; &#92; P(Y=6)&amp;=&#92;sum &#92;limits_{x=6}^6 P(Y=6 &#92;lvert X=x) P(X=x) &#92;&#92;&amp;=&#92;frac{1}{6} &#92;biggl[ &#92;frac{1}{4096} &#92;biggr] &#92;&#92;&amp;=&#92;frac{1}{24576} &#92;end{aligned}' class='latex' /></p>
<p>The following is the calculation of the mean and variance of <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' />.</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2816%29+%5C+%5C+%5C+%5C+%5C+E%28Y%29%26%2338%3B%3D%5Cfrac%7B10101%7D%7B24576%7D+%5Ctimes+0%2B%5Cfrac%7B9094%7D%7B24576%7D+%5Ctimes+1%2B%5Cfrac%7B3991%7D%7B24576%7D+%5Ctimes+2++%5C%5C%26%2338%3B%2B+%5C+%5C+%5C+%5C+%5Cfrac%7B1156%7D%7B24576%7D+%5Ctimes+3%2B%5Cfrac%7B211%7D%7B24576%7D+%5Ctimes+4%2B%5Cfrac%7B22%7D%7B24576%7D+%5Ctimes+5+%5C%5C%26%2338%3B%2B+%5C+%5C+%5C+%5C+%5Cfrac%7B1%7D%7B24576%7D+%5Ctimes+6++%5C%5C%26%2338%3B%3D%5Cfrac%7B21504%7D%7B24576%7D%5C%5C%26%2338%3B%3D0.875+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(16) &#92; &#92; &#92; &#92; &#92; E(Y)&amp;=&#92;frac{10101}{24576} &#92;times 0+&#92;frac{9094}{24576} &#92;times 1+&#92;frac{3991}{24576} &#92;times 2  &#92;&#92;&amp;+ &#92; &#92; &#92; &#92; &#92;frac{1156}{24576} &#92;times 3+&#92;frac{211}{24576} &#92;times 4+&#92;frac{22}{24576} &#92;times 5 &#92;&#92;&amp;+ &#92; &#92; &#92; &#92; &#92;frac{1}{24576} &#92;times 6  &#92;&#92;&amp;=&#92;frac{21504}{24576}&#92;&#92;&amp;=0.875 &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(16) &#92; &#92; &#92; &#92; &#92; E(Y)&amp;=&#92;frac{10101}{24576} &#92;times 0+&#92;frac{9094}{24576} &#92;times 1+&#92;frac{3991}{24576} &#92;times 2  &#92;&#92;&amp;+ &#92; &#92; &#92; &#92; &#92;frac{1156}{24576} &#92;times 3+&#92;frac{211}{24576} &#92;times 4+&#92;frac{22}{24576} &#92;times 5 &#92;&#92;&amp;+ &#92; &#92; &#92; &#92; &#92;frac{1}{24576} &#92;times 6  &#92;&#92;&amp;=&#92;frac{21504}{24576}&#92;&#92;&amp;=0.875 &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2817%29+%5C+%5C+%5C+%5C+%5C+E%28Y%5E2%29%26%2338%3B%3D%5Cfrac%7B10101%7D%7B24576%7D+%5Ctimes+0%2B%5Cfrac%7B9094%7D%7B24576%7D+%5Ctimes+1%2B%5Cfrac%7B3991%7D%7B24576%7D+%5Ctimes+2%5E2++%5C%5C%26%2338%3B%2B+%5C+%5C+%5C+%5C+%5Cfrac%7B1156%7D%7B24576%7D+%5Ctimes+3%5E2%2B%5Cfrac%7B211%7D%7B24576%7D+%5Ctimes+4%5E2%2B%5Cfrac%7B22%7D%7B24576%7D+%5Ctimes+5%5E2+%5C%5C%26%2338%3B%2B+%5C+%5C+%5C+%5C+%5Cfrac%7B1%7D%7B24576%7D+%5Ctimes+6%5E2++%5C%5C%26%2338%3B%3D%5Cfrac%7B39424%7D%7B24576%7D%5C%5C%26%2338%3B%3D%5Cfrac%7B77%7D%7B48%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(17) &#92; &#92; &#92; &#92; &#92; E(Y^2)&amp;=&#92;frac{10101}{24576} &#92;times 0+&#92;frac{9094}{24576} &#92;times 1+&#92;frac{3991}{24576} &#92;times 2^2  &#92;&#92;&amp;+ &#92; &#92; &#92; &#92; &#92;frac{1156}{24576} &#92;times 3^2+&#92;frac{211}{24576} &#92;times 4^2+&#92;frac{22}{24576} &#92;times 5^2 &#92;&#92;&amp;+ &#92; &#92; &#92; &#92; &#92;frac{1}{24576} &#92;times 6^2  &#92;&#92;&amp;=&#92;frac{39424}{24576}&#92;&#92;&amp;=&#92;frac{77}{48} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(17) &#92; &#92; &#92; &#92; &#92; E(Y^2)&amp;=&#92;frac{10101}{24576} &#92;times 0+&#92;frac{9094}{24576} &#92;times 1+&#92;frac{3991}{24576} &#92;times 2^2  &#92;&#92;&amp;+ &#92; &#92; &#92; &#92; &#92;frac{1156}{24576} &#92;times 3^2+&#92;frac{211}{24576} &#92;times 4^2+&#92;frac{22}{24576} &#92;times 5^2 &#92;&#92;&amp;+ &#92; &#92; &#92; &#92; &#92;frac{1}{24576} &#92;times 6^2  &#92;&#92;&amp;=&#92;frac{39424}{24576}&#92;&#92;&amp;=&#92;frac{77}{48} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%2818%29+%5C+%5C+%5C+%5C+%5C+Var%28Y%29%3D%5Cfrac%7B77%7D%7B48%7D-0.875%5E2%3D%5Cfrac%7B161%7D%7B192%7D%3D0.8385&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle (18) &#92; &#92; &#92; &#92; &#92; Var(Y)=&#92;frac{77}{48}-0.875^2=&#92;frac{161}{192}=0.8385' title='&#92;displaystyle (18) &#92; &#92; &#92; &#92; &#92; Var(Y)=&#92;frac{77}{48}-0.875^2=&#92;frac{161}{192}=0.8385' class='latex' /></p>
<p><em><strong>Problem 1.4</strong></em><br />
The conditional probability <img src='http://s0.wp.com/latex.php?latex=P%28Y%3Dy+%5Clvert+X%3Dx%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(Y=y &#92;lvert X=x)' title='P(Y=y &#92;lvert X=x)' class='latex' /> is easy to compute since it is a given that <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> is a binomial variable conditional on a value of <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' />. Now we want to find the backward probability <img src='http://s0.wp.com/latex.php?latex=P%28X%3D+x+%5Clvert+Y%3Dy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X= x &#92;lvert Y=y)' title='P(X= x &#92;lvert Y=y)' class='latex' />. Given the binomial observation is <img src='http://s0.wp.com/latex.php?latex=Y%3Dy&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y=y' title='Y=y' class='latex' />, what is the probability that the roll of the die is <img src='http://s0.wp.com/latex.php?latex=X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X=x' title='X=x' class='latex' />? This is an application of the Bayes&#8217; theorem. We can start by looking at Figure 3 once more.</p>
<p>Consider  <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx+%5Clvert+Y%3D2%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x &#92;lvert Y=2)' title='P(X=x &#92;lvert Y=2)' class='latex' />. In calculating this conditional probability, we only consider the 5 sample points encircled in Figure 3 and disregard all the other points. These 5 points become a new sample space if you will (this is the essence of conditional probability and conditional distribution). The sum of the joint probability <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx%2CY%3Dy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x,Y=y)' title='P(X=x,Y=y)' class='latex' /> for these 5 points is <img src='http://s0.wp.com/latex.php?latex=P%28Y%3D2%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(Y=2)' title='P(Y=2)' class='latex' />, calculated in the previous step. The conditional probability <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx+%5Clvert+Y%3D2%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x &#92;lvert Y=2)' title='P(X=x &#92;lvert Y=2)' class='latex' /> is simply the probability of one of these 5 points as a fraction of the total probability <img src='http://s0.wp.com/latex.php?latex=P%28Y%3D2%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(Y=2)' title='P(Y=2)' class='latex' />. Thus we have:</p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2819%29+%5C+%5C+%5C+%5C+%5C+P%28X%3Dx+%5Clvert+Y%3D2%29%26%2338%3B%3D%5Cfrac%7BP%28X%3Dx%2CY%3D2%29%7D%7BP%28Y%3D2%29%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(19) &#92; &#92; &#92; &#92; &#92; P(X=x &#92;lvert Y=2)&amp;=&#92;frac{P(X=x,Y=2)}{P(Y=2)} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(19) &#92; &#92; &#92; &#92; &#92; P(X=x &#92;lvert Y=2)&amp;=&#92;frac{P(X=x,Y=2)}{P(Y=2)} &#92;end{aligned}' class='latex' /></p>
<p>We do not have to evaluate the components that go into <img src='http://s0.wp.com/latex.php?latex=%2819%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(19)' title='(19)' class='latex' />. As a practical matter, to find <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx+%5Clvert+Y%3D2%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x &#92;lvert Y=2)' title='P(X=x &#92;lvert Y=2)' class='latex' /> is to take each of 5 probabilities shown in <img src='http://s0.wp.com/latex.php?latex=%2811%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='(11)' title='(11)' class='latex' /> and evaluate it as a fraction of the total probability <img src='http://s0.wp.com/latex.php?latex=P%28Y%3D2%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(Y=2)' title='P(Y=2)' class='latex' />. Thus we have:</p>
<p><em><strong>Calculation of <img src='http://s0.wp.com/latex.php?latex=%5Cbold+P+%5Cbold+%28+%5Cbold+X+%5Cbold+%3D+%5Cbold+x+%5Cbold+%5Clvert+%5Cbold+Y+%5Cbold+%3D+%5Cbold+2+%5Cbold+%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 2 &#92;bold )' title='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 2 &#92;bold )' class='latex' /></strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2820a%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D2+%5Clvert+Y%3D2%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B1%7D%7B16%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B3991%7D%7B24576%7D%7D+%3D%5Cfrac%7B256%7D%7B3991%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(20a) &#92; &#92; &#92; &#92; &#92; P(X=2 &#92;lvert Y=2)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{16}}{&#92;displaystyle &#92;frac{3991}{24576}} =&#92;frac{256}{3991} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(20a) &#92; &#92; &#92; &#92; &#92; P(X=2 &#92;lvert Y=2)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{16}}{&#92;displaystyle &#92;frac{3991}{24576}} =&#92;frac{256}{3991} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2820b%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D3+%5Clvert+Y%3D2%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B9%7D%7B64%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B3991%7D%7B24576%7D%7D+%3D%5Cfrac%7B576%7D%7B3991%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(20b) &#92; &#92; &#92; &#92; &#92; P(X=3 &#92;lvert Y=2)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{9}{64}}{&#92;displaystyle &#92;frac{3991}{24576}} =&#92;frac{576}{3991} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(20b) &#92; &#92; &#92; &#92; &#92; P(X=3 &#92;lvert Y=2)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{9}{64}}{&#92;displaystyle &#92;frac{3991}{24576}} =&#92;frac{576}{3991} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2820c%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D4+%5Clvert+Y%3D2%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B54%7D%7B256%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B3991%7D%7B24576%7D%7D+%3D%5Cfrac%7B864%7D%7B3991%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(20c) &#92; &#92; &#92; &#92; &#92; P(X=4 &#92;lvert Y=2)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{54}{256}}{&#92;displaystyle &#92;frac{3991}{24576}} =&#92;frac{864}{3991} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(20c) &#92; &#92; &#92; &#92; &#92; P(X=4 &#92;lvert Y=2)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{54}{256}}{&#92;displaystyle &#92;frac{3991}{24576}} =&#92;frac{864}{3991} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2820d%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D5+%5Clvert+Y%3D2%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B270%7D%7B1024%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B3991%7D%7B24576%7D%7D+%3D%5Cfrac%7B1080%7D%7B3991%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(20d) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=2)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{270}{1024}}{&#92;displaystyle &#92;frac{3991}{24576}} =&#92;frac{1080}{3991} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(20d) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=2)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{270}{1024}}{&#92;displaystyle &#92;frac{3991}{24576}} =&#92;frac{1080}{3991} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2820e%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D6+%5Clvert+Y%3D2%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B1215%7D%7B4096%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B3991%7D%7B24576%7D%7D+%3D%5Cfrac%7B1215%7D%7B3991%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(20e) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=2)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1215}{4096}}{&#92;displaystyle &#92;frac{3991}{24576}} =&#92;frac{1215}{3991} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(20e) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=2)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1215}{4096}}{&#92;displaystyle &#92;frac{3991}{24576}} =&#92;frac{1215}{3991} &#92;end{aligned}' class='latex' /></p>
<p>Here&#8217;s the rest of the Bayes&#8217; calculation:</p>
<p><em><strong>Calculation of <img src='http://s0.wp.com/latex.php?latex=%5Cbold+P+%5Cbold+%28+%5Cbold+X+%5Cbold+%3D+%5Cbold+x+%5Cbold+%5Clvert+%5Cbold+Y+%5Cbold+%3D+%5Cbold+0+%5Cbold+%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 0 &#92;bold )' title='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 0 &#92;bold )' class='latex' /></strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2821a%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D1+%5Clvert+Y%3D0%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B3%7D%7B4%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B10101%7D%7B24576%7D%7D+%3D%5Cfrac%7B3072%7D%7B10101%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(21a) &#92; &#92; &#92; &#92; &#92; P(X=1 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{3}{4}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{3072}{10101} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(21a) &#92; &#92; &#92; &#92; &#92; P(X=1 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{3}{4}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{3072}{10101} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2821b%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D2+%5Clvert+Y%3D0%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B9%7D%7B16%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B10101%7D%7B24576%7D%7D+%3D%5Cfrac%7B2304%7D%7B10101%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(21b) &#92; &#92; &#92; &#92; &#92; P(X=2 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{9}{16}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{2304}{10101} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(21b) &#92; &#92; &#92; &#92; &#92; P(X=2 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{9}{16}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{2304}{10101} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2821c%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D3+%5Clvert+Y%3D0%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B27%7D%7B64%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B10101%7D%7B24576%7D%7D+%3D%5Cfrac%7B1728%7D%7B10101%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(21c) &#92; &#92; &#92; &#92; &#92; P(X=3 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{27}{64}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{1728}{10101} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(21c) &#92; &#92; &#92; &#92; &#92; P(X=3 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{27}{64}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{1728}{10101} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2821d%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D4+%5Clvert+Y%3D0%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B81%7D%7B256%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B10101%7D%7B24576%7D%7D+%3D%5Cfrac%7B1296%7D%7B10101%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(21d) &#92; &#92; &#92; &#92; &#92; P(X=4 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{81}{256}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{1296}{10101} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(21d) &#92; &#92; &#92; &#92; &#92; P(X=4 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{81}{256}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{1296}{10101} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2821e%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D5+%5Clvert+Y%3D0%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B243%7D%7B1024%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B10101%7D%7B24576%7D%7D+%3D%5Cfrac%7B972%7D%7B10101%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(21e) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{243}{1024}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{972}{10101} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(21e) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{243}{1024}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{972}{10101} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2821f%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D6+%5Clvert+Y%3D0%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B729%7D%7B4096%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B10101%7D%7B24576%7D%7D+%3D%5Cfrac%7B3729%7D%7B10101%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(21f) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{729}{4096}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{3729}{10101} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(21f) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=0)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{729}{4096}}{&#92;displaystyle &#92;frac{10101}{24576}} =&#92;frac{3729}{10101} &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Calculation of <img src='http://s0.wp.com/latex.php?latex=%5Cbold+P+%5Cbold+%28+%5Cbold+X+%5Cbold+%3D+%5Cbold+x+%5Cbold+%5Clvert+%5Cbold+Y+%5Cbold+%3D+%5Cbold+1+%5Cbold+%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 1 &#92;bold )' title='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 1 &#92;bold )' class='latex' /></strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2822a%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D1+%5Clvert+Y%3D1%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B1%7D%7B4%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B9094%7D%7B24576%7D%7D+%3D%5Cfrac%7B1024%7D%7B9094%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(22a) &#92; &#92; &#92; &#92; &#92; P(X=1 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{4}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1024}{9094} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(22a) &#92; &#92; &#92; &#92; &#92; P(X=1 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{4}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1024}{9094} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2822b%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D2+%5Clvert+Y%3D1%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B6%7D%7B16%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B9094%7D%7B24576%7D%7D+%3D%5Cfrac%7B1536%7D%7B9094%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(22b) &#92; &#92; &#92; &#92; &#92; P(X=2 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{6}{16}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1536}{9094} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(22b) &#92; &#92; &#92; &#92; &#92; P(X=2 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{6}{16}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1536}{9094} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2822c%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D3+%5Clvert+Y%3D1%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B27%7D%7B64%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B9094%7D%7B24576%7D%7D+%3D%5Cfrac%7B1728%7D%7B9094%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(22c) &#92; &#92; &#92; &#92; &#92; P(X=3 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{27}{64}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1728}{9094} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(22c) &#92; &#92; &#92; &#92; &#92; P(X=3 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{27}{64}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1728}{9094} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2822d%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D4+%5Clvert+Y%3D1%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B108%7D%7B256%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B9094%7D%7B24576%7D%7D+%3D%5Cfrac%7B1728%7D%7B9094%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(22d) &#92; &#92; &#92; &#92; &#92; P(X=4 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{108}{256}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1728}{9094} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(22d) &#92; &#92; &#92; &#92; &#92; P(X=4 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{108}{256}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1728}{9094} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2822e%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D5+%5Clvert+Y%3D1%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B405%7D%7B1024%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B9094%7D%7B24576%7D%7D+%3D%5Cfrac%7B1620%7D%7B9094%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(22e) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{405}{1024}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1620}{9094} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(22e) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{405}{1024}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1620}{9094} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2822f%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D6+%5Clvert+Y%3D1%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B1458%7D%7B4096%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B9094%7D%7B24576%7D%7D+%3D%5Cfrac%7B1458%7D%7B9094%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(22f) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1458}{4096}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1458}{9094} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(22f) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=1)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1458}{4096}}{&#92;displaystyle &#92;frac{9094}{24576}} =&#92;frac{1458}{9094} &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Calculation of <img src='http://s0.wp.com/latex.php?latex=%5Cbold+P+%5Cbold+%28+%5Cbold+X+%5Cbold+%3D+%5Cbold+x+%5Cbold+%5Clvert+%5Cbold+Y+%5Cbold+%3D+%5Cbold+2+%5Cbold+%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 2 &#92;bold )' title='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 2 &#92;bold )' class='latex' /> done earlier</strong></em></p>
<p><em><strong>Calculation of <img src='http://s0.wp.com/latex.php?latex=%5Cbold+P+%5Cbold+%28+%5Cbold+X+%5Cbold+%3D+%5Cbold+x+%5Cbold+%5Clvert+%5Cbold+Y+%5Cbold+%3D+%5Cbold+3+%5Cbold+%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 3 &#92;bold )' title='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 3 &#92;bold )' class='latex' /></strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2823a%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D3+%5Clvert+Y%3D3%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B1%7D%7B64%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B1156%7D%7B24576%7D%7D+%3D%5Cfrac%7B64%7D%7B1156%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(23a) &#92; &#92; &#92; &#92; &#92; P(X=3 &#92;lvert Y=3)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{64}}{&#92;displaystyle &#92;frac{1156}{24576}} =&#92;frac{64}{1156} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(23a) &#92; &#92; &#92; &#92; &#92; P(X=3 &#92;lvert Y=3)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{64}}{&#92;displaystyle &#92;frac{1156}{24576}} =&#92;frac{64}{1156} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2823b%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D4+%5Clvert+Y%3D3%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B12%7D%7B256%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B1156%7D%7B24576%7D%7D+%3D%5Cfrac%7B192%7D%7B1156%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(23b) &#92; &#92; &#92; &#92; &#92; P(X=4 &#92;lvert Y=3)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{12}{256}}{&#92;displaystyle &#92;frac{1156}{24576}} =&#92;frac{192}{1156} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(23b) &#92; &#92; &#92; &#92; &#92; P(X=4 &#92;lvert Y=3)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{12}{256}}{&#92;displaystyle &#92;frac{1156}{24576}} =&#92;frac{192}{1156} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2823c%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D5+%5Clvert+Y%3D3%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B90%7D%7B1024%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B1156%7D%7B24576%7D%7D+%3D%5Cfrac%7B360%7D%7B1156%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(23c) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=3)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{90}{1024}}{&#92;displaystyle &#92;frac{1156}{24576}} =&#92;frac{360}{1156} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(23c) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=3)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{90}{1024}}{&#92;displaystyle &#92;frac{1156}{24576}} =&#92;frac{360}{1156} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2823d%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D6+%5Clvert+Y%3D3%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B540%7D%7B4096%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B1156%7D%7B24576%7D%7D+%3D%5Cfrac%7B540%7D%7B1156%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(23d) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=3)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{540}{4096}}{&#92;displaystyle &#92;frac{1156}{24576}} =&#92;frac{540}{1156} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(23d) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=3)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{540}{4096}}{&#92;displaystyle &#92;frac{1156}{24576}} =&#92;frac{540}{1156} &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Calculation of <img src='http://s0.wp.com/latex.php?latex=%5Cbold+P+%5Cbold+%28+%5Cbold+X+%5Cbold+%3D+%5Cbold+x+%5Cbold+%5Clvert+%5Cbold+Y+%5Cbold+%3D+%5Cbold+4+%5Cbold+%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 4 &#92;bold )' title='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 4 &#92;bold )' class='latex' /></strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2824a%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D4+%5Clvert+Y%3D4%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B1%7D%7B256%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B211%7D%7B24576%7D%7D+%3D%5Cfrac%7B16%7D%7B211%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(24a) &#92; &#92; &#92; &#92; &#92; P(X=4 &#92;lvert Y=4)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{256}}{&#92;displaystyle &#92;frac{211}{24576}} =&#92;frac{16}{211} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(24a) &#92; &#92; &#92; &#92; &#92; P(X=4 &#92;lvert Y=4)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{256}}{&#92;displaystyle &#92;frac{211}{24576}} =&#92;frac{16}{211} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2824b%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D5+%5Clvert+Y%3D4%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B15%7D%7B1024%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B211%7D%7B24576%7D%7D+%3D%5Cfrac%7B60%7D%7B211%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(24b) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=4)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{15}{1024}}{&#92;displaystyle &#92;frac{211}{24576}} =&#92;frac{60}{211} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(24b) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=4)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{15}{1024}}{&#92;displaystyle &#92;frac{211}{24576}} =&#92;frac{60}{211} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2824c%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D6+%5Clvert+Y%3D4%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B135%7D%7B4096%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B211%7D%7B24576%7D%7D+%3D%5Cfrac%7B135%7D%7B211%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(24c) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=4)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{135}{4096}}{&#92;displaystyle &#92;frac{211}{24576}} =&#92;frac{135}{211} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(24c) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=4)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{135}{4096}}{&#92;displaystyle &#92;frac{211}{24576}} =&#92;frac{135}{211} &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Calculation of <img src='http://s0.wp.com/latex.php?latex=%5Cbold+P+%5Cbold+%28+%5Cbold+X+%5Cbold+%3D+%5Cbold+x+%5Cbold+%5Clvert+%5Cbold+Y+%5Cbold+%3D+%5Cbold+5+%5Cbold+%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 5 &#92;bold )' title='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 5 &#92;bold )' class='latex' /></strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2825a%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D5+%5Clvert+Y%3D5%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B1%7D%7B1024%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B22%7D%7B24576%7D%7D+%3D%5Cfrac%7B4%7D%7B22%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(25a) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=5)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{1024}}{&#92;displaystyle &#92;frac{22}{24576}} =&#92;frac{4}{22} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(25a) &#92; &#92; &#92; &#92; &#92; P(X=5 &#92;lvert Y=5)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{1024}}{&#92;displaystyle &#92;frac{22}{24576}} =&#92;frac{4}{22} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2825b%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D6+%5Clvert+Y%3D5%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B18%7D%7B1024%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B22%7D%7B24576%7D%7D+%3D%5Cfrac%7B18%7D%7B22%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(25b) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=5)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{18}{1024}}{&#92;displaystyle &#92;frac{22}{24576}} =&#92;frac{18}{22} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(25b) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=5)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{18}{1024}}{&#92;displaystyle &#92;frac{22}{24576}} =&#92;frac{18}{22} &#92;end{aligned}' class='latex' /></p>
<p><em><strong>Calculation of <img src='http://s0.wp.com/latex.php?latex=%5Cbold+P+%5Cbold+%28+%5Cbold+X+%5Cbold+%3D+%5Cbold+x+%5Cbold+%5Clvert+%5Cbold+Y+%5Cbold+%3D+%5Cbold+6+%5Cbold+%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 6 &#92;bold )' title='&#92;bold P &#92;bold ( &#92;bold X &#92;bold = &#92;bold x &#92;bold &#92;lvert &#92;bold Y &#92;bold = &#92;bold 6 &#92;bold )' class='latex' /></strong></em><br />
<img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D%2826%29+%5C+%5C+%5C+%5C+%5C+P%28X%3D6+%5Clvert+Y%3D6%29%26%2338%3B%3D%5Cfrac%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B6%7D+%5Ctimes+%5Cfrac%7B1%7D%7B4096%7D%7D%7B%5Cdisplaystyle+%5Cfrac%7B1%7D%7B24576%7D%7D+%3D1+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned}(26) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=6)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{4096}}{&#92;displaystyle &#92;frac{1}{24576}} =1 &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned}(26) &#92; &#92; &#92; &#92; &#92; P(X=6 &#92;lvert Y=6)&amp;=&#92;frac{&#92;displaystyle &#92;frac{1}{6} &#92;times &#92;frac{1}{4096}}{&#92;displaystyle &#92;frac{1}{24576}} =1 &#92;end{aligned}' class='latex' /></p>
<p>_____________________________________________________________<br />
<em><strong>Probem 2</strong></em><br />
Let <img src='http://s0.wp.com/latex.php?latex=X&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='X' title='X' class='latex' /> be the value of one roll of a fair die. If the value of the die is <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' />, we are given that <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x' title='Y &#92;lvert X=x' class='latex' /> has a binomial distribution with <img src='http://s0.wp.com/latex.php?latex=n%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='n=x' title='n=x' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p%3D%5Cfrac%7B1%7D%7B2%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='p=&#92;frac{1}{2}' title='p=&#92;frac{1}{2}' class='latex' /> (we use the notation <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx+%5Csim+%5Ctext%7Bbinom%7D%28x%2C%5Cfrac%7B1%7D%7B2%7D%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x &#92;sim &#92;text{binom}(x,&#92;frac{1}{2})' title='Y &#92;lvert X=x &#92;sim &#92;text{binom}(x,&#92;frac{1}{2})' class='latex' />).</p>
<ol>
<li>Discuss how the joint probability function <img src='http://s0.wp.com/latex.php?latex=P%5BX%3Dx%2CY%3Dy%5D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P[X=x,Y=y]' title='P[X=x,Y=y]' class='latex' /> is computed for <img src='http://s0.wp.com/latex.php?latex=x%3D1%2C2%2C3%2C4%2C5%2C6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x=1,2,3,4,5,6' title='x=1,2,3,4,5,6' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=y%3D0%2C1%2C+%5Ccdots%2C+x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y=0,1, &#92;cdots, x' title='y=0,1, &#92;cdots, x' class='latex' />.</li>
<li>Compute the conditional binomial distributions <img src='http://s0.wp.com/latex.php?latex=Y+%5Clvert+X%3Dx&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y &#92;lvert X=x' title='Y &#92;lvert X=x' class='latex' /> where <img src='http://s0.wp.com/latex.php?latex=x%3D1%2C2%2C3%2C4%2C5%2C6&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x=1,2,3,4,5,6' title='x=1,2,3,4,5,6' class='latex' />.</li>
<li>Compute the marginal probability function of <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' /> and the mean and variance of <img src='http://s0.wp.com/latex.php?latex=Y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='Y' title='Y' class='latex' />.</li>
<li>Compute <img src='http://s0.wp.com/latex.php?latex=P%28X%3Dx+%5Clvert+Y%3Dy%29&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='P(X=x &#92;lvert Y=y)' title='P(X=x &#92;lvert Y=y)' class='latex' /> for all applicable <img src='http://s0.wp.com/latex.php?latex=x&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='x' title='x' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=y&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='y' title='y' class='latex' />.</li>
</ol>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7B+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;text{ }' title='&#92;text{ }' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7B+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;text{ }' title='&#92;text{ }' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7B+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;text{ }' title='&#92;text{ }' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7B+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;text{ }' title='&#92;text{ }' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7B+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;text{ }' title='&#92;text{ }' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7B+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;text{ }' title='&#92;text{ }' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7B+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;text{ }' title='&#92;text{ }' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7B+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;text{ }' title='&#92;text{ }' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Ctext%7B+%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;text{ }' title='&#92;text{ }' class='latex' /></p>
<p>_____________________________________________________________<br />
<em><strong>Answers to Probem 2</strong></em></p>
<p><em><strong>Problem 2.3</strong></em></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+P%28Y%3Dy%29%3A+%5C+%5C+%5C+%5C+%26%2338%3BP%28Y%3D0%29%3D%5Cfrac%7B63%7D%7B384%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D++%5C%5C%26%2338%3BP%28Y%3D1%29%3D%5Cfrac%7B120%7D%7B384%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28Y%3D2%29%3D%5Cfrac%7B99%7D%7B384%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28Y%3D3%29%3D%5Cfrac%7B64%7D%7B384%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28Y%3D4%29%3D%5Cfrac%7B29%7D%7B384%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28Y%3D5%29%3D%5Cfrac%7B8%7D%7B384%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28Y%3D6%29%3D%5Cfrac%7B1%7D%7B384%7D+%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} P(Y=y): &#92; &#92; &#92; &#92; &amp;P(Y=0)=&#92;frac{63}{384} &#92;&#92;&amp;&#92;text{ }  &#92;&#92;&amp;P(Y=1)=&#92;frac{120}{384} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(Y=2)=&#92;frac{99}{384} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(Y=3)=&#92;frac{64}{384} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(Y=4)=&#92;frac{29}{384} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(Y=5)=&#92;frac{8}{384} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(Y=6)=&#92;frac{1}{384} &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} P(Y=y): &#92; &#92; &#92; &#92; &amp;P(Y=0)=&#92;frac{63}{384} &#92;&#92;&amp;&#92;text{ }  &#92;&#92;&amp;P(Y=1)=&#92;frac{120}{384} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(Y=2)=&#92;frac{99}{384} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(Y=3)=&#92;frac{64}{384} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(Y=4)=&#92;frac{29}{384} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(Y=5)=&#92;frac{8}{384} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(Y=6)=&#92;frac{1}{384} &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+E%28Y%29%3D%5Cfrac%7B7%7D%7B4%7D%3D1.75&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle E(Y)=&#92;frac{7}{4}=1.75' title='&#92;displaystyle E(Y)=&#92;frac{7}{4}=1.75' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+Var%28Y%29%3D%5Cfrac%7B77%7D%7B48%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle Var(Y)=&#92;frac{77}{48}' title='&#92;displaystyle Var(Y)=&#92;frac{77}{48}' class='latex' /></p>
<p><em><strong>Problem 2.4</strong></em></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+P%28X%3Dx+%5Clvert+Y%3D0%29%3A+%5C+%5C+%5C+%5C+%26%2338%3BP%28X%3D1+%5Clvert+Y%3D0%29%3D%5Cfrac%7B32%7D%7B63%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D++%5C%5C%26%2338%3BP%28X%3D2+%5Clvert+Y%3D0%29%3D%5Cfrac%7B16%7D%7B63%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D3+%5Clvert+Y%3D0%29%3D%5Cfrac%7B8%7D%7B63%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D4+%5Clvert+Y%3D0%29%3D%5Cfrac%7B4%7D%7B63%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D5+%5Clvert+Y%3D0%29%3D%5Cfrac%7B2%7D%7B63%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D6+%5Clvert+Y%3D0%29%3D%5Cfrac%7B1%7D%7B63%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=0): &#92; &#92; &#92; &#92; &amp;P(X=1 &#92;lvert Y=0)=&#92;frac{32}{63} &#92;&#92;&amp;&#92;text{ }  &#92;&#92;&amp;P(X=2 &#92;lvert Y=0)=&#92;frac{16}{63} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=3 &#92;lvert Y=0)=&#92;frac{8}{63} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=4 &#92;lvert Y=0)=&#92;frac{4}{63} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=5 &#92;lvert Y=0)=&#92;frac{2}{63} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=0)=&#92;frac{1}{63}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=0): &#92; &#92; &#92; &#92; &amp;P(X=1 &#92;lvert Y=0)=&#92;frac{32}{63} &#92;&#92;&amp;&#92;text{ }  &#92;&#92;&amp;P(X=2 &#92;lvert Y=0)=&#92;frac{16}{63} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=3 &#92;lvert Y=0)=&#92;frac{8}{63} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=4 &#92;lvert Y=0)=&#92;frac{4}{63} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=5 &#92;lvert Y=0)=&#92;frac{2}{63} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=0)=&#92;frac{1}{63}  &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+P%28X%3Dx+%5Clvert+Y%3D1%29%3A+%5C+%5C+%5C+%5C+%26%2338%3BP%28X%3D1+%5Clvert+Y%3D1%29%3D%5Cfrac%7B32%7D%7B120%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D++%5C%5C%26%2338%3BP%28X%3D2+%5Clvert+Y%3D1%29%3D%5Cfrac%7B32%7D%7B120%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D3+%5Clvert+Y%3D1%29%3D%5Cfrac%7B24%7D%7B120%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D4+%5Clvert+Y%3D1%29%3D%5Cfrac%7B16%7D%7B120%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D5+%5Clvert+Y%3D1%29%3D%5Cfrac%7B10%7D%7B120%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D6+%5Clvert+Y%3D1%29%3D%5Cfrac%7B6%7D%7B120%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=1): &#92; &#92; &#92; &#92; &amp;P(X=1 &#92;lvert Y=1)=&#92;frac{32}{120} &#92;&#92;&amp;&#92;text{ }  &#92;&#92;&amp;P(X=2 &#92;lvert Y=1)=&#92;frac{32}{120} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=3 &#92;lvert Y=1)=&#92;frac{24}{120} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=4 &#92;lvert Y=1)=&#92;frac{16}{120} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=5 &#92;lvert Y=1)=&#92;frac{10}{120} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=1)=&#92;frac{6}{120}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=1): &#92; &#92; &#92; &#92; &amp;P(X=1 &#92;lvert Y=1)=&#92;frac{32}{120} &#92;&#92;&amp;&#92;text{ }  &#92;&#92;&amp;P(X=2 &#92;lvert Y=1)=&#92;frac{32}{120} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=3 &#92;lvert Y=1)=&#92;frac{24}{120} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=4 &#92;lvert Y=1)=&#92;frac{16}{120} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=5 &#92;lvert Y=1)=&#92;frac{10}{120} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=1)=&#92;frac{6}{120}  &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+P%28X%3Dx+%5Clvert+Y%3D2%29%3A+%5C+%5C+%5C+%5C+%26%2338%3BP%28X%3D2+%5Clvert+Y%3D2%29%3D%5Cfrac%7B16%7D%7B99%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D3+%5Clvert+Y%3D2%29%3D%5Cfrac%7B24%7D%7B99%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D4+%5Clvert+Y%3D2%29%3D%5Cfrac%7B24%7D%7B99%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D5+%5Clvert+Y%3D2%29%3D%5Cfrac%7B20%7D%7B99%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D6+%5Clvert+Y%3D2%29%3D%5Cfrac%7B15%7D%7B99%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=2): &#92; &#92; &#92; &#92; &amp;P(X=2 &#92;lvert Y=2)=&#92;frac{16}{99} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=3 &#92;lvert Y=2)=&#92;frac{24}{99} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=4 &#92;lvert Y=2)=&#92;frac{24}{99} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=5 &#92;lvert Y=2)=&#92;frac{20}{99} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=2)=&#92;frac{15}{99}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=2): &#92; &#92; &#92; &#92; &amp;P(X=2 &#92;lvert Y=2)=&#92;frac{16}{99} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=3 &#92;lvert Y=2)=&#92;frac{24}{99} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=4 &#92;lvert Y=2)=&#92;frac{24}{99} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=5 &#92;lvert Y=2)=&#92;frac{20}{99} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=2)=&#92;frac{15}{99}  &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+P%28X%3Dx+%5Clvert+Y%3D3%29%3A+%5C+%5C+%5C+%5C+%26%2338%3BP%28X%3D3+%5Clvert+Y%3D3%29%3D%5Cfrac%7B8%7D%7B64%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D4+%5Clvert+Y%3D3%29%3D%5Cfrac%7B16%7D%7B64%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D5+%5Clvert+Y%3D3%29%3D%5Cfrac%7B20%7D%7B64%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D6+%5Clvert+Y%3D3%29%3D%5Cfrac%7B20%7D%7B64%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=3): &#92; &#92; &#92; &#92; &amp;P(X=3 &#92;lvert Y=3)=&#92;frac{8}{64} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=4 &#92;lvert Y=3)=&#92;frac{16}{64} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=5 &#92;lvert Y=3)=&#92;frac{20}{64} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=3)=&#92;frac{20}{64}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=3): &#92; &#92; &#92; &#92; &amp;P(X=3 &#92;lvert Y=3)=&#92;frac{8}{64} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=4 &#92;lvert Y=3)=&#92;frac{16}{64} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=5 &#92;lvert Y=3)=&#92;frac{20}{64} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=3)=&#92;frac{20}{64}  &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+P%28X%3Dx+%5Clvert+Y%3D4%29%3A+%5C+%5C+%5C+%5C+%26%2338%3BP%28X%3D4+%5Clvert+Y%3D4%29%3D%5Cfrac%7B4%7D%7B29%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D5+%5Clvert+Y%3D4%29%3D%5Cfrac%7B10%7D%7B29%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D6+%5Clvert+Y%3D4%29%3D%5Cfrac%7B15%7D%7B29%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=4): &#92; &#92; &#92; &#92; &amp;P(X=4 &#92;lvert Y=4)=&#92;frac{4}{29} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=5 &#92;lvert Y=4)=&#92;frac{10}{29} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=4)=&#92;frac{15}{29}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=4): &#92; &#92; &#92; &#92; &amp;P(X=4 &#92;lvert Y=4)=&#92;frac{4}{29} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=5 &#92;lvert Y=4)=&#92;frac{10}{29} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=4)=&#92;frac{15}{29}  &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+P%28X%3Dx+%5Clvert+Y%3D5%29%3A+%5C+%5C+%5C+%5C+%26%2338%3BP%28X%3D5+%5Clvert+Y%3D5%29%3D%5Cfrac%7B2%7D%7B8%7D+%5C%5C%26%2338%3B%5Ctext%7B+%7D+%5C%5C%26%2338%3BP%28X%3D6+%5Clvert+Y%3D5%29%3D%5Cfrac%7B6%7D%7B8%7D++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=5): &#92; &#92; &#92; &#92; &amp;P(X=5 &#92;lvert Y=5)=&#92;frac{2}{8} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=5)=&#92;frac{6}{8}  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=5): &#92; &#92; &#92; &#92; &amp;P(X=5 &#92;lvert Y=5)=&#92;frac{2}{8} &#92;&#92;&amp;&#92;text{ } &#92;&#92;&amp;P(X=6 &#92;lvert Y=5)=&#92;frac{6}{8}  &#92;end{aligned}' class='latex' /></p>
<p><img src='http://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Cbegin%7Baligned%7D+P%28X%3Dx+%5Clvert+Y%3D6%29%3A+%5C+%5C+%5C+%5C+%26%2338%3BP%28X%3D6+%5Clvert+Y%3D6%29%3D1++%5Cend%7Baligned%7D&amp;bg=ffffff&amp;fg=000&amp;s=0' alt='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=6): &#92; &#92; &#92; &#92; &amp;P(X=6 &#92;lvert Y=6)=1  &#92;end{aligned}' title='&#92;displaystyle &#92;begin{aligned} P(X=x &#92;lvert Y=6): &#92; &#92; &#92; &#92; &amp;P(X=6 &#92;lvert Y=6)=1  &#92;end{aligned}' class='latex' /></p>
]]></content:encoded>
</item>

</channel>
</rss>
