Chapter 11 Exercises: Matrix Operations

Consider the following matrices:

\[ \mathbf{X} = \begin{bmatrix}2 & 3 \\1 & 2 \end{bmatrix} \qquad \mathbf{Y} = \begin{bmatrix}3 & 4 \\2 & 1 \end{bmatrix} \qquad \mathbf{Z} = \begin{bmatrix}2 & 3 & 1 \\5 & 6 & 8\\9 & 4 & 7 \end{bmatrix} \]

  1. Find \(\mathbf{X} + \mathbf{Y}\).
  1. Find \(\mathbf{X} - \mathbf{Y}\).
  1. Find \(3 \mathbf{Z}\).
  1. Find \(-2 \mathbf{X} + 4\mathbf{Y}\).

Consider the following matrices:

\[ \mathbf{A} = \begin{bmatrix}0 & 6 \\5 & 1 \end{bmatrix} \qquad \mathbf{B} = \begin{bmatrix}0 & 5 \\2 & \frac{1}{2} \end{bmatrix} \qquad \mathbf{C} = \begin{bmatrix}6 & 2 & 1 \\5 & 3 & 1\\8 & 4 & 1 \end{bmatrix} \qquad \mathbf{D} = \begin{bmatrix}0& 1 & 4 & 6 \\1 & 2 & 5 & -2\\1 & 3 & 2 & 8 \end{bmatrix} \]

  1. Is AB conformable?
  1. Is BC conformable?
  1. Is the product where we premultiply D by C conformable?

Statistics Example: Weights

  1. Consider the scores for five students on four course exams (each out of 100 points) shown in matrix X. The final percentage in the course is based on the following weighting: the first and second exams are worth 10% of the course, the third exam is worth 30% of the course, and the fourth exam is worth 50% of the course. These weights are presented in the column vector w. Use R to find the final percentage for each student by postmultiplying the score matrix by the weight vector.

\[ \mathbf{X} = \begin{bmatrix}32 & 54 & 56 & 21 \\42 & 23 & 52 & 35 \\ 16 & 41 & 54 & 56 \\ 58 & 52 & 31 & 24 \\ 41 & 50 & 42 & 40 \end{bmatrix} \qquad \mathbf{w} = \begin{bmatrix} 0.10 \\ 0.10 \\ 0.30 \\ 0.50 \end{bmatrix} \]