hw12
hw12
1
2
b) What is the length of the vector .. ? Remark: This is known
.
24
X =
.
.
.
is the centered form of x. Its expectation is
xn − m
3 If ~x, ~y are two vectors, we get data points (x1, y1), (x2, y2), ...(xn, yn)
in the plane. The line y = ax + b is called the best linear fit.
We have b = E[y] − aE[x], where a = Cov[X, Y ]/|X|2. Draw the
5 data points from problem 2 and find the best fit y = ax + b.
4 An orthogonal basis in Rn for which every vector has either entries
−1 or 1 is called a Walsh basis. The corresponding
matrix is a
1 1 1 1
1 −1 1 −1
Walsh matrix. Check that the columns of W = /2
1 1 −1 −1
1 −1 −1 1
√
The length of a vector is is |~v | = ~v · ~v . The vector
~v /|~v | is called a unit vector. The Cauchy-Schwarz
inequality |~v · w| ~ ≤ |~v ||w| ~ allows to define the angle α
by cos(α) = (~v · w)/(|~ ~ v | · |w|).
~ The number cos(α) is
called the correlation coefficient. If it is positive,
the vectors are positively correlated, if it is negative
they are negatively correlated. Orthogonal vectors
are uncorrelated. A basis is an orthonormal basis, if all
vectors are perpendicular and have length 1. If they are
just orthogonal, they form an orthogonal basis. If we have
an orthonormal basis of V , and Q be the matrix containing
the basis vectors as column vectors. then the projection
onto the space V is given by the matrix P = QQT , where
QT is the transpose matrix.