OpenRevise

Maths · Statistics

Viewing as

Teacher view: every answer and mark scheme set out in full.

Histograms and Sampling

Using frequency density to draw and read histograms, and taking random, stratified and capture-recapture samples.

  • Higher
  • 9 key terms
  • All boards

Learning Objectives

  1. 1Draw and interpret histograms with unequal class widths using frequency density.
  2. 2Find frequencies from a histogram, and estimate the number of values in part of a class.
  3. 3Explain the difference between a population and a sample, and why samples can be biased.
  4. 4Take a stratified sample, and use the capture-recapture method to estimate a population.

When the classes are not equal

In a bar chart the height shows the frequency, but when the classes have different widths that is no longer fair, because a wide class naturally holds more values. A histogram solves this by making the area of each bar show the frequency, so the height shows the frequency density. This lesson also looks at how data is collected, since a conclusion is only as good as the sample behind it. Both topics are Higher tier content, and they are mostly about careful working with a few simple formulae.

Frequency density and histograms

In a histogram the area of a bar is the frequency.

  • The formula

    Frequency density \(= \dfrac{\text{frequency}}{\text{class width}}\).

  • Frequency from a bar

    Frequency \(=\) frequency density \(\times\) class width, which is the area of the bar.

  • The axes

    The vertical axis is labelled frequency density, and there are no gaps between the bars.

  • Why it works

    A class twice as wide gets a bar half as high for the same frequency, so the areas stay in proportion.

Drawing the bars

The table shows the lengths of 60 worms. For the class \(0 < l \leq 5\) the frequency is 10, for \(5 < l \leq 15\) it is 30, and for \(15 < l \leq 20\) it is 20. Work out the frequency density for each class.

Show the solutionHide the solution
  1. 1 First class The width is 5, so \(\dfrac{10}{5} = 2\).
  2. 2 Second class The width is 10, so \(\dfrac{30}{10} = 3\).
  3. 3 Third class The width is 5, so \(\dfrac{20}{5} = 4\).
  4. 4 Draw Bars of heights 2, 3 and 4 over the three classes, with no gaps.

Answer2, 3 and 4

Populations and samples

The population is everyone or everything you want to know about, and a sample is the part you actually measure.

  • Why sample

    Asking everyone is slow or expensive, so a sample is used.

  • Bias

    A sample is biased if some members of the population are more likely to be chosen than others, such as asking only people in a gym about exercise.

  • Random sample

    Every member has an equal chance of being chosen, for example by using random numbers.

  • Sample size

    A larger sample is generally more reliable, but takes more effort.

Stratified sampling

In a stratified sample, each group (stratum) is represented in proportion to its size.

  • The formula

    Number in the sample from a group \(= \dfrac{\text{size of the group}}{\text{size of the population}} \times \text{sample size}\).

  • Example

    A school has 600 pupils, 240 of them in Year 10. A sample of 50 should include \(\dfrac{240}{600} \times 50 = 20\) pupils from Year 10.

  • Check

    The numbers from each group should add up to the sample size.

  • Choose randomly within each group

    Each group's sample should still be chosen at random.

Estimating a population (capture-recapture)

To estimate how many animals are in a population, mark some and see how many marked ones turn up later.

  • Method

    Capture and mark \(M\) animals, release them, then capture a second sample of \(n\) animals and count the \(m\) that are marked.

  • Assumption

    The proportion marked in the second sample matches the proportion in the whole population: \(\dfrac{m}{n} = \dfrac{M}{N}\).

  • Formula

    \(N = \dfrac{M \times n}{m}\).

  • Example

    50 fish are marked. A second sample of 40 has 8 marked. The population is estimated as \(\dfrac{50 \times 40}{8} = 250\).

Capture-recapture

A scientist catches 30 birds, marks them and releases them. A week later she catches 60 birds, and 9 of them are marked. Estimate the number of birds in the population.

Show the solutionHide the solution
  1. 1 Use the proportions \(\dfrac{9}{60} = \dfrac{30}{N}\).
  2. 2 Rearrange \(N = \dfrac{30 \times 60}{9}\).
  3. 3 Calculate \(\dfrac{1800}{9} = 200\).
  4. 4 Comment It is an estimate, and it assumes the birds mix evenly and none leave or join.

Answer200

