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.

92 3 Estimating Data Parameters<br />

In parameter estimation one often needs to use percentiles of r<strong>and</strong>om<br />

distributions. We have seen that before, concerning the application of percentiles<br />

of the normal <strong>and</strong> the Student’s t distribution. Later on we will need to apply<br />

percentiles of the chi-square <strong>and</strong> F distributions. Statistical software usually<br />

provides a large panoply of probabilistic functions (density <strong>and</strong> cumulative<br />

distribution functions, quantile functions <strong>and</strong> r<strong>and</strong>om number generators with<br />

particular distributions). In Comm<strong>and</strong>s 3.3 we present some of the possibilities.<br />

Appendix D also provides tables of the most usual distributions.<br />

Comm<strong>and</strong>s 3.3. <strong>SPSS</strong>, <strong>STATISTICA</strong>, <strong>MATLAB</strong> <strong>and</strong> R comm<strong>and</strong>s for obtaining<br />

quantiles of distributions.<br />

<strong>SPSS</strong> Compute Variable<br />

<strong>STATISTICA</strong> <strong>Statistics</strong>; Probability Calculator<br />

<strong>MATLAB</strong><br />

R<br />

norminv(p,mu,sigma) ; tinv(p,df) ;<br />

chi2inv(p,df) ; finv(p,df1,df2)<br />

qnorm(p,mean,sd) ; qt(p,df) ;<br />

qchisq(p,df) ; qf(p,df1,df2)<br />

The Compute Variable window of <strong>SPSS</strong> allows the use of functions to<br />

compute percentiles of distributions, namely the functions Idf.IGauss, Idf.T,<br />

Idf.Chisq <strong>and</strong> Idf.F for the normal, Student’s t, chi-square <strong>and</strong> F<br />

distributions, respectively.<br />

<strong>STATISTICA</strong> provides a versatile Probability Calculator allowing<br />

among other things the computation of percentiles of many common distributions.<br />

The <strong>MATLAB</strong> <strong>and</strong> R functions allow the computation of quantiles of the<br />

normal, t, chi-square <strong>and</strong> F distributions, respectively.<br />

<br />

3.3 Estimating a Proportion<br />

Imagine that one wished to estimate the probability of occurrence, p,<br />

of a “success”<br />

event in a series of n Bernoulli trials. A Bernoulli trial is a dichotomous outcome<br />

experiment (see B.1.1). Let k be the number of occurrences of the success event.<br />

Then, the unbiased <strong>and</strong> consistent point estimate of p is (see Appendix C):<br />

k<br />

p ˆ = .<br />

n<br />

For instance, if there are k = 5 successes in n = 15 trials, the point estimate of p<br />

(estimation of a proportion) is p ˆ = 0.<br />

33 . Let us now construct an interval

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

Saved successfully!

Ooh no, something went wrong!