tlspdf
Location-scale Student’s T probability density function (PDF).
For each element of x, compute the probability density function (PDF) of the location-scale Student’s T distribution with location parameter mu, scale parameter sigma, and nu degrees of freedom. The size of y is the common size of x, mu, sigma, and nu. A scalar input functions as a constant matrix of the same size as the other inputs.
Further information about the location-scale Student’s T distribution can be found at https://en.wikipedia.org/wiki/Student%27s_t-distribution#Location-scale_t_distribution
See also: tlscdf, tlsinv, tlsrnd, tlsfit, tlslike, tlsstat
Source Code: tlspdf
## Plot various PDFs from the Student's T distribution x = -8:0.01:8; y1 = tlspdf (x, 0, 1, 1); y2 = tlspdf (x, 0, 2, 2); y3 = tlspdf (x, 3, 2, 5); y4 = tlspdf (x, -1, 3, Inf); plot (x, y1, "-b", x, y2, "-g", x, y3, "-r", x, y4, "-m") grid on xlim ([-8, 8]) ylim ([0, 0.41]) legend ({"mu = 0, sigma = 1, nu = 1", "mu = 0, sigma = 2, nu = 2", ... "mu = 3, sigma = 2, nu = 5", 'mu = -1, sigma = 3, nu = \infty'}, ... "location", "northwest") title ("Location-scale Student's T PDF") xlabel ("values in x") ylabel ("density") |