Exploring Data with Tables and Graphs: Frequency Distributions

Overview of Data Exploration and Frequency Distributions

  • Core Topics in Data Exploration:

    • 2-1 Frequency Distributions for Organizing and Summarizing Data: Methods to partition, organize, and summarize raw datasets into structured frequency tables.

    • 2-2 Histograms: Visual representations of frequency distributions that simplify data analysis.

    • 2-3 Graphs that Enlighten and Graphs that Deceive: Identifying effective graphical presentations versus misleading visual statistics.

  • Purpose of Frequency Distributions:

    • When dealing with large datasets, a frequency distribution (or frequency table) serves as an essential tool to organize and summarize raw data.

    • Frequency distributions help reveal the fundamental nature and shape of a dataset's distribution.

    • Partitioning Data: A frequency distribution shows how data values are partitioned among several distinct categories (or classes) by listing each category alongside its corresponding frequency (the total count of data values belonging to that category).

Core Terminology of Frequency Distributions

  • Lower Class Limits:

    • The smallest numbers that can physically belong to each of the distinct classes.

  • Upper Class Limits:

    • The largest numbers that can physically belong to each of the distinct classes.

  • Class Boundaries:

    • The precise numbers used to separate adjacent classes without leaving gaps created by the class limits.

  • Class Midpoints:

    • The specific values located at the exact middle of each class.

    • Calculation Formula:     Class Midpoint=Lower Class Limit+Upper Class Limit2\text{Class Midpoint} = \frac{\text{Lower Class Limit} + \text{Upper Class Limit}}{2}

  • Class Width:

    • The numerical difference between two consecutive lower class limits (or two consecutive lower class boundaries) in a frequency distribution.

Procedure for Constructing a Frequency Distribution

  • Step 1: Select the Number of Classes:

    • Determine the desired number of classes for the table, typically between 55 and 2020.

  • Step 2: Calculate the Class Width:

    • Use the class width formula and round up to find a convenient, workable increment:     Class width≈maximum data value−minimum data valuenumber of classes\text{Class width} \approx \frac{\text{maximum data value} - \text{minimum data value}}{\text{number of classes}}

    • It is standard practice to round up to ensure all data points fit within the defined boundaries.

  • Step 3: Determine the First Lower Class Limit:

    • Choose a starting value for the first lower class limit by taking either the exact minimum data value or a convenient value lower than the minimum.

  • Step 4: Generate All Lower Class Limits:

    • Add the calculated class width to the first lower class limit to produce the second lower class limit. Repeat this addition process until all lower class limits are established.

  • Step 5: Set Upper Class Limits:

    • List the generated lower class limits vertically in a column, then identify and enter the non-overlapping upper class limits for each class.

  • Step 6: Tally Data and Compute Frequencies:

    • Place each raw data value into its corresponding class row using tally marks, then sum the tally marks to determine the total frequency for each class.

Worked Example: Los Angeles Daily Commute Times

  • Problem Objective:

    • Construct a frequency distribution containing 77 classes using a sample dataset of 5050 daily commute times (in minutes) for commuters in Los Angeles.

  • Raw Dataset (5050 Values in Minutes):

    • 1818, 2525, 4545, 7575, 6060, 4040, 2525, 88, 5050, 1010, 1010, 3030, 1515, 2525, 5050, 2020, 3030

    • 2020, 4545, 3030, 6060, 3030, 2020, 1515, 3030, 6060, 3030, 1515, 3535, 4040, 55, 3030, 4040, 2020

    • 1010, 4545, 3030, 1515, 2525, 2525, 55, 9090, 3030, 1515, 6060, 2020, 6060, 3030, 2525, 2525

  • Step-by-Step Construction:

    • Target Classes: Select 77 as the total number of desired classes.

    • Class Width Calculation:

    • Minimum value = 55

    • Maximum value = 9090     Class width≈90−57=857=12.14≈15\text{Class width} \approx \frac{90 - 5}{7} = \frac{85}{7} = 12.14 \approx 15

    • Rounding 12.1412.14 up to 1515 provides a convenient and practical interval for commute time measurements.

    • First Lower Class Limit Selection: Select 00 as the first lower class limit because 00 is less than the minimum value 55 and forms an intuitive baseline for commute duration.

    • Lower Class Limits Listing: Add the class width of 1515 sequentially to generate seven lower class limits:

    • 00, 1515, 3030, 4545, 6060, 7575, 9090

    • Upper Class Limits Identification:

    • Upper limits are set to avoid overlap: 1414, 2929, 4444, 5959, 7474, 8989, 104104

  

