2. Lecture Two - Data Organization

Table of contents

  1. Data Organization
  2. Graphical Representation
  3. Stem and Leaf
  4. Bar Graph

1. Data Organization

1.1 Raw data and arrays

Raw data consists of a group of numbers that have not been organized numerically. An array is a specific arrangement of this raw numerical data in either ascending or descending order.

Organizing data numerically helps in understanding the dataset more effectively.

1.2 Frequency tables

A frequency table is a method for organizing data by counting the number of observations that fall into a series of class intervals. These intervals cover the total range of observations.

While grouping data in a frequency table simplifies it, some of the original detail present in an array is lost.

The class frequency represents the count of observations whose values fall between the lower and upper limits of a specific class interval.

1.3 Constructing a frequency table

Constructing a frequency table involves several steps to systematically organize data.

1.4 Step 1: Calculate the range

The range of a dataset is the difference between the maximum and minimum data values. Range = Maximum data value – Minimum data value.

1.5 Step 2: Decide the number of class intervals

The number of class intervals, often denoted by kk, should be chosen to adequately represent the data. A common guideline is to find the smallest integer kk such that 2k>n2^k > n, where nn is the total number of observations.

For example, if the total number of observations is 56, then 6 or more class intervals might be appropriate.

1.6 Step 3: Determine the class width

The class width is the size of each interval. It is calculated by dividing the range by the desired number of class intervals.

The result is often rounded up to a convenient value to ensure all data points are covered. Class width = Range / Number of class intervals.

1.7 Step 4: Determine the class intervals

The first class interval typically starts with a lower limit that is less than or equal to the minimum data value. The upper limit of this interval is found by adding the class width to the lower limit.

Class intervals should not overlap and are often denoted using notation like 'lower limit - < upper limit'.

1.8 Frequency distribution

Subsequent class intervals continue this pattern, with the lower limit of a new interval being the upper limit of the previous one. The class width remains constant throughout the table.

This process continues until the final class interval encompasses the maximum data value.

Class IntervalFrequency
20 - < 255
25 - < 308
30 - < 3512
35 - < 4010
40 - < 456
45 - < 503

1.9 Important points on frequency distribution

When constructing frequency tables, several points are crucial for accurate representation.

  • Non-overlapping intervals: Class intervals must not overlap to ensure each observation falls into only one category.
  • Coverage: The final class interval must contain the maximum data value to include all observations.
  • Uniqueness: There is no single "correct" frequency table; different choices for the number of intervals or class width can lead to different, yet valid, tables.
  • Mode and modal class: The observation with the greatest frequency is called the mode. The class interval with the highest frequency is known as the modal class.

2. Graphical Representation

2.1 Graphical representation of data

Graphical methods provide a visual way to understand data distributions and characteristics. Common graphical tools include histograms and bar graphs, which transform frequency distribution tables into visual formats.

This line chart displays the relative cumulative age frequencies, showing the percentage of frequencies for different age groups.

2.2 Histogram

A histogram is a graph that presents quantitative data as a series of adjacent rectangles.

  • Construction: The base of each rectangle is centered at the class mark (midpoint) of the interval.
  • Continuity: There are no gaps between the rectangles because the data is continuous.
  • Axes: The horizontal axis is labeled with class intervals, and the vertical axis is labeled with frequencies or relative frequencies.
  • Usefulness: Histograms are particularly useful for large datasets with quantitative variables.

2.3 Shape of the histogram and characteristics

The shape of a histogram provides insights into the data's distribution.

  • Unimodal histogram: Has a single peak, indicating a single most frequent class interval. A bell-shaped histogram is a special type of unimodal and symmetric distribution.
  • Bimodal histogram: Has two distinct peaks, suggesting two common ranges within the data.
  • Multimodal histogram: Has more than two peaks, indicating multiple common ranges.

2.4 Skewness

Skewness describes the asymmetry of a histogram.

  • Positively skewed histogram: Has a tail extending to the right, meaning there are a few unusually high values.
  • Negatively skewed histogram: Has a tail extending to the left, indicating a few unusually low values.

A histogram showing the frequency distribution of data across different class intervals.

A histogram showing the frequency distribution of data across different class intervals.

2.5 Relative frequency histogram

A histogram can be transformed into a relative frequency histogram (or percentage histogram) by changing the vertical scale from frequency to relative frequency. This shows the proportion or percentage of observations within each interval.

Relative Frequency (RF) = Frequency / Total number of observations (nn).

2.6 Frequency polygon

A frequency polygon is a line graph connecting the midpoints (class marks) of the tops of the bars in a histogram. It provides a smoothed representation of the data distribution.

  • Class mark: The midpoint of a class interval, calculated as (Lower limit + Upper limit) / 2.
  • Construction: Points representing the frequency of each class mark are plotted and then connected by straight line segments.

2.7 Cumulative frequency and Ogive

Cumulative frequency (CF) is the sum of frequencies for a class interval and all preceding intervals. Relative cumulative frequency (RCF) is the cumulative frequency divided by the total number of observations, often expressed as a percentage.

An Ogive, or cumulative frequency polygon, is the graphical representation of a cumulative frequency distribution. A relative cumulative frequency polygon represents the relative cumulative frequency distribution.

3. Stem and Leaf

3.1 Stem and leaf plot

A stem and leaf plot is a method for displaying quantitative data in a graphical format that retains individual data points while also showing the overall distribution. It splits each data value into two parts: a stem and a leaf.

  • Stem: Typically consists of the leading digit(s) of a number.
  • Leaf: Consists of the trailing digit(s) of a number.

The plot lists the stems in ascending order and shows the leaves corresponding to each stem.

The revenue (in R millions) collected by SARS of 22 companies are as follows: 15, 21, 25, 28, 29, 31, 32, 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 22, 26, 27.

StemLeaf
15
21 2 5 6 7 8 9
31 2 3 5 6 7 8 9
40 1 2 3 4 5

This plot indicates that the revenues range from 10 million Rands to 45 million Rands. The most frequent revenue range is between 21 and 29 million Rands, with 9 companies falling into this category.

4. Bar Graph

4.1 Bar graph

A bar graph is a graphical representation used for categorical or qualitative variables. It is similar in appearance to a histogram but has key distinctions.

  • Representation: Heights of rectangles indicate the frequency of each category.
  • Width: The width of the rectangles is not important.
  • Gaps: There are distinct gaps between each rectangle, signifying that the categories are separate and not continuous.

A bar graph is constructed from a frequency distribution of categorical data.

CategoryFrequency
Category A15
Category B22
Category C18
Category D10

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also