Perplex
Content
  • Exponents & Logarithms
  • Approximations & Error
  • Sequences & Series
  • Matrices
  • Complex Numbers
  • Financial Mathematics
  • Cartesian plane & lines
  • Function Theory
  • Modelling
  • Transformations & asymptotes
  • 2D & 3D Geometry
  • Voronoi Diagrams
  • Trig equations & identities
  • Vectors
  • Graph Theory
  • Probability
  • Descriptive Statistics
  • Bivariate Statistics
  • Distributions & Random Variables
  • Inference & Hypotheses
  • Differentiation
  • Integration
  • Differential Equations
Other
  • Review Videos
  • Blog
  • Landing Page
  • Sign Up
  • Login
  • Perplex
    IB Math AIHL
    /
    Inference & Hypotheses
    /

    Student's t-test

    Edit
    Student's t-test

    Student's t-test

    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!

    Exercises

    No exercises available for this concept.

    Key Skills

    1 tailed and 2 tailed T-test hypotheses
    SL AI 4.11

    Given a null hypothesis H0​:μ=μ0​, we can have any of the following alternative hypotheses

    H1​:μ<μ0​,H1​:μ>μ0​,H1​:μ=μ0​.

    The first two alternative hypotheses are called one-tailed since we only care how far the sample mean, xˉ, is from μ0​ in one direction. The last hypothesis is two-tailed because we care how far xˉ is from μ0​ regardless of direction.

    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.

    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.

    Paired tests for the mean
    AHL AI 4.18

    We say that data is paired when each value in one row is tied to the value in the next row. An example of this is before and after scores for a group of students.


    Instead of comparing means using a two-sample test, we instead calculate the difference between the rows for each column, and then do a one-sample test with μ0​=0.

    <ul>
<li>Two side-by-side tables with a rightward arrow between them.</li>
<li>Left table: 3 columns labeled A, B, C under a header cell “Student”; two rows labeled “Exam 1” and “Exam 2.”
<ul>
<li>Exam 1 row: A=72, B=38, C=83.</li>
<li>Exam 2 row: A=75, B=40, C=88.</li>
</ul>
</li>
<li>Right table: same column headers (Student, A, B, C) with a single row labeled “Difference.”
<ul>
<li>Difference row: A=3, B=2, C=5.</li>
</ul>
</li>
<li>The arrow indicates a transformation from the left table to the right table by computing per-column differences.</li>
</ul>

    Two important notes:

    • H0​:d=0 and H1​ can be d=0,d<0 or d>0.

    • The assumption being made is that the differences are normally distributed, not the original values.

    Testing for population correlation: H₀ : ρ = 0 vs H₁ : ρ ≠ 0
    AHL AI 4.18

    We can test the correlation between two normally distributed populations.

    1. Enter the samples into L1​ and L2​

    2. Navigate to LinRegTTest.

    3. Select ρ=0,<0 or >0

    The calculator returns the p-value (not to be confused with ρ), as well as the coefficients y=a+bx.