Topic: | Math@UNC environment |
Post date: | May 14, 2020 |
Due date: | May 15, 2020 |
This homework is meant as a tutorial on matrix computations, in particular:
vector addition and scaling;
vector norms;
inner products;
matrix-vector products;
matrix-matrix products.
Consider random walks on the real line with unit steps starting from the origin. What is the mean distance and mean squared distance from the origin?
Show that for , defined by
is a norm in .
Show that for , defined by
is not a norm in .
Show that for , defined by
is a scalar product in .
Show that for , defined by
is not a scalar product in .
Find examples of matrices for which , and .
Electroencephalograms (EEGs) are recordings of the electric potential on cranium skin. Research on brain activity uses EEGs to determine specific activity patterns in the brain. For example, epileptic seizures have a distinctive EEG signature. EEG data can be loaded from the course data directory.
octave] |
load /home/student/courses/MATH547ML/data/eeg/eeg; |
octave] |
data=EEG.data'; [m n]=size(data); disp([m n]); |
30504 32
There are sensor recordings with components each. A first common operation is scaling of the data.
octave] |
pdata=data./max(data)+meshgrid(0:n-1,0:m-1); |
octave] |
hold on; for j=1:n plot(pdata(:,j)); end; hold off; |
octave] |
cd /home/student/courses/MATH547ML |
octave] |
mkdir homework; cd homework |
octave] |
mkdir hw01; cd hw01 |
octave] |
print -deps eeg.eps; |
GL2PS info: OpenGL feedback buffer
overflow
warning: gl2ps_renderer::draw: retrying with buffer
size: 8.4E+06 B
GL2PS info: OpenGL feedback buffer overflow
warning: gl2ps_renderer::draw: retrying
with buffer size: 1.7E+07 B
octave] |
![]() |
Over some time subinterval can the data from a sensor be expressed as a function of data from another sensor?
Partition sensor data into time subintervals. Over each subinterval, evaluate the -norm of centered data, for , . Plot the -norms over the entire time history.
Over some time interval, determine the angle between sensor data. Is sensor data orthogonal? Plot the angle between sensor data over the entire time history.
Use template from Lesson01 to construct a representation of the data through periodic functions.