Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

mvtpdf - Multivariate t probability density function

Syntax

y = mvtpdf(X,C,df)

Description

y = mvtpdf(X,C,df) returns the probability density of the multivariate t distribution with correlation parameters C and degrees of freedom df, evaluated at each row of X. Rows of the n-by-d matrix X correspond to observations or points, and columns correspond to variables or coordinates. C is a symmetric, positive definite, d-by-d matrix, typically a correlation matrix. If its diagonal elements are not 1, mvtpdf scales C to correlation form. df is a scalar, or a vector with n elements. y is an n-by-1 vector.

Examples

Visualize a multivariate t distribution:

[X1,X2] = meshgrid(linspace(-2,2,25)',linspace(-2,2,25)');
X = [X1(:) X2(:)];
C = [1 .4; .4 1]; 
df = 2;
p = mvtpdf(X,C,df);
surf(X1,X2,reshape(p,25,25))

See Also

mvtcdf, mvtrnd

Multivariate t Distribution

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS