• Foundation
  • About 18 min
  • 5 practice questions

Frequency arrays and bivariate frequency distributions

Prepare a frequency array for a discrete variable and read and construct a bivariate frequency distribution of two variables.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Prepare a frequency array for a discrete variable.
  • Distinguish univariate from bivariate frequency distributions.
  • Construct and read a two-way (bivariate) frequency table.

The frequency distributions so far grouped a continuous variable into classes. A discrete variable that takes only a few whole-number values does not need classes at all, and sometimes we want to classify two variables together. This lesson covers both.

Frequency array

A frequency array is the classification of data of a discrete variable: each value the variable takes is listed with its frequency.

Because a discrete variable such as household size takes values like 1, 2, 3 and never 2.5, each value gets its own row.

Worked example 1: making a frequency array

Illustrative raw data: the number of children in 25 made-up households: 2, 3, 1, 4, 2, 2, 3, 5, 2, 1, 3, 2, 4, 2, 3, 0, 2, 3, 1, 2, 6, 2, 3, 4, 2.

Illustrative frequency array
Number of childrenNumber of households
01
13
210
36
43
51
61
Total25

Check: 1 + 3 + 10 + 6 + 3 + 1 + 1 = 25 households. Total number of children: (0 × 1) + (1 × 3) + (2 × 10) + (3 × 6) + (4 × 3) + (5 × 1) + (6 × 1) = 0 + 3 + 20 + 18 + 12 + 5 + 6 = 64. Most common size: 2 children (10 households, which is 40 per cent). Households with 3 or more children: 6 + 3 + 1 + 1 = 11.

Univariate and bivariate distributions

A distribution of one variable (marks, wages, household size) is univariate. Often we collect two pieces of information from each unit, for example the sales and the advertisement expenditure of each firm in a sample. Such data are bivariate, and they can be summarised in a bivariate frequency distribution: the frequency distribution of two variables.

Univariate and bivariate

  • Univariate distribution
    • One variable
    • One column of classes and one of frequencies
    • Example: marks of 30 students
  • Bivariate distribution
    • Two variables for each unit
    • Classes of one variable in rows, of the other in columns
    • Each cell: number of units in that row class and that column class
    • Used later to study correlation

Worked example 2: building a bivariate table

Illustrative data for 12 made-up shops: (advertisement spending in ₹ thousand, sales in ₹ lakh): (12, 55), (15, 58), (18, 63), (22, 61), (25, 66), (27, 72), (24, 64), (33, 71), (36, 75), (31, 68), (14, 52), (38, 77). Put advertisement classes in rows and sales classes in columns.

Sorting row by row: advertisement 10-20: 12→55, 15→58, 14→52 fall in sales 50-60 (3 shops) and 18→63 in 60-70 (1 shop). Advertisement 20-30: 22→61, 25→66, 24→64 in 60-70 (3) and 27→72 in 70-80 (1). Advertisement 30-40: 31→68 in 60-70 (1) and 33→71, 36→75, 38→77 in 70-80 (3).

Illustrative bivariate frequency distribution of 12 shops
Advertisement (₹ thousand)Sales 50-60 (₹ lakh)Sales 60-70 (₹ lakh)Sales 70-80 (₹ lakh)Total
10-203104
20-300314
30-400134
Total35412

Check: row totals 4 + 4 + 4 = 12; column totals 3 + 5 + 4 = 12. Reading a cell: 3 shops spent ₹20-30 thousand on advertisement and had sales of ₹60-70 lakh. Pattern: the larger frequencies run from the top-left to the bottom-right, so shops that spend more on advertisement tend to have higher sales. Measuring such a relationship is the subject of the chapter on correlation.

The row and column totals are themselves univariate distributions: the column totals (3, 5, 4) show the distribution of sales alone, and the row totals (4, 4, 4) show the distribution of advertisement spending alone.

Steps in making a bivariate table

  1. Collect pairs Two values from each unit
  2. Classes for each variable One set for rows, one for columns
  3. Place each pair in a cell Row class of the first value, column class of the second
  4. Count cell frequencies Tally if there are many pairs
  5. Total rows and columns Both must add to the number of units

Key takeaways: a frequency array lists each value of a discrete variable with its frequency. A univariate distribution covers one variable; a bivariate distribution covers two, with one in rows and the other in columns, each cell giving the number of units in both classes. Row and column totals both equal the number of units, and the pattern of cells hints at a relationship between the variables.

Check your understanding

  1. 1. The classification of data of a discrete variable, listing each value with its frequency, is called a:

    1. bivariate distribution
    2. frequency array
    3. time series
    4. frequency curve
    Show answer

    Answer: B. For a discrete variable each value is listed with its frequency; the chapter calls this a frequency array.

  2. 2. Illustrative: in a frequency array, 4 households have 1 member, 6 have 2 and 5 have 3. The total number of persons in these households is:

    1. 15
    2. 31
    3. 27
    4. 6
    Show answer

    Answer: B. Persons = (1 × 4) + (2 × 6) + (3 × 5) = 4 + 12 + 15 = 31. 15 is the number of households, not persons.

  3. 3. A frequency distribution of two variables is called:

    1. a univariate distribution
    2. a frequency array
    3. a qualitative classification
    4. a bivariate distribution
    Show answer

    Answer: D. A distribution of two variables together is a bivariate frequency distribution; a single variable gives a univariate one.

  4. 4. In the bivariate table of Worked example 2, how many shops had sales of ₹70-80 lakh?

    1. 4
    2. 3
    3. 1
    4. 12
    Show answer

    Answer: A. The column total for sales 70-80 is 0 + 1 + 3 = 4 shops.

  5. 5. Assertion (A): In a bivariate frequency table the row totals and the column totals each add up to the number of units. Reason (R): Every unit appears in exactly one cell, which lies in one row and one column.

    1. Both A and R are true, and R is the correct explanation of A
    2. Both A and R are true, but R is not the correct explanation of A
    3. A is true, but R is false
    4. A is false, but R is true
    Show answer

    Answer: A. Both are true, and R explains A: since every unit is in exactly one cell, adding across rows or down columns counts each unit once, giving the total number of units both ways.

Privacy · Terms · Refunds · Delivery