开始使用免费开始使用

t 分布的累积分布与分位数

在本练习中,您将计算多元 t 分布的概率积分与分位数(逆 CDF)。

本练习是课程的一部分

R 中的多元概率分布

查看课程

练习说明

  • 计算一个二维 t 分布在 \(\begin{pmatrix} -5 \\ -5\end{pmatrix}\) 与 \(\begin{pmatrix} 5 \\ 5 \end{pmatrix}\) 之间的体积,位置参数为 mu.sim,方差-协方差矩阵为 sigma.sim,自由度为 5。
  • 计算标准二维 t 分布在 \(p=.9\) 下的等概率等高线。别忘了指定 tail = "both",以得到形式为 \(P[-x ≤ X ≤ x] = p\) 的双侧等高线。

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Calculate the volume under the specified t-distribution
pmvt(lower = ___, upper = ___, delta = mu.sim, df = 5, sigma = sigma.sim)


# Calculate the equal probability contour
qmvt(p = ___, tail = "both", sigma = diag(2))
编辑并运行代码