T.DIST
Returns the Student's t probability for x and a given degrees-of-freedom value.
Use T.DIST in either cumulative mode (left-tail probability) or density mode.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=T.DIST(x, deg_freedom, cumulative)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
x | number | Required | — |
deg_freedom | number | Required | — |
cumulative | number | Required | — |
How it works
For positive degrees of freedom ν, Student’s t density is proportional to (1 + x²/ν) raised to −(ν+1)/2. The cumulative option integrates that density from negative infinity through the supplied statistic.
Remarks
- Set
cumulativeto non-zero for CDF mode, or0for PDF mode. deg_freedommust be at least1.- Invalid numeric coercions propagate as spreadsheet errors.
Error cases
- Returns
#NUM!whendeg_freedom < 1.
Examples
Find the cumulative Student t probability at a statistic of one.
Formula =T.DIST(1,10,TRUE)
Expected result 0.829553433848971
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Evaluate the density at that statistic.
Formula =T.DIST(1,10,FALSE)
Expected result 0.230361989229139
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The center of this symmetric distribution has cumulative probability one-half.
Formula =T.DIST(0,10,TRUE)
Expected result 0.5
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Degrees of freedom must be positive.
Formula =T.DIST(1,0,TRUE)
Expected result #NUM!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
t PDF at zero
Formula =T.DIST(0,10,FALSE)
Expected result 0.389108383966032
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.