>    restart:
read `C:\\Tanis-Hogg\\Maple Examples\\stat.m`:
with(plots):
read `C:\\Tanis-Hogg\\Maple Examples\\HistogramFill.txt`:

Elliot Tanis
June 12, 2006
Example 3.1-5  (Example_3_1-5.mws)

>    read `C:\\Tanis-Hogg\\Maple Examples\\Chapter_03.txt`:

>    X := Example_3_1_5;

X := [93, 77, 67, 72, 52, 83, 66, 84, 59, 63, 75, 97, 84, 73, 81, 42, 61, 51, 91, 87, 34, 54, 71, 47, 79, 70, 65, 57, 90, 83, 58, 69, 82, 76, 71, 60, 38, 81, 74, 69, 68, 76, 85, 58, 45, 73, 75, 42, 93,...
X := [93, 77, 67, 72, 52, 83, 66, 84, 59, 63, 75, 97, 84, 73, 81, 42, 61, 51, 91, 87, 34, 54, 71, 47, 79, 70, 65, 57, 90, 83, 58, 69, 82, 76, 71, 60, 38, 81, 74, 69, 68, 76, 85, 58, 45, 73, 75, 42, 93,...

>    Min(X), Max(X);

34, 97

>    StemLeaf(X,1); #The 1 specifies 1-digit leaves

   Stem   Leaf

     3  | 4 8

     4  | 2 2 5 7

     5  | 1 2 4 7 8 8 9

     6  | 0 1 3 5 5 6 7 8 9 9

     7  | 0 1 1 2 3 3 4 5 5 6 6 7 9

     8  | 1 1 2 3 3 4 4 5 7

     9  | 0 1 3 3 7NULL

For some unknown reason, the word NULL appears at the end of the Stem-and-Leaf diagram. Just ignore it.

>    StemLeaf(X,1,14); #The 14 specifies the number of rows.

   Stem   Leaf

     3* | 4

     3+ | 8

     4* | 2 2

     4+ | 5 7

     5* | 1 2 4

     5+ | 7 8 8 9

     6* | 0 1 3

     6+ | 5 5 6 7 8 9 9

     7* | 0 1 1 2 3 3 4

     7+ | 5 5 6 6 7 9

     8* | 1 1 2 3 3 4 4

     8+ | 5 7

     9* | 0 1 3 3

     9+ | 7NULL

Here is the five-number summary of the data.

>    Min(X), Percentile(X, 1/4), Percentile(X, 1/2), Percentile(X, 3/4), Max(X);

34, 235/4, 71, 325/4, 97

>    BoxPlot(X);

[Maple Plot]

Figure 3.1-3: Box plot of scores from 50 statistics examinations

>   

Return to Menu