Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Practice questions

1. Let u = (1, -3, 4) and v = (3, 4, 7) be two vectors in R3. Find


(i) a vector w perpendicular to v
(ii) distance between the points represented by the vectors u and v
(iii) the vector projvu, projection of u onto v
(iv) perpendicular distance from the point represented by the vector u to the line
through vector v
(iv) the cross product n of the two vectors u and v, and show that n is perpendicular on
both u and v
(v) Show that the cross product n is perpendicular to any vector that can be expressed
as a linear combination of u and v
(vi) Find the equation of the plane containing the vectors u and v and the origin
(vii) Assume (1, -3, 4) and (3, 4, 7) are coordinates of two points P and Q. Find the
equation of the hyperplane containing these two points and the vector perpendicular to
the hyperplane is given by n.

2. Suppose we have points at the locations: x1=(1,3), x2=(4,7), x3=(2,9), x4=(2,2), x5=(3,6). Suppose,
the k-means algorithm (k = 2) initially picks centroids at (1,4) and (4,4).
(i) Which points will be assigned to each centroid?
(ii) What will be the location of the new centers?
(iii) if c1 is one the centroids, is the following statements true or false: z = c 1, is the vector for
which minimized. Justify your answer.

3. Show that for a square matrix A, Ax=b has a solution for all b if and only if A has a right inverse.

4. Show that if a square matrix A has a left inverse X and a right inverse Y, then X = Y. (hint: first
show X = XAY).

You might also like