Chi-Square Q-Q Plot of Mahalanobis Distances for Multivariate Normality
The chi-square Q-Q plot sorts the squared Mahalanobis distances of the rows from the mean and plots them against chi-square quantiles with as many degrees of freedom as variables. Under multivariate normality the points lie on a straight line; an exact version uses the scaled Beta distribution of the distances.
카이제곱 Q-Q 그림은 각 행이 평균에서 떨어진 마할라노비스 거리의 제곱을 정렬해, 변수 개수를 자유도로 하는 카이제곱 분위수와 맞대어 그린 그림입니다. 다변량 정규분포라면 점들이 직선 위에 놓이며, 정확한 형태로는 거리의 척도 조정 베타분포를 씁니다.
Do several variables jointly look multivariate normal, and are there rows that stand out as outliers?
여러 변수가 함께 다변량 정규분포를 따르는지, 그리고 유난히 떨어진 행이 있는지 보고 싶습니다.
Distances are computed with the sample covariance matrix and compared with chi-square and exact Beta quantiles; the correlation of the Q-Q plot is tested with a Monte Carlo p-value and rows beyond the 97.5% cut-off are counted.
When to use Chi-Square Q-Q Plot of Mahalanobis Distances for Multivariate Normality
- You need a visual check of multivariate normality before MANOVA, discriminant analysis or SEM.
- You want to spot multivariate outliers.
- You want a formal test that goes with the plot.
When to use something else
- You need skewness and kurtosis based tests: use Multivariate Normality Tests (Mardia, Henze-Zirkler, Royston)
- You only have one variable: use Shapiro-Wilk Test
Assumptions and requirements
- Independent rows
- More rows than variables (at least p + 3)
- Non-singular covariance matrix
What the analysis reports
- Q-Q correlation (chi-square and Beta versions) with Monte Carlo p-values
- Number of rows beyond the 97.5% cut-offs
- Table of sorted distances and quantiles
- Chi-square Q-Q plot
How to report it
A chi-square Q-Q plot of squared Mahalanobis distances for [value] observations on [value] variables gave r = [value] (Monte Carlo p = [value]); [value] rows exceeded the 97.5% cut-off.
Related methods
- Multivariate Normality Tests (Mardia, Henze-Zirkler, Royston)
- Doornik-Hansen Omnibus Normality Test
- Energy Test of Normality
- Grubbs' Outlier Test
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Chi-Square Q-Q Plot of Mahalanobis Distances for Multivariate Normality on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.