σμimplied vol · KKmax(S−K,0)udβρᵢⱼfat tailsPnL · drawdownyield · TdSₜ = μSₜ dt + σSₜ dWₜC = S·N(d₁) − K·e⁻ʳᵀ·N(d₂)σₚ² = wᵀΣwd₁ = [ln(S/K) + (r + σ²⁄2)T] ⁄ σ√T∂V/∂t + ½σ²S²·∂²V/∂S² + rS·∂V/∂S − rV = 0Sharpe = (Rₚ − R_f) ⁄ σₚVaR₉₉ = μ − 2.33σρ = Cov(X,Y) ⁄ σₓσᵧE[Rₚ] = Σ wᵢ·E[Rᵢ]φ(x) = e^(−x²/2) ⁄ √2πE[Rᵢ] = R_f + βᵢ(E[Rₘ] − R_f)dXₜ = θ(μ − Xₜ)dt + σ dWₜσ²ₜ = ω + α·ε²ₜ₋₁ + β·σ²ₜ₋₁C − P = S − K·e⁻ʳᵀΔ = ∂V/∂S Γ = ∂²V/∂S²p = (e^(rΔt) − d) ⁄ (u − d)rₜ = ln(Pₜ ⁄ Pₜ₋₁)E[Xₜ₊₁ | ℱₜ] = Xₜf* = (bp − q) ⁄ bz = (x − μ) ⁄ σP(N=k) = λᵏe^(−λ) ⁄ k!Θ = −∂V/∂Tν = S·φ(d₁)·√Tmin wᵀΣw s.t. wᵀμ = μ*∫Σ∂∞λ
uantCraft AcademyRoadmapsSkills
Ctrl K
AO
+1.2k Learners
LoginJoin ↗
RoadmapsSkills
AO
+1.2k Learners
Login
  • English
  • Français
  • Español
  • العربية
  • Português
  • Deutsch
  • 日本語
  • 中文
σμimplied vol · KKmax(S−K,0)udβρᵢⱼfat tailsPnL · drawdownyield · TdSₜ = μSₜ dt + σSₜ dWₜC = S·N(d₁) − K·e⁻ʳᵀ·N(d₂)σₚ² = wᵀΣwd₁ = [ln(S/K) + (r + σ²⁄2)T] ⁄ σ√T∂V/∂t + ½σ²S²·∂²V/∂S² + rS·∂V/∂S − rV = 0Sharpe = (Rₚ − R_f) ⁄ σₚVaR₉₉ = μ − 2.33σρ = Cov(X,Y) ⁄ σₓσᵧE[Rₚ] = Σ wᵢ·E[Rᵢ]φ(x) = e^(−x²/2) ⁄ √2πE[Rᵢ] = R_f + βᵢ(E[Rₘ] − R_f)dXₜ = θ(μ − Xₜ)dt + σ dWₜσ²ₜ = ω + α·ε²ₜ₋₁ + β·σ²ₜ₋₁C − P = S − K·e⁻ʳᵀΔ = ∂V/∂S Γ = ∂²V/∂S²p = (e^(rΔt) − d) ⁄ (u − d)rₜ = ln(Pₜ ⁄ Pₜ₋₁)E[Xₜ₊₁ | ℱₜ] = Xₜf* = (bp − q) ⁄ bz = (x − μ) ⁄ σP(N=k) = λᵏe^(−λ) ⁄ k!Θ = −∂V/∂Tν = S·φ(d₁)·√Tmin wᵀΣw s.t. wᵀμ = μ*∫Σ∂∞λ
uantCraft AcademyRoadmapsSkills
Ctrl K
AO
+1.2k Learners
LoginJoin ↗
RoadmapsSkills
AO
+1.2k Learners
Login
  • English
  • Français
  • Español
  • العربية
  • Português
  • Deutsch
  • 日本語
  • 中文
Linear Algebra skill›Module 1 · Vectors and matrices›Topic 1.2·~40 minBeginner

Matrices as linear maps

Skill positionModule 1 of 4 · Topic 2 of 3
1.2 Matrices as linear maps
—Lab score— / 100Total XP—Streak—

A matrix is a machine

An m×nm\times nm×n matrix AAA turns every input vector x\mathbf{x}x with nnn entries into an output vector AxA\mathbf{x}Ax with mmm entries. The map is linear: A(ax+by)=aAx+bAyA(a\mathbf{x}+b\mathbf{y})=aA\mathbf{x}+bA\mathbf{y}A(ax+by)=aAx+bAy, so scaling and adding inputs scales and adds outputs. In finance, if column jjj of AAA holds how each of mmm assets responds to risk factor jjj, then AxA\mathbf{x}Ax is the vector of asset returns for the factor moves x\mathbf{x}x.