Test yourself

  1. 1

    What is frequency density?

    Show answerHide answer

    Frequency divided by class width.

  2. 2

    What does the area of a bar in a histogram show?

    Show answerHide answer

    The frequency.

  3. 3

    What makes a sample biased?

    Show answerHide answer

    Some members of the population are more likely to be chosen than others.

  4. 4

    How many Year 10 pupils are in a stratified sample of 50 if Year 10 is 240 of 600?

    Show answerHide answer

    20.

  5. 5

    What is the capture-recapture formula?

    Show answerHide answer

    \(N = \dfrac{M \times n}{m}\).

Exam technique: histograms and sampling

Show each calculation separately.

  • Label the vertical axis

    Frequency density, not frequency.

  • Work out the width of each class

    Use the class boundaries, not the number of values.

  • Use the area for estimates

    Part of a bar is the same fraction of the frequency.

  • State the assumptions

    In capture-recapture, say the population has not changed and the marked animals have mixed in.

Summary and exam focus

  • In a histogram, frequency density is frequency divided by class width, and the area of the bar is the frequency.
  • A random sample gives every member an equal chance, and a biased sample does not.
  • In a stratified sample, each group is represented in proportion to its size.
  • Capture-recapture estimates a population as \(N = \dfrac{M \times n}{m}\).

Exam focus

A school has 600 pupils, and 240 of them are in Year 10. A stratified sample of 50 pupils is taken. How many Year 10 pupils should be in the sample? (2 marks) (2 marks)

The fraction of the school in Year 10 is \(\dfrac{240}{600} = \dfrac{2}{5}\), so \(\dfrac{2}{5} \times 50 = 20\) pupils. Show the fraction before multiplying, as it earns the method mark.

Key terms

The words this lesson expects you to use. Each one is linked from the first place it appears above.

Histogram
A chart with touching bars where the area of each bar shows the frequency.
Frequency density
Frequency divided by class width, used as the height of a histogram bar.
Class width
The size of a class, found by subtracting its lower boundary from its upper boundary.
Population
The whole group that is being studied.
Sample
A part of the population that is selected for study.
Bias
A tendency for a sample to favour some outcomes over others.
Random sample
A sample where every member of the population has an equal chance of being chosen.
Stratified sample
A sample where each group is represented in proportion to its size.
Capture-recapture
A method of estimating the size of a population by marking and recapturing members.

Questions and answers

15 questions set on this lesson, with the mark schemes and model answers open.

1. Exam question Calculate 3 marks Core

The table shows the ages of some people. For the class \(0 < a \leq 10\) the frequency is 5, for \(10 < a \leq 30\) it is 30, and for \(30 < a \leq 50\) it is 60. Calculate the frequency density for each class. [3 marks]

Mark scheme — 3 marks available

  • Class widths 10, 20 and 20 used — M1
  • At least two frequency densities correct — A1
  • 0.5, 1.5 and 3 — A1

Model answer

The widths are 10, 20 and 20. The frequency densities are \(\dfrac{5}{10} = 0.5\), \(\dfrac{30}{20} = 1.5\) and \(\dfrac{60}{20} = 3\).

2. Exam question Calculate 4 marks Core

The histogram shows the ages of some people at a village event. (a) Calculate the number of people aged more than 40 and up to 60. [2 marks] (b) Calculate the number of people aged over 60. [2 marks]

A histogram of ages with five bars of frequency densities 0.5, 1.5, 3, 2 and 0.5 over the classes 10 to 20, 20 to 30, 30 to 40, 40 to 60 and 60 to 100.

Mark scheme — 4 marks available

  • (a) \(2 \times 20\) — M1
  • (a) 40 — A1
  • (b) \(0.5 \times 40\) — M1
  • (b) 20 — A1

Model answer

(a) The frequency is the area of the bar: \(2 \times 20 = 40\). (b) The bar from 60 to 100 has a frequency density of 0.5 and a width of 40, so \(0.5 \times 40 = 20\).

3. Exam question Calculate 3 marks Core

On a histogram the bar for the class \(20 < x \leq 40\) has a frequency density of 2.5. (a) Calculate the frequency of the class. [2 marks] The class \(40 < x \leq 50\) has a frequency of 30. (b) Calculate the height of its bar. [1 mark]

Mark scheme — 3 marks available

  • (a) \(2.5 \times 20\) — M1
  • (a) 50 — A1
  • (b) 3 — B1

Model answer

(a) The width is 20, so the frequency is \(2.5 \times 20 = 50\). (b) The width is 10, so the frequency density is \(\dfrac{30}{10} = 3\).

