www.gusucode.com > stats 源码程序 matlab案例代码 > stats/ComputeStudentsTPdfExample.m
%% Compute Student's _t_ pdf % % Copyright 2015 The MathWorks, Inc. %% % The mode of the Student's _t_ distribution is at _x_ = 0. This example % shows that the value of the function at the mode is an increasing % function of the degrees of freedom. tpdf(0,1:6) %% % The _t_ distribution converges to the standard normal distribution as the % degrees of freedom approaches infinity. How good is the approximation for % $\nu$ equal to 30? difference = tpdf(-2.5:2.5,30)-normpdf(-2.5:2.5)