Ax=x1a1+x2a2+⋯+xnanA\mathbf{x}=x_1\mathbf{a}_1+x_2\mathbf{a}_2+\dots+x_n\mathbf{a}_nAx=x1​a1​+x2​a2​+⋯+xn​an​(1)

Read the product by columns: AxA\mathbf{x}Ax is a combination of the columns aj\mathbf{a}_jaj​ of AAA, weighted by the entries of x\mathbf{x}x. Taking x=e1=(1,0,…,0)\mathbf{x}=\mathbf{e}_1=(1,0,\dots,0)x=e1​=(1,0,…,0) picks out the first column, so the columns of a matrix are the images of the unit vectors. That is all you need to write down any linear map: decide where each unit vector goes and put the results in the columns.

Reading and writing a matrixFor A=(1234)A=\begin{pmatrix}1&2\\3&4\end{pmatrix}A=(13​24​) the columns (1,3)(1,3)(1,3) and (2,4)(2,4)(2,4) are the images of e1\mathbf{e}_1e1​ and e2\mathbf{e}_2e2​. For x=(1,1)\mathbf{x}=(1,1)x=(1,1): Ax=1⋅(1,3)+1⋅(2,4)=(3,7)A\mathbf{x}=1\cdot(1,3)+1\cdot(2,4)=(3,7)Ax=1⋅(1,3)+1⋅(2,4)=(3,7). A rotation by 90 degrees counterclockwise sends e1→(0,1)\mathbf{e}_1\to(0,1)e1​→(0,1) and e2→(−1,0)\mathbf{e}_2\to(-1,0)e2​→(−1,0), so its matrix is (0−110)\begin{pmatrix}0&-1\\1&0\end{pmatrix}(01​−10​).
  • Linear map: f(ax+by)=af(x)+bf(y)f(a\mathbf{x}+b\mathbf{y})=af(\mathbf{x})+bf(\mathbf{y})f(ax+by)=af(x)+bf(y). Every linear map between finite-dimensional spaces is a matrix.
  • Columns: the images of the unit vectors, so AejA\mathbf{e}_jAej​ is column jjj.
  • Zero goes to zero: a linear map always sends 0\mathbf{0}0 to 0\mathbf{0}0.
Linear is not the same as a straight linef(x)=2x+1f(x)=2x+1f(x)=2x+1 draws a straight line but is not linear, because f(0)=1≠0f(0)=1\neq0f(0)=1=0. Adding a constant (an intercept) makes a map affine. Regression handles it by adding a column of ones to the data, which turns the affine problem into a linear one.

Lab · what's graded

  • From images to a matrix20 pts
  • A matrix times a vector15 pts
  • Spot the map that is not linear15 pts
  • A rotation20 pts
  • Matrices and their effects15 pts
  • Why columns are images15 pts
0/ 6 answered
Tasks
1Matrix · vector20 ptsNot answered

A linear map sends e1→(2,1)\mathbf{e}_1\to(2,1)e1​→(2,1) and e2→(0,3)\mathbf{e}_2\to(0,3)e2​→(0,3). Fill in its matrix AAA.

A=A =A=
2Numeric answer15 ptsNot answered

For A=(1234)A=\begin{pmatrix}1&2\\3&4\end{pmatrix}A=(13​24​) and x=(1,−1)\mathbf{x}=(1,-1)x=(1,−1), compute the second entry of AxA\mathbf{x}Ax.

(Ax)2=(Ax)_2 =(Ax)2​=accepted: ± 0.001
3Choice15 ptsNot answered

Which of these maps from the plane to the plane is NOT linear?

4Matrix · vector20 ptsNot answered

Fill in the matrix of the rotation by 90 degrees counterclockwise: it sends e1→(0,1)\mathbf{e}_1\to(0,1)e1​→(0,1) and e2→(−1,0)\mathbf{e}_2\to(-1,0)e2​→(−1,0).

R=R =R=
5Match15 ptsNot answered

Match each matrix to what it does to a point (x,y)(x,y)(x,y).

Pick the partner of each item on the left.

(2002)\begin{pmatrix}2&0\\0&2\end{pmatrix}(20​02​)
(1000)\begin{pmatrix}1&0\\0&0\end{pmatrix}(10​00​)
(0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}(01​10​)
(100−1)\begin{pmatrix}1&0\\0&-1\end{pmatrix}(10​0−1​)
6Explain in words15 ptsNot answered

In two sentences, explain why the first column of a matrix AAA is the image of the unit vector e1\mathbf{e}_1e1​.

Math modeKeyboard or LaTeX inputTask 1 of 6 · Ctrl ⏎ to check

Log in to run your code.

Every lecture is free to read. Create an account or log in to run code, run tests and submit this lab.

  • In-browser IDE with a bash terminal — nothing to install
  • Instant grading, XP and your place on the skill
Create an accountLog in
OR
Continue with GitHub