• Foundation
  • About 18 min
  • 5 practice questions

Continuous and discrete variables; parts of a frequency distribution

Distinguish continuous from discrete variables and learn the terms of a frequency distribution: class frequency, class limits, class interval, class mark and relative frequency.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Distinguish continuous variables from discrete variables with examples.
  • Define class frequency, class limits, class interval and class mark.
  • Calculate class marks and relative frequencies.

Before building a frequency distribution, we need to know how a variable varies, and we need the vocabulary used to describe classes.

Continuous and discrete variables

A continuous variable can take any numerical value within a range: whole numbers, fractions and values that are not exact fractions (such as the square root of 2, about 1.414). As a child grows from 90 cm to 150 cm, height passes through every value in between, such as 102.34 cm. Weight, time, distance, temperature and rainfall are continuous.

A discrete variable takes only certain values and changes by finite jumps, never taking the values in between. The number of students in a class can be 25 or 26 but never 25.5. A discrete variable can take fractional values too: a variable that takes only 1/8, 1/16, 1/32 ... is discrete, because it jumps from one value to the next and cannot take a value between them.

Continuous versus discrete variables

  • Continuous
    • Can take any value in a range
    • Values can be broken into infinite gradations
    • Examples: height, weight, time, distance, temperature, rainfall, crop yield, age
  • Discrete
    • Takes only certain values
    • Changes by jumps
    • Examples: number of students, number on a dice, number of cars on a road, population (a count of persons)

What a frequency distribution is

A frequency distribution sorts the raw values of a measurable variable into classes and shows, against each class, how many values fall in it (its frequency).

The vocabulary of a frequency distribution
TermMeaningFor the class 20-40
Class frequencyNumber of observations falling in the classCounted from the data
Lower class limitLowest value of the class20
Upper class limitHighest value of the class40
Class interval (class width)Upper class limit minus lower class limit40 − 20 = 20
Class mark (mid-point)(Upper class limit + lower class limit) ÷ 2(40 + 20) ÷ 2 = 30

Once data are grouped, the class mark represents the whole class: individual observations are not used in further calculations; the class mark is used instead. A frequency curve is a graph of a frequency distribution; class marks are plotted on the horizontal (X) axis and frequencies on the vertical (Y) axis, and the points are joined by a smooth curve.

Worked example 1: class marks and intervals

Illustrative distribution of the daily wages (₹) of 50 made-up workers.

Illustrative data
Wage (₹)Number of workersClass intervalClass mark
200-3004100250
300-40010100350
400-50016100450
500-60012100550
600-7008100650
Total50

Working: for 200-300, class interval = 300 − 200 = 100 and class mark = (300 + 200) ÷ 2 = 250. Every class here has the same width, 100, so class marks rise by 100 each time: 250, 350, 450, 550, 650. Check of total: 4 + 10 + 16 + 12 + 8 = 50.

Relative frequency

A frequency expressed as a proportion or percentage of the total frequency is called a relative frequency. It makes distributions of different sizes comparable.

Worked example 2: relative frequencies

Using the table above: relative frequency of 200-300 = 4 ÷ 50 = 0.08, or 8 per cent. Similarly, 10 ÷ 50 = 20 per cent; 16 ÷ 50 = 32 per cent; 12 ÷ 50 = 24 per cent; 8 ÷ 50 = 16 per cent. Check: 8 + 20 + 32 + 24 + 16 = 100 per cent. Maximum concentration: class 400-500 with 32 per cent of workers. Minimum concentration: 200-300 with 8 per cent. Workers earning ₹400 to ₹600: 16 + 12 = 28, which is 28 ÷ 50 × 100 = 56 per cent.

Wage (₹)FrequencyRelative frequency (%)
200-30048
300-4001020
400-5001632
500-6001224
600-700816
Total50100

Worked example 3: continuous or discrete?

VariableTypeReason
Area of a plotContinuousCan be any value, such as 312.75 square metres
Number appearing on a diceDiscreteOnly 1, 2, 3, 4, 5 or 6
Rainfall in a dayContinuousAny value, such as 12.6 mm
Number of cars passing a crossingDiscreteWhole numbers only
TemperatureContinuousAny value within a range

Key takeaways: continuous variables can take any value in a range; discrete variables jump between particular values. A frequency distribution groups a quantitative variable into classes with their frequencies. Class interval = upper limit − lower limit; class mark = (upper limit + lower limit) ÷ 2, and the class mark stands for the class in later calculations. Frequencies as a share of the total are relative frequencies.

Check your understanding

  1. 1. Which of the following is a discrete variable?

    1. Height of students
    2. Weight of a parcel
    3. Number of rooms in a house
    4. Time taken to finish a race
    Show answer

    Answer: C. The number of rooms can only be a whole number (3 or 4, never 3.5), so it changes by jumps. Height, weight and time can take any value in a range, so they are continuous.

  2. 2. The class mark of the class 45-55 is:

    1. 50
    2. 10
    3. 45
    4. 100
    Show answer

    Answer: A. Class mark = (upper limit + lower limit) ÷ 2 = (55 + 45) ÷ 2 = 100 ÷ 2 = 50. 10 is the class interval, not the class mark.

  3. 3. Illustrative: in a distribution of 80 families, 20 fall in the class ₹10,000-15,000. The relative frequency of this class is:

    1. 20%
    2. 25%
    3. 4%
    4. 16%
    Show answer

    Answer: B. Relative frequency = (20 ÷ 80) × 100 = 0.25 × 100 = 25%.

  4. 4. Once data are grouped into classes, further statistical calculations use:

    1. the actual observations
    2. the upper class limits
    3. the lower class limits
    4. the class marks
    Show answer

    Answer: D. In a frequency distribution, each class is represented by its class mark; the individual observations are no longer used.

  5. 5. Assertion (A): A variable that takes only the values 1/2, 1/4, 1/8, 1/16 ... is discrete. Reason (R): A discrete variable can never take a fractional value.

    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: C. A is true: the variable jumps from one value to the next and cannot take values in between, so it is discrete. R is false: the chapter warns that a discrete variable can take fractional values; what matters is the jumps.

Privacy · Terms · Refunds · Delivery