Animating signals and statistics

I’m experimenting with building animations to help early-year students visualise the relationships between signals and statistics about signals.

For example, I constructed the following animated gif to show how the sampled data points from a sine wave, and a randomised sequence of the same sampled data points, results in the same CDF at multiples of the sine wave’s period.

anim-data-vs-time-vs-CDF-25jan13

Click on the image above for the full-sized, animated version. The cumulative distribution function (CDF) on the right is updated over time as samples are taken from the signals on the left.

I created this using Scilab to plot and export each frame as lots of single gifs, then used Imagemagick‘s convert to sew the sequence together into an animated gif.

anim-histograms-2-15feb13

[Added 15feb13] Click on the image above for another version, this time with an actual histogram rather than CDF.

It occurs to me that someone, somewhere, has probably built a library of such animations. My google-fu needs improving….

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: