Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Represent the Wishart distribution
ResourceFunction["WishartDistribution"][Σ,m] represents a Wishart distribution with scale matrix Σ and degrees of freedom parameter m. |
The mean of a Wishart distribution:
| In[1]:= |
| Out[1]= |
The variance:
| In[2]:= |
| Out[2]= |
Probability density function:
| In[3]:= |
| Out[3]= |
Generate a set of pseudorandom matrices that follow a Wishart distribution:
| In[4]:= |
| Out[4]= | ![]() |
| In[5]:= |
| Out[5]= |
| In[6]:= |
| Out[6]= |
WishartDistribution is not defined when Σ is not symmetric and positive definite:
| In[7]:= |
| Out[7]= |
WishartDistribution is not defined when m<Length[Σ]:
| In[8]:= |
| Out[8]= |
Substitution of invalid parameters into symbolic outputs gives results that are not meaningful:
| In[9]:= |
| Out[9]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License