Upper class limits construction showing arrow mappings
  • Tallying Frequencies:

    • 0−140-14 minutes: Frequency = 66

    • 15−2915-29 minutes: Frequency = 1818

    • 30−4430-44 minutes: Frequency = 1414

    • 45−5945-59 minutes: Frequency = 55

    • 60−7460-74 minutes: Frequency = 55

    • 75−8975-89 minutes: Frequency = 11

    • 90−10490-104 minutes: Frequency = 11

    • Total Sample Size (NN) = 6+18+14+5+5+1+1=506 + 18 + 14 + 5 + 5 + 1 + 1 = 50

  

Raw data grid and final frequency distribution for Los Angeles commute times

Relative Frequency Distributions

  • Definition:

    • A Relative Frequency Distribution (or Percentage Frequency Distribution) replaces raw frequencies with proportions or percentages.

  • Formulas:   Relative Frequency for a Class≈Frequency for a ClassSum of All Frequencies\text{Relative Frequency for a Class} \approx \frac{\text{Frequency for a Class}}{\text{Sum of All Frequencies}}   Percentage for a Class≈Frequency for a ClassSum of All Frequencies×100%\text{Percentage for a Class} \approx \frac{\text{Frequency for a Class}}{\text{Sum of All Frequencies}} \times 100\%

  • Summation Rule:

    • The sum of all relative frequencies must equal approximately 11 (or 100%100\% for percentages), allowing for minor variations due to rounding errors.

  • Relative Frequency Breakdown for LA Commute Times (N=50N = 50):

    • 0−140-14 minutes: 12%12\% (calculated as 6÷506 \div 50)

    • 15−2915-29 minutes: 36%36\% (calculated as 18÷5018 \div 50)

    • 30−4430-44 minutes: 28%28\% (calculated as 14÷5014 \div 50)

    • 45−5945-59 minutes: 10%10\% (calculated as 5÷505 \div 50)

    • 60−7460-74 minutes: 10%10\% (calculated as 5÷505 \div 50)

    • 75−8975-89 minutes: 2%2\% (calculated as 1÷501 \div 50)

    • 90−10490-104 minutes: 2%2\% (calculated as 1÷501 \div 50)

Comparative Data Analysis: New York vs. Boise Commute Times

  • Utility of Relative Frequency Distributions:

    • Combining two or more relative frequency distributions into a single comparative table allows direct visual and analytical comparisons between datasets of vastly different sample sizes.

  • Comparison Table (Sample Size N=1000N = 1000 for NY, NY and N=1000N = 1000 for Boise, ID):

    • 0−140-14 minutes: NY = 8.6%8.6\%, Boise = 30.3%30.3\%

    • 15−2915-29 minutes: NY = 20.3%20.3\%, Boise = 45.5%45.5\%

    • 30−4430-44 minutes: NY = 24.8%24.8\%, Boise = 17.0%17.0\%

    • 45−5945-59 minutes: NY = 17.2%17.2\%, Boise = 3.5%3.5\%

    • 60−7460-74 minutes: NY = 18.5%18.5\%, Boise = 2.2%2.2\%

    • 75−8975-89 minutes: NY = 3.3%3.3\%, Boise = 0.3%0.3\%

    • 90−10490-104 minutes: NY = 4.7%4.7\%, Boise = 0.3%0.3\%

    • 105−119105-119 minutes: NY = 0.1%0.1\%, Boise = 0.0%0.0\%

    • 120−134120-134 minutes: NY = 0.0%0.0\%, Boise = 0.0%0.0\%

    • 135−149135-149 minutes: NY = 2.5%2.5\%, Boise = 0.9%0.9\%

  • Comparative Insights:

    • Commute times in Boise, ID are significantly lower overall than commute times in New York, NY.

    • In Boise, 75.8%75.8\% of all commutes fall within the lowest two time brackets (0−290-29 minutes), whereas only 28.9%28.9\% of New York commutes fall within those same intervals (8.6%+20.3%=28.9%8.6\% + 20.3\% = 28.9\%

    • This statistical disparity aligns with expectations based on the relative physical geographic size, population density, and infrastructure differences between the two cities.

Cumulative Frequency Distributions

  • Definition:

    • A Cumulative Frequency Distribution tabulates the accumulated total frequencies for each class combined with all preceding classes.

    • Class descriptions are adjusted to express upper limit thresholds (e.g., "Less than [upper boundary]").

  • Cumulative Frequency Table for LA Commute Times:

    • Less than 1515 minutes: 66

    • Less than 3030 minutes: 2424 (calculated as 6+186 + 18)

    • Less than 4545 minutes: 3838 (calculated as 24+1424 + 14)

    • Less than 6060 minutes: 4343 (calculated as 38+538 + 5)

    • Less than 7575 minutes: 4848 (calculated as 43+543 + 5)

    • Less than 9090 minutes: 4949 (calculated as 48+148 + 1)

    • Less than 105105 minutes: 5050 (calculated as 49+149 + 1)

Analyzing Distributions: Normal Distributions and Gaps

  • Identifying Normal Distributions:

    • Frequency tables are frequently analyzed to determine whether a dataset follows a normal distribution.

    • Criteria for a Normal Distribution:

    1. Frequency Trend: Class frequencies start low, increase gradually to one or two maximum peak frequencies, and then decrease back to low frequencies.

    2. Symmetry: The distribution exhibits approximate symmetry. Frequencies listed prior to the maximum frequency roughly mirror those following the maximum.

    • Example Frequency Table of a Normal Distribution:

    • 0−140-14 minutes: Frequency = 22 (Starts low)

    • 15−2915-29 minutes: Frequency = 44

    • 30−4430-44 minutes: Frequency = 1010

    • 45−5945-59 minutes: Frequency = 1818 (Reaches peak maximum)

    • 60−7460-74 minutes: Frequency = 1010

    • 75−8975-89 minutes: Frequency = 44

    • 90−10490-104 minutes: Frequency = 22 (Decreases back to low)

  • Understanding Gaps in Data:

    • The presence of prominent gaps (classes with frequencies of zero bounded by non-zero classes) indicates that data may be sampled from two or more separate populations.

    • Important Caveat: While gaps signal multiple underlying populations, the inverse statement is not always true; combined data from distinct populations does not guarantee a gap will appear.

    • Case Study: Penny Weight Distribution:

    • 2.40−2.49 g2.40-2.49\,\text{g}: Frequency = 1818

    • 2.50−2.59 g2.50-2.59\,\text{g}: Frequency = 1919

    • 2.60−2.69 g2.60-2.69\,\text{g}: Frequency = 00

    • 2.70−2.79 g2.70-2.79\,\text{g}: Frequency = 00

    • 2.80−2.89 g2.80-2.89\,\text{g}: Frequency = 00

    • 2.90−2.99 g2.90-2.99\,\text{g}: Frequency = 22

    • 3.00−3.09 g3.00-3.09\,\text{g}: Frequency = 2525

    • 3.10−3.19 g3.10-3.19\,\text{g}: Frequency = 88

    • Interpretation: A clear frequency gap exists between 2.60 g2.60\,\text{g} and 2.89 g2.89\,\text{g}. This gap reflects two distinct coin compositions manufactured across different time periods:

      • Pennies minted prior to 19831983 are composed of 95%95\% copper and 5%5\% zinc (resulting in heavier weights).

      • Pennies minted after 19831983 are composed of 2.5%2.5\% copper and 97.5%97.5\% zinc (resulting in lighter weights).

  • Transition to Histograms:

    • Although frequency distribution tables effectively group and quantify numerical data, a histogram provides a graphical view that is far easier to analyze and interpret than raw tables of figures.