- 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).
| Term | Meaning | For the class 20-40 |
|---|---|---|
| Class frequency | Number of observations falling in the class | Counted from the data |
| Lower class limit | Lowest value of the class | 20 |
| Upper class limit | Highest value of the class | 40 |
| Class interval (class width) | Upper class limit minus lower class limit | 40 − 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.
| Wage (₹) | Number of workers | Class interval | Class mark |
|---|---|---|---|
| 200-300 | 4 | 100 | 250 |
| 300-400 | 10 | 100 | 350 |
| 400-500 | 16 | 100 | 450 |
| 500-600 | 12 | 100 | 550 |
| 600-700 | 8 | 100 | 650 |
| Total | 50 |
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 (₹) | Frequency | Relative frequency (%) |
|---|---|---|
| 200-300 | 4 | 8 |
| 300-400 | 10 | 20 |
| 400-500 | 16 | 32 |
| 500-600 | 12 | 24 |
| 600-700 | 8 | 16 |
| Total | 50 | 100 |
Worked example 3: continuous or discrete?
| Variable | Type | Reason |
|---|---|---|
| Area of a plot | Continuous | Can be any value, such as 312.75 square metres |
| Number appearing on a dice | Discrete | Only 1, 2, 3, 4, 5 or 6 |
| Rainfall in a day | Continuous | Any value, such as 12.6 mm |
| Number of cars passing a crossing | Discrete | Whole numbers only |
| Temperature | Continuous | Any 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. Which of the following is a discrete variable?
- Height of students
- Weight of a parcel
- Number of rooms in a house
- 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. The class mark of the class 45-55 is:
- 50
- 10
- 45
- 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. Illustrative: in a distribution of 80 families, 20 fall in the class ₹10,000-15,000. The relative frequency of this class is:
- 20%
- 25%
- 4%
- 16%
Show answer
Answer: B. Relative frequency = (20 ÷ 80) × 100 = 0.25 × 100 = 25%.
-
4. Once data are grouped into classes, further statistical calculations use:
- the actual observations
- the upper class limits
- the lower class limits
- 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. 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.
- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true, but R is false
- 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.
Sign in to keep track of the lessons you finish.