Perplex
Dashboard
Topics
Exponents & LogarithmsApproximations & ErrorSequences & SeriesFinancial Mathematics
Cartesian plane & linesFunction TheoryModelling
2D & 3D GeometryVoronoi Diagrams
ProbabilityDescriptive StatisticsBivariate StatisticsDistributions & Random VariablesInference & Hypotheses
DifferentiationIntegration
Review VideosFormula BookletMy Progress
BlogLanding Page
Sign UpLogin
Perplex
Perplex
Dashboard
Topics
Exponents & LogarithmsApproximations & ErrorSequences & SeriesFinancial Mathematics
Cartesian plane & linesFunction TheoryModelling
2D & 3D GeometryVoronoi Diagrams
ProbabilityDescriptive StatisticsBivariate StatisticsDistributions & Random VariablesInference & Hypotheses
DifferentiationIntegration
Review VideosFormula BookletMy Progress
BlogLanding Page
Sign UpLogin
Perplex
/
Inference & Hypotheses
/
Student's t-test
Mixed Practice
Student's t-test
Inference & Hypotheses

Student's t-test

0 of 0 exercises completed

Using the t-distribution to compare a sample mean to a population mean with unknown variance.

Want a deeper conceptual understanding? Try our interactive lesson!

1 tailed and 2 tailed T-tests and their hypotheses
SL AI 4.11

A T-test is a technique that compares whether the means of two groups are significantly different. It works by measuring how different the mean of a sample is from another mean, and comparing that difference to the variance in the sample.


  • The null hypothesis is that the two groups have the same mean ​H0​:μ=μ0​.

  • We can have any of the following alternative hypotheses:

    1. ​H1​:μ<μ0​​ - testing whether our sample has a lower mean that what we're comparing it to

    2. ​H1​:μ>μ0​​ - testing whether our sample has a higher mean that what we're comparing it to

    3. ​H1​:μ=μ0​​ - testing whether our sample has a different mean that what we're comparing it to

The first two alternative hypotheses are called one-tailed because they test difference in a specific direction (one mean greater or smaller than the other).


Examples

We can use a one-tailed T-test to determine whether

  • patients at a certain hospital have a significantly faster (lower) mean recovery time than the national average. This is a one-tailed test.

  • trout in lake A have a significantly different mean weight than trout in lake B. This is a two-tailed test.

Example

A researcher wants to know if boys on the school soccer and basketball teams are taller than the average boy in the school. The mean height of all boys in the school is ​175cm, and the mean height on each team is ​180cm. However, the variance in height on each team is not the same:

problem image

The data shows that boys on the soccer team are have more consistent heights. Because the heights on the soccer team are less "random" and more compact, it is more statistically significant that their mean height is taller.

How does the T-test work?

Under the hood, the calculator computes a ​t​ value, which is a measure of how different our sample is from a specified mean, relative to the variance in the sample. It then uses a ​t​-distribution to calculate the probability of getting this ​t​ value under chance alone. The smaller that ​p​ value, the less likely the null hypothesis is.

<ul><li><p>Three separate roughly bell-shaped (t-dist) curves are drawn in purple on a horizontal baseline.</p></li><li><p>Left curve: both tails are shaded; two vertical cutoff lines mark the boundaries between the shaded tails and the unshaded center region. Label underneath: “≠ μ0”.</p></li><li><p>Middle curve: the left tail is shaded; a single vertical cutoff line marks the boundary between the shaded left tail and the unshaded remainder. Label underneath: “&lt; μ0”.</p></li><li><p>Right curve: the right tail is shaded; a single vertical cutoff line marks the boundary between the shaded right tail and the unshaded remainder. Label underneath: “&gt; μ0”.</p></li><li><p>No axes, numbers, or tick values are shown; all shading and outlines are in the same purple color.</p></li></ul>
T-test for mean μ (1-sample)
SL AI 4.11

We can perform a ​t​-test for a single sample against a known mean by on a calculator:

  1. Enter the sample data into a list.

  2. Navigate to T-Test on a calculator.

  3. Select "DATA" and enter the name of the list where sample is stored.

  4. Select the tail type depending on what our alternative hypothesis is (​μ0​​ is the population mean):

    • ​=μ0​​ for a change in mean

    • ​<μ0​​ for a decrease in mean

    • ​>μ0​​ for an increase in mean

  5. Hit calculate, and interpret the ​p​-value as usual.

Assumptions: This test is assuming that the data are independent, randomly sampled, and approximately normally distributed. IB questions will specifically ask you to state the assumption of normally distributed variables.

2-sample T-Test
SL AI 4.11

To compare the means of two samples using a ​T​-test, we use a calculator:

  1. Enter each sample in its own list.

  2. Navigate to 2-SampTTest.

  3. Select "Data", then enter the names of the lists containing the samples.

  4. Select the tail type depending on what our alternative hypothesis is:

    • ​μ1​=μ2​​ for different means

    • ​<μ2​​ for first list mean smaller than second

    • ​>μ2​​ for first list mean greater than second

  5. Set "Pooled" to true.

  6. The calculator reports the ​t​-value and ​p​-value, which we interpret as usual.

