01.05.2017 Views

563489578934

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

B–7 Examples of Important Distributions 701<br />

It can also be shown that<br />

erfc(z) = 1 - erf(z)<br />

where the error function is defined as<br />

(B–58)<br />

erf(z) ! 2 e -l2 dl<br />

(B–59)<br />

1p L0<br />

The Q function and the complementary error function, as used in Eq. (B–55), give the<br />

same curve for F(a). Because neither of the corresponding integrals, given by Eqs. (B–56) and<br />

(B–57), can be evaluated in closed form, math tables (see Sec. A–10, Appendix A), numerical<br />

integration techniques, or closed-form approximations must be used to evaluate them. The<br />

equivalence between the two functions is<br />

z<br />

Q(z) = 1 2 erfca z 12 b<br />

(B–60)<br />

Communication engineers often prefer to use the Q function instead of the erfc<br />

function, since solutions to problems written in terms of the Q function do not require the<br />

1<br />

writing of the<br />

2<br />

and 1> 12 factors. Conversely, the advantage of using the erf(z) or erfc(z) functions<br />

is that they are one of the standard functions in MATLAB and these functions are also<br />

available on some hand calculators. However, textbooks in probability and statistics usually<br />

give a tabulation of the normalized CDF. This is a tabulation of F(a) for the case of m = 0 and<br />

s = 1, and it is equivalent to Q(-a) 1<br />

1<br />

and<br />

2 erfc(-a> 12). Since Q(z) and<br />

2 erfc(z> 12)<br />

are equivalent, which one is used is a matter of personal preference. We use the Q-function<br />

notation in this book.<br />

Proof. Proof of a theorem for the Gaussian CDF<br />

a<br />

a<br />

1<br />

F(a) = f(x) dx =<br />

e -(x-m)2 >(2s 2) dx (B–61)<br />

L -q 12p s L-q Making a change in variable, let y = (m - x)>s:<br />

1 (m-a)>s<br />

F(a) =<br />

e -y2 >2<br />

(-sdy)<br />

12p s Lq<br />

or<br />

q<br />

1<br />

F(a) =<br />

e -y2 >2 dy = Qa m - a<br />

12p L(m-a)>s<br />

s<br />

b<br />

Similarly, F(a) may be expressed in terms of the complementary error function.<br />

(B–62)<br />

(B–63)<br />

Example B–7 PLOTTING THE CDF 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 CDF. See ExampleB_07.m for the solution.

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

Saved successfully!

Ooh no, something went wrong!