IPython Notebook Gallery

The IPython Notebook is a great vehicle for Python programming and data analysis. I've started using the notebook in my courses.

Here are a number of interesting IPython notebooks. Many are simple, focusing on beginners; some are more complicated. Feel free to use them in your own courses or your own studies.

Check back often as I will add more notebooks.

Getting Started with IPython

  • Introduction to Scientific Computing with Python [ipynb] [html] I wrote this for my class. We use python for computing tasks in my Digital Signal Processing class.

Probability, Statistics, and Data Analysis

  • Linear Regression Code and Example [ipynb] [html] I demonstrate how to do linear regression in python. The data is the average temperature series for New York City. Bottom line: use statsmodels with the QR option.

  • Birthday and Chuck-a-Luck. [ipynb] [html]

    This is one of the first IPython notebooks I wrote (it shows little effort to "beautify" anything). It was part of a lecture in my ELEG 310 class (Random Signals and Noise). Chuck-a-Luck is a carnival dice game. I used it as a simple example of a random process.

  • RandomVariables. [ipynb] [html]

    Another one from my ELEG 310 class. Shows some discrete and continuous probability distributions and various plots. Inspired by (and parts copied from) a notebook by J.R. Johansson (robert@riken.jp).

Digital Signal Processing

A simple notebook showing how to do routine calculations with complex numbers.

  • Filtering and Scipy.Signal [ipynb] [html] Demonstration of filter design, filtering, and frequency plots.

  • Fun with FFT [ipynb] [html] Simple examples showing how to compute FFTs and IFFTs and plot the results.

  • Sampling Theorem—Aliasing [ipynb] [html] A simple demonstration of aliasing.

  • Sine and Square Waves for St. Patrick's Day. [ipynb] [html]

    Part of a guest lecture I gave in Prof. Cimini's ELEG 305 class. I wanted to show the students how Python can be used for signal processing (as an alternative to Matlab). Sine waves, Lissajous plots, square waves.

  • Math Teachers Talk 2014 (Fun with sinusoids--and a little digital music). [ipynb] [html]

    I gave this at the Toyota-UD Applied Math Initiative, 24 July 2014. In attendence were a couple dozen high school (and a few middle school) teachers. The purpose was to show how high school mathematics is used by professionals. This notebook is a lot of fun: sinusiods, Lissajous figures, digital music, beat frequencies, frequency modulation, tremolo.