4. Exam question Calculate 3 marks Core

A club has 90 juniors, 60 seniors and 30 veterans. A stratified sample of 36 members is taken. Calculate the number of members from each group in the sample. [3 marks]

Mark scheme — 3 marks available

  • \(\dfrac{90}{180} \times 36\) or the total 180 seen — M1
  • At least two numbers correct — A1
  • 18, 12 and 6 — A1

Model answer

There are 180 members. Juniors: \(\dfrac{90}{180} \times 36 = 18\). Seniors: \(\dfrac{60}{180} \times 36 = 12\). Veterans: \(\dfrac{30}{180} \times 36 = 6\).

5. Exam question Calculate 3 marks Core

A farmer marks 25 sheep in a flock. Later he selects 50 sheep, and 5 of them are marked. (a) Calculate an estimate for the number of sheep in the flock. [2 marks] (b) State one assumption you have made. [1 mark]

Mark scheme — 3 marks available

  • (a) \(\dfrac{25 \times 50}{5}\) — M1
  • (a) 250 — A1
  • (b) The marked sheep have mixed evenly, or the population has not changed — B1

Model answer

(a) \(\dfrac{5}{50} = \dfrac{25}{N}\), so \(N = \dfrac{25 \times 50}{5} = 250\). (b) The marked sheep have mixed evenly with the others, and the size of the flock has not changed.

6. Exam question Describe 2 marks Core

There are 800 students in a school. Describe how to take a random sample of 20 of them. [2 marks]

Mark scheme — 2 marks available

  • Numbers each of the students — B1
  • Uses random numbers to choose 20 students — B1

Model answer

Give each student a different number from 1 to 800. Use a random number generator to pick 20 different numbers, and choose the students with those numbers.

7. Multiple choice 1 mark Easier

What is the formula for frequency density?

  1. A Frequency times class width
  2. B Frequency divided by class width Correct
  3. C Class width divided by frequency
  4. D Total frequency divided by the number of classes

Why: Frequency density \(= \dfrac{\text{frequency}}{\text{class width}}\).

8. Multiple choice 1 mark Easier

What does the area of a bar in a histogram show?

  1. A The frequency Correct
  2. B The frequency density
  3. C The class width
  4. D The mean

Why: Area \(=\) frequency density \(\times\) class width \(=\) frequency.

9. Multiple choice 1 mark Core

A histogram bar has class width 20 and frequency density 3. What is the frequency?

  1. A \(23\)
  2. B \(6.7\)
  3. C \(17\)
  4. D \(60\) Correct

Why: \(3 \times 20 = 60\).

10. Multiple choice 1 mark Core

A class of width 10 has frequency 30. What is its frequency density?

  1. A \(300\)
  2. B \(0.3\)
  3. C \(3\) Correct
  4. D \(40\)

Why: \(\dfrac{30}{10} = 3\).

11. Multiple choice 1 mark Core

A survey about exercise only asks people leaving a gym. What is wrong with the sample?

  1. A It is too random
  2. B It is biased towards people who exercise Correct
  3. C It is too small to be a sample
  4. D It is a stratified sample

Why: People at a gym are not typical of the whole population.

12. Multiple choice 1 mark Core

A school has 600 pupils, 240 in Year 10. A stratified sample of 50 is taken. How many Year 10 pupils are in the sample?

  1. A \(20\) Correct
  2. B \(12\)
  3. C \(24\)
  4. D \(240\)

Why: \(\dfrac{240}{600} \times 50 = 20\).

13. Multiple choice 1 mark Stretch

50 fish are marked and released. A second sample of 40 fish contains 8 marked fish. What is the estimate of the population?

  1. A \(10\)
  2. B \(400\)
  3. C \(62.5\)
  4. D \(250\) Correct

Why: \(\dfrac{50 \times 40}{8} = 250\).

14. Multiple choice 1 mark Stretch

A histogram bar from 30 to 40 has frequency 40. Estimate the number of values from 30 to 35.

  1. A \(40\)
  2. B \(5\)
  3. C \(20\) Correct
  4. D \(35\)

Why: 35 is halfway through the class, so about half the frequency: 20.

15. Multiple choice 1 mark Core

Why does a larger sample usually give a better estimate?

  1. A It removes all bias
  2. B It is more likely to represent the whole population Correct
  3. C It always gives exact answers
  4. D It makes the population smaller

Why: Bigger samples are less affected by chance.