Skip to content

ENH: multivariate oulier prediction, Hotelling T2 #3199

Open

Description

@josef-pkt

related: #2847 for univariate case

interesting question
http://stats.stackexchange.com/questions/234837/is-there-a-hotellings-t2-function-for-multivariate-data-using-python
and link to blog post
https://blog.pivotal.io/data-science-pivotal/products/multivariate-time-series-forecasting-for-virtual-machine-capacity-planning

It's related to multivariate outlier detection, but we want to get a test statistic or prediction interval based on the multivariate normal distribution. e.g. what's the distribution of the predicted Mahalanobis distance of a new observation, or the confidence interval based on it.
The example is based on VAR predictions.

(I have not much background for this. I guess it's essentially 2 to 5 lines of code but which, and a lot more lines for unit tests.)
partially a guess: we can just use F or chi-square distribution on the Mahalanobis distance, and for those we should have the normal prediction distribution (expected value and covariance) for the VAR predictions already available.

related aside: textbooks on Multivariate Statistics have the mean and covariance tests for multivariate normal random variables. Those are not yet available in Python scipy or statsmodels.

Activity

  1. josef-pkt commented on Sep 23, 2016

    @josef-pkt
    MemberAuthor

    Here is a article that looks interesting and related to this.
    Article is a bit "heuristic" and not very theoretical, but looks like a good summary (without derivation) of some of the "outlyingness" p-values, under multivariate normality.
    assumes we have mean variance from a clean dataset and we want to evaluate a new observation with tail probability of the reference distribution (multivariate normal estimated on clean data)
    Another point: they refer to an article by overlapping authors that estimates a confidence interval for the tail probability (using non-central F or chisquare distribution.)

    Elfadaly, Fadlalla G., Paul H. Garthwaite, and John R. Crawford. 2016. “On Point Estimation of the Abnormality of a Mahalanobis Index.” Computational Statistics & Data Analysis 99 (July): 115–30. doi:10.1016/j.csda.2016.01.014.

  2. josef-pkt commented on Sep 23, 2016

    @josef-pkt
    MemberAuthor

    I didn't see their paper "in preparation", but the conf_int I found is in

    Benjamin Reiser (2001) CONFIDENCE INTERVALS FOR THE MAHALANOBIS
    DISTANCE, Communications in Statistics - Simulation and Computation, 30:1, 37-45, DOI:
    10.1081/SAC-100001856
    http://dx.doi.org/10.1081/SAC-100001856

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions