01.03.2013 Views

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

A.7 The Binomial <strong>and</strong> Normal Distributions 421<br />

Gaussian) density <strong>and</strong> is represented in Figure A.7 together with the distribution<br />

function, also known as error function. Notice that, taking into account the<br />

properties of the mean <strong>and</strong> variance, this new r<strong>and</strong>om variable has zero mean <strong>and</strong><br />

unit variance.<br />

The approximation between normal <strong>and</strong> binomial distributions is quite good<br />

even for not too large values of n. Figure A.6 shows the situation with n = 50,<br />

p = 0.5. The maximum deviation between binomial <strong>and</strong> normal approximation<br />

occurs at the middle of the distribution <strong>and</strong> is 0.056. For n = 1000, the deviation is<br />

0.013. In practice, when np or nq are larger than 25, it is reasonably safe to use the<br />

normal approximation of the binomial distribution.<br />

Note that:<br />

X n − np<br />

X n<br />

Z = ~ N 0 , 1 ⇒ Pˆ<br />

= ~ N , A. 39<br />

p,<br />

pq / n<br />

npq<br />

n<br />

where Nµ, σ is the Gaussian distribution with mean µ <strong>and</strong> st<strong>and</strong>ard deviation σ, <strong>and</strong><br />

the following density function:<br />

1<br />

2 2<br />

−(<br />

x−µ<br />

) / 2σ<br />

f ( x)<br />

= e . A. 40<br />

2π<br />

σ<br />

Both binomial <strong>and</strong> normal distribution values are listed in tables (see Appendix<br />

D) <strong>and</strong> can also be obtained from software tools (such as EXCEL, <strong>SPSS</strong>,<br />

<strong>STATISTICA</strong>, <strong>MATLAB</strong> <strong>and</strong> R).<br />

1<br />

0.9<br />

0.8<br />

0.7<br />

0.6<br />

0.5<br />

0.4<br />

0.3<br />

0.2<br />

0.1<br />

F (x )<br />

0<br />

x<br />

0 5 10 15 20 25 30 35 40 45 50<br />

Figure A.6. Normal approximation (solid line) of the binomial distribution (grey<br />

bars) for n = 50, p = 0.5.<br />

Example A. 18<br />

Q: Compute the tolerance of the previous Example A.17 using the normal<br />

approximation.<br />

A: Like before, we consider the worst-case situation with p = q = ½. Since<br />

σ = 1/<br />

4n<br />

= 0.01, <strong>and</strong> the 95% confidence level corresponds to the interval<br />

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

Saved successfully!

Ooh no, something went wrong!