<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nate&#039;s blog &#187; pdf</title>
	<atom:link href="http://www.natenewz.com/tag/pdf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.natenewz.com</link>
	<description>My various projects</description>
	<lastBuildDate>Tue, 29 Jun 2010 18:00:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Convolution of Two Uniform Probability Distributions</title>
		<link>http://www.natenewz.com/2009/11/01/convolution-of-two-uniform-probability-distributions/</link>
		<comments>http://www.natenewz.com/2009/11/01/convolution-of-two-uniform-probability-distributions/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 10:36:27 +0000</pubDate>
		<dc:creator>nate</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[arrival time]]></category>
		<category><![CDATA[central limit theorem]]></category>
		<category><![CDATA[continuous]]></category>
		<category><![CDATA[convolution]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[probability density function]]></category>
		<category><![CDATA[step function]]></category>
		<category><![CDATA[uniform]]></category>

		<guid isPermaLink="false">http://www.natenewz.com/?p=140</guid>
		<description><![CDATA[The Problem
Two friends A and B meet every morning at the Grand Central Station around 7 am. Suppose the actual times they arrive are independent and uniformly distributed between 6:55 am and 7:05am. Let Z denote the time between arrivals, i.e. Z = time B arrives &#8211; time A arrives (can be negative!).
(a) What is [...]]]></description>
			<content:encoded><![CDATA[<h3>The Problem</h3>
<p>Two friends A and B meet every morning at the Grand Central Station around 7 am. Suppose the actual times they arrive are independent and uniformly distributed between 6:55 am and 7:05am. Let Z denote the time between arrivals, i.e. Z = time B arrives &#8211; time A arrives (can be negative!).<br />
(a) What is the range of values of Z (i.e Im(Z))?<br />
(b) Find the density of Z (derive a formula similar to the convolution formula derived in class).</p>
<h3>The Solution</h3>
<p>(a) The times for Z can vary from -10 to 10. Suppose friend A arrives at 6:55 and friend B arrives at 7:05. Z would = -10. The other way around will result in Z = 10<br />
(b)</p>
<h4>Define Random Variables</h4>
<p>X = # of minutes (continuous) after 6:55 friend A arrives<br />
Y = # of minutes (continuous) after 6:55 friend B arrives</p>
<h4>Outline of Problem</h4>
<ul>
<li>The probability distribution functions of X and Y are uniform (constant and area = 1)</li>
<li>The convolution of the pdf&#8217;s of X and the negative of Y (X-Y) equal the pdf of Z</li>
<li>The result should look closer to the normal curve because of the Central Limit Theorem</li>
</ul>
<h4>The two input pdf&#8217;s and the result of the convolution which is the pdf of Z</h4>
<div style="overflow: auto;"><a href="http://fooplot.com/index.php?&amp;type0=0&amp;type1=0&amp;type2=0&amp;type3=0&amp;type4=0&amp;y0=1/10*%28-2x*u%28x%29%2B%28x%2B10%29*u%28x%2B10%29%2B%28x-10%29*u%28x-10%29%29&amp;y1=u%28x%29-u%28x-10%29&amp;y2=u%28x%2B10%29-u%28x%29&amp;y3=&amp;y4=&amp;r0=&amp;r1=&amp;r2=&amp;r3=&amp;r4=&amp;px0=&amp;px1=&amp;px2=&amp;px3=&amp;px4=&amp;py0=&amp;py1=&amp;py2=&amp;py3=&amp;py4=&amp;smin0=0&amp;smin1=0&amp;smin2=0&amp;smin3=0&amp;smin4=0&amp;smax0=2pi&amp;smax1=2pi&amp;smax2=2pi&amp;smax3=2pi&amp;smax4=2pi&amp;thetamin0=0&amp;thetamin1=0&amp;thetamin2=0&amp;thetamin3=0&amp;thetamin4=0&amp;thetamax0=2pi&amp;thetamax1=2pi&amp;thetamax2=2pi&amp;thetamax3=2pi&amp;thetamax4=2pi&amp;ipw=0&amp;ixmin=-5&amp;ixmax=5&amp;iymin=-3&amp;iymax=3&amp;igx=1&amp;igy=0.1&amp;igl=1&amp;igs=0&amp;iax=1&amp;ila=1&amp;xmin=-10.639526885769323&amp;xmax=10.834918728558375&amp;ymin=-0.23476296218988496&amp;ymax=1.6345029848685044"><img class="alignleft size-full wp-image-158" title="pdf's and the result of convolution" src="http://www.natenewz.com/wp-content/uploads/2009/11/save.png" alt="pdf's and the result of convolution" width="500" height="300" /></a></div>
<h4>Performing the convolution</h4>
<p><strong>Note: a=10</strong></p>
<ul style='list-style: none;'>
<li><img src='http://s.wordpress.com/latex.php?latex=Z%3DX-Y&#038;bg=T&#038;fg=000000&#038;s=1' alt='Z=X-Y' title='Z=X-Y' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=f_x%28t%29%20%3D%201%2Fa%2A%28u%28t%29%20%2B%20u%28t-a%29%29&#038;bg=T&#038;fg=000000&#038;s=1' alt='f_x(t) = 1/a*(u(t) + u(t-a))' title='f_x(t) = 1/a*(u(t) + u(t-a))' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=f_y%28t%29%20%3D%201%2Fa%2A%28u%28t%29%20%2B%20u%28t-a%29%29&#038;bg=T&#038;fg=000000&#038;s=1' alt='f_y(t) = 1/a*(u(t) + u(t-a))' title='f_y(t) = 1/a*(u(t) + u(t-a))' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=%5Cint_%7B-%5Cinfty%7D%5E%7B%5Cinfty%20%7Df_x%28t%29dt%20%3D%201&#038;bg=T&#038;fg=000000&#038;s=1' alt='\int_{-\infty}^{\infty }f_x(t)dt = 1' title='\int_{-\infty}^{\infty }f_x(t)dt = 1' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=%5Cint_%7B-%5Cinfty%7D%5E%7B%5Cinfty%20%7Df_y%28t%29dt%20%3D%201&#038;bg=T&#038;fg=000000&#038;s=1' alt='\int_{-\infty}^{\infty }f_y(t)dt = 1' title='\int_{-\infty}^{\infty }f_y(t)dt = 1' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=f_z%28t%29%3Df_x%28t%29%5Cstar%20f_y%28-t%29&#038;bg=T&#038;fg=000000&#038;s=1' alt='f_z(t)=f_x(t)\star f_y(-t)' title='f_z(t)=f_x(t)\star f_y(-t)' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=f%28t%29%20%5Cstar%20g%28t%29%3D%5Cint_%7B-%5Cinfty%7D%5E%7B%5Cinfty%20%7Df%28%5Ctau%20%29g%28t-%5Ctau%20%29d%5Ctau%20&#038;bg=T&#038;fg=000000&#038;s=1' alt='f(t) \star g(t)=\int_{-\infty}^{\infty }f(\tau )g(t-\tau )d\tau ' title='f(t) \star g(t)=\int_{-\infty}^{\infty }f(\tau )g(t-\tau )d\tau ' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=f_x%28t%29%20%5Cstar%20f_y%28-t%29%3D%5Cfrac%7B1%7D%7Ba%7D%20%5Cint_%7B-a%7D%5E%7Ba%7D%5Bu%28%5Ctau%20%29-u%28%5Ctau%20-a%29%5D%5Bu%28t-%5Ctau%20%2Ba%29-u%28t-%5Ctau%20%29%5Dd%5Ctau%20&#038;bg=T&#038;fg=000000&#038;s=1' alt='f_x(t) \star f_y(-t)=\frac{1}{a} \int_{-a}^{a}[u(\tau )-u(\tau -a)][u(t-\tau +a)-u(t-\tau )]d\tau ' title='f_x(t) \star f_y(-t)=\frac{1}{a} \int_{-a}^{a}[u(\tau )-u(\tau -a)][u(t-\tau +a)-u(t-\tau )]d\tau ' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=%3D%5Cfrac%7B1%7D%7Ba%7D%20%5Cint_%7B-a%7D%5E%7Ba%7Du%28%5Ctau%20%29u%28t-%5Ctau%20%2Ba%29%20-u%28%5Ctau%20%29u%28t-%5Ctau%20%29-u%28%5Ctau%20-a%29u%28t-%5Ctau%20%2Ba%29%2Bu%28%5Ctau%20-a%29u%28t-%5Ctau%29d%5Ctau%20&#038;bg=T&#038;fg=000000&#038;s=1' alt='=\frac{1}{a} \int_{-a}^{a}u(\tau )u(t-\tau +a) -u(\tau )u(t-\tau )-u(\tau -a)u(t-\tau +a)+u(\tau -a)u(t-\tau)d\tau ' title='=\frac{1}{a} \int_{-a}^{a}u(\tau )u(t-\tau +a) -u(\tau )u(t-\tau )-u(\tau -a)u(t-\tau +a)+u(\tau -a)u(t-\tau)d\tau ' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=0%3D%20%5Cint_%7B-a%7D%5E%7Ba%7Du%28%5Ctau%20-a%29u%28t-%5Ctau%20%2Ba%29%2Bu%28%5Ctau%20-a%29u%28t-%5Ctau%29d%5Ctau%20&#038;bg=T&#038;fg=000000&#038;s=1' alt='0= \int_{-a}^{a}u(\tau -a)u(t-\tau +a)+u(\tau -a)u(t-\tau)d\tau ' title='0= \int_{-a}^{a}u(\tau -a)u(t-\tau +a)+u(\tau -a)u(t-\tau)d\tau ' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=%3D%5Cfrac%7B1%7D%7Ba%7D%5Cint_%7B-a%7D%5E%7Ba%7Du%28%5Ctau%20%29u%28t-%5Ctau%20%2Ba%29d%5Ctau%20%3D%20%5Cint_%7B0%7D%5E%7Ba%7Du%28t-%5Ctau%20%2Ba%29d%5Ctau&#038;bg=T&#038;fg=000000&#038;s=1' alt='=\frac{1}{a}\int_{-a}^{a}u(\tau )u(t-\tau +a)d\tau = \int_{0}^{a}u(t-\tau +a)d\tau' title='=\frac{1}{a}\int_{-a}^{a}u(\tau )u(t-\tau +a)d\tau = \int_{0}^{a}u(t-\tau +a)d\tau' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=%5Cint_%7B0%7D%5E%7Ba%7Du%28t-%5Ctau%20%2Ba%29d%5Ctau%5C%3B%20x%3Dt-%5Ctau%20%2Ba%5C%3B%20%5Cfrac%7B%5Cmathrm%7Bd%7D%20x%7D%7B%5Cmathrm%7Bd%7D%20%5Ctau%7D%20%3D%20-1&#038;bg=T&#038;fg=000000&#038;s=1' alt='\int_{0}^{a}u(t-\tau +a)d\tau\; x=t-\tau +a\; \frac{\mathrm{d} x}{\mathrm{d} \tau} = -1' title='\int_{0}^{a}u(t-\tau +a)d\tau\; x=t-\tau +a\; \frac{\mathrm{d} x}{\mathrm{d} \tau} = -1' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=-%5Cint_%7Bt%2B10%7D%5E%7Bt%7Du%28x%29dx&#038;bg=T&#038;fg=000000&#038;s=1' alt='-\int_{t+10}^{t}u(x)dx' title='-\int_{t+10}^{t}u(x)dx' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=-tu%28t%29%2B%28t%2Ba%29u%28t%2Ba%29&#038;bg=T&#038;fg=000000&#038;s=1' alt='-tu(t)+(t+a)u(t+a)' title='-tu(t)+(t+a)u(t+a)' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=%5Cint_%7B0%7D%5E%7Ba%7Du%28t-%5Ctau%20%29d%5Ctau%5C%3B%20x%3Dt-%5Ctau%5C%3B%20%5Cfrac%7B%5Cmathrm%7Bd%7D%20x%7D%7B%5Cmathrm%7Bd%7D%20%5Ctau%7D%20%3D%20-1&#038;bg=T&#038;fg=000000&#038;s=1' alt='\int_{0}^{a}u(t-\tau )d\tau\; x=t-\tau\; \frac{\mathrm{d} x}{\mathrm{d} \tau} = -1' title='\int_{0}^{a}u(t-\tau )d\tau\; x=t-\tau\; \frac{\mathrm{d} x}{\mathrm{d} \tau} = -1' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=%5Cint_%7Bt%7D%5E%7Bt-10%7Du%28x%29dx&#038;bg=T&#038;fg=000000&#038;s=1' alt='\int_{t}^{t-10}u(x)dx' title='\int_{t}^{t-10}u(x)dx' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=%28t-a%29u%28t-a%29-tu%28t%29&#038;bg=T&#038;fg=000000&#038;s=1' alt='(t-a)u(t-a)-tu(t)' title='(t-a)u(t-a)-tu(t)' class='latex' /></li>
<li><img src='http://s.wordpress.com/latex.php?latex=f%28t%29%20%5Cstar%20g%28t%29%3D%5Cfrac%7B1%7D%7Ba%7D%28-2tu%28t%29%2B%28t%2Ba%29u%28t%2Ba%29%2B%28t-a%29u%28t-a%29%29&#038;bg=T&#038;fg=000000&#038;s=1' alt='f(t) \star g(t)=\frac{1}{a}(-2tu(t)+(t+a)u(t+a)+(t-a)u(t-a))' title='f(t) \star g(t)=\frac{1}{a}(-2tu(t)+(t+a)u(t+a)+(t-a)u(t-a))' class='latex' /></li>
</ul>
<h4>Simulation</h4>
<ul>
<li>Random number generator is a uniform distribution</li>
<li>Histogram of Randbetween(0,10)-Randbetween(0,10) 2092 times divided by 2092</li>
<li>Discrete version of this problem</li>
</ul>
<p><img class="alignleft size-full wp-image-182" style="width: 100%;" title="Excel Simulation" src="http://www.natenewz.com/wp-content/uploads/2009/11/simulation.jpg" alt="Excel Simulation" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.natenewz.com/2009/11/01/convolution-of-two-uniform-probability-distributions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
