http://mathworld.wolfram.com/Trivariate ... ution.html


The square root term crashes if the determinant is less that zero. Both the 1/denominator and exp term blow up if the determinant is zero although the analytic version of the equation does not because the exp term goes to zero much faster than the 1/sqrt term goes to infinity.The term under the square root is the determinant of the (positive definite?) covariance matrix. If we take rho13 = rho23 = 0, rho12 >= 1 we get NaN. But what is there is noise in the data?
The term exp(-w/b) should never underlfow?
BTW what's PSD?
Ah, thanks.PSD = Positive semidefiniteness
I found that figure showing feasible region in 3d. In my tests things stayed OK if I stayed in about [-0.5, 0.5]^3. Now we can see why. Is the centre of gravity at (0,0,0)?It is possible to randomly genetrate rhoS(call x,y,z) in -[-1,1] so that the terms
1 - (x^2 + y^2 + z^2) + 2xyz.
becomes < 0
Now I recall Alan had a 3d diagram of this surface.
So, if the choice of rhos is not 'good' then the normal distribution is not dependable?
How would the algorithm for this expand?Nice!
The other approach is to posit a distribution around the estimated/tweaked values of rho and intersect that distribution with the constraint equation (or intersect it with a second distribution for the determinant). That would lead to a maximum likelihood solution.