Menu
Sign up Sign in

AI HL · AHL 8

Statistics 2

AHL 8.11

The t-interval for a mean

AHL 8.11

The t-interval for a mean

Target: I can find a confidence interval for a mean from raw data with the t-interval on the calculator. (+3 more)

By the end of this section

Key points

The idea of a confidence interval

  • A point estimate such as \(\bar x\) is almost never exactly \(\mu\). A confidence interval is a range likely to contain \(\mu\).
  • A 95% interval means: if you took many samples and built an interval from each, about 95% of those intervals would contain \(\mu\). It is about the method. \(\mu\) is fixed, and one interval either contains it or not.

The t-interval

  • When the population variance is unknown, use the t-interval, for any sample size. Assume the population is normal.
  • State which interval you use, and why.
  • On the calculator: Statistics, Confidence Intervals, t Interval. Choose Data (a list) or Stats (\(\bar x\), \(s_{n-1}\), n), then the C level as a decimal.
  • For Stats input use \(s_{n-1}\), not \(s_n\).

By hand

  • \(\bar x\pm t\,\dfrac{s_{n-1}}{\sqrt n}\), with \(n-1\) degrees of freedom. Find t with the calculator's inverse t, using the area \(\frac{1+C}{2}\) to its left.
  • The margin of error is \(t\,\dfrac{s_{n-1}}{\sqrt n}\). Give the interval as \(\bar x-m < \mu < \bar x+m\). Write it in context, to 3 significant figures.

On the calculator

t Interval from a list

Menu > Statistics > Confidence Intervals > t Interval

  • Choose Data as the input method.
  • Enter the list, a frequency of 1 and the C level as a decimal, such as 0.90.
  • Read the lower and upper ends of the interval.

Screenshot and video to come

t Interval from summary statistics

Menu > Statistics > Confidence Intervals > t Interval

  • Choose Stats as the input method.
  • Enter \(\bar x\), \(s_{n-1}\), the sample size n and the C level.
  • Read the interval.

Screenshot and video to come

Critical t value with inverse t

  • Use the inverse t function with the area to the left, \(\frac{1+C}{2}\), and the degrees of freedom \(n-1\).
  • Use the value in \(\bar x\pm t\dfrac{s_{n-1}}{\sqrt n}\).

Screenshot and video to come

Explore: what a confidence level means

The population is normal with μ = 50 and σ = 8, so we know where μ is. Each press takes more random samples and builds an interval for the mean from each. Orange intervals miss μ.

Intervals so far
Intervals that contain μ
As a percentage

The picture shows the latest 60 intervals, the newest at the top. The count is of all of them. Changing the level or the kind of interval keeps the same samples.

Press 10 more to start.

  1. Take 100 intervals at 95%. About how many contain μ? Take 100 more. Is the count the same?
  2. Change the level to 99% without taking new samples. What happens to the width of the intervals, and to the number that miss μ?
  3. Make n small, then large. What happens to the width of the intervals? Does the percentage that contain μ change?
  4. Look at one interval. Is it right to say there is a 95% probability that μ is inside it? Why not?

Worked examples

Problems like the ones in class. Pick one, try it, then open the working.
A t-interval from a list

A random sample of eight batteries was tested. Their lifetimes, in hours, were 31.4, 28.9, 35.2, 30.1, 33.7, 27.6, 32.8, 29.5. The lifetimes are normally distributed. Find a 90% confidence interval for the mean lifetime of this make of battery.

Working
  1. Choose the interval

    The population variance is not given: t-interval

    State which interval you use and why. Unknown variance means t, whatever the sample size.

  2. Enter the data

    From the calculator: t Interval, Data, the list, C Level = 0.90

    Choose Data as the input method, then the list, a frequency of 1 and C = 0.90.

  3. Read the interval

    \(29.4 < \mu < 32.9\) hours

    Give 3 significant figures and say it in context.

  4. Say what it means

    We are 90% confident the mean lifetime is between these values

    Not 'there is a 90% chance that \(\mu\) is here': \(\mu\) is fixed.

Video walkthrough coming
A t-interval from summary statistics

The masses of 18 randomly chosen pumpkins from a farm have mean 62.4 kg and \(s_{n-1}=5.1\) kg. Assume the masses are normally distributed. Find a 95% confidence interval for the mean mass of the farm's pumpkins.

Working
  1. Choose the interval

    Variance unknown: t-interval

    Unknown variance means t, and the t value is bigger than 1.96 for a small sample.

  2. Enter the summary

    From the calculator: t Interval, Stats, \(\bar x=62.4\), \(s_{n-1}=5.1\), \(n=18\), C Level 0.95

    Use Stats input. You must enter n as well.

  3. Read the interval

    \(59.9 < \mu < 64.9\) kg

    The interval is centred on \(\bar x\).

Video walkthrough coming
A t-interval by hand

The reaction times (seconds) of seven students are 0.62, 0.55, 0.71, 0.58, 0.66, 0.6, 0.64. Assume they are normally distributed. Find a 95% confidence interval for the mean reaction time: find \(\bar x\), \(s_{n-1}\), the degrees of freedom, the critical t value and the margin of error.

Working
  1. Mean and spread

    From the calculator: \(\bar x=0.6229\), \(s_{n-1}=0.05314\)

    Use the sample standard deviation that divides by \(n-1\).

  2. Critical value

    \(\text{df}=7-1=6\); inverse t for an upper tail of 0.025: \(t=2.447\)

    For 95% confidence, 2.5% is in each tail. Use the calculator's inverse t.

  3. Margin of error

    \(t\times\dfrac{s_{n-1}}{\sqrt n}=2.447\times\dfrac{0.05314}{\sqrt7}=0.0491\)

    Standard error times the critical value.

  4. The interval

    \(\bar x\pm 0.0491\): \(0.574 < \mu < 0.672\)

    For 90%, the critical value falls to \(t=1.943\) and the interval narrows to \(0.584 < \mu < 0.662\).

Video walkthrough coming
What 95% confidence means

A machine fills bags with a true mean mass of 250 g. A student takes 20 random samples of 10 bags and finds a 95% confidence interval for the mean from each. The diagram shows the 20 intervals (the dots are the sample means) and the true mean (the vertical line). How many of the intervals do not contain 250 g, and what does the 95% mean?

Working
  1. 2352402452502552602655101520Mass (g)Sample
    Count the misses

    Look for intervals that do not cross the line: 1

    Count the intervals that stop before the line or start after it.

  2. Compare with 95%

    \(\frac{19}{20}=95\%\) contain the true mean

    About 95% is what we expect. It will not be exactly 95% every time.

  3. What it means

    If we took many samples and built an interval from each, about 95% of those intervals would contain the true mean

    The 95% describes the method, not one interval. Any one interval either contains the mean or it does not.

Video walkthrough coming