<< Chapter < Page | Chapter >> Page > |
Just for a change, we’re going to start with…Professor Snape’s grade matrix!
Poison | Cure | Love philter | Invulnerability | |
---|---|---|---|---|
Granger, H | 100 | 105 | 99 | 100 |
Longbottom, N | 80 | 90 | 85 | 85 |
Malfoy, D | 95 | 90 | 0 | 85 |
Potter, H | 70 | 75 | 70 | 75 |
Weasley, R | 85 | 90 | 95 | 90 |
As you doubtless recall, the good Professor calculated final grades by the following computation: “Poison” counts 30%, “Cure” counts 20%, “Love philter” counts 15%, and the big final project on “Invulnerability” counts 35%. He was able to represent each student’s final grade as the product of a row matrix (for the student) times a column matrix (for weighting).
Just to make sure you remember, write the matrix multiplication that Dr. Snape would use to find the grade for “Malfoy, D.” Make sure to include both the two matrices being multiplied, and the final result!
I’m sure you can see the problem with this, which is that you have to write a separate matrix multiplication problem for every student. To get around that problem, we’re going to extend our definition of matrix multiplication so that the first matrix no longer has to be a row—it may be many rows. Each row of the first matrix becomes a new row in the answer. So, Professor Snape can now multiply his entire student matrix by his weighting matrix, and out will come a matrix with all his grades!
Let’s try it. Do the following matrix multiplication. The answer will be a 3×1 matrix with the final grades for “Malfoy, D,” “Potter, H,” and “Weasley, R.”
OK, let’s step back and review where we are. Yesterday, we learned how to multiply a row matrix times a column matrix. Now we have learned that you can add more rows to the first matrix, and they just become extra rows in the answer.
For full generality of matrix multiplication, you just need to know this: if you add more columns to second matrix, they become additional columns in the answer! As an example, suppose Dr. Snape wants to try out a different weighting scheme, to see if he likes the new grades better. So he adds the new column to his weighting matrix. The first column represents the original weighting scheme, and the second column represents the new weighting scheme. The result will be a 3x2 matrix where each row is a different student and each column is a different weighting scheme . Got all that? Give it a try now!
Notification Switch
Would you like to follow the 'Advanced algebra ii: activities and homework' conversation and receive update notifications?