01.05.2017 Views

563489578934

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

700<br />

Probability and Random Variables<br />

Appendix B<br />

This function is still properly normalized, as demonstrated by Eq. (B–49). First, we need to<br />

show that the parameter a is the mean:<br />

q<br />

q<br />

1<br />

m = x f(x) dx =<br />

xe -(x-a)2 >(2b 2 )<br />

dx (B–51)<br />

L -q<br />

12p b L-q<br />

Making a change in variable, we let y = (x - a)>b; then,<br />

q<br />

1<br />

m =<br />

(by + a) e -y2 >2 dy<br />

12p L-q<br />

or<br />

q<br />

q<br />

b<br />

m =<br />

(ye -y2 >2 1<br />

) dy + aa >2 (B–52)<br />

12p L-q<br />

L -q 12p e-y2 dyb<br />

The first integral on the right of Eq. (B–52) is zero, because the integrand is an odd function<br />

and the integral is evaluated over symmetrical limits. The second integral on the right is<br />

the integral of a properly normalized Gaussian PDF, so the integral has a value of unity. Thus,<br />

Eq. (B–52) becomes<br />

m = a<br />

(B–53)<br />

and we have shown that the parameter a is the mean value.<br />

The variance is<br />

q<br />

s 2 = (x - m) 2 f(x) dx<br />

L<br />

-q<br />

1<br />

=<br />

(x - m) 2 e -(x-m)2 >(2b 2 )<br />

dx<br />

12p b L-q<br />

Similarly, we need to show that s 2 = b 2 . This will be left as a homework exercise.<br />

q<br />

Example B–6 PLOTTING THE PDF FOR A GAUSSIAN RANDOM VARIABLE<br />

Write a MATLAB program that will ask for values for m and s and then plot the corresponding<br />

Gaussian PDF. See ExampleB_06.m for the solution.<br />

(B–54)<br />

The next question to answer is, “What is the CDF for the Gaussian distribution?”<br />

THEOREM. The cumulative distribution function (CDF) for the Gaussian distribution is<br />

F(a) = Qa m - a b = 1 2<br />

(B–55)<br />

s<br />

erfca m - a<br />

12 s b<br />

where the Q function is defined by<br />

Q(z) ! 1<br />

q<br />

e -l2 >2 dl<br />

(B–56)<br />

12p Lz<br />

and the complementary error function (erfc) is defined as<br />

erfc(z) ! 2<br />

1p Lz<br />

q<br />

e -l2 dl<br />

(B–57)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!