Statistical Animations

This page collects a few examples of animated graphics used to explain statistical concepts. They mainly use the idea of plot interpolation to show a series of intermediate, interpolated views between two states of some data.

They were prepared using R, with the car and heplots packages, and the animations were created with the animation package by Yihui Xie.

The headings and plots below link to individual pages with more explanation and plot controls for the animations.

Outlier detection by rotating to principal components

This demonstration illustrates why multivariate outliers might not be apparent in univariate views, but become readily apparent on the smallest principal component. For bivariate data, principal component scores are equivalent to a rotation of the data to a view whose coordinate axes are aligned with the major-minor axes of the data ellipse. It is shown here by linear iterpolation between the original data, XY, and PCA scores

Added variable plots

These plots show the relationship between a marginal scatterplot and an added-variable (aka partial regression) plot by means of an animated interpolation between the positions of points in the two plots. They show how the slope of the regression line, the data ellipse, and positions of points change as one goes from the marginal plot (ignoring the other variable) to the AV plot, controlling for the other variable.

One-way MANOVA and HE plots

This animated series of plots illustrate the essential ideas behind the computation of hypothesis tests in a one-way MANOVA design and how these are represented by Hypothesis - Error (HE) plots.

©2007 Michael Friendly, All Rights Reserved.

Privacy | Terms