Search the School
37 results for “matrix”
Lessons (8)
- Matrix TransposeThe transpose swaps rows and columns; we look at its properties, the rule for the transpose of a product, and its role in writing the dot product, the Gram matrix and backpropagation. The ma…
- Matrix InverseThe inverse undoes the effect of a linear map; it is used to solve linear systems and in the closed-form solution of linear regression, with the caveat that practical numerical solvers avoid…
- CovarianceCovariance measures how two variables change together, and the covariance matrix gathers the covariances of all pairs of features; it is the matrix that PCA decomposes. Does a large house ar…
- Graphs and the Adjacency MatrixA graph is nodes and edges; it is represented by the adjacency matrix A, and its powers count walks: the entry (A^k)_{ij} is the number of walks of length k from i to j. Breadth-first se…
- MatricesA matrix is a rectangular table of numbers of size m×n; we look at its types, its addition and multiplication by a number, and how datasets and layer weights are stored in it. A matrix is a…
- Matrix MultiplicationThe row-by-column rule for matrix multiplication, the shape compatibility condition, non-commutativity, and how a neural network layer computes its outputs by multiplying a matrix by a vecto…
- DeterminantsThe determinant is a number extracted from a square matrix that measures how area or volume changes under the linear map, and it determines invertibility. Every square matrix has a character…
- Partial DerivativesFor multivariable functions we differentiate with respect to one variable while holding the others fixed; this is how we learn the effect of each weight on the loss in isolation. The loss fu…
Concepts (8)
- MatrixA rectangular arrangement of numbers in m rows and n columns, representing a dataset or a linear transformation. The weight matrix of a fully connected layer.
- Identity MatrixA square matrix with ones on its diagonal and zeros elsewhere; it is the identity element of matrix multiplication. I_2 = [[1,0],[0,1]]
- Matrix InverseThe matrix whose product with the original matrix gives the identity matrix; it exists only for square non-singular matrices. Inverse of [[4,7],[2,6]] = [[0.6,-0.7],[-0.2,0.4]]
- Hessian MatrixThe matrix of second partial derivatives of a multivariate function, describing its curvature. The Hessian of x²+y² is 2I.
- Jacobian MatrixThe matrix of first partial derivatives of a vector-valued function; each row is the gradient of one component. Used in backpropagation and in change of variables.
- Covariance MatrixA symmetric positive semi-definite matrix that holds the variances of the variables on its diagonal and the covariances off it. Decomposed in PCA
- Adjacency MatrixA matrix representation of a graph whose entry is 1 when an edge exists; its powers count walks. (A²)_{BD} = 2
- Transition MatrixA matrix of transition probabilities between states; each row sums to 1. (P²)₁₁ = 0.57
Tracks (1)
Labs (4)
- Discrete Mathematics LabA permutation and combination calculator and Pascal's triangle, a graph written as text with its adjacency matrix, breadth-first search (BFS) and path counts from powers of the adjacency mat…
- Markov Chains LabAn editable transition matrix with the evolving distribution, the stationary distribution and its second eigenvalue; a simulation of the chain's path comparing empirical frequencies with the…
- Kernels & Function Spaces LabThe Gram matrix of a Gaussian, polynomial or linear kernel with a positive semi-definiteness check, kernel ridge regression with the effect of γ and λ, and the L² inner product, orthogonalit…
- Linear Algebra LabVector operations (addition, subtraction, dot product, length, distance and cosine similarity), matrix operations (addition, multiplication, transpose, determinant and inverse), eigenvalues…
Terminology (8)
- MatrixA rectangular arrangement of numbers in rows and columns. The weight matrix
- Identity MatrixA square matrix with ones on its diagonal and zeros elsewhere. AI = A
- Matrix TransposeThe matrix obtained by swapping rows and columns. (AB)ᵀ = BᵀAᵀ
- Matrix InverseThe matrix whose product with the original gives the identity matrix. AA⁻¹ = I
- Matrix RankThe number of linearly independent columns (or rows); it equals the number of non-zero singular values. The rank of [[1,2],[2,4]] is 1
- Symmetric MatrixA square matrix equal to its transpose. The covariance matrix
- Matrix TraceThe sum of the main diagonal entries; it equals the sum of the eigenvalues. tr [[2,1],[1,2]] = 4
- Jacobian MatrixThe matrix of first partial derivatives of a vector function.
Questions (8)
- A rotation matrix changes the length of a vector.A rotation matrix changes the length of a vector.
- How many elements does a \(3\times 4\) matrix have?How many elements does a 3\times 4 matrix have?
- A \(2\times3\) matrix can be added to a \(3\times2\) matrix.A 2\times3 matrix can be added to a 3\times2 matrix.
- A square matrix that equals its transpose is called a ______ matrix.A square matrix that equals its transpose is called a ______ matrix.
- A dataset has 1000 samples, each with 20 features. What are the dimensions of the data matrix \(X\) if the rows are samples?A dataset has 1000 samples, each with 20 features. What are the dimensions of the data matrix X if the rows are samples?
- What are the dimensions of the result when a \(4\times 3\) matrix is multiplied by a \(3\times 2\) matrix?What are the dimensions of the result when a 4\times 3 matrix is multiplied by a 3\times 2 matrix?
- A fully connected layer receives 784 inputs and outputs 128 values. What are the dimensions of the weight matrix \(W\) in the formula \(\mathbf{z}=W\mathbf{x}+\mathbf{b}\)?A fully connected layer receives 784 inputs and outputs 128 values. What are the dimensions of the weight matrix W in the formula \mathbf{z}=W\mathbf{x}+\mathbf{b}?
- What are the dimensions of the transpose of a \(5\times 2\) matrix?What are the dimensions of the transpose of a 5\times 2 matrix?
