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.

2.2 Presenting the Data 47<br />

Figure 2.15. <strong>MATLAB</strong> figure window, containing the bar graph of PClass. The<br />

graph itself can be copied to the clipboard using the Copy Figure option of the<br />

Edit menu.<br />

Figure 2.16. Bar graphs of PClass obtained with R: a) <strong>Using</strong> grey bars; b) <strong>Using</strong><br />

dashed gray lines <strong>and</strong> count labels.<br />

2.2.2 Frequencies <strong>and</strong> Histograms<br />

Consider now a continuous variable. Instead of a tally sheet/bar graph, representing<br />

an estimate of a discrete probability function, we now want a tabular <strong>and</strong> graphical<br />

representation of an estimate of a probability density function. For this purpose, we<br />

establish a certain number of equal 2<br />

length intervals of the r<strong>and</strong>om variable <strong>and</strong><br />

compute the frequency of occurrence in each of these intervals (also known as<br />

bins). In practice, one determines the lowest, xl, <strong>and</strong> highest, xh, sample values <strong>and</strong><br />

divides the range, xh − xl, into r equal length bins, hk, k = 1, 2,…,r. The computed<br />

frequencies are now:<br />

2<br />

Unequal length intervals are seldom used.

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

Saved successfully!

Ooh no, something went wrong!