AMath 482/582
Computational Methods for Data Analysis

Winter 2013
http://www.atmos.washington.edu/~breth/classes/AM582/

MWF 8:30-9:20: Loew 216

This class is being offered on-line through EDGE, which provides live streaming of each class and archived lecture videos. You'll need to sign in with your UW NetID. If you are an EDGE student, you can also get to this site through the UWEO Moodle portal moodle.extn.washington.edu. If you are registered for an on-campus virtual section, it will be functionally identical to being in the on-campus 'A' section, and you are welcome to come to the classroom to listen to the lectures live (we seem to have enough seats). Assignments and grading for 482 sections will be identical to that for 582 sections.

 
Instructor:
Prof. Chris Bretherton
breth@washington.edu
ATG 704, x5-7414
Office hours: MW 1:30-2:20, or by appointment.


TAs:
Xing Fu xingf@uw.edu
Susie Sargysan ssusie@uw.edu
Office hours: Tu and Fr 12:30-1:30 (Gugg 406; also via Skype once we have TA skype accounts).


Schedule   Homework and Exams   Syllabus and supplementary notes     Matlab scripts  

Course Description

Exploratory and objective data analysis methods applied to the physical, engineering, and biological sciences. Brief review of statistical methods and their computational implementation for studying time series analysis, spectral analysis, filtering methods, principal component analysis, orthogonal mode decomposition, and image processing and compression.

Prerequisites

Prior experience with Matlab, linear algebra and Fourier analysis, as provided by Amath 301 and Amath 352 or Math 308 (or Amath 481/581 and/or Amath 584).

Notes

I will loosely follow Prof. Nathan Kutz's course lecture notes. When appropriate, these will be supplemented with my own notes, linked to the syllabus section below. Useful references:

Syllabus and supplementary notes

My supplementary lecture notes are linked here where available.

Review of statistics (3 lectures)

Spectral and time series analysis and filtering (13 lectures)

Dominant pattern analysis for dimensionality reduction (9 lectures)

Data assimilation and model-data fusion (5 lectures)

Grading

Schedule

No class:

Makeup classes for instructor travel days (3:30 in Loew 216 if you want to watch live; otherwise please watch the on-line video before the following Friday class)

Homework and Exams

Item Due Date Download Solutions
Homework #1; uses hw1_dat.mat due We 23 Jan HW #1 solution
Homework #2; uses hw1_dat.mat due We 6 Feb HW #2 solution
Midterm assignment; uses SP500.mat due We 13 Feb; no collaboration Midterm assignment solution
Homework #4; uses raymo.mat due Fr 22 Feb HW #4 solution
Homework #5; uses person.jpg due Mo 4 Mar HW #5 solution
Homework #6; uses USTA.mat due We 13 Mar HW #6 solution
Final assignment; uses abc1.m4a and abc2.m4a. If your Matlab doesn't have audioread or equivalent, load the following .mat files instead: abc1.mat and abc2.mat; these also include the 36 sounds being spoken in each file. due We 20 Mar 5 pm, no collaboration, no late submissions P1 solution script; P2a-c solution P2 solution script

Matlab Scripts

Class Examples

Function X=randB(m,n,p) to return an m x n matrix of Bernoulli-distributed random numbers with parameter p.

CentralLimitEx.m: Central limit theorem example using average of 20 Bernoulli RVs, makes this plot. Uses randB.m

fft_hw1.m: DFT of HW1 dataset. Makes plot of the amplitudes of the complex-valued DFT components.

For the scripts below, I've used Matlab's publish capability to make self-documenting web page versions of the scripts. To extract the original Matlab script from the web page, copy the URL (web address), and in Matlab, type grabcode('URL') to bring up an untitled file with the code in an editor window, e. g. to get the file foo.m that generated the web page foo.html below, type grabcode('http://www.atmos.washington.edu/~breth/classes/AM582/matlab/html/foo.html') and save this to foo.m in the Matlab editor.

nino1.html: Uses 1950-2012 monthly Nino3.4 sea-surface temperature dataset nino.mat. Plots the SST, its power spectrum, and the same for the SST anomaly after the mean and first three harmonics of the annual cycle of SST are removed.

nino2.html: Uses 1950-2012 monthly Nino3.4 sea-surface temperature anomaly dataset SSTA.mat optionally made by nino1.m. Plots subannual SSTA power spectrum with red noise fit, and plots of its autocovariance and autocorrelation sequences.

nino3.html: Uses monthly Nino3.4 sea-surface temperature anomaly (SSTA) time series derived by nino1.m, given in SSTA.mat. Plots windowed power spectra of SSTA, using 20-year overlapping Hanning (cosine-taper) windows, both directly and using Matlab signal-processing toolbox spectrum functions, and compares to red noise fit.

music.html. Plays and does windowed tapered power spectral analysis of short segment of Handel Messiah. A copy of the score suggests that the initial notes of the segment are D, A and F, as also visible from our analysis (which also suggests they are played slightly flat).

music2.html. Low, band and high pass filtering of short segment of Handel Messiah with Fourier and Butterworth filters.

runningmean.html. Power spectrum of running mean filter using DFT.

butterworth.html. Calculation of an Nth order Butterworth filter and plots showing its properties.

wavelet_leleccum_notoolbox.html. Application of single and multilevel Haar wavelet transform to an electricity consumption dataset. Uses leleccum.mat (included in Matlab wavelet toolbox) and my functions dwtHaar.m and idwtHaar.m in place of the Matlab wavelet toolbox, for portability.

wavelet_image.html. Image compression example using 2D multilevel Haar wavelet transform. Uses Uses ngc6543a.jpg and my functions dwt2Haar.m and idwt2Haar.m in place of the Matlab wavelet toolbox, for portability.

wavelet_leleccum_cwt.html. Continuous Haar wavelet transform on the electricity consumption dataset. Requires Matlab wavelet toolbox function cwt.

PCA_SSTA.html. Application of PCA to gridded tropical Pacific sea-surface temperature dataset. Uses SSTPac.mat.

PCA_cities.html. Application of PCA to multiparameter dataset of indices for 9 categories contributing to quality of life in 329 U.S. cities. Uses cities.mat; which is also already included in the Matlab Statistics toolbox.

USTA_regress.html. Example of regression, applied to influence of tropical Pacific sea-surface temperature on U. S. land surface temperature. Uses USTA.mat, SSTPac.mat, and SSTA.mat.

MCA_PSSTA_USTA.html. Maximum covariance analysis of coupling of tropical Pacific sea-surface temperature and U. S. land surface temperature. Uses SSTPac.mat and USTA.mat.

classify_one_two.html. Classify spoken 'one's and 'two's using DWT power spectral analysis and PCA. Uses dwtcolHaar.m, ones.m4a, twos.m4a, and ones-twos.m4a. If your Matlab doesn't have audioread or equivalent, load the following .mat files instead: ones.mat, twos.mat, ones-twos.mat ; these also include the 20 sounds being spoken in each file.

sequential_estimation_simple1D.html. Sequential state estimation (Kalman filter) on the simple 1D system x_n = ax_{n-1}.

kalman2.html. Kalman filter on a multivariate ball-tracking problem.