Hypothesis testing AI SL

A hypothesis test asks whether sample data give enough evidence against an assumption. This course has two named tests: the chi-squared test, for counts in categories, and the t-test, for comparing the means of two groups. In both the calculator finds the test statistic and the p-value, so the marks are for stating the hypotheses in words, choosing the right test and tail, comparing the p-value with the significance level, and writing the conclusion in the context of the question.

Formulas at a glance

The booklet gives the formula for the chi-squared statistic, but in the examination the statistic and the p-value come from the calculator, so no formula is needed to carry out either test. The rule for degrees of freedom and the decision rule (reject the null hypothesis when the p-value is less than the significance level, or when the chi-squared statistic is greater than the critical value) are not in the booklet, so learn them.

Degrees of freedom for an m×nm\times n contingency table

ν=(m−1)(n−1)\nu=(m-1)(n-1)

Not in the booklet

Decision rule by p-value

Reject H0H_0 if p<p< significance level

Not in the booklet

Decision rule by critical value

Reject H0H_0 if χcalc2>χcrit2\chi^2_{calc}>\chi^2_{crit}

Not in the booklet

Validity condition for the χ2\chi^2 test

Expected frequency >5>5 in every cell

Not in the booklet

Which method to use

Decide what kind of data there is before anything else. Counts in categories lead to a chi-squared test, and two groups of measurements whose means are being compared lead to a t-test.

The question hasUseNotes
Two categorical variables and a table of counts, asking whether they are associatedThe chi-squared test for independenceThe null hypothesis says the variables are independent; the degrees of freedom are (rows - 1)(columns - 1)
Observed counts compared with a stated model, such as a fair die or equal numbers each dayThe chi-squared goodness of fit testThe null hypothesis says the data fit the model; the degrees of freedom are the number of categories minus 1
A p-value and a significance levelReject the null hypothesis if pp is less than the significance levelCompare the two numbers, then give the conclusion in context
A chi-squared statistic and a critical valueReject the null hypothesis if the statistic is greater than the critical valueOnly upper-tail chi-squared tests are set
Two groups of measurements, and a question about their meansThe two-sample t-test, with the pooled option onThe two samples are unpaired, and the variances of the two groups are assumed equal
The words "different from", "greater than" or "less than" about a meanA two-tailed test for "different", a one-tailed test for a directionChoose the alternative hypothesis on the calculator to match the claim
A conclusion to writeCompare, say reject or do not reject the null hypothesis, then say what it means in context"Do not reject" never means the null hypothesis has been proved

Section 1 of 2 SL4.11

Chi-squared test

The χ2\chi^2 test compares observed frequencies with the frequencies expected if the null hypothesis is true. The test for independence uses a contingency table to decide whether two categorical variables are associated, and the goodness-of-fit test checks whether data matches a stated distribution. Your GDC gives the test statistic and pp-value, or you compare the statistic with a critical value.

Degrees of freedom and expected frequency

Degrees of freedom

ν=(rows−1)(columns−1)\nu = (\text{rows}-1)(\text{columns}-1)

This is for the test for independence on a contingency table. A goodness-of-fit test instead uses ν=(number of categories)−1\nu = (\text{number of categories}) - 1.

Expected frequency

E=row total×column totalgrand totalE = \dfrac{\text{row total} \times \text{column total}}{\text{grand total}}

Expected frequency >5>5 in every cell - this is not in the formula booklet, it's a syllabus requirement for the χ2\chi^2 approximation to be valid.

Key terms

What is a contingency table?

A contingency table shows observed frequencies, with the categories of one variable in the rows and the categories of the other in the columns, plus totals.

e.g. A table with 22 rows and 33 columns has 66 cells, so 66 expected frequencies must be found.

What are observed and expected frequencies?

Observed frequencies are the counts actually recorded. Expected frequencies are the counts you would get if the null hypothesis were true.

e.g. If a die is rolled 6060 times and is fair, the expected frequency of each face is 606=10\dfrac{60}{6}=10.

What does the χ2\chi^2 test statistic measure?

It measures how far the observed frequencies are from the expected frequencies. A larger value means a bigger difference and less support for the null hypothesis.

e.g. If every observed frequency equals its expected frequency, the test statistic is 00.

What is a critical value?

The critical value is a number from the χ2\chi^2 distribution that depends on the degrees of freedom and the significance level. If the test statistic is greater than it, reject H0H_0.

e.g. With 22 degrees of freedom at the 5% level the critical value is 5.995.99, so a test statistic of 7.27.2 is greater and H0H_0 is rejected.

Worked example, step by step

The question Calculator needed [6 marks]

A council asks 150 residents how they usually travel to the town centre and records each resident's age band. The results are:

Under 40: 24 walk, 18 go by bus and 33 go by car.
40 and over: 12 walk, 30 go by bus and 33 go by car.

A chi-squared test for independence is carried out at the 5% significance level.

(a) State the null hypothesis and the alternative hypothesis.

(b) Use your calculator to find the chi-squared statistic and the pp-value.

(c) State the conclusion of the test, in context.

Worked solution: worked example

Answer: (a) H0H_0: travel method and age band are independent; H1H_1: they are not independent. (b) χ2=7.00\chi^2=7.00, p=0.0302p=0.0302 (c) 0.0302<0.050.0302<0.05, so reject H0H_0: there is evidence of an association between travel method and age band.

Step 1 - Decide that a chi-squared test fits.

The data are counts of residents in categories (travel method and age band), set out in a table, and the question is whether the two variables are associated. That is a chi-squared test for independence. The table has 2 rows and 3 columns, so the degrees of freedom are (2−1)(3−1)=2(2-1)(3-1)=2.

Why? Counts in categories point to chi-squared, whereas measurements such as times or masses point to a t-test. The degrees of freedom are needed to check the calculator output and to look up a critical value if one is given.

Step 2 - (a) State the hypotheses in words.

H0H_0: travel method and age band are independent. H1H_1: travel method and age band are not independent (they are associated). A1 - H0H_0: travel method and age band are independent A1 - H1H_1: travel method and age band are not independent (or are associated)

Why? The null hypothesis is the "no association" statement. Hypotheses are about the population of residents, not about these 150 people, and they are written in words for a test of independence.

Step 3 - (b) Enter the table and run the test.

Enter the observed counts in a matrix with 2 rows and 3 columns, then run the chi-squared test for independence. The calculator gives the expected counts as well. Here they are 18, 24, 3318,\ 24,\ 33 in both rows. Every expected count is greater than 5, so the test can be used. The calculator output is χ2=7.00,p=0.0302,df=2.\chi^2=7.00,\qquad p=0.0302,\qquad df=2. A1 - χ2=7.00\chi^2=7.00 A1 - p=0.0302p=0.0302

Why? The calculator carries out the sum of (fo−fe)2fe\dfrac{(f_o-f_e)^2}{f_e} for you, so the working to show is the set-up. Checking that the smallest expected count is above 5 and that df=2df=2 matches your own count shows the table was entered correctly.

Step 4 - (c) Compare the p-value with the significance level.

The significance level is 5%, which is 0.05. Since p=0.0302<0.05p=0.0302<0.05, the null hypothesis is rejected. R1 - Comparison of p=0.0302p=0.0302 with 0.05, or of χ2\chi^2 with a critical value

Why? A small p-value means data like these would be unlikely if the variables were independent. The decision rule is to reject H0H_0 when pp is less than the significance level.

Step 5 - (c) Write the conclusion in context.

There is evidence, at the 5% significance level, that travel method and age band are associated. At the 1% level the same p-value would not be enough to reject H0H_0, because 0.0302>0.010.0302>0.01. A1 - Reject H0H_0 and conclude in context that there is evidence of an association between travel method and age band

Why? A conclusion must refer to the situation in words, not just say "reject H0H_0". It also says the association is supported by the data, not proved, and the answer depends on the significance level chosen.

Marks (6):
A1 H0H_0: travel method and age band are independent
A1 H1H_1: travel method and age band are not independent (or are associated)
A1 χ2=7.00\chi^2=7.00
A1 p=0.0302p=0.0302
R1 Comparison of p=0.0302p=0.0302 with 0.05, or of χ2\chi^2 with a critical value
A1 Reject H0H_0 and conclude in context that there is evidence of an association between travel method and age band

Now you try: enter your answers to be marked

These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.

1
Easy
Calculator
[3 marks]
In a 3×23\times2 contingency table, a particular row has a total of 60, a particular column has a total of 45, and the grand total is 180.
(a) Find the expected frequency for that cell.
[2]
(b) State the degrees of freedom for this table.
[1]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
Calculator
[6 marks]
A health researcher surveys 120 people and records whether they exercise regularly (yes/no) and their diet type (healthy/balanced/poor). The observed counts are shown below.

HealthyBalancedPoor
Exercise: yes302510
Exercise: no152020
(a)(i) State H0.H_0.
[1]
(a)(ii) State H1.H_1.
[1]
(b) Find the degrees of freedom.
[1]
(c)(i) Use your graphic display calculator to find the pp-value.
[2]
(c)(ii) State the conclusion at the 5% level.
[1]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
Calculator
[7 marks]
200 cinema-goers are classified by age group (under 30 / 30-60 / over 60) and preferred film genre (action / comedy / drama). Observed frequencies:

ActionComedyDrama
Under 30403010
30-60253520
Over 60101515
(a)(i) State H0.H_0.
[1]
(a)(ii) State H1.H_1.
[1]
(b) Find the degrees of freedom.
[1]
(c)(i) Use your graphic display calculator to find the χ2\chi^2 statistic, to 2 decimal places.
[1]
(c)(ii) Find the pp-value.
[1]
(d) State the conclusion at the 5% level.
[2]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 16 marks

Common mistakes

  • Treating "reject H0H_0" as proof that H1H_1 is true. A hypothesis test only measures the strength of evidence at a chosen significance level - it never proves anything with certainty, in either direction.
  • Forgetting the expected-frequency rule (greater than 5). If any cell's expected frequency is 5 or below, the χ2\chi^2 approximation becomes unreliable - categories should be combined first.
  • Using the wrong degrees-of-freedom formula. ν=(rows−1)(columns−1)\nu = (\text{rows}-1)(\text{columns}-1) is for the test for independence on a contingency table; a goodness-of-fit test uses ν=(categories)−1\nu = (\text{categories}) - 1 instead. Mixing the two up gives the wrong critical value and the wrong pp-value.

Try some questions on chi-squared test

Section 2 of 2 SL4.11

t-test

A tt-test uses sample data to judge whether the means of two populations differ. In the examination the two samples are unpaired and the variances of the two groups are assumed equal. State H0H_0 and H1H_1, read the pp-value from your GDC, compare it with the significance level, and conclude in context. The test can be one-tailed or two-tailed.

Key terms

What are the null and alternative hypotheses?

The null hypothesis H0H_0 says there is no difference, for example that two population means are equal. The alternative hypothesis H1H_1 states the difference being tested. Both are written about the population means μ1\mu_1 and μ2\mu_2.

e.g. To test whether the mean mass of packets from two machines differs, write H0:μ1=μ2H_0:\mu_1=\mu_2 and H1:μ1≠μ2H_1:\mu_1\neq\mu_2.

What is a significance level?

The significance level is the threshold, such as 5%, that the pp-value is compared with. A pp-value below the threshold leads to rejecting H0H_0.

e.g. With a significance level of 0.050.05, a pp-value of 0.030.03 is smaller than 0.050.05, so H0H_0 is rejected.

What is a pp-value?

The pp-value is the probability of getting a result at least as extreme as the one observed, assuming H0H_0 is true.

e.g. A pp-value of 0.030.03 means that if H0H_0 were true, there would be about a 3% chance of data at least this extreme.

How do you write the conclusion of a hypothesis test?

Compare the pp-value with the significance level, state whether you reject or do not reject H0H_0, then say what this means in context. Do not say that H1H_1 is proved.

e.g. With p=0.08p=0.08 and a significance level of 0.050.05, do not reject H0H_0: there is insufficient evidence at the 5% level that the two mean times differ.

Worked example, step by step

The question Calculator needed [6 marks]

A teacher compares the time taken to solve a logic puzzle on paper with the time taken to solve it in an app. The times, in seconds, of two independent groups of students are:

Paper (8 students): 48, 52, 45, 50, 55, 47, 51, 49
App (9 students): 46, 47, 43, 49, 45, 44, 48, 51, 43

Both sets of times can be assumed to come from normal distributions with the same variance. The teacher believes that students are quicker with the app. A t-test is carried out at the 5% significance level.

(a) State the null hypothesis and the alternative hypothesis.

(b) Use your calculator to find the pp-value.

(c) State the conclusion of the test, in context.

Worked solution: worked example

Answer: (a) H0:μP=μAH_0:\mu_P=\mu_A, H1:μP>μAH_1:\mu_P>\mu_A (b) p=0.0154p=0.0154 (c) 0.0154<0.050.0154<0.05, so reject H0H_0: there is evidence that the mean time is shorter with the app.

Step 1 - Decide which t-test is needed.

There are two separate groups of students, so the samples are unpaired, and the question says to assume equal variances. So a two-sample t-test with the pooled option is used. Let μP\mu_P be the mean time on paper and μA\mu_A the mean time with the app.

Why? The syllabus uses the unpaired two-sample t-test, with equal variances assumed, so the pooled option is switched on. The means are written for the populations of all such students, not for these 17 students.

Step 2 - (a) Write the hypotheses to match the claim.

H0H_0: the mean time on paper equals the mean time with the app, μP=μA\mu_P=\mu_A. H1H_1: the mean time on paper is greater than the mean time with the app, μP>μA\mu_P>\mu_A. A1 - H0:μP=μAH_0:\mu_P=\mu_A A1 - H1:μP>μAH_1:\mu_P>\mu_A

Why? The teacher believes the app is quicker, so the claim has a direction and the test is one-tailed. A quicker app means a shorter time, so the paper mean is the greater one.

Step 3 - (b) Enter the data and set up the test.

Enter the paper times in one list and the app times in a second list. Choose the two-sample t-test using data, with the first list as sample 1 and the second as sample 2. Choose the alternative μ1>μ2\mu_1>\mu_2 to match H1H_1, and set the pooled option to Yes.

Why? The tail on the calculator has to match H1H_1. The pooled setting matters because the unpooled test uses a different formula and gives a different p-value.

Step 4 - (b) Read the p-value.

The calculator gives t=2.38t=2.38, df=15df=15 and p=0.0154.p=0.0154. The degrees of freedom are 8+9−2=158+9-2=15. A1 - Calculator p-value from the pooled two-sample t-test (unrounded) A1 - p=0.0154p=0.0154 to 3 significant figures

Why? Only the p-value is needed for the decision. Checking that df=n1+n2−2df=n_1+n_2-2 shows that both lists were entered in full.

Step 5 - (c) Compare and conclude in context.

Since p=0.0154<0.05p=0.0154<0.05, reject H0H_0. There is evidence, at the 5% significance level, that the mean time to solve the puzzle is shorter with the app than on paper. At the 1% level the conclusion would be different, because 0.0154>0.010.0154>0.01. R1 - Comparison of p=0.0154p=0.0154 with 0.05 A1 - Reject H0H_0; evidence that the mean time is shorter with the app

Why? The conclusion must use the context, here quicker with the app. It also supports the teacher's belief rather than proving it, and the decision depends on the significance level.

Marks (6):
A1 H0:μP=μAH_0:\mu_P=\mu_A
A1 H1:μP>μAH_1:\mu_P>\mu_A
A1 Calculator p-value from the pooled two-sample t-test (unrounded)
A1 p=0.0154p=0.0154 to 3 significant figures
R1 Comparison of p=0.0154p=0.0154 with 0.05
A1 Reject H0H_0; evidence that the mean time is shorter with the app

Now you try: enter your answers to be marked

1
Easy
Calculator
[2 marks]
A one-tailed tt-test gives p=0.12p = 0.12 at the 5%5\% significance level.
(a) State the conclusion.
[1]
(b) Give a reason for your answer.
[1]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
Calculator
[2 marks]
A two-sample tt-test compares the mean scores of two classes.
(a) State H0.H_0.
[1]
(b) State H1H_1 (two-tailed).
[1]
Fractions & powers
Other

Worked solution: practice question 2

3
Medium
Calculator
[2 marks]
A tt-test checks whether a new method gives a higher mean than the old.

State H1H_1.
[2]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 6 marks

