I have a set of observations N distributed as (x[i], y[i]), i=0..N points in a 2D space. Each point has associated errors in both coordinates ( e_x[i], e_y[i], i=0..N ), as well as the weight attached to it ( w[i], i=0..N ).
I would like to create a two-dimensional histogram of these N points, taking into account not only the weights, but also the errors that could cause the distribution of each point, possibly among many boxes, if the error values ββare large enough (assuming a standard Gaussian distribution for errors, although it would be possible consider other distributions).
I see that numpy.histogram2d has a weights parameter, so take care of that. The problem is how to account for errors at each of the observed points N
Is there a feature that would allow me to do this? I am open to anything in numpy and scipy .
source share