WebCab Probability and Statistics for COM v3.3 Demo

DataPresentation.FrequencyTableOR Method 

Calculates the frequency table with respect to the open right boundary convention for a discrete data set.

public double[] FrequencyTableOR();

Remarks

Say for example the boundary points used are {b_1, b_2, ..., b_n}, now the first term of the array returned which represents the frequency table, is the number of elements from the data set within the interval (-infinity, b_1), the second term of the array returned is the number of elements from the data set within the interval [b_1, b_2), and so on...

The discrete data set and the boundaries intervals are set using SetDataSet and SetBoundariesIntervals respectively.

Example

Consider the set of boundaries { 1, 2, 3, 4, 5 }, which divide the real line into six sub-intervals. Now if we use the open right boundary convention then the real line will be divided into the sub-intervals:

(-infinity, 1), [1, 2), [2, 3), [3, 4), [4, 5), [5, infinity)

Note that, each point on the real line can be assigned to one of these sub-intervals and therefore when assigning a data point to one of these intervals there will only be one sub-interval in which it belongs.

Therefore, if we consider the data set { 0.5, 1.4, 1.3, 2.0, 2.3, 4.5, 5.5}, if you assign this data set in accordance with the above the conventions then we will have using Open Right Boundary (ORB) convention:

Hence, in this case the array returned corresponding to the frequency table will be {1, 2, 2, 0, 1, 1}.

Exceptions

Exception TypeCondition
StatisticsExceptionThrown if data set or boundaries intervals are null.

See Also

DataPresentation Class | WebCab.COM.Statistics.Statistics Namespace