Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Represent the distribution of a quadratic form with a multivariate normal
ResourceFunction["QuadraticFormDistribution"][{a,b,c},{μ,Σ}] represents the distribution of a quadratic form z.a.z + b.z + c for multivariate normal z. |
The mean of a quadratic form distribution:
In[1]:= | ![]() |
Out[1]= | ![]() |
The variance of a quadratic form distribution:
In[2]:= | ![]() |
Out[2]= | ![]() |
Generate a set of pseudorandom numbers that follow a quadratic form distribution:
In[3]:= | ![]() |
Out[3]= | ![]() |
The skewness and kurtosis of a quadratic form distribution:
In[4]:= | ![]() |
Out[4]= | ![]() |
In[5]:= | ![]() |
Out[5]= | ![]() |
PDF and CDF can only be evaluated using Series:
In[6]:= | ![]() |
Out[6]= | ![]() |
In[7]:= | ![]() |
Out[7]= | ![]() |
In[8]:= | ![]() |
Out[8]= | ![]() |
In[9]:= | ![]() |
Out[9]= | ![]() |
Series expansion must be about the lower support point for the distribution:
In[10]:= | ![]() |
Out[10]= | ![]() |
Substitution of invalid parameters into symbolic outputs gives results that are not meaningful:
In[11]:= | ![]() |
Out[11]= | ![]() |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License