All formulas

Probability distributions

Student's t probability density

prob.student-t-pdfAlso called student t pdf, t pdf, t distribution, students t

f(t)=Γ(ν+12)νπ Γ(ν2)(1+t2ν)−ν+12f(t) = \frac{\Gamma\left(\frac{\nu + 1}{2}\right)}{\sqrt{\nu\pi}\,\Gamma\left(\frac{\nu}{2}\right)}\left(1 + \frac{t^2}{\nu}\right)^{-\frac{\nu + 1}{2}}

Density of Student's t distribution with ν degrees of freedom (ν need not be an integer).

Notation

tt

the point

t ∈ ℝ

ν\nu

degrees of freedom

ν > 0

f(t)f(t)

Result: the density at t

scalar

Worked examples

Each result is solved exactly and confirmed by two independent computations.

  1. Given

    t=0,ν=1t = 0, \nu = 1

    Result

    f(t)=1π\displaystyle f(t) = \frac{1}{\pi}

    ≈ 0.318309886184

  2. Given

    t=1,ν=1t = 1, \nu = 1

    Result

    f(t)=12π\displaystyle f(t) = \frac{1}{2 \pi}

    ≈ 0.159154943092

  3. Given

    t=0,ν=2t = 0, \nu = 2

    Result

    f(t)=24\displaystyle f(t) = \frac{\sqrt{2}}{4}

    ≈ 0.353553390593

  4. Given

    t=1,ν=3t = 1, \nu = 3

    Result

    f(t)=338π\displaystyle f(t) = \frac{3 \sqrt{3}}{8 \pi}

    ≈ 0.206748335783

  5. Given

    t=2,ν=1t = 2, \nu = 1

    Result

    f(t)=15π\displaystyle f(t) = \frac{1}{5 \pi}

    ≈ 0.0636619772368

Common mistakes

  • Exponent −ν/2 instead of −(ν + 1)/2

    The power on (1 + t2/ν) is off by one half.

    Fix: Raise (1 + t2/ν) to −(ν + 1)/2.

  • Omits π in the normalizing constant

    The denominator is √ν Γ(ν/2) instead of √(νπ) Γ(ν/2).

    Fix: Divide by √(νπ) Γ(ν/2).

Source

  • NIST/SEMATECH e-Handbook, §1.3.6.6.4

    NIST/SEMATECH e-Handbook of Statistical Methods. https://www.itl.nist.gov/div898/handbook/ Last updated 2022-04-27. doi:10.18434/M32189

    doi.org