Macaulay2 » Documentation
Packages » Probability » ProbabilityDistribution » continuousProbabilityDistribution » tDistribution
next | previous | forward | backward | up | index | toc

# tDistribution -- Student's t-distribution

- Usage:
    `tDistribution df`
- Inputs:
  - df, a number, the degrees of freedom (positive);
- Outputs:
  - a continuous probability distribution,

## Description

The Student's t-distribution.

    i1 : X = tDistribution 5

    o1 = t(5)

    o1 : ContinuousProbabilityDistribution

    i2 : density_X 2

    o2 = .06509031032621646

    o2 : RR (of precision 53)

    i3 : probability_X 3

    o3 = .9849503760512688

    o3 : RR (of precision 53)

    i4 : quantile_X 0.4

    o4 = -.2671808657041476

    o4 : RR (of precision 53)

    i5 : random X

    o5 = 1.420966985490531

    o5 : RR (of precision 53)

## Ways to use tDistribution:

- `tDistribution(Number)`

## For the programmer

The object tDistribution is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Probability.m2:1222:0.