# studentTDistribution

> **studentTDistribution**(`parameters`): [`StudentTDistribution`](/reference/knotkit/distribution/interfaces/studenttdistribution/)

Defined in: [packages/distribution/src/student-t-distribution.ts:34](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/distribution/src/student-t-distribution.ts#L34)

Create a Student’s t distribution with the given degrees of freedom. One degree of freedom is the Cauchy distribution. Tails use the regularized incomplete beta function. Each draw divides a normal draw by the square root of a scaled chi-squared draw and consumes a variable number of 32-bit words.

## Parameters

### parameters

[`StudentTDistributionParameters`](/reference/knotkit/distribution/interfaces/studenttdistributionparameters/)

## Returns

[`StudentTDistribution`](/reference/knotkit/distribution/interfaces/studenttdistribution/)

## Throws

With `INVALID_PARAMETER` for unsupported degrees of freedom.
