Statistical Inference for EveryoneXYZ Homework Edition

⇩ Download ▾

8.4 Student-t-test

When we are not given the uncertainty of the measurements, σ\sigma, and the data are insufficient to estimate the uncertainty, then we need to estimate both the “true” value, μ\mu, and the uncertainty. This leads to a wider credible range for the “true” value. We can apply the same testing procedure, by looking at the 95% credible region to see if it includes zero, but this time the posterior distribution we use comes from the so-called Student-tt distribution.

  1. For NN independent observations, we still have the best estimate of the “true” value given by the sample mean

    μ^=x1+x2++xNN\begin{eqnarray*} \hat{\mu} = \frac{x_{1} + x_{2} + \cdots + x_{N}}{N} \end{eqnarray*}

  2. The best estimate of the uncertainty of a single measurement is given by the sample standard deviation

    σ^=S\begin{eqnarray*} \hat{\sigma} = S \end{eqnarray*}

    where SS is the sample standard deviation

    S2=1N1((x1x¯)2++(xNx¯)2)\begin{eqnarray*} S^{2}&=&\frac{1}{N-1}\left( (x_{1}-\bar{x})^{2}+\cdots+(x_{N}-\bar{x})^{2}\right) \end{eqnarray*}

  3. The credible region is determined by the 95% interval of the posterior, Student-tt distribution, of the following form

    Studentdof=N1(x¯,S/N)\begin{eqnarray*} {\rm Student}_{{\rm dof}=N-1}(\bar{x}, S/\sqrt{N}) \end{eqnarray*}

  4. Test to see if the credible range includes zero.
  5. If so, then the test passes, and we can be reasonably confident that the parameter is non-zero - that the effect is real.
  6. If the test fails, i.e. the credible range does not include zero, then under the model the possibility of a zero-effect cannot be reasonably excluded.

Adapted from Statistical Inference for Everyone, by Brian Blais (Bryant University), licensed under CC BY-SA 4.0 (dual-licensed under the GNU FDL 1.2 or later; this adaptation uses the CC BY-SA grant). Changes were made; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.