Similar to what roybatty wrote, but more concretely: If you want to check the distance of a data point to the distribution in terms of standard deviations, you have the problem that the standard deviation is different in different directions. The standard way to take care of this is to compute the Mahalanobis distance between the distribution mean and the data point:
If you estimate the distribution parameters from a set of data points x
like this
m = mean(x);
S = cov(x);
then for a new data point xn
you obtain the Mahalanobis distance like this:
DM = sqrt((xn - m)' * inv(S) * (xn - m));
DM is the distance of xn
from the center of the distribution m
in units of standard deviations, and you can apply the usual outlier criteria, e.g. DM > 3.