Common mistakes

  • Treating "reject H0H_0" as proof that H1H_1 is true. A hypothesis test only measures the strength of evidence at a chosen significance level - it never proves anything with certainty, in either direction.
  • Choosing the wrong tail. "Different from" or "changed" means a two-tailed H1H_1 with ≠\neq; "increases", "decreases", "is greater/less than" means a one-tailed H1H_1 with >> or <<. Missing this changes which pp-value the GDC should be comparing against α\alpha.
  • Writing hypotheses about x¯1\bar{x}_1 and x¯2\bar{x}_2 instead of μ1\mu_1 and μ2\mu_2. H0H_0 and H1H_1 are statements about the population means μ1\mu_1 and μ2\mu_2, not the particular sample means you happened to calculate.

Try some questions on t-test

Using your GDC

The exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, with what the screen shows. Pick your calculator.

Chi-squared test (goodness of fit & independence)

Used in: Chi-squared test

How to do a chi-squared test on a TI-84 Plus CE

Test of independence (two-way table)

Put the observed counts in a matrix. Press 2nd x⁻¹ (MATRIX), press ▶ to reach EDIT, choose 1:[A] and press enter.

Type the size, 2 enter 3 enter for 2 rows and 3 columns, then type the counts row by row, pressing enter after each one.

MATRIX[A] 2 ×3
22 31 17
38 19 13

Press 2nd mode (QUIT) to leave the editor. Press stat, press ▶ twice to reach TESTS, and scroll down to C:χ²-Test.... Press enter.

Leave Observed as [A] and Expected as [B]: the calculator stores the expected counts in [B] for you. Move down to Calculate and press enter.

χ2=7.68\chi^2 = 7.68, p=0.0215p = 0.0215 and df=2df = 2.

χ²-Test
χ²=7.68
p=0.0214936
df=2

To see the expected counts, press 2nd x⁻¹ (MATRIX), choose 2:[B] from the NAMES list and press enter twice. Every expected count should be greater than 5.

[B]
30 25 15
30 25 15
Goodness of fit (observed and expected lists)

Press stat, choose 1:Edit and press enter. Type the observed counts 4,6,17,16,8,9 in L1, and the expected counts, 10 six times, in L2, pressing enter after each value.

L1  L2
4   10
6   10
17   10
16   10
8   10
9   10

Press stat, press ▶ twice to reach TESTS, and scroll down to D:χ²GOF-Test.... Press enter.

Set Observed to L1 (press 2nd 1) and Expected to L2 (press 2nd 2). Type the degrees of freedom, 5, because there are 6 categories. Move down to Calculate and press enter.

χ2=14.2\chi^2 = 14.2, p=0.0144p = 0.0144 and df=5df = 5.

χ²GOF-Test
χ²=14.2
p=0.01438768
df=5

The goodness-of-fit test does not work out df for you: type the number of categories minus 1.

The full guide: Chi-squared test (goodness of fit & independence)

Two-sample t-test (comparing two means)

Used in: t-test

How to do a two-sample t-test on a TI-84 Plus CE

Data in two lists, then 2-SampTTest with Pooled set to Yes

Press stat and choose 1:Edit.... Type the values of the first sample in L1 and the values of the second sample in L2, pressing enter after each. The two lists do not need the same number of values.

   L1     L2
 72       64
 65       70
 78       61
 81       68
 69       59
 74       66
 77       72
 70       63
          67

Press stat, press ▶ twice to reach TESTS and choose 4:2-SampTTest....

Set Inpt to Data. Set List1 to L1 (2nd 1) and List2 to L2 (2nd 2), and leave Freq1 and Freq2 as 1. For μ1 choose the alternative hypothesis: ≠μ2 for a two-tailed test, <μ2 or >μ2 for a one-tailed test. Move to Pooled, highlight Yes and press enter.

2-SampTTest
Inpt:[Data] Stats
List1:L1
List2:L2
Freq1:1
Freq2:1
μ1:[≠μ2] <μ2 >μ2
Pooled:No [Yes]
Calculate Draw

Move down to Calculate and press enter. The screen shows the test statistic t, the p-value, the degrees of freedom df, the two sample means, the two standard deviations and, because Pooled is Yes, the pooled standard deviation Sxp. Scroll down with ▼ to see the rest.

t=3.34t = 3.34, p=0.00450p = 0.00450 and df=15df = 15.

2-SampTTest
μ1≠μ2
t=3.3372202
p=0.0045018
df=15
x̄1=73.2500000
x̄2=65.5555556
Sx1=5.2847489
Sx2=4.2163702
Sxp=4.7449779
n1=8
n2=9

