This page is hosted on AFS file server space, which is being shut down on November 13, 2018. If you are seeing this message, your service provider needs to take steps now. Visit for more information.

Psych 285: Computational Statistics
and Statistical Visualization

Professor Forrest Young

Assignment 2
Functional Programming - 2
Due Friday, Feb 2

Write NORMALIZE, a function that normalizes a matrix X (i.e., makes the mean of each column Mean and the standard deviation StDev).

The function should take a matrix X as its only required argument, with keyword arguments Mean (default 0.0) and StDev (default 1.0).

The function should return a list whose first element is the normalized matrix, second element is a list or vector of column means of X, and third elements is a list or vector of column standard deviations of X.

You should base this function on one of the two CENTER functions.

Please send your code to me by e-mail before class on the due date.

To get in touch: