<?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>DSP log &#187; Random Variables</title>
	<atom:link href="http://www.dsplog.com/category/channel/random-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dsplog.com</link>
	<description>Signal Processing for Communication</description>
	<lastBuildDate>Thu, 26 Jan 2012 01:29:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Chi Square Random Variable</title>
		<link>http://www.dsplog.com/2008/07/28/chi-square-random-variable/</link>
		<comments>http://www.dsplog.com/2008/07/28/chi-square-random-variable/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 01:14:17 +0000</pubDate>
		<dc:creator>Krishna Sankar</dc:creator>
				<category><![CDATA[Random Variables]]></category>
		<category><![CDATA[chi square]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://www.dsplog.com/?p=204</guid>
		<description><![CDATA[While trying to derive the theoretical bit error rate (BER) for BPSK modulation in a Rayleigh fading channel, I realized that I need to discuss chi square random variable prior. What is chi-square random variable? Let there be independent and identically distributed Gaussian random variables with mean and variance and we form a new random [...]
Related posts:<ol>
<li><a href='http://www.dsplog.com/2008/07/17/derive-pdf-rayleigh-random-variable/' rel='bookmark' title='Deriving PDF of Rayleigh random variable'>Deriving PDF of Rayleigh random variable</a></li>
<li><a href='http://www.dsplog.com/2008/09/28/maximal-ratio-combining/' rel='bookmark' title='Maximal Ratio Combining (MRC)'>Maximal Ratio Combining (MRC)</a></li>
<li><a href='http://www.dsplog.com/2008/09/19/equal-gain-combining/' rel='bookmark' title='Equal Gain Combining (EGC)'>Equal Gain Combining (EGC)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p><p>While trying to derive the theoretical bit error rate (BER) for BPSK modulation in a Rayleigh fading channel, I realized that I need to discuss <strong>chi square random variable</strong> prior.</p>
<h2>What is chi-square random variable?</h2>
<p>Let there be <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?m" border="0" alt="" width="16" height="8" align="absmiddle" /> independent and identically distributed Gaussian random variables <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?X_i" border="0" alt="" align="absmiddle" /> with mean <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?0" border="0" alt="0" align="absmiddle" /> and variance <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\sigma^2" border="0" alt="" align="absmiddle" /> and we form a new random variable,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Z = \sum_{i=1}^mX_i^2" border="0" alt="" align="absmiddle" />.</p>
<p>Then <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Z" border="0" alt="" align="absmiddle" /> is a <strong>chi square random variable</strong> with <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?m" border="0" alt="" align="absmiddle" /> degrees of freedom.</p>
<p><span id="more-204"></span></p>
<p>There are two types of <strong>chi square</strong> distribution. The first is obtained when <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?X_i" border="0" alt="" align="absmiddle" /> has a zero mean and is called <strong>central chi square distribution</strong>. The second is obtained when <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?X_i" border="0" alt="" align="absmiddle" /> has a non-zero mean and is  called <strong>non-central chi square distribution</strong>. Four our discussion, we will focus only on central chi square distribution.</p>
<h2>PDF of chi-square random variable with one degree of freedom</h2>
<p>Using the text in Chapter 2 of <a title="Digital Communications, by John Proakis " href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FDigital-Communications-John-Proakis%2Fdp%2F0072321113&amp;tag=dl04-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325">[DIGITAL-COMMUNICATION: PROAKIS]</a><img style="border: medium none  ! important; margin: 0px ! important;" src="http://www.assoc-amazon.com/e/ir?t=dl04-20&amp;l=ur2&amp;o=1" border="0" alt="" width="1" height="1" /> as reference.</p>
<p>The most simple example of a chi square random variable is</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Z =X^2" border=" alt=" alt="" align="absmiddle" />,</p>
<p>where<br />
<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?X" border=" alt=" alt="" align="absmiddle" /> is a Gaussian random variable with zero mean and variance <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\sigma^2" border=" alt=" alt="" align="absmiddle" />.</p>
<p>The PDF of <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?X" border=" alt=" alt="" align="absmiddle" /> is<br />
<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?p(x)=\frac{1}{\sqrt{2\pi\sigma^2}}e^{\frac{-x^2}{2\sigma^2}}" border=" alt=" alt="" align="absmiddle" />.</p>
<p>By definition, the <a title="Cumulative Distribuition Function on Wiki" href="http://en.wikipedia.org/wiki/Cumulative_distribution_function">cumulative distribution function </a>(CDF) of <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Z " border=" alt=" alt="" align="absmiddle" /> is<br />
<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\begin{eqnarray}F_Z(z) &amp;= &amp;P(Z\le z) = P(X^2 \le z)\\&amp; = &amp;P\left(|X|\le \sqrt{z}\right)\end{eqnarray}" border=" alt=" alt="" align="absmiddle" />.</p>
<p>This simplifies to</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\begin{eqnarray}F_Z(z) = F_X\left(\sqrt{z}\right) - F_X\left(-\sqrt{z}\right)\end{eqnarray}" border=" alt=" alt="" align="absmiddle" />.</p>
<p>Differentiating the above equation with respect to <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?z" border=" alt=" alt="" align="absmiddle" /> to find the probability density function,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\begin{eqnarray}p_Z(z)&amp; =&amp;\frac{p_x(\sqrt{z})}{2\sqrt{z}} + \frac{p_z(-\sqrt{z})}{2\sqrt{z}}\\&amp; = &amp;\frac{1}{2\sqrt{z}}\frac{1}{\sqrt{2\pi \sigma^2}}\left(e^{\frac{-z}{2\sigma^2}}+e^{\frac{-z}{2\sigma^2}}\right)\end{eqnarray}" border=" alt=" alt="" align="absmiddle" />.</p>
<p>Summarizing, the <strong>pdf of chi square random variable with one degree of freedom</strong> is,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\huge p_Z(z)=\frac{1}{\sqrt{2\pi z\sigma^2}}e^{\frac{-z}{2\sigma^2}}" border=" alt=" alt="" align="absmiddle" />.</p>
<p><a name="twodegree"></a></p>
<h2>PDF of chi-square random variable with two degrees of freedom</h2>
<p>Chi square random variable with 2 degrees of freedom is,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Z =X^2+Y^2" border=" alt=" alt="" align="absmiddle" />,</p>
<p>where,<br />
<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?X" border="  alt=" alt="" align="absmiddle" /> and  <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Y" border=" alt=" alt="" align="absmiddle" /> are independent Gaussian random variables with zero mean and variance <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\sigma^2" border=" alt=" alt="" align="absmiddle" />.</p>
<p>In the post on Rayleigh random variable, we have shown that PDF of the random variable<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?A" border=" alt=" alt="" align="absmiddle" />,</p>
<p>where <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?A=\sqrt{X^2 + Y^2}" border=" alt=" alt="" align="absmiddle" /> is</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?p_A(a) = \frac{a}{{\sigma^2}}e^{\frac{-a^2}{2\sigma^2}},\ a\ge 0" border="0" alt="" align="middle" />.</p>
<p>For our current analysis, we know that</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Z=A^2" border=" alt=" alt="" align="absmiddle" />.</p>
<p>Differentiating both sides,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?dz=2ada" border=" alt=" alt="" align="absmiddle" />.</p>
<p>Applying this to the above equation, <strong>pdf of chi square random variable with two degrees of freedom</strong> is,<br />
<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\huge p_Z(z) = \frac{1}{{2\sigma^2}}e^{\frac{-z}{2\sigma^2}},\ z\ge 0" border=" alt=" alt="" align="absmiddle" />.<br />
<a name="mdegree"></a></p>
<h2>PDF of chi-square random variable with m degrees of freedom</h2>
<p>The probability density function is,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\huge p_Z(z) = \frac{1}{{2^{m/2}\sigma^m\Gamma(\frac{m}{2})}}z^{m/2-1}e^{\frac{-z}{2\sigma^2}},\ z\ge 0" border=" alt=" alt="" align="absmiddle" />, where</p>
<p>the Gamma function <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\Gamma(p)" border=" alt=" alt="" align="absmiddle" /> is defined as,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\Gamma(p) = \int_0^{\infty}t^{p-1}e^{-t}dt,\ p \ge 0" border=" alt=" alt="" align="absmiddle" />,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\Gamma(p) = (p-1)!" border=" alt=" alt="" align="absmiddle" /> p an integer &gt; 0</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\Gamma(1/2) = \sqrt{\pi}" border=" alt=" alt="" align="absmiddle" /></p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\Gamma(3/2) = \frac{1}{2}\sqrt{\pi}" border=" alt=" alt="" align="absmiddle" />.</p>
<p>I do not know the proof for deriving the above equation. If any one of you know of good references, kindly let me know. Thanks. <img src='http://www.dsplog.com/db-install/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Simulation Model</h2>
<p>Just for your reference, Matlab/Octave simulation model performing the following is provided</p>
<p>(a) Generate chi square random variables having m=1, 2, 3, 4, 5 degrees of freedom</p>
<p>(b) Probability density function is computed and plotted</p>
<p>Click here to download: <a title="PDF of chi square random variable" href="http://www.dsplog.com/db-install/wp-content/uploads/2008/07/pdf_chi_square_random_variable.m">Matlab/Octave script for simulating PDF of chi square random variable</a></p>
<p><img class="alignnone size-full wp-image-206" title="PDF of chi square random variable" src="http://www.dsplog.com/db-install/wp-content/uploads/2008/07/pdf_chi_square_random_variable.png" alt="PDF of chi square random variable" width="448" height="336" /></p>
<p><strong>Figure: PDF of chi square random variable (<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\sigma^2" border=" alt=" alt="" align="absmiddle" />=1)</strong></p>
<h2>Reference</h2>
<p><a title="Digital Communications, by John Proakis " href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FDigital-Communications-John-Proakis%2Fdp%2F0072321113&amp;tag=dl04-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325">[DIGITAL-COMMUNICATION: PROAKIS]</a><img style="border: medium none  ! important; margin: 0px ! important;" src="http://www.assoc-amazon.com/e/ir?t=dl04-20&amp;l=ur2&amp;o=1" border="0" alt="" width="1" height="1" /> <a title="Digital Communications, by John Proakis " href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2FDigital-Communications-John-Proakis%2Fdp%2F0072321113&amp;tag=dl04-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=9325">Digital Communications, by John Proakis </a><img style="border: medium none  ! important; margin: 0px ! important;" src="http://www.assoc-amazon.com/e/ir?t=dl04-20&amp;l=ur2&amp;o=1" border="0" alt="" width="1" height="1" /></p>
<p>Related posts:<ol>
<li><a href='http://www.dsplog.com/2008/07/17/derive-pdf-rayleigh-random-variable/' rel='bookmark' title='Deriving PDF of Rayleigh random variable'>Deriving PDF of Rayleigh random variable</a></li>
<li><a href='http://www.dsplog.com/2008/09/28/maximal-ratio-combining/' rel='bookmark' title='Maximal Ratio Combining (MRC)'>Maximal Ratio Combining (MRC)</a></li>
<li><a href='http://www.dsplog.com/2008/09/19/equal-gain-combining/' rel='bookmark' title='Equal Gain Combining (EGC)'>Equal Gain Combining (EGC)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dsplog.com/2008/07/28/chi-square-random-variable/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Deriving PDF of Rayleigh random variable</title>
		<link>http://www.dsplog.com/2008/07/17/derive-pdf-rayleigh-random-variable/</link>
		<comments>http://www.dsplog.com/2008/07/17/derive-pdf-rayleigh-random-variable/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 00:51:24 +0000</pubDate>
		<dc:creator>Krishna Sankar</dc:creator>
				<category><![CDATA[Random Variables]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[Rayleigh]]></category>

		<guid isPermaLink="false">http://www.dsplog.com/?p=197</guid>
		<description><![CDATA[In the post on Rayleigh channel model, we stated that a circularly symmetric random variable is of the form , where real and imaginary parts are zero mean independent and identically distributed (iid) Gaussian random variables. The magnitude which has the probability density, is called a Rayleigh random variable. Further, the phase is uniformly distributed from [...]
Related posts:<ol>
<li><a href='http://www.dsplog.com/2008/07/28/chi-square-random-variable/' rel='bookmark' title='Chi Square Random Variable'>Chi Square Random Variable</a></li>
<li><a href='http://www.dsplog.com/2008/07/14/rayleigh-multipath-channel/' rel='bookmark' title='Rayleigh multipath channel model'>Rayleigh multipath channel model</a></li>
<li><a href='http://www.dsplog.com/2008/08/10/ber-bpsk-rayleigh-channel/' rel='bookmark' title='BER for BPSK in Rayleigh channel'>BER for BPSK in Rayleigh channel</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p></p><p>In the post on <strong><a title="Rayleigh channel model" href="http://www.dsplog.com/2008/07/14/rayleigh-multipath-channel/"> Rayleigh channel model</a></strong>, we stated that a circularly symmetric random variable is of the form <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Z = X + jY" alt="" align="absmiddle" border="0" />, where real and imaginary parts are zero mean independent and identically distributed (iid) Gaussian random variables. The magnitude <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?|Z|" alt="" width="32" height="15" align="middle" border="0" /> which has the <strong>probability density</strong>,</p>
<p><strong><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?p(z) = \frac{z}{\sigma^2}e^{\frac{-z^2}{2 \sigma^2}},\ \ \      z\ge 0" alt="" align="middle" border="0" /> </strong></p>
<p>is called a<strong> Rayleigh random variable</strong>. Further, the phase <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\theta" alt="" align="middle" border="0" /> is uniformly distributed from <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?[0,\ 2\pi]" alt="" align="middle" border="0" />. In this post we will try to derive the expression for <strong>probability density</strong> <strong>function (PDF)</strong> for <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?|Z|" alt="" align="middle" border="0" /> and <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\theta" alt="" align="middle" border="0" />.</p>
<p><span id="more-197"></span></p>
<p>The text provided in Section 5.4.5 of <a title="Principles of Electronic Communications Analog - Digital, by Pradip Kumar Ghosh" href="http://www.universitiespress.com/display.asp?categoryID=26&amp;isbn=978-81-7371-601-0&amp;detail=1">[ELECTRONIC-COMMUNICATION:PRADIP]</a> is used as reference.</p>
<h2>Joint probability</h2>
<p>The probability density function of <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?x" alt="" align="middle" border="0" /> is</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?p(x) = \frac{1}{\sqrt{2\pi\sigma^2}}e^{\frac{-x^2}{2\sigma^2}}" alt="" align="middle" border="0" />.</p>
<p>Similarly probability density function of <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?y" alt="" align="middle" border="0" /> is</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?p(y) = \frac{1}{\sqrt{2\pi\sigma^2}}e^{\frac{-y^2}{2\sigma^2}}" alt="" align="middle" border="0" />.</p>
<p>As <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?X" alt="" align="middle" border="0" /> and <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Y" alt="" align="middle" border="0" /> are independent random variables, the <a title="Joint Probability on Wiki" href="http://en.wikipedia.org/wiki/Joint_probability_distribution">joint probability</a> is the product of the individual probability, i.e,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?p(x,y) = \frac{1}{{2\pi\sigma^2}}e^{\frac{-(x^2+y^2)}{2\sigma^2}}" alt="" align="middle" border="0" />.</p>
<p>The joint probability that the random variable <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?X" alt="" align="middle" border="0" /> lies between <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?x" alt="" align="middle" border="0" /> and <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?x+dx" alt="" align="middle" border="0" /> and the random variable <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Y" alt="" align="middle" border="0" />lies between <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?y" alt="" align="middle" border="0" /> and <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?y+dy" alt="" align="middle" border="0" />is,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?P(x\le X+dx,y\le Y+dy)=\frac{1}{{2\pi\sigma^2}}e^{\frac{-(x^2+y^2)}{2\sigma^2}}dxdy" alt="" align="middle" border="0" />.</p>
<h2>Conversion to polar co-ordinate</h2>
<p>Given that <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?(x,y)" alt="" align="middle" border="0" /> is in the <a title="Cartesian co-ordinate on Wiki" href="http://en.wikipedia.org/wiki/Cartesian_coordinates">Cartesian co-ordinate form</a>, we can convert that into the <a title="Polar co-ordinate on Wiki" href="http://en.wikipedia.org/wiki/Polar_coordinates">polar co-ordinate</a> <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?(z,\theta)" alt="" align="middle" border="0" /> where,<br />
<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?Z=\sqrt{X^2+Y^2}" alt="" align="middle" border="0" /> and<br />
<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\Theta = \tan^{-1}\left(\frac{Y}{X}\right)" alt="" align="middle" border="0" />.</p>
<p><img class="alignnone size-full wp-image-199" title="Cartesian coordinate to Polar coordinate" src="http://www.dsplog.com/db-install/wp-content/uploads/2008/07/cartesian_coordinate_to_polar_coordinate.png" alt="Cartesian coordinate to Polar coordinate" width="300" height="255" /></p>
<p><strong>Figure: Cartesian co-ordinate to polar co-ordinate</strong></p>
<p>The area <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?dxdy" alt="" align="middle" border="0" /> is Cartesian co-ordinate form is equal to the area <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?zdzd\theta" alt="" align="middle" border="0" /> in the polar co-ordinate form.</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?P(x\le X+dx,y\le Y+dy)=P(z\le Z+dz,\theta\le \Theta+d\theta)" alt="" align="middle" border="0" />.</p>
<p>Simplifying,<br />
<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\begin{eqnarray}P(z\le Z+dz,\theta\le \Theta+d\theta)&amp;=&amp;\frac{1}{{2\pi\sigma^2}}e^{\frac{-(x^2+y^2)}{2\sigma^2}}zdzd\theta\\&amp;=&amp;{\frac{z}{{\sigma^2}}e^{\frac{-z^2}{2\sigma^2}}}dz{\frac{1}{2\pi}}d\theta\end{eqnarray}" alt="" align="middle" border="0" />.</p>
<p>Summarizing the joint probability density function,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?p(z,\theta) = \frac{z}{{2\pi\sigma^2}}e^{\frac{-z^2}{2\sigma^2}}" alt="" align="middle" border="0" />.</p>
<p>Since <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?z" alt="" align="middle" border="0" /> and <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\theta" alt="" align="middle" border="0" /> are independent, the individual <strong>probability density functions</strong> are,<br />
<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\huge p(z) = \frac{z}{{\sigma^2}}e^{\frac{-z^2}{2\sigma^2}},\ z\ge 0" alt="" align="middle" border="0" />,</p>
<p><img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\huge p(\theta) = \frac{1}{2\pi},\ -\pi \le \theta \le \pi" alt="" align="middle" border="0" />.</p>
<h2>Simulation Model</h2>
<p>Simple Matlab/Octave simulation model is provided for plotting the probability density of <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?z" alt="" align="middle" border="0" /> and <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\theta" alt="" align="middle" border="0" />. The script performs the following:</p>
<p>(a) Generate two independent zero mean, unit variance Gaussian random variables</p>
<p>(b) Using the hist() function compute the simulated probability density for both <img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?z" alt="" align="middle" border="0" /> and<br />
<img src="http://www.dsplog.com/cgi-bin/mimetex.cgi?\theta" alt="" align="middle" border="0" /></p>
<p>(c) Using the knowledge of the equation (which we just derived), compute the theoretical probability<br />
density function (PDF)</p>
<p>(d) Plot the simulated and theoretical probability density functions (PDF) and show that they are in good agreement.</p>
<p>Click here to download <a title="Matlab/Octave script for simuating the pdf of Rayleigh random variable" href="http://www.dsplog.com/db-install/wp-content/uploads/2008/07/pdf_rayleigh_random_variable.m">Matlab/Octave script for simulating the <strong>probability density function</strong> (PDF) of <strong>Rayleigh random</strong> variable</a></p>
<p><img class="alignnone size-full wp-image-201" title="Plot of simulated/theoretical PDF of Rayleigh random variable" src="http://www.dsplog.com/db-install/wp-content/uploads/2008/07/pdf_rayleigh_random_variable.png" alt="" width="448" height="336" /></p>
<p><strong>Figure: Simulated/theoretical PDF of Rayleigh random variable</strong></p>
<p><img class="alignnone size-full wp-image-202" title="PDF of uniformly distributed theta random variable" src="http://www.dsplog.com/db-install/wp-content/uploads/2008/07/pdf_theta_random_variable.png" alt="PDF of uniformly distributed theta random variable" width="448" height="336" /></p>
<p><strong>Figure: Simulated/theoretical PDF of uniformly distributed theta random variable</strong></p>
<h2>Reference</h2>
<p class="editors"><a title="Principles of Electronic Communications Analog - Digital, by Pradip Kumar Ghosh" href="http://www.universitiespress.com/display.asp?categoryID=26&amp;isbn=978-81-7371-601-0&amp;detail=1">[ELECTRONIC-COMMUNICATION:PRADIP]</a> <a title="Principles of Electronic Communications Analog - Digital, by Pradip Kumar Ghosh" href="http://www.universitiespress.com/display.asp?categoryID=26&amp;isbn=978-81-7371-601-0&amp;detail=1">Principles of Electronic Communications Analog &#8211; Digital, by Pradip Kumar Ghosh</a></p>
<p>Related posts:<ol>
<li><a href='http://www.dsplog.com/2008/07/28/chi-square-random-variable/' rel='bookmark' title='Chi Square Random Variable'>Chi Square Random Variable</a></li>
<li><a href='http://www.dsplog.com/2008/07/14/rayleigh-multipath-channel/' rel='bookmark' title='Rayleigh multipath channel model'>Rayleigh multipath channel model</a></li>
<li><a href='http://www.dsplog.com/2008/08/10/ber-bpsk-rayleigh-channel/' rel='bookmark' title='BER for BPSK in Rayleigh channel'>BER for BPSK in Rayleigh channel</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dsplog.com/2008/07/17/derive-pdf-rayleigh-random-variable/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.dsplog.com @ 2012-02-05 03:26:53 -->
