Density of multivariate t-distribution
In this exercise, you will calculate the density of multivariate t-distributions using the 200 samples generated in the previous exercise, that were stored in the multt.sample object.
本练习是课程的一部分
Multivariate Probability Distributions in R
练习说明
- Calculate the density heights of the 200 samples in
multt.samplefor a bivariate t-distribution with locationmu.sim, variance-covariance matrixsigma.simand 5 degrees of freedom. - Create a 3d scatterplot to visualize the density heights at each of the 200 points.
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Calculate densities
multt.dens <- dmvt(___)
# Plot 3D heights of densities
___(___(___, multt.dens),
color = "blue", pch = "", type = "h",
xlab = "x", ylab = "y", zlab = "density")