Probability density function of Student's t-distribution
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
stats::tPDF(a) returns a procedure representing
the probability density function
of Student's t-distribution with shape parameter ('degrees of
a > 0.
f := stats::tPDF(a) can be
called in the form
f(x) with an arithmetical expression
The return value of
f(x) is either a floating-point
number or a symbolic expression:
x is a floating-point number and
be converted to a floating-point number, then
a floating-point number.
In all other cases, the expression is returned.
If floating-point results are desired, call
a floating-point value
Numerical values for
a are only accepted
if they are real and positive.
We evaluate the probability density function with
a = at
f := stats::tPDF(3/4): f(-infinity), f(-PI), f(1/2), f(0.5), f(3), f(infinity)
We use symbolic arguments:
f := stats::tPDF(a): f(x), f(0.3)
When numerical values are assigned to
f starts to produce floating-point
values for floating-point arguments:
a := PI: f(0.3)
delete f, a:
The shape parameter: an arithmetical expression representing a positive real value