Properly detects an anomaly on the basis of directional data that are
obtained in sequence from a monitored object. An anomaly detecting method
includes: sequentially generating directional data indicating a feature
of each piece of monitored data correspondingly to the monitored data
which are input in sequence; calculating the dissimilarity of the
directional data to a reference vector; updating a moment of the
distribution of the dissimilarity appearing when the directional data is
modeled with a multi-dimensional probability distribution, based on the
moment already corresponding to the monitored data; calculating a
parameter determining the variance of the multi-dimensional probability
distribution, on the basis of the moment; calculating a threshold of the
dissimilarity on the basis of the multi-dimensional probability
distribution the variance of which is determined by the parameter; and
detecting an anomaly in the monitored data that corresponds to the
dissimilarity if the dissimilarity exceeds the threshold.