IB Maths Help logoIB Maths Help

Confidence interval for a mean (t-interval)

Find a confidence interval for a population mean from a list of data or from summary statistics, with the exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, plus what to write in the exam.

Used inAI HL

Use the calculator's one-sample t interval (TInterval, 1-SAMPLE t Interval, 1-Sample t Interval or t Interval). Give it either the list of data, or the sample mean, the standard deviation s and the sample size n, then the confidence level as a decimal such as 0.95. Read the lower and upper ends of the interval. Use the t interval when σ is unknown.

Example

The masses, in grams, of 10 items are 23.1, 25.4, 22.8, 24.9, 26.2, 23.7, 25.0, 24.3, 22.5, 26.1. Assuming the masses are normally distributed, find a 95% confidence interval for the population mean mass. Give each end to 3 significant figures.

Enter the 10 values into a list and run the one-sample t interval at the 95% level. The sample mean is 24.4, the standard deviation s is 1.34 and there are 9 degrees of freedom. The interval is 23.4≤μ≤25.423.4 \le \mu \le 25.4, which is the sample mean plus or minus a margin of error of 0.957.

Choose your calculator

How to find a confidence interval for a mean on a TI-84 Plus CE

TInterval (from a list of data)

Press stat and choose 1:Edit. Empty L1 if it holds old numbers (cursor on the name L1, then clear enter), then type the data into L1, pressing enter after each value: 23.1, 25.4, 22.8, 24.9, 26.2, 23.7, 25.0, 24.3, 22.5, 26.1.

L1
23.1
25.4
22.8
24.9
26.2
23.7
25.0
24.3
22.5
26.1

Press stat, then ▶ ▶ to move past CALC to TESTS, and choose 8:TInterval. On the Inpt line choose Data.

TInterval
Inpt:Data Stats
List:L1
Freq:1
C-Level:.95
Calculate

Set List to L1 (2nd 1), leave Freq as 1, and type the confidence level as a decimal: . 9 5 for 95%. Move down to Calculate and press enter.

The first line is the interval as (lower, upper). Below it are the sample mean x̄, the standard deviation Sx and the sample size n.

The 95% confidence interval is (23.4, 25.4)(23.4,\ 25.4), each end to 3 significant figures.

TInterval
(23.44321,25.35679)
x̄=24.4
Sx=1.337494
n=10

TInterval (from summary statistics)

Use this when the question gives the mean, the standard deviation s and the sample size, for example a sample of 10 with mean 24 and standard deviation 3. Press stat, ▶ ▶, choose 8:TInterval, and on the Inpt line choose Stats. Enter x̄ as 24, Sx as 3, n as 10 and C-Level as . 9 5, then choose Calculate and press enter.

The 95% confidence interval is (21.9, 26.1)(21.9,\ 26.1), each end to 3 significant figures.

TInterval
Inpt:Data Stats
x̄:24
Sx:3
n:10
C-Level:.95
Calculate

ZInterval (σ given)

Use a z interval when the question gives the standard deviation σ of the population, for example σ = 4 with a sample of 16 values and mean 62.5. Press stat, ▶ ▶, choose 7:ZInterval, and on the Inpt line choose Stats. Enter σ as 4, x̄ as 62.5, n as 16 and C-Level as . 9 5, then choose Calculate and press enter.

The 95% confidence interval is ((60.5, 64.5)), each end to 3 significant figures.

ZInterval
Inpt:Data Stats
σ:4
x̄:62.5
n:16
C-Level:.95
Calculate

On the Stats screen, Sx must be the n - 1 standard deviation s. The σx from 1-Var Stats is a different, smaller number and gives an interval that is too narrow.

How to find a confidence interval for a mean on a Casio fx-CG50

1-SAMPLE t Interval (from a list of data)

Press MENU and choose Statistics. In the List Editor, type the data into List 1, pressing EXE after each value: 23.1, 25.4, 22.8, 24.9, 26.2, 23.7, 25.0, 24.3, 22.5, 26.1. Clear List 1 first if it holds old numbers.

List 1
23.1
25.4
22.8
24.9
26.2
23.7
25.0
24.3
22.5
26.1

With the List Editor on screen, press F4 (INTR), then F2 (t), then F1 (1-SAMPLE).

Set Data to List, List to List 1 and Freq to 1. Type the confidence level on the C-Level line as . 9 5 and press EXE. Move down to Execute and press F1 (CALC).

1-Sample t Interval
Data:List
List:List 1
Freq:1
C-Level:0.95
Execute

The results show Lower and Upper, the two ends of the interval, followed by the sample mean x̄, the standard deviation sx and n.

The 95% confidence interval is (23.4, 25.4)(23.4,\ 25.4), each end to 3 significant figures.

1-Sample t Interval
Lower=23.443215
Upper=25.356785
x̄=24.4
sx=1.337494
n=10

1-SAMPLE t Interval (from summary statistics)

Use this when the question gives the mean, the standard deviation s and the sample size, for example a sample of 10 with mean 24 and standard deviation 3. Open F4 (INTR), F2 (t), F1 (1-SAMPLE) as before, but set Data to Variable. Enter x̄ as 24, sx as 3, n as 10 and C-Level as . 9 5, then choose Execute with F1 (CALC).

The 95% confidence interval is (21.9, 26.1)(21.9,\ 26.1), each end to 3 significant figures.

1-Sample t Interval
Data:Variable
x̄:24
sx:3
n:10
C-Level:0.95
Execute

1-SAMPLE Z Interval (σ given)

Use a z interval when the question gives the standard deviation σ of the population, for example σ = 4 with a sample of 16 values and mean 62.5. Press F4 (INTR), then F1 (Z), then F1 (1-SAMPLE), and set Data to Variable. Enter σ as 4, x̄ as 62.5, n as 16 and C-Level as . 9 5, pressing EXE after each, then choose Execute with F1 (CALC).

The 95% confidence interval is ((60.5, 64.5)), each end to 3 significant figures.

1-Sample Z Interval
Data:Variable
σ:4
x̄:62.5
n:16
C-Level:0.95
Execute

A C-Level between 0 and 1 is read as it is, and a value between 1 and 100 is divided by 100, so 0.95 and 95 both mean 95%. Use sx, the n - 1 standard deviation, on the summary screen, not σx.

How to find a confidence interval for a mean on a Casio fx-CG100

1-Sample t Interval (from a list of data)

Press HOME and choose Statistics. On the List Editor tab, type the data into List 1, pressing EXE after each value: 23.1, 25.4, 22.8, 24.9, 26.2, 23.7, 25.0, 24.3, 22.5, 26.1. Clear List 1 first if it holds old numbers.

List 1
23.1
25.4
22.8
24.9
26.2
23.7
25.0
24.3
22.5
26.1

Move to the Setup tab with the next-tab key. Highlight the first line, press OK and choose Confidence Interval. Highlight line 2, press OK and choose t Confidence Interval → 1-Sample t Interval.

Confidence Interval
1-Sample t Interval

Highlight Data, press OK and choose List. Choose List 1 for the list. Highlight C-Level and type 0 . 9 5, a value between 0 and 1, then press OK. Highlight Execute and press OK, or press the next-tab key.

Data:List
List:List 1
C-Level:0.95

The Results tab shows Lower and Upper, the two ends of the interval, then df, the sample mean x̄, the standard deviation sx and n.

The 95% confidence interval is (23.4, 25.4)(23.4,\ 25.4), each end to 3 significant figures.

Lower=23.443215
Upper=25.356785
df=9
x̄=24.4
sx=1.337494
n=10

1-Sample t Interval (from summary statistics)

Use this when the question gives the mean, the standard deviation s and the sample size, for example a sample of 10 with mean 24 and standard deviation 3. Choose the same 1-Sample t Interval, but set Data to Variable. Enter x̄ as 24, sx as 3, n as 10 and C-Level as 0 . 9 5, then choose Execute and press OK.

