Suppose that the classes, or bins, will be selected by dividing the interval (x
), into k = Bin Count classes by selecting a number of class boundaries,
, ..., xB
number 2 by xB
, and so on. The last class, class number k, will be
limited by xB
The value of x corresponding to the middle of each class is known as the class
mark, and is defined as xM
If the classes are chosen such that the class size is the same, then we can
define the class size as the value Bin Width = ∆x = (x
and the class boundaries can be calculated as xB
Any data point, x
, j = 1, 2, ..., n, belongs to the i-th class, if xB
count, and will keep track of those values that may be below the minimum
and above the maximum class boundaries (i.e., the outliers).
Example 1 -- In order to better illustrate obtaining frequency distributions, we
want to generate a relatively large data set, say 200 points, by using the
First, seed the random number generator using: RDZ(25) in ALG mode,
or 25 ` RDZ in RPN mode (see Chapter 17).
Type in the following program in RPN mode:
n « 1 n FOR j RAND 100 * 2 RND NEXT n
and save it under the name RDLIST (RanDom number LIST generator).
Generate the list of 200 number by using RDLIST(200) in ALG mode, or
200 ` @RDLIST@ in RPN mode.
Use program LXC (see above) to convert the list thus generated into a
Store the column vector into ΣDAT, by using function STOΣ.
}, so that class number 1 is limited by xB
)/2, for i = 1, 2, ..., k.
in the STAT menu will perform this frequency
) / k,
+ (i - 1) * ∆x.
LIST " "