Menu
Sign up Sign in

AI HL · 13.3

Statistics

13.3.1

Data, sampling and averages

13.3.1

Data, sampling and averages

Target: I can tell discrete, continuous and categorical data apart, and name the population and the sample. (+6 more)

By the end of this section

Key points

Populations, samples and data

  • The population is everything you want to know about. A sample is the part of it you actually measure.
  • Discrete data is counted and takes separate values (shoe size, number of goals). Continuous data is measured and can take any value in a range (time, mass, height).
  • Categorical data is a label, such as a colour or a type of transport.
  • Continuous data is rounded when it is recorded. A time of 15 s to the nearest second means \(14.5 \le t < 15.5\).

Sampling methods and bias

  • Simple random: every member has an equal chance, for example names drawn by a random number generator.
  • Systematic: take items at a fixed interval from a list, such as every 10th person.
  • Stratified: split the population into groups, then take a random sample from each group in proportion to its size.
  • Quota: the interviewer fills a fixed number from each group, choosing who to ask. Convenience: ask whoever is easy to reach.
  • A sample is biased if it does not represent the population. Convenience and quota samples are often biased; a larger sample reduces random error but does not remove bias. To judge a source, ask who collected the data and why, how people were chosen, how many were asked and how many replied, and whether the question was neutral.

Frequency tables and the mean

  • Total frequency: add the frequency column. This is the number of items, \(n\).
  • For a list, \(\bar{x}=\frac{\sum x}{n}\). Order the list for the median: the middle value, or halfway between the middle two. The mode is the most common value.
  • For a frequency table, \(\bar{x}=\frac{\sum fx}{\sum f}\). Multiply every value by its frequency before you add.
  • To find an unknown from a mean, write the mean equation and solve it. Count the values to know what to divide by.
  • To combine groups, find each total (mean × number of values), add the totals and divide by the total number of values. Do not average the two means unless the groups are the same size. Adding or removing a value changes the total by that value.

Grouped data

  • For grouped data, use each class's midpoint, \(\frac{\text{lower}+\text{upper}}{2}\), in place of its values. The result is an estimate of the mean.
  • The modal group is the class with the highest frequency (for equal widths). Classes of different widths need the midpoint of each class.
  • To count values below a boundary, add the frequencies of the classes that end at or below it.
  • State that a grouped mean is an estimate because the real values in each class are not known.

On the calculator

Entering a list

  • Type the values into one column of a spreadsheet.
  • Type a second column for the frequencies when there is a frequency table.
  • Check the number of values is what you expect.

Screenshot and video to come

One-variable statistics

Menu > Statistics > Stat Calculations > One-Variable Statistics

  • Choose the list of values and, for a table, the frequency list.
  • Read the mean x̄, the number n, and the median.
  • The standard deviation to use is σx, not sx.

Screenshot and video to come

Reading the mode

  • The calculator does not always give the mode.
  • Order the list and find the value that appears most often.

Screenshot and video to come

Worked examples

Problems like the ones in class. Pick one, try it, then open the working.
Naming a sampling method

A company has 840 staff: 360 in the office, 300 in the factory and 180 drivers. A survey needs 56 staff. The 56 are chosen at random, with the same proportion taken from each of the three groups. (a) Name this sampling method. (b) How many drivers are in the sample?

Working
  1. Name the method

    Stratified sampling

    The population is split into groups (strata) and a random sample is taken from every group, in proportion to the group's size.

  2. The fraction sampled

    \(\frac{56}{840}=\frac{1}{15}\)

    The sample is this fraction of the whole population, so it is this fraction of every group.

  3. Drivers

    \(\frac{1}{15}\times 180=12\)

    The sample has 12 drivers. Check: 24 + 20 + 12 = 56.

Video walkthrough coming
Systematic sampling and bias

A factory makes 1200 bottles in a shift. An inspector tests the 7th bottle and then every 25th bottle after it (the 7th, 32nd, 57th, …). (a) How many bottles are tested? (b) The machine is fitted with a faulty valve that fails on every 25th bottle starting from bottle 25. Explain why this sampling method would miss the fault.