The 95% confidence interval is (21.9, 26.1)(21.9,\ 26.1), each end to 3 significant figures.

Data:Variable
x̄:24
sx:3
n:10
C-Level:0.95

1-Sample Z Interval (σ given)

Use a z interval when the question gives the standard deviation σ of the population, for example σ = 4 with a sample of 16 values and mean 62.5. On the Setup tab choose Confidence Interval on the first line, then on line 2 press OK and choose Z Confidence Interval → 1-Sample Z Interval. Set Data to Variable, enter σ as 4, x̄ as 62.5, n as 16 and C-Level as 0 . 9 5, then choose Execute and press OK.

The 95% confidence interval is ((60.5, 64.5)), each end to 3 significant figures.

1-Sample Z Interval
Data:Variable
σ:4
x̄:62.5
n:16
C-Level:0.95

The C-Level must be between 0 and 1 here, so type 0.95, not 95. On the summary screen sx is the standard deviation s.

How to find a confidence interval for a mean on a TI-Nspire CX

t Interval (from a list of data)

Open a new document and add a Lists & Spreadsheet page. Type data in the name cell at the top of column A and press enter, then type the data into column A, pressing enter after each value: 23.1, 25.4, 22.8, 24.9, 26.2, 23.7, 25.0, 24.3, 22.5, 26.1.

A data
23.1
25.4
22.8
24.9
26.2
23.7
25.0
24.3
22.5
26.1

Press menu → Statistics → Confidence Intervals → t Interval. For the input method choose Data and press enter.

t Interval
Data Input Method: Data

Set the list to data, leave the frequency list as 1, and type 0.95 for the confidence level. Press enter on OK.

List: data
Freq: 1
C Level: 0.95

The results are listed. CLower and CUpper are the two ends of the interval. The list also shows the sample mean x̄, the margin of error ME, the degrees of freedom df, the standard deviation sx and n.

The 95% confidence interval is (23.4, 25.4)(23.4,\ 25.4), each end to 3 significant figures.

CLower:23.4432
CUpper:25.3568
x̄:24.4
ME:0.956785
df:9
sx:1.33749
n:10

Another way: type the command (list or summary statistics)

On a Calculator page, type tInterval data,1,0.95 for a list called data, or tInterval 24,3,10,0.95 for summary statistics in the order mean, standard deviation s, sample size, confidence level. Press enter. The results are the same.

The 95% confidence interval is (21.9, 26.1)(21.9,\ 26.1), each end to 3 significant figures.

tInterval 24,3,10,0.95
CLower:21.8539
CUpper:26.1461

z Interval (σ given)

Use a z interval when the question gives the standard deviation σ of the population, for example σ = 4 with a sample of 16 values and mean 62.5. On a Calculator page type zInterval 4,62.5,16,0.95, in the order σ, mean, sample size, confidence level, and press enter. CLower and CUpper are the two ends.

The 95% confidence interval is ((60.5, 64.5)), each end to 3 significant figures.

zInterval 4,62.5,16,0.95
CLower:60.54
CUpper:64.46

In the typed command the frequency goes before the confidence level, so with a list you write tInterval data,1,0.95: the 1 means every value counts once.

Sources. Key presses follow the manufacturers' documentation: the TI-84 Plus CE eGuide, the TI-Nspire eGuide, the Casio fx-CG50 Software User's Guide (version 3.30) and the Casio fx-CG100 online manual.

What to write in the exam

  • State the method and the interval. Say you found a 95% t confidence interval for the mean using your calculator, then write the interval as (23.4, 25.4)(23.4,\ 25.4) or 23.4≤μ≤25.423.4 \le \mu \le 25.4. Do not write the key presses.
  • Say why a t interval. σ is unknown and s is used, so the t distribution applies. State any assumption the question gives, such as a normal population.
  • Give 3 significant figures unless the question says otherwise, and keep the full calculator values for later parts instead of re-typing rounded ones.
  • Read the question's wording. If it asks for the margin of error, use half the width of the interval, upper−lower2\dfrac{\text{upper} - \text{lower}}{2}. If it asks for an interpretation, say the interval is a range of plausible values for the population mean at that confidence level.
  • Check which papers allow a calculator. In AI HL a calculator is allowed on every paper (check your syllabus).

Summary statistics instead of raw data

Often the question gives only the sample mean x¯\bar{x}, the standard deviation ss and the sample size nn. For example: a sample of 10 values has mean 24 and standard deviation s 3. Use the summary-statistics route in the steps above, with the mean 24, the standard deviation 3, the sample size 10 and the confidence level 0.95. The 95% confidence interval is (21.9, 26.1)(21.9,\ 26.1) to 3 significant figures, with a margin of error of 2.15.

If the question gives the standard deviation of the whole population instead, a z interval is needed and this t interval is not the right one: use the z interval route in the steps above. If the sample is large, the two intervals are close, but the t interval is still correct when σ is unknown.

For the mean and standard deviation of a list of data, see one-variable statistics.

Error messages and what to do

CalculatorMessageUsual causeWhat to try
TI-84 Plus CEERR:DOMAINA value is outside the allowed range, for example a negative standard deviation Sx.Check the values you typed on the Stats screen and use the standard deviation s.
TI-84 Plus CEERR:DIMENSION MISMATCHThe data list and the frequency list do not have the same number of values.Set Freq to 1, or make the two lists the same length.
Casio fx-CG50Out of DomainA value is outside the allowed range, for example a standard deviation sx that is not above 0.Check the values you typed and correct the one that is out of range.
Casio fx-CG50Dimension ERRORThe data list and the frequency list have different numbers of values.Set Freq to 1, or make the two lists the same length.
Casio fx-CG100Out of DomainA value is outside the allowed range, for example a standard deviation sx that is not above 0.Check the values you typed and correct the one that is out of range.
Casio fx-CG100Dimension ERRORThe data list and the frequency list have different numbers of values.Use List 1 alone with no frequency list, or make the two lists the same length.
TI-Nspire CXDimension mismatchThe data list and the frequency list do not have the same number of values.Set the frequency to 1, or make the two lists the same length.
TI-Nspire CXDomain errorAn argument is outside the allowed range, for example a negative standard deviation s.Check the mean, standard deviation s, sample size and confidence level in the order the command expects.

Common mistakes

  • Using σx on the summary screen. The summary route needs the standard deviation s (Sx or sx), not σx. Using σx gives an interval that is too narrow.
  • Typing the confidence level wrongly. Type 0.95 for 95%. The fx-CG100 only accepts a value between 0 and 1.
  • Leaving old data in the list. If the list held numbers already, the mean, s and n are wrong. Clear the list first and check n on the results screen.
  • Choosing the z interval. A z interval is for a given σ. When only s is available, use the t interval.
  • Writing key presses as working. Write the interval and what it means. The examiner needs the method and the numbers, not the keys.

Try it yourself

Real questions from the IB Maths Help question bank. Type your answer and press Mark it: the worked solution and mark scheme then appear. Use your calculator's t interval for the confidence intervals.

Practise with your calculator

Choose your course to see the practice sets that use this skill. You can also try practice mode or browse every GDC guide.

Quick questions

How do I find a confidence interval for a mean on a calculator?

Use the one-sample t interval: TInterval on the TI-84 Plus CE (stat, TESTS), INTR then t then 1-SAMPLE on the fx-CG50, Confidence Interval then 1-Sample t Interval on the fx-CG100, or t Interval on the TI-Nspire. Give it the data list, or the sample mean, standard deviation s and sample size, and the confidence level as a decimal.

Which standard deviation do I enter?

The standard deviation s (Sx or sx), which is the larger of the two values given by one-variable statistics. The value σx\sigma_x is not what the t interval needs.

How do I get the margin of error?

It is half the width of the interval: subtract the lower end from the upper end and divide by 2. The TI-Nspire also lists it as ME.

When do I use a t interval and when a z interval?

Use a t interval when σ is unknown and you use s, which is the usual case. Use a z interval only when the question gives σ.