I have a few functions that give a probability distribution in 3d. I want to intersect the probabilities (i multiplicate all the functions values at each point in 3d) The result is a blob in 3D, in wich, each point has a probability value. (it?s a 4d graph).
I need to know the mean and co-variance matrix of that blob. My ideia is to calculate let?s say 100 points of the resulting function and use matlab to fit a gaussian to it, but that to me seems a bit heavy and not very accurate.
Is there anyway to do this in a more efficient way? Maybe directly from the product of functions?
Thank You
You could use the mean function.
In 1-D it is mean(x).
But then in 3D, it is mean(mean(mean(x)))
Same thing with var and other functions.
But tks anyway
I'm not quite sure what you have and what you want.
1. If you have functions that produce probability distributions for multi-dimsnsional data, can't you get the mean and variance in each axis from the parameters of the functions themselves?
2. If you have output from the functions themselves that produce 3 x n matrices of n data points, wouldn't you calculate the means and variances in each direction (in this case, the columns)?
I'm not sure one mean and one variance really mean anything
The functions are beam models and distance estimates from observing an object in a camera. Only by intersecting them i can obtain a probability distribution for the object position. The result is a blob in 3d. I want the mean and the co-variance matrix of that blob, to be able to use a kalman filter.
The sencond method you described, i think it?s the same as i said in the 1st post...