Code covered by the BSD License  

Highlights from
ACR

5.0

5.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 2.37 KB File ID: #12161

ACR

by Antonio Trujillo-Ortiz

 

04 Sep 2006 (Updated 13 Sep 2006)

Upper percentiles squared Mahalanobis distance critical value for test of single multivariate normal

| Watch this File

File Information
Description

From the method given by Wilks (1963) and approaching to a F distribution function by the Yang and Lee (1987) formulation, we provide an m-file to get the critical value of the maximun squared Mahalanobis distance to detect outliers from a normal multivariate sample.

--The function's name is giving as a gratefull to Dr. Alvin C. Rencher for his unvaluable contribution to the teaching of multivariate statistics with his text 'Methods of Multivariate Analysis'.--
     
Inputs:
    p - number of independent variables.
    n - sample size.
alpha - significance level (default = 0.05).

Output:
      x - critical value of the maximun squared Mahalanobis distance.

We can generate all the critical values of the maximun squared Mahalanobis distance presented on the Table XXXII of by Barnett and Lewis (1978) and Table A.6 of Rencher (2002). Also with any given significance level (alpha).

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
15 May 2008 Andreas Procopiou  
Please login to add a comment or rating.
Updates
05 Sep 2006

It was added an appropriate format to cite this file.

05 Sep 2006

Text was improved.

05 Sep 2006

File description was improved.

13 Sep 2006

Code was improved on line 78.

Tag Activity for this File
Tag Applied By Date/Time
statistics Antonio Trujillo-Ortiz 22 Oct 2008 08:37:28
probability Antonio Trujillo-Ortiz 22 Oct 2008 08:37:28
squared mahalanobis distance Antonio Trujillo-Ortiz 22 Oct 2008 08:37:28
critical value Antonio Trujillo-Ortiz 22 Oct 2008 08:37:28
outliers Antonio Trujillo-Ortiz 22 Oct 2008 08:37:28
multivariate Antonio Trujillo-Ortiz 22 Oct 2008 08:37:28

Contact us at files@mathworks.com