OpenRevise

Maths · Statistics

Viewing as

Teaching this? The teacher view opens every answer and mark scheme.

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.

You've finished the notes

Check your understanding

Test yourself while it is fresh. Start with the flashcards, then try the exam questions.

Something here looks wrong?

Tell us what and we will go and look. It goes to whoever writes these pages, nobody else, and we do not ask who you are — so there is nothing to sign and nothing comes back to you.