Skip to content
Japip edited this page Oct 20, 2024 · 1 revision

Result Module

The Result module is designed to encapsulate the results of frequency analysis for both grouped and simple data classifications. This class collects various statistical properties derived from a dataset, facilitating easier access and interpretation of results.

Class: Result

Constructor

__init__(self, data, bot, top, bot_L, top_L, F, R, L, M, bot_CF, top_CF, RF, mode)

Parameters:

  • data: The unique class values for the dataset (for simple data analysis).
  • bot: The lower bounds of the frequency intervals (for grouped data).
  • top: The upper bounds of the frequency intervals (for grouped data).
  • bot_L: The lower limits corresponding to the frequency intervals.
  • top_L: The upper limits corresponding to the frequency intervals.
  • F: The frequency counts for each class or interval.
  • R: The ranges for each frequency interval.
  • L: The combined limits of the intervals, which includes both bottom_limit and top_limit.
  • M: The midpoint of each frequency interval.
  • bot_CF: The cumulative frequency counts for the lower bounds.
  • top_CF: The cumulative frequency counts for the upper bounds.
  • RF: The relative frequency of each class or interval.
  • mode: The mode(s) of the dataset, indicating the most frequently occurring class or interval.

Attributes:

  • top: Upper bounds of the frequency intervals.
  • limit: Combined limits of the frequency intervals.
  • ranges: The range values for the intervals.
  • bottom: Lower bounds of the frequency intervals.
  • midpoint: Midpoints of each frequency interval.
  • frequency: Frequency counts for each class or interval.
  • classval: Unique class values for the dataset.
  • top_limit: Upper limits for the frequency intervals.
  • bottom_limit: Lower limits for the frequency intervals.
  • mode: Mode(s) of the dataset.
  • bottom_cumulative_frequency: Cumulative frequency counts for the lower bounds.
  • top_cumulative_frequency: Cumulative frequency counts for the upper bounds.
  • relative_frequency: Relative frequency of each class or interval.
  • percentage_relative_frequency: Relative frequency expressed as a percentage, formatted to two decimal places.

Usage

The Result class is typically instantiated after performing frequency analysis in the Classify module. It serves as a structured way to present the results of statistical calculations, making it easier to visualize and interpret the data. By providing organized attributes for various statistical measures, users can readily access key insights from their data analyses.

Clone this wiki locally