Working
  1. Systematic sampling

    Start at 7, then add 25 each time

    A systematic sample takes items at a fixed interval from a list.

  2. Count the bottles

    \(7+25k \le 1200,\ \text{so } k=0,1,\dots,47\)

    There are 48 values of k, so 48 bottles are tested.

  3. The weakness

    The tested bottles are never numbers 25, 50, 75, …

    A fixed interval can line up with a pattern in the process. Bottles 7, 32, 57, … all differ from the faulty bottles, so the sample is biased and misses the fault.

Video walkthrough coming
Is the data source reliable?

A leisure centre posts this question on its own social media page: "Do you agree that our new pool is excellent?" 214 people reply and 190 say yes. The centre announces that "almost 89% of local residents think the pool is excellent". (a) Find the percentage of the replies that said yes, to 3 significant figures. (b) Give two reasons why the announcement may not be reliable. (c) Suggest a better way to find out what residents think.

Working
  1. The percentage

    \(\frac{190}{214}\times 100=88.8\%\)

    Only the people who replied are counted, so divide by 214.

  2. Who replied

    Self-selected replies from the centre's own followers

    People chose to answer, and followers of the centre are more likely to like it. The sample is biased: it is not a random sample of residents.

  3. The question

    "Do you agree that our new pool is excellent?"

    A leading question pushes people towards yes. The source also gains from a good result.

  4. A better method

    Random sample of residents, neutral question

    Choose residents at random, for example from the electoral register. Ask "How would you rate the new pool?" and follow up the people who do not reply.

Video walkthrough coming
Rounded data in class intervals

The time t, in minutes, that 53 students take to cycle to school is recorded to the nearest minute. (a) Find how many students there were in total. (b) Complete the grouped table for the classes 4.5 ≤ t < 7.5, 7.5 ≤ t < 10.5 and 10.5 ≤ t < 13.5. (c) A student's time is recorded as 9 minutes. Between which values could the actual time lie?

t (min)5678910111213Frequency25912107431
Working
  1. Total frequency

    \(2 + 5 + 9 + 12 + 10 + 7 + 4 + 3 + 1 = 53\)

    Add every frequency to find the number of students.

  2. Class intervals

    4.5 ≤ t < 7.5: 2 + 5 + 9 = 16; 7.5 ≤ t < 10.5: 12 + 10 + 7 = 29; 10.5 ≤ t < 13.5: 4 + 3 + 1 = 8

    Time is continuous. A recorded 5, 6 or 7 minutes lies in 4.5 ≤ t < 7.5. The boundaries sit halfway between recorded values.

  3. Check

    \(16+29+8=53\)

    The grouped frequencies must still add to the total.

  4. Actual time

    8.5 ≤ t < 9.5

    Rounded to the nearest minute: half a minute either side of 9.

Video walkthrough coming
Mean, median and mode of a list

The numbers of text messages sent by a student on eight days were: 14, 9, 17, 12, 9, 20, 15, 9. Find the mean, the median and the mode.

Working
  1. Mean

    \(\bar{x}=\frac{14+9+17+12+9+20+15+9}{8}=\frac{105}{8}=13.125\)

    Add the values and divide by how many there are.

  2. Order the list

    9, 9, 9, 12, 14, 15, 17, 20

    The median needs the values in order.

  3. Median

    \(\frac{12+14}{2}=13\)

    There are 8 values, so the median is halfway between the 4th and 5th.

  4. Mode

    9

    9 appears 3 times, more than any other value.

Video walkthrough coming
Finding an unknown from the mean

The mean of the six numbers 3, 5, a, 2a, 9 and a + 4 is 8. Find the value of a.

Working
  1. Mean equation

    \(\frac{3+5+a+2a+9+a+4}{6}=8\)

    Mean = sum ÷ number of values. There are 6 values.

  2. Tidy the top

    \(\frac{21+4a}{6}=8\)

    Collect the numbers (3 + 5 + 9 + 4 = 21) and the a terms (a + 2a + a = 4a).

  3. Solve

    \(21+4a=48,\ 4a=27,\ a=27/4\)

    Multiply both sides by 6, then solve.

Video walkthrough coming
Combining groups and correcting a value

Class P has 18 students with a mean mark of 64. Class Q has 12 students with a mean mark of 74. (a) Find the mean mark of all 30 students. (b) A mark in Class P was recorded as 56 but should have been 65. Find the correct mean mark of Class P.

