0
0
R Programmingprogramming~5 mins

Transpose and inverse in R Programming - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the transpose of a matrix do?
The transpose flips a matrix over its diagonal, turning rows into columns and columns into rows.
Click to reveal answer
beginner
How do you find the transpose of a matrix in R?
Use the function t(). For example, t(matrix) returns the transpose of matrix.
Click to reveal answer
beginner
What is the inverse of a matrix?
The inverse of a matrix is another matrix that, when multiplied with the original, gives the identity matrix. It 'undoes' the effect of the original matrix.
Click to reveal answer
beginner
How do you calculate the inverse of a matrix in R?
Use the function solve(). For example, solve(matrix) returns the inverse of matrix if it exists.
Click to reveal answer
intermediate
What happens if you try to invert a matrix that is not invertible?
R will give an error because the inverse does not exist. Such matrices are called singular or non-invertible.
Click to reveal answer
Which R function is used to get the transpose of a matrix?
Ainv()
Btranspose()
Csolve()
Dt()
What does the inverse of a matrix multiplied by the original matrix produce?
AZero matrix
BDiagonal matrix
CIdentity matrix
DTranspose matrix
Which function in R calculates the inverse of a matrix?
At()
Bsolve()
Cinv()
Dinverse()
If a matrix is singular, what happens when you try to invert it in R?
AGives an error
BReturns zero matrix
CReturns the original matrix
DReturns identity matrix
What is the result of transposing a 3x2 matrix?
A2x3 matrix
B3x2 matrix
C2x2 matrix
D3x3 matrix
Explain how to find the transpose and inverse of a matrix in R, including what functions to use and what the results mean.
Think about flipping rows and columns for transpose, and undoing matrix multiplication for inverse.
You got /6 concepts.
    Describe what happens when you try to invert a matrix that is not invertible in R and why.
    Consider what it means for a matrix to have no inverse.
    You got /4 concepts.