Maths

Dot product intuition

There are two commonly seen definitions of the dot product, which at first glance don’t seem obviously related: A bridge between these two perspectives comes from thinking about linear maps — particularly, the linear map that projects any vector onto a line defined by a unit vector . This framing is nicely illustrated in 3Blue1Brown’s

Dot product intuition Read More »

Linear Regression

There are many different ways to interpret the linear regression framework. Below I document the ones I have found useful. The general problem is that we want to predict some variable Y based on some inputs X1 up to Xp. If we assume this relationship is linear then we would have Note here we are

Linear Regression Read More »

Matrix calculus cheatsheet

I often get lost in the indices when dealing with differentiation wrt multi-dimensional quantities. So writing up some intuitions and identities that are useful. The cheatsheet from Imperial College Department of Computing is also quite useful (at the bottom of this post): Gradient points in direction of steepest ascent Consider a function or two variables

Matrix calculus cheatsheet Read More »