Working
  1. Total marks

    \(18\times 64=1152\) and \(12\times 74=888\)

    Mean × number of values gives the total of the values.

  2. Mean of all 30

    \(\frac{1152+888}{18+12}=\frac{2040}{30}=68\)

    Divide the combined total by the combined number of students.

  3. Correct the total

    \(1152-56+65=1161\)

    Take out the wrong mark and put in the right one. The total rises by 9.

  4. Correct mean of Class P

    \(\frac{1161}{18}=64.5\)

    The number of students has not changed, so divide by 18.

Video walkthrough coming
A missing value in a frequency table

The table shows the number of goals scored by a team in 24 matches. The value y is missing. The mean number of goals is 3. (a) Find y. (b) How many matches had more than 2 goals?

Goals124yFrequency6954
Working
  1. Total frequency

    \(6+9+5+4=24\)

    The problem says 24 matches, so check the table adds to 24.

  2. Mean equation

    \(\frac{1\times6+2\times9+4\times5+4y}{24}=3\)

    Mean = Σfx ÷ Σf. Multiply each value by its frequency.

  3. Solve

    \(44+4y=72,\ 4y=28,\ y=7\)

    Multiply both sides by 24, then solve.

  4. More than 2 goals

    \(5+4=9\)

    The values above 2 are 4 and y = 7, both greater than 2. Their frequencies are 5 and 4.

Video walkthrough coming
Estimating a mean from grouped data

The heights of 60 sunflower seedlings, in cm, are in the table. (a) How many seedlings are shorter than 14.5 cm? (b) State the modal group. (c) Estimate the mean height. (d) Explain why your answer to (c) is only an estimate.

Height h (cm)10.5 ≤ h < 12.512.5 ≤ h < 14.514.5 ≤ h < 16.516.5 ≤ h < 18.518.5 ≤ h < 20.5Frequency61421127
Working
  1. Count below 14.5

    \(6+14=20\)

    The first two groups end at 14.5.

  2. Modal group

    14.5 ≤ h < 16.5

    The highest frequency is 21. For grouped data, the mode is replaced by the modal group.

  3. Midpoints

    Midpoints: 11.5, 13.5, 15.5, 17.5, 19.5

    Midpoint = (lower + upper) ÷ 2. Use it to stand for every value in the group.

  4. Estimate the mean

    \(\frac{11.5\times6+13.5\times14+15.5\times21+17.5\times12+19.5\times7}{60}=15.5\)

    Multiply each midpoint by its frequency, add, then divide by the total frequency.

  5. Why an estimate

    The actual values are not known

    We assumed every value is at its group's midpoint. The real values are spread across each group.

Video walkthrough coming
Unequal class widths

The lengths of 50 phone calls to a helpline, in minutes, are grouped in the table. Estimate the mean length of a call.

Length x (min)0 ≤ x < 55 ≤ x < 1010 ≤ x < 2020 ≤ x < 40Frequency1218155
Working
  1. Midpoints

    2.5, 7.5, 15, 30

    The classes are not the same width, so find each midpoint separately.

  2. Σ f × midpoint

    \(12\times2.5+18\times7.5+15\times15+5\times30=540\)

    Multiply each midpoint by its frequency.

  3. Divide by Σf

    \(\frac{540}{50}=10.8\)

    Divide by the total frequency, 50.

Video walkthrough coming
Mean and standard deviation from a frequency table

The table shows the number of pets owned by each of 40 students. Use the calculator to find the mean and the standard deviation.

Pets012345Frequency4912852
Working
  1. Enter the data

    List x: 0, 1, 2, 3, 4, 5; list f: 4, 9, 12, 8, 5, 2

    Values in one column, frequencies in the next.

  2. One-variable statistics

    From the calculator: x̄ = 2.18, n = 40

    Tell the calculator to use the frequency column.

  3. Standard deviation

    σx = 1.32

    Use σx, the population standard deviation. Do not use sx.

Video walkthrough coming
Test scores on the calculator

The scores of 12 students in a test are: 58, 71, 64, 82, 75, 71, 90, 66, 71, 79, 85, 69. Use the calculator to find the mean, the median and the mode.

Working
  1. Enter the list

    Type the 12 scores into one column

    Check the count is 12.

  2. One-variable statistics

    From the calculator: x̄ = 73.4, n = 12

    The mean is the first value shown.

  3. Median

    Med = 71

    The calculator puts the list in order for you.

  4. Mode

    Mode = 71

    The calculator may not show the mode. Look for the value that appears most often.

Video walkthrough coming