stable
dist_student_t(df, mu = 0, sigma = 1, ncp = NULL)
degrees of freedom (df
= Inf
is allowed.
The location parameter of the distribution.
If ncp == 0
(or NULL
), this is the median.
The scale parameter of the distribution.
non-centrality parameter rt()
, only for abs(ncp) <= 37.62
.
If omitted, use the central t distribution.
The Student's T distribution is closely related to the Normal()
distribution, but has heavier tails. As
We recommend reading this documentation on https://pkg.mitchelloharawild.com/distributional/, where the math will render nicely.
In the following, let df
=
Support:
Mean: Undefined unless
Variance:
Undefined if
Probability density function (p.d.f):
# NOT RUN {
dist <- dist_student_t(df = c(1,2,5), mu = c(0,1,2), sigma = c(1,2,3))
dist
mean(dist)
variance(dist)
generate(dist, 10)
density(dist, 2)
density(dist, 2, log = TRUE)
cdf(dist, 4)
quantile(dist, 0.7)
# }
Run the code above in your browser using DataLab