Assumptions: This test is assuming that the data are approximately normally distributed, and that both samples have the same variance. IB questions will specifically ask you to state these assumptions.

Nice work completing Student's t-test, here's a quick recap of what we covered:

Skills covered

Mixed Practice

Exercises checked off

I'm Plex, here to help you understand this concept!
/
Inference & Hypotheses
/
Student's t-test
Mixed Practice
Student's t-test
Inference & Hypotheses

Student's t-test

0 of 0 exercises completed

Using the t-distribution to compare a sample mean to a population mean with unknown variance.

Want a deeper conceptual understanding? Try our interactive lesson!

1 tailed and 2 tailed T-tests and their hypotheses
SL AI 4.11

A T-test is a technique that compares whether the means of two groups are significantly different. It works by measuring how different the mean of a sample is from another mean, and comparing that difference to the variance in the sample.


  • The null hypothesis is that the two groups have the same mean ​H0​:μ=μ0​.

  • We can have any of the following alternative hypotheses:

    1. ​H1​:μ<μ0​​ - testing whether our sample has a lower mean that what we're comparing it to

    2. ​H1​:μ>μ0​​ - testing whether our sample has a higher mean that what we're comparing it to

    3. ​H1​:μ=μ0​​ - testing whether our sample has a different mean that what we're comparing it to

The first two alternative hypotheses are called one-tailed because they test difference in a specific direction (one mean greater or smaller than the other).


Examples

We can use a one-tailed T-test to determine whether

  • patients at a certain hospital have a significantly faster (lower) mean recovery time than the national average. This is a one-tailed test.

  • trout in lake A have a significantly different mean weight than trout in lake B. This is a two-tailed test.

Example

A researcher wants to know if boys on the school soccer and basketball teams are taller than the average boy in the school. The mean height of all boys in the school is ​175cm, and the mean height on each team is ​180cm. However, the variance in height on each team is not the same:

problem image

The data shows that boys on the soccer team are have more consistent heights. Because the heights on the soccer team are less "random" and more compact, it is more statistically significant that their mean height is taller.

How does the T-test work?

Under the hood, the calculator computes a ​t​ value, which is a measure of how different our sample is from a specified mean, relative to the variance in the sample. It then uses a ​t​-distribution to calculate the probability of getting this ​t​ value under chance alone. The smaller that ​p​ value, the less likely the null hypothesis is.

<ul><li><p>Three separate roughly bell-shaped (t-dist) curves are drawn in purple on a horizontal baseline.</p></li><li><p>Left curve: both tails are shaded; two vertical cutoff lines mark the boundaries between the shaded tails and the unshaded center region. Label underneath: “≠ μ0”.</p></li><li><p>Middle curve: the left tail is shaded; a single vertical cutoff line marks the boundary between the shaded left tail and the unshaded remainder. Label underneath: “&lt; μ0”.</p></li><li><p>Right curve: the right tail is shaded; a single vertical cutoff line marks the boundary between the shaded right tail and the unshaded remainder. Label underneath: “&gt; μ0”.</p></li><li><p>No axes, numbers, or tick values are shown; all shading and outlines are in the same purple color.</p></li></ul>
T-test for mean μ (1-sample)
SL AI 4.11

We can perform a ​t​-test for a single sample against a known mean by on a calculator:

  1. Enter the sample data into a list.

  2. Navigate to T-Test on a calculator.

  3. Select "DATA" and enter the name of the list where sample is stored.

  4. Select the tail type depending on what our alternative hypothesis is (​μ0​​ is the population mean):

    • ​=μ0​​ for a change in mean

    • ​<μ0​​ for a decrease in mean

    • ​>μ0​​ for an increase in mean

  5. Hit calculate, and interpret the ​p​-value as usual.

Assumptions: This test is assuming that the data are independent, randomly sampled, and approximately normally distributed. IB questions will specifically ask you to state the assumption of normally distributed variables.

2-sample T-Test
SL AI 4.11

To compare the means of two samples using a ​T​-test, we use a calculator:

  1. Enter each sample in its own list.

  2. Navigate to 2-SampTTest.

  3. Select "Data", then enter the names of the lists containing the samples.

  4. Select the tail type depending on what our alternative hypothesis is:

    • ​μ1​=μ2​​ for different means

    • ​<μ2​​ for first list mean smaller than second

    • ​>μ2​​ for first list mean greater than second

  5. Set "Pooled" to true.

  6. The calculator reports the ​t​-value and ​p​-value, which we interpret as usual.

Assumptions: This test is assuming that the data are approximately normally distributed, and that both samples have the same variance. IB questions will specifically ask you to state these assumptions.

Nice work completing Student's t-test, here's a quick recap of what we covered:

Skills covered

Mixed Practice

Exercises checked off

I'm Plex, here to help you understand this concept!

Generating starter questions...

Generating starter questions...