If the question gives the means, standard deviations and sizes instead of the raw data, set Inpt to Stats and type them in.

The full guide: Two-sample t-test (comparing two means)

Interpret p-values and significance levels

Used in: Chi-squared test, t-test

How to read a p-value on a TI-84 Plus CE (chi-squared goodness-of-fit test)

Run the test, then compare p with the significance level

Press stat and choose 1:Edit.... Type the observed counts in L1 and the expected counts in L2, pressing enter after each.

L1    L2
 28   20
 18   20
 14   20

Press stat, press ▶ twice to reach TESTS and choose D:χ²GOF-Test.... With the Stat Wizards on, set Observed to L1 (2nd 1), Expected to L2 (2nd 2) and df to 2, then choose Calculate.

χ²GOF-Test
Observed:L1
Expected:L2
df:2
Calculate

The screen shows χ², p and df. The value after p= is the p-value. Compare it with the significance level: if p is smaller, reject H0H_0; if it is larger, do not.

χ2=5.2\chi^2 = 5.2 and p=0.0743p = 0.0743 to 3 significant figures. Since 0.0743>0.050.0743 > 0.05, do not reject H0H_0.

χ²GOF-Test
χ²=5.2
p=0.0742736
df=2
CNTRB={3.2,0.2,1.8}

The calculator never says reject or do not reject. It gives only p. You compare p with the significance level yourself and write the conclusion.

The full guide: Interpret p-values and significance levels

See the full list of GDC guides for every calculator task.

Syllabus content covered

CodeSyllabus content
SL4.11Formulation of null and alternative hypotheses, H0H_0 and H1H_1. Significance levels, p-values, expected and observed frequencies. The χ2\chi^2 test for independence: contingency tables, degrees of freedom, critical value. The χ2\chi^2 goodness of fit test. The t-test, using the p-value to compare the means of two populations, one- and two-tailed tests.

Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).

Quick questions

How do you find the degrees of freedom for a chi-squared test of independence?

For a contingency table, ν=(rows−1)(columns−1)\nu = (\text{rows}-1)(\text{columns}-1). For a goodness-of-fit test it is instead the number of categories minus 1.

How do I know if a t-test should be one-tailed or two-tailed?

Use a one-tailed test (H1H_1 with << or >>) when the claim states a direction, such as "increases" or "is less than". Use a two-tailed test (H1H_1 with ≠\neq) when the claim only says the means are "different".

How do you calculate an expected frequency in a contingency table?

E=row total×column totalgrand totalE = \dfrac{\text{row total} \times \text{column total}}{\text{grand total}}, calculated for each cell under the assumption that the two variables are independent.

What is the decision rule for a t-test?

Reject H0H_0 if the pp-value is less than the significance level α\alpha; otherwise do not reject H0H_0. The pp-value itself is read directly from the GDC's tt-test output.

What are the hypotheses for a χ2\chi^2 test for independence?

H0H_0 states that the two variables are independent, meaning not associated. H1H_1 states that the two variables are not independent, meaning they are associated.

What does 'do not reject H0H_0' mean?

It means the data does not give enough evidence against H0H_0. It does not prove that H0H_0 is true.

Why must the expected frequencies be greater than 55?

The test is only valid when every expected frequency is greater than 55. If a cell is 5 or less, neighbouring categories may need to be combined before the test is used.

Why are hypotheses written with μ1\mu_1 and μ2\mu_2 and not x¯1\bar{x}_1 and x¯2\bar{x}_2?

Hypotheses are statements about the population means μ1\mu_1 and μ2\mu_2, which are unknown. The sample means x¯1\bar{x}_1 and x¯2\bar{x}_2 are calculated from the data and are used as evidence about them.

How do I write the conclusion from the pp-value?

If the pp-value is less than the significance level, reject H0H_0 and say there is evidence of an association, or that the data does not fit the distribution. Otherwise do not reject H0H_0, and state this in context.

What assumptions does a tt-test need?

The populations are assumed to be approximately normally distributed, and the samples should be random and independent of each other. At this level the two groups are assumed to have equal variances, so the pooled test is used.

Ready to practise properly?

Practice questions on every section, marked instantly like the real exam.