You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MvNormal is inconsistent with the syntax for Normal
Constructing a standard univariate Normal is achieved by Normal()
However, MvNormal() is not defined.
I understand this is ambiguous in dimensionality. However it isn't ambiguous to do something like evaluate the pdf of a d-dimensional vector under an MvNormal, as it will necessarily be d dimensional. I wonder if there is a way to have the standard normal defined without dimension stated, for evaluating densities, but sampling from this will obviously not be defined.
When Normal dispatches on a single argument it corresponds to the mean, but when MvNormal dispatches on a single argument it corresponds to the diagonal vector of its sigma... this is pretty strange.
An extreme example is Normal(1.) is a gaussian with mu=1 and sig=1, but MvNormal([1.]) is a 1D gaussian with mu=0 and sig=0...
MvNormal has not been updated to take I for the identity.
The documentation needs to change as well, as it refers to eye(d).
The current way to define a standard d-dimensional multivariate normal isn't great MvNormal(zeros(d),Matrix(I,d,d))
I would like MvNormal(d=3) to produce a 3-dimensional standard multivariate normal. MvNormal(zeros(3),I) should work as well.
The text was updated successfully, but these errors were encountered:
MvNormal
is inconsistent with the syntax forNormal
Constructing a standard univariate Normal is achieved by
Normal()
However,
MvNormal()
is not defined.I understand this is ambiguous in dimensionality. However it isn't ambiguous to do something like evaluate the pdf of a d-dimensional vector under an
MvNormal
, as it will necessarily bed
dimensional. I wonder if there is a way to have the standard normal defined without dimension stated, for evaluating densities, but sampling from this will obviously not be defined.When
Normal
dispatches on a single argument it corresponds to the mean, but whenMvNormal
dispatches on a single argument it corresponds to the diagonal vector of its sigma... this is pretty strange.An extreme example is
Normal(1.)
is a gaussian withmu=1
andsig=1
, butMvNormal([1.])
is a 1D gaussian withmu=0
andsig=0
...MvNormal
has not been updated to takeI
for the identity.The documentation needs to change as well, as it refers to
eye(d)
.The current way to define a standard d-dimensional multivariate normal isn't great
MvNormal(zeros(d),Matrix(I,d,d))
I would like
MvNormal(d=3)
to produce a 3-dimensional standard multivariate normal.MvNormal(zeros(3),I)
should work as well.The text was updated successfully, but these errors were encountered: