tpdf
Student t 概率密度函数
说明
示例
计算 Student t 分布 pdf
众数处的 pdf 值是自由度的递增函数。
Student t 分布的众数在 x = 0 处。计算自由度为 1
到 6
时众数处的 pdf 值。
tpdf(0,1:6)
ans = 1×6
0.3183 0.3536 0.3676 0.3750 0.3796 0.3827
随着自由度逼近无穷大,t 分布收敛于标准正态分布。
计算标准正态分布和自由度为 30
的 Student t 分布的 pdf 之间的差值。
difference = tpdf(-2.5:2.5,30)-normpdf(-2.5:2.5)
difference = 1×6
0.0035 -0.0006 -0.0042 -0.0042 -0.0006 0.0035
输入参数
输出参量
详细信息
Student t pdf
Student t 分布是单参数曲线族。参数 ν 是自由度。Student t 分布的均值为零。
Student t 分布的 pdf 为
其中 ν 是自由度,Γ( · ) 是 gamma 函数。结果 y 是从自由度为 ν 的 Student t 分布中观测到 x 的特定值的概率。
有关详细信息,请参阅Student's t Distribution。
替代功能
tpdf
是 Student t 分布特有的函数。Statistics and Machine Learning Toolbox™ 还提供泛型函数pdf
,它支持各种概率分布。要使用pdf
,请指定概率分布名称及其参数。请注意,分布特有的函数tpdf
比泛型函数pdf
的执行速度要快。使用 Probability Distribution Function 为概率分布创建累积分布函数 (cdf) 或概率密度函数 (pdf) 的交互图。
扩展功能
C/C++ 代码生成
使用 MATLAB® Coder™ 生成 C 代码和 C++ 代码。
GPU 数组
通过使用 Parallel Computing Toolbox™ 在图形处理单元 (GPU) 上运行来加快代码执行。
此函数完全支持 GPU 数组。有关详细信息,请参阅Run MATLAB Functions on a GPU (Parallel Computing Toolbox)。
版本历史记录
在 R2006a 之前推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)