Recall & Review
beginner
What is a matrix in R?
A matrix in R is a two-dimensional array that holds elements of the same type arranged in rows and columns, like a table.
Click to reveal answer
beginner
Why are matrices good for tabular math?
Matrices organize data in rows and columns, making it easy to perform math operations like addition, multiplication, and transformations on the whole table at once.
Click to reveal answer
intermediate
How does matrix multiplication relate to tabular math?
Matrix multiplication combines rows of one matrix with columns of another, allowing complex calculations like transforming data or solving systems of equations in a tabular form.
Click to reveal answer
beginner
What happens if you try to add two matrices of different sizes in R?
R will give an error because matrices must have the same dimensions to add their elements one by one.
Click to reveal answer
intermediate
How does R store matrices internally?
R stores matrices as vectors with a dimension attribute, so it treats the data as a single list but knows how to arrange it in rows and columns.
Click to reveal answer
What is the main reason matrices are used for tabular math?
✗ Incorrect
Matrices arrange data in rows and columns, which makes math operations on tables straightforward.
In R, what must be true to add two matrices?
✗ Incorrect
Matrix addition requires both matrices to have the same number of rows and columns.
How does matrix multiplication combine data?
✗ Incorrect
Matrix multiplication pairs rows from the first matrix with columns from the second to calculate each element.
What type of data can a matrix in R hold?
✗ Incorrect
Matrices in R must have all elements of the same data type.
How does R internally represent a matrix?
✗ Incorrect
R stores matrices as vectors with extra information about rows and columns.
Explain why matrices are useful for performing math on tables of data.
Think about how tables look and how math works on them.
You got /4 concepts.
Describe how matrix multiplication works and why it is important for tabular math.
Imagine matching rows and columns like pairing items.
You got /4 concepts.