Statistics & probability

Mardia multivariate skewness and kurtosis test calculator

Enter one independent observation per row and one continuous feature per column.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Enter one independent observation per row and one continuous feature per column. Each row is treated as a single vector, so its coordinates may be correlated. All cells must be observed and finite. The supported range is thirty through five hundred rows and two through eight features; mixed missingness patterns require another method rather than automatic row deletion on this page.

THE FORMULAG=Z(ZᵀZ/n)⁻¹Zᵀ; b1=ΣᵢΣⱼGᵢⱼ³/n²; b2=ΣᵢGᵢᵢ²/n; skew χ²=nb1/6; kurt z=[b2−p(p+2)]/√[8p(p+2)/n].

A worked example

The40×2 default gives b1≈0.591587375,b2≈5.969567028,skew χ²≈3.943915833 and kurtosis z≈−1.605198207.

Good to know

30–500 independent complete observations, 2–8 features with full-rank covariance. Compute skewness chi-square and kurtosis normal references separately using explicit covariance-divisor convention. No combined omnibus p invented, outlier deletion, missing data or exact finite-sample guarantee.

Complete multivariate observations are the sampling units

Enter one independent observation per row and one continuous feature per column. Each row is treated as a single vector, so its coordinates may be correlated. All cells must be observed and finite. The supported range is thirty through five hundred rows and two through eight features; mixed missingness patterns require another method rather than automatic row deletion on this page.

The covariance matrix must have full rank. A column copied from another column, a constant feature, or an exact linear identity makes its inverse unavailable. Unit differences alone do not invalidate the method because covariance scaling accounts for them, although extreme numerical scaling can still be troublesome. Check measurement coding and redundant variables before interpreting a singularity as a characteristic of the underlying population.

Multivariate moments inspect different geometryJoint geometry uses inverse covarianceSkewness: directionalcubed cross-productsKurtosis: radialsquared distancesEqual Mahalanobis contours
Scroll across to see the full diagram.
Schematic centered cloud: covariance changes distance contours; skewness and kurtosis have separate references.

Compare this with the Shapiro–Wilk normality test calculator from data. Tests joint normal-shape departures using cross-Mahalanobis cubic products and squared Mahalanobis moments. Separate univariate normality tests do not test the joint distribution.

Skewness and kurtosis capture different departures

Mardia skewness averages cubed pairwise inner products of centered observations in inverse-covariance geometry. It is a multivariate quantity and is not obtained by adding the ordinary skewness of each feature. A dataset can have fairly symmetric marginal histograms while showing joint asymmetry along another direction. Conversely, small multivariate skewness does not establish that every aspect of the joint distribution is Gaussian.

Mardia kurtosis averages squared Mahalanobis distances, with the distances themselves already quadratic forms. Under a multivariate normal model its large-sample reference center is p times p plus two. Unusually large or small values can indicate departures in joint radial behavior. Skewness and kurtosis are reported separately because neither statistic alone supplies a general omnibus certificate of multivariate normality.

Use an explicit covariance divisor

Let Z contain centered rows and use S equal to Z transpose Z divided by n. Form the Gram matrix G equal to Z S inverse Z transpose. Skewness b1 is the sum of cubed G entries divided by n squared; kurtosis b2 is the mean of squared diagonal G entries. The ML divisor n matters because changing S rescales both statistics.

The skewness reference is n b1 divided by six compared with chi-square degrees of freedom p(p+1)(p+2)/6. The kurtosis z statistic subtracts p(p+2) and divides by the square root of 8p(p+2)/n, followed by a two-sided normal tail. These are asymptotic references without an invented combined p-value, finite-sample correction, or adjustment for examining two different diagnostics.

Verify the forty-by-two default

The default contains forty synthetic bivariate observations with deliberately varying directions and scale. Using the entered rounded values and the ML covariance convention, independent matrix calculations give b1 approximately 0.591587375 and b2 approximately 5.969567028. Both numbers depend on all forty paired rows; splitting the columns and analyzing them separately would discard the cross-products that define the multivariate target.

For p equal to two, the skewness degrees of freedom are four. The skewness chi-square is approximately 3.943915833 and its upper-tail p is 0.413649224. The kurtosis normal statistic is approximately minus 1.605198207 with a two-sided p near 0.108450192. These example results do not establish normality; they illustrate two limited tests with the exact sample and covariance convention stated.

Read geometry in whitened coordinates

The static figure shows a centered point cloud and contours representing equal Mahalanobis distance. Those contours need not be circles in the original feature units. A point far from the center in a direction of high variance can have a smaller standardized distance than a visibly closer point in a low-variance direction. The inverse covariance determines that comparison.

Cubing cross-inner-products makes skewness sensitive to directional imbalance among observations, while squaring radial distances makes kurtosis sensitive to tail and concentration behavior. An isolated point can influence both the fitted covariance and the resulting diagnostics. The diagram explains the algebraic distinction; it does not mark observations for automatic deletion or imply that every visually distant measurement is an error.

Asymptotic calibration has practical limits

Independent sampling and a suitable continuous multivariate model are required for the stated references. Time series, clusters of repeated subjects, mixtures of populations, and data-dependent preprocessing can affect calibration. At the lower sample bound, the reference remains an approximation. A non-significant result is especially limited when dimension is large relative to the available observations or the departure is not captured by these moments.

Outliers should be investigated through measurement records and scientific context, not removed merely to obtain larger p-values. The calculator supplies no robust covariance replacement, missing-data treatment, or automatic transformation search. If numerical inversion is unstable, standardized input units may help, but near linear dependence should be resolved substantively. Singular or nonfinite calculations must be reported as unavailable rather than coerced into a normality conclusion.

Use moment diagnostics with broader model checks

Univariate normality tests assess individual columns and can miss departures in their joint relationship. Mardia's construction explicitly uses the covariance between features, making it relevant when a later model assumes a multivariate normal vector. It still cannot characterize every possible nonnormal distribution. Pair plots, residual diagnostics, and knowledge of how observations were generated remain useful companions to the two reported moment statistics.

A reproducible report should state n, p, feature definitions, the covariance divisor, b1, b2, both reference statistics, both p-values, and any preprocessing fixed in advance. Avoid selecting the more favorable diagnostic after viewing both. If one rejects and the other does not, describe the indicated type of departure and the scope of each reference instead of declaring that the tests have produced a logical contradiction.

A few questions, answered

Why are there two p-values?

Skewness and kurtosis assess different moment departures. This page reports them separately without inventing a combined omnibus p.

Can marginal normality replace this calculation?

No. Normal-looking individual columns need not have a jointly normal relationship.

What happens with collinear columns?

The covariance inverse is undefined or unstable; remove coding redundancy or use a scientifically justified reduced feature set.

Does a large p certify multivariate normality?

No. These are limited asymptotic diagnostics, not a distributional certificate.

Find your calculator

Start typing to explore the library.