Notation Decoder Paste an equation from a machine-learning paper, in LaTeX. See it rendered, with every symbol and construct explained in the order you read it.
LaTeX Field Auto-detect Attention and transformers Reinforcement learning Probability and statistics Q, K, V and a few other letters mean different things in attention, RL and statistics papers.
Try: A loss Attention Regularized training LSTM output VAE regularizer Gradient step Low-rank approximation
L = β E x βΌ p [ log β‘ q ΞΈ ( x ) ] {\htmlClass{nd-1}{\mathcal{L}}} = -{\htmlClass{nd-2}{\mathbb{E}_{x {\htmlClass{nd-3}{\sim}} {\htmlClass{nd-4}{p}}}}}[{\htmlClass{nd-5}{\log}} {\htmlClass{nd-6}{{\htmlClass{nd-4}{q}}_{\htmlClass{nd-7}{\theta}}}}({\htmlClass{nd-8}{x}})] L = β E x βΌ p β [ log q ΞΈ β ( x )] Loss (β)
The loss: the number training tries to make small. Also written L, J(ΞΈ) or β.
E x βΌ p \mathbb{E}_{x \sim p} E x βΌ p β Expectation
The expected value: the average of what is inside, weighted by the probabilities in the subscript.
the subscript x βΌ p x \sim p x βΌ p says which variable is random and what it is drawn from Distributed as (tilde)
βIs drawn fromβ or βis distributed asβ: x ~ p means x is a sample from the distribution p.
Probability p(x)
A probability or probability density; p is usually the true or model distribution, q an approximation.
Logarithm
A logarithm, almost always the natural log (base e) in ML papers.
Subscript (index or label)
A subscript picks an element (xα΅’), a time step (h_t), a named copy (W_q), or the parameters (p_ΞΈ).
a subscript ΞΈ \theta ΞΈ names the parameters: the function or distribution is the one with parameters ΞΈ \theta ΞΈ Theta
The modelβs parameters: all of its weights and biases, as one collection.
Decoded in your browser: nothing you paste is sent anywhere. Copy a link to share an expression; it travels in the part of the address after #, which browsers do not send to servers.
Books by Spencer Uresk, who made this site Books that work the math behind this notation by hand, and two that follow deep learning through real code.
Deep Learning Math by Hand
250 problems on gradients, backprop, attention, normalization and optimizers.
On Amazon
Linear Algebra for Machine Learning by Hand
From matrix products and tensor shapes to the SVD, PCA, attention and LoRA.
On Amazon
Probability & Statistics for Machine Learning
Bayes, maximum likelihood, Markov chains and KL divergence.
On Amazon
Calculus I & II
Derivatives, integrals and limits.
On Amazon
Deep Learning, Traced
One image and one sentence followed through a CNN and a transformer, from the arithmetic to the PyTorch.
On Amazon About the book
Build a Deep Learning Framework in Rust
Tensors, autograd, optimizers and a training loop from scratch, the way PyTorch is built.
On Amazon About the book
As an Amazon Associate I earn from qualifying purchases.
Famous equations, decoded Scaled dot-product attention Attention β‘ ( Q , K , V ) = softmax β‘ ( Q K β€ d k ) V \operatorname{Attention}(Q, K, V) = \operatorname{softmax}\left(\frac{QK^\top}{\sqrt{d_k}}\right)V Attention ( Q , K , V ) = softmax ( d k β β Q K β€ β ) V Softmax softmax β‘ ( z ) i = e z i β j = 1 K e z j \operatorname{softmax}(\mathbf{z})_i = \frac{e^{z_i}}{\sum_{j=1}^{K} e^{z_j}} softmax ( z ) i β = β j = 1 K β e z j β e z i β β Cross-entropy loss L ( ΞΈ ) = β 1 N β i = 1 N β k = 1 K y k ( i ) log β‘ y ^ k ( i ) \mathcal{L}(\theta) = -\frac{1}{N}\sum_{i=1}^{N}\sum_{k=1}^{K} y^{(i)}_k \log \hat{y}^{(i)}_k L ( ΞΈ ) = β N 1 β β i = 1 N β β k = 1 K β y k ( i ) β log y ^ β k ( i ) β Adam update g t = β ΞΈ f t ( ΞΈ t β 1 ) m t = Ξ² 1 m t β 1 + ( 1 β Ξ² 1 ) β g t v t = Ξ² 2 v t β 1 + ( 1 β Ξ² 2 ) β g t 2 m ^ t = m t 1 β Ξ² 1 t , v ^ t = v t 1 β Ξ² 2 t ΞΈ t = ΞΈ t β 1 β Ξ± m ^ t v ^ t + Ο΅ \begin{aligned} g_t &= \nabla_\theta f_t(\theta_{t-1}) \\ m_t &= \beta_1 m_{t-1} + (1 - \beta_1)\, g_t \\ v_t &= \beta_2 v_{t-1} + (1 - \beta_2)\, g_t^2 \\ \hat{m}_t &= \frac{m_t}{1 - \beta_1^t}, \quad \hat{v}_t = \frac{v_t}{1 - \beta_2^t} \\ \theta_t &= \theta_{t-1} - \alpha \frac{\hat{m}_t}{\sqrt{\hat{v}_t} + \epsilon} \end{aligned} g t β m t β v t β m ^ t β ΞΈ t β β = β ΞΈ β f t β ( ΞΈ t β 1 β ) = Ξ² 1 β m t β 1 β + ( 1 β Ξ² 1 β ) g t β = Ξ² 2 β v t β 1 β + ( 1 β Ξ² 2 β ) g t 2 β = 1 β Ξ² 1 t β m t β β , v ^ t β = 1 β Ξ² 2 t β v t β β = ΞΈ t β 1 β β Ξ± v ^ t β β + Ο΅ m ^ t β β β Layer normalization LayerNorm β‘ ( x ) = Ξ³ β x β ΞΌ Ο 2 + Ο΅ + Ξ² , ΞΌ = 1 d β i = 1 d x i , Ο 2 = 1 d β i = 1 d ( x i β ΞΌ ) 2 \operatorname{LayerNorm}(\mathbf{x}) = \boldsymbol{\gamma} \odot \frac{\mathbf{x} - \mu}{\sqrt{\sigma^2 + \epsilon}} + \boldsymbol{\beta}, \quad \mu = \frac{1}{d}\sum_{i=1}^{d} x_i, \quad \sigma^2 = \frac{1}{d}\sum_{i=1}^{d} (x_i - \mu)^2 LayerNorm ( x ) = Ξ³ β Ο 2 + Ο΅ β x β ΞΌ β + Ξ² , ΞΌ = d 1 β β i = 1 d β x i β , Ο 2 = d 1 β β i = 1 d β ( x i β β ΞΌ ) 2 RMSNorm RMSNorm β‘ ( x ) = x RMS β‘ ( x ) β g , RMS β‘ ( x ) = 1 d β i = 1 d x i 2 + Ο΅ \operatorname{RMSNorm}(\mathbf{x}) = \frac{\mathbf{x}}{\operatorname{RMS}(\mathbf{x})} \odot \mathbf{g}, \quad \operatorname{RMS}(\mathbf{x}) = \sqrt{\frac{1}{d}\sum_{i=1}^{d} x_i^2 + \epsilon} RMSNorm ( x ) = RMS ( x ) x β β g , RMS ( x ) = d 1 β β i = 1 d β x i 2 β + Ο΅ β The ELBO log β‘ p ΞΈ ( x ) β₯ E q Ο ( z β£ x ) [ log β‘ p ΞΈ ( x β£ z ) ] β D K L ( q Ο ( z β£ x ) β β₯ β p ( z ) ) \log p_\theta(\mathbf{x}) \geq \mathbb{E}_{q_\phi(\mathbf{z} \mid \mathbf{x})}\left[\log p_\theta(\mathbf{x} \mid \mathbf{z})\right] - D_{\mathrm{KL}}\left(q_\phi(\mathbf{z} \mid \mathbf{x}) \,\|\, p(\mathbf{z})\right) log p ΞΈ β ( x ) β₯ E q Ο β ( z β£ x ) β [ log p ΞΈ β ( x β£ z ) ] β D KL β ( q Ο β ( z β£ x ) β₯ p ( z ) ) KL divergence D K L ( P β β₯ β Q ) = β x P ( x ) log β‘ P ( x ) Q ( x ) D_{\mathrm{KL}}(P \,\|\, Q) = \sum_{x} P(x) \log \frac{P(x)}{Q(x)} D KL β ( P β₯ Q ) = β x β P ( x ) log Q ( x ) P ( x ) β Backpropagation through one layer z = W x + b , a = Ο ( z ) Ξ΄ = β L β z = β L β a β Ο β² ( z ) β L β W = Ξ΄ β x β€ , β L β b = Ξ΄ , β L β x = W β€ Ξ΄ \begin{aligned} \mathbf{z} &= \mathbf{W}\mathbf{x} + \mathbf{b}, \quad \mathbf{a} = \sigma(\mathbf{z}) \\ \boldsymbol{\delta} &= \frac{\partial \mathcal{L}}{\partial \mathbf{z}} = \frac{\partial \mathcal{L}}{\partial \mathbf{a}} \odot \sigma'(\mathbf{z}) \\ \frac{\partial \mathcal{L}}{\partial \mathbf{W}} &= \boldsymbol{\delta}\, \mathbf{x}^\top, \quad \frac{\partial \mathcal{L}}{\partial \mathbf{b}} = \boldsymbol{\delta}, \quad \frac{\partial \mathcal{L}}{\partial \mathbf{x}} = \mathbf{W}^\top \boldsymbol{\delta} \end{aligned} z Ξ΄ β W β L β β = Wx + b , a = Ο ( z ) = β z β L β = β a β L β β Ο β² ( z ) = Ξ΄ x β€ , β b β L β = Ξ΄ , β x β L β = W β€ Ξ΄ β LoRA h = W 0 x + Ξ W x = W 0 x + Ξ± r B A x , B β R d Γ r , Β A β R r Γ k , Β r βͺ min β‘ ( d , k ) h = W_0 x + \Delta W x = W_0 x + \frac{\alpha}{r} B A x, \quad B \in \mathbb{R}^{d \times r},\ A \in \mathbb{R}^{r \times k},\ r \ll \min(d, k) h = W 0 β x + Ξ W x = W 0 β x + r Ξ± β B A x , B β R d Γ r , Β A β R r Γ k , Β r βͺ min ( d , k ) GELU GELU β‘ ( x ) = x β Ξ¦ ( x ) β 0.5 x ( 1 + tanh β‘ [ 2 / Ο ( x + 0.044715 x 3 ) ] ) \operatorname{GELU}(x) = x\,\Phi(x) \approx 0.5x\left(1 + \tanh\left[\sqrt{2/\pi}\left(x + 0.044715x^3\right)\right]\right) GELU ( x ) = x Ξ¦ ( x ) β 0.5 x ( 1 + tanh [ 2/ Ο β ( x + 0.044715 x 3 ) ] ) Dropout r ( l ) βΌ Bernoulli β‘ ( p ) , y ~ ( l ) = r ( l ) β y ( l ) \mathbf{r}^{(l)} \sim \operatorname{Bernoulli}(p), \quad \tilde{\mathbf{y}}^{(l)} = \mathbf{r}^{(l)} \odot \mathbf{y}^{(l)} r ( l ) βΌ Bernoulli ( p ) , y ~ β ( l ) = r ( l ) β y ( l ) Batch normalization ΞΌ B = 1 m β i = 1 m x i , Ο B 2 = 1 m β i = 1 m ( x i β ΞΌ B ) 2 x ^ i = x i β ΞΌ B Ο B 2 + Ο΅ y i = Ξ³ x ^ i + Ξ² β‘ B N Ξ³ , Ξ² ( x i ) \begin{aligned} \mu_{\mathcal{B}} &= \frac{1}{m}\sum_{i=1}^{m} x_i, \quad \sigma_{\mathcal{B}}^2 = \frac{1}{m}\sum_{i=1}^{m} (x_i - \mu_{\mathcal{B}})^2 \\ \hat{x}_i &= \frac{x_i - \mu_{\mathcal{B}}}{\sqrt{\sigma_{\mathcal{B}}^2 + \epsilon}} \\ y_i &= \gamma \hat{x}_i + \beta \equiv \mathrm{BN}_{\gamma,\beta}(x_i) \end{aligned} ΞΌ B β x ^ i β y i β β = m 1 β i = 1 β m β x i β , Ο B 2 β = m 1 β i = 1 β m β ( x i β β ΞΌ B β ) 2 = Ο B 2 β + Ο΅ β x i β β ΞΌ B β β = Ξ³ x ^ i β + Ξ² β‘ BN Ξ³ , Ξ² β ( x i β ) β Rotary position embedding (RoPE) q m β€ k n = ( R Ξ , m d W q x m ) β€ ( R Ξ , n d W k x n ) = x m β€ W q β€ R Ξ , n β m d W k x n , ΞΈ i = 10000 β 2 ( i β 1 ) / d \mathbf{q}_m^\top \mathbf{k}_n = \left(\mathbf{R}^d_{\Theta,m} W_q \mathbf{x}_m\right)^\top \left(\mathbf{R}^d_{\Theta,n} W_k \mathbf{x}_n\right) = \mathbf{x}_m^\top W_q^\top \mathbf{R}^d_{\Theta,n-m} W_k \mathbf{x}_n, \quad \theta_i = 10000^{-2(i-1)/d} q m β€ β k n β = ( R Ξ , m d β W q β x m β ) β€ ( R Ξ , n d β W k β x n β ) = x m β€ β W q β€ β R Ξ , n β m d β W k β x n β , ΞΈ i β = 1000 0 β 2 ( i β 1 ) / d Multi-head attention MultiHead β‘ ( Q , K , V ) = Concat β‘ ( h e a d 1 , β¦ , h e a d h ) β W O whereΒ h e a d i = Attention β‘ ( Q W i Q , K W i K , V W i V ) \begin{aligned} \operatorname{MultiHead}(Q, K, V) &= \operatorname{Concat}(\mathrm{head}_1, \ldots, \mathrm{head}_h)\,W^O \\ \text{where}\ \mathrm{head}_i &= \operatorname{Attention}(QW_i^Q, KW_i^K, VW_i^V) \end{aligned} MultiHead ( Q , K , V ) where Β head i β β = Concat ( head 1 β , β¦ , head h β ) W O = Attention ( Q W i Q β , K W i K β , V W i V β ) β PPO clipped objective L C L I P ( ΞΈ ) = E ^ t [ min β‘ ( r t ( ΞΈ ) A ^ t , Β clip β‘ ( r t ( ΞΈ ) , 1 β Ο΅ , 1 + Ο΅ ) A ^ t ) ] , r t ( ΞΈ ) = Ο ΞΈ ( a t β£ s t ) Ο ΞΈ o l d ( a t β£ s t ) L^{\mathrm{CLIP}}(\theta) = \hat{\mathbb{E}}_t\left[\min\left(r_t(\theta)\hat{A}_t,\ \operatorname{clip}\left(r_t(\theta), 1 - \epsilon, 1 + \epsilon\right)\hat{A}_t\right)\right], \quad r_t(\theta) = \frac{\pi_\theta(a_t \mid s_t)}{\pi_{\theta_{\mathrm{old}}}(a_t \mid s_t)} L CLIP ( ΞΈ ) = E ^ t β [ min ( r t β ( ΞΈ ) A ^ t β , Β clip ( r t β ( ΞΈ ) , 1 β Ο΅ , 1 + Ο΅ ) A ^ t β ) ] , r t β ( ΞΈ ) = Ο ΞΈ old β β ( a t β β£ s t β ) Ο ΞΈ β ( a t β β£ s t β ) β DPO loss L D P O ( Ο ΞΈ ; Ο r e f ) = β E ( x , y w , y l ) βΌ D [ log β‘ Ο ( Ξ² log β‘ Ο ΞΈ ( y w β£ x ) Ο r e f ( y w β£ x ) β Ξ² log β‘ Ο ΞΈ ( y l β£ x ) Ο r e f ( y l β£ x ) ) ] \mathcal{L}_{\mathrm{DPO}}(\pi_\theta; \pi_{\mathrm{ref}}) = -\mathbb{E}_{(x, y_w, y_l) \sim \mathcal{D}}\left[\log \sigma\left(\beta \log \frac{\pi_\theta(y_w \mid x)}{\pi_{\mathrm{ref}}(y_w \mid x)} - \beta \log \frac{\pi_\theta(y_l \mid x)}{\pi_{\mathrm{ref}}(y_l \mid x)}\right)\right] L DPO β ( Ο ΞΈ β ; Ο ref β ) = β E ( x , y w β , y l β ) βΌ D β [ log Ο ( Ξ² log Ο ref β ( y w β β£ x ) Ο ΞΈ β ( y w β β£ x ) β β Ξ² log Ο ref β ( y l β β£ x ) Ο ΞΈ β ( y l β β£ x ) β ) ] Policy gradient (REINFORCE) β ΞΈ J ( ΞΈ ) = E Ο βΌ Ο ΞΈ [ β t = 0 T β 1 β ΞΈ log β‘ Ο ΞΈ ( a t β£ s t ) β G t ] , G t = β k = t + 1 T Ξ³ k β t β 1 r k \nabla_\theta J(\theta) = \mathbb{E}_{\tau \sim \pi_\theta}\left[\sum_{t=0}^{T-1} \nabla_\theta \log \pi_\theta(a_t \mid s_t)\, G_t\right], \quad G_t = \sum_{k=t+1}^{T} \gamma^{k-t-1} r_k β ΞΈ β J ( ΞΈ ) = E Ο βΌ Ο ΞΈ β β [ β t = 0 T β 1 β β ΞΈ β log Ο ΞΈ β ( a t β β£ s t β ) G t β ] , G t β = β k = t + 1 T β Ξ³ k β t β 1 r k β Bellman equation v Ο ( s ) = β a Ο ( a β£ s ) β s β² , r p ( s β² , r β£ s , a ) [ r + Ξ³ β v Ο ( s β² ) ] v_\pi(s) = \sum_{a} \pi(a \mid s) \sum_{s', r} p(s', r \mid s, a)\left[r + \gamma\, v_\pi(s')\right] v Ο β ( s ) = β a β Ο ( a β£ s ) β s β² , r β p ( s β² , r β£ s , a ) [ r + Ξ³ v Ο β ( s β² ) ] Q-learning update Q ( s t , a t ) β Q ( s t , a t ) + Ξ± [ r t + 1 + Ξ³ max β‘ a Q ( s t + 1 , a ) β Q ( s t , a t ) ] Q(s_t, a_t) \leftarrow Q(s_t, a_t) + \alpha\left[r_{t+1} + \gamma \max_{a} Q(s_{t+1}, a) - Q(s_t, a_t)\right] Q ( s t β , a t β ) β Q ( s t β , a t β ) + Ξ± [ r t + 1 β + Ξ³ max a β Q ( s t + 1 β , a ) β Q ( s t β , a t β ) ] InfoNCE contrastive loss L I n f o N C E = β log β‘ exp β‘ ( q β
k + / Ο ) β i = 0 K exp β‘ ( q β
k i / Ο ) \mathcal{L}_{\mathrm{InfoNCE}} = -\log \frac{\exp(\mathbf{q} \cdot \mathbf{k}_{+} / \tau)}{\sum_{i=0}^{K} \exp(\mathbf{q} \cdot \mathbf{k}_i / \tau)} L InfoNCE β = β log β i = 0 K β e x p ( q β
k i β / Ο ) e x p ( q β
k + β / Ο ) β Diffusion forward process q ( x t β£ x t β 1 ) = N ( x t ; 1 β Ξ² t β x t β 1 , Ξ² t I ) , q ( x t β£ x 0 ) = N ( x t ; Ξ± Λ t β x 0 , ( 1 β Ξ± Λ t ) I ) , Ξ± Λ t = β s = 1 t ( 1 β Ξ² s ) q(\mathbf{x}_t \mid \mathbf{x}_{t-1}) = \mathcal{N}\left(\mathbf{x}_t; \sqrt{1 - \beta_t}\,\mathbf{x}_{t-1}, \beta_t \mathbf{I}\right), \quad q(\mathbf{x}_t \mid \mathbf{x}_0) = \mathcal{N}\left(\mathbf{x}_t; \sqrt{\bar{\alpha}_t}\,\mathbf{x}_0, (1 - \bar{\alpha}_t)\mathbf{I}\right), \quad \bar{\alpha}_t = \prod_{s=1}^{t} (1 - \beta_s) q ( x t β β£ x t β 1 β ) = N ( x t β ; 1 β Ξ² t β β x t β 1 β , Ξ² t β I ) , q ( x t β β£ x 0 β ) = N ( x t β ; Ξ± Λ t β β x 0 β , ( 1 β Ξ± Λ t β ) I ) , Ξ± Λ t β = β s = 1 t β ( 1 β Ξ² s β ) DDPM simplified loss L s i m p l e ( ΞΈ ) = E t , x 0 , Ο΅ [ β₯ Ο΅ β Ο΅ ΞΈ ( Ξ± Λ t β x 0 + 1 β Ξ± Λ t β Ο΅ , t ) β₯ 2 ] L_{\mathrm{simple}}(\theta) = \mathbb{E}_{t, \mathbf{x}_0, \boldsymbol{\epsilon}}\left[\left\| \boldsymbol{\epsilon} - \boldsymbol{\epsilon}_\theta\left(\sqrt{\bar{\alpha}_t}\,\mathbf{x}_0 + \sqrt{1 - \bar{\alpha}_t}\,\boldsymbol{\epsilon}, t\right) \right\|^2\right] L simple β ( ΞΈ ) = E t , x 0 β , Ο΅ β [ β Ο΅ β Ο΅ ΞΈ β ( Ξ± Λ t β β x 0 β + 1 β Ξ± Λ t β β Ο΅ , t ) β 2 ] VAE reparameterization trick z = ΞΌ + Ο β Ο΅ , Ο΅ βΌ N ( 0 , I ) \mathbf{z} = \boldsymbol{\mu} + \boldsymbol{\sigma} \odot \boldsymbol{\epsilon}, \quad \boldsymbol{\epsilon} \sim \mathcal{N}(\mathbf{0}, \mathbf{I}) z = ΞΌ + Ο β Ο΅ , Ο΅ βΌ N ( 0 , I ) GAN minimax objective min β‘ G max β‘ D V ( D , G ) = E x βΌ p d a t a ( x ) [ log β‘ D ( x ) ] + E z βΌ p z ( z ) [ log β‘ ( 1 β D ( G ( z ) ) ) ] \min_G \max_D V(D, G) = \mathbb{E}_{\mathbf{x} \sim p_{\mathrm{data}}(\mathbf{x})}\left[\log D(\mathbf{x})\right] + \mathbb{E}_{\mathbf{z} \sim p_{\mathbf{z}}(\mathbf{z})}\left[\log\left(1 - D(G(\mathbf{z}))\right)\right] min G β max D β V ( D , G ) = E x βΌ p data β ( x ) β [ log D ( x ) ] + E z βΌ p z β ( z ) β [ log ( 1 β D ( G ( z )) ) ] AdamW ΞΈ t = ΞΈ t β 1 β Ξ· t ( Ξ± β m ^ t v ^ t + Ο΅ + Ξ» β ΞΈ t β 1 ) \theta_t = \theta_{t-1} - \eta_t\left(\alpha\,\frac{\hat{m}_t}{\sqrt{\hat{v}_t} + \epsilon} + \lambda\,\theta_{t-1}\right) ΞΈ t β = ΞΈ t β 1 β β Ξ· t β ( Ξ± v ^ t β β + Ο΅ m ^ t β β + Ξ» ΞΈ t β 1 β ) Cosine learning-rate schedule Ξ· t = Ξ· min β‘ + 1 2 ( Ξ· max β‘ β Ξ· min β‘ ) ( 1 + cos β‘ ( T c u r T i Ο ) ) \eta_t = \eta_{\min} + \frac{1}{2}\left(\eta_{\max} - \eta_{\min}\right)\left(1 + \cos\left(\frac{T_{\mathrm{cur}}}{T_{i}}\pi\right)\right) Ξ· t β = Ξ· m i n β + 2 1 β ( Ξ· m a x β β Ξ· m i n β ) ( 1 + cos ( T i β T cur β β Ο ) ) Perplexity PPL β‘ ( X ) = exp β‘ ( β 1 t β i = 1 t log β‘ p ΞΈ ( x i β£ x < i ) ) \operatorname{PPL}(X) = \exp\left(-\frac{1}{t}\sum_{i=1}^{t} \log p_\theta(x_i \mid x_{<i})\right) PPL ( X ) = exp ( β t 1 β β i = 1 t β log p ΞΈ β ( x i β β£ x < i β ) ) Logistic regression P ( y = 1 β£ x ) = Ο ( w β€ x + b ) = 1 1 + e β ( w β€ x + b ) P(y = 1 \mid \mathbf{x}) = \sigma(\mathbf{w}^\top \mathbf{x} + b) = \frac{1}{1 + e^{-(\mathbf{w}^\top \mathbf{x} + b)}} P ( y = 1 β£ x ) = Ο ( w β€ x + b ) = 1 + e β ( w β€ x + b ) 1 β Normal equation (linear regression) Ξ² ^ = ( X β€ X ) β 1 X β€ y \hat{\boldsymbol{\beta}} = \left(X^\top X\right)^{-1} X^\top \mathbf{y} Ξ² ^ β = ( X β€ X ) β 1 X β€ y Singular value decomposition (SVD) A = U Ξ£ V β€ = β i = 1 r Ο i u i v i β€ A = U \Sigma V^\top = \sum_{i=1}^{r} \sigma_i \mathbf{u}_i \mathbf{v}_i^\top A = U Ξ£ V β€ = β i = 1 r β Ο i β u i β v i β€ β Principal component analysis (PCA) w 1 = argβmax β‘ β₯ w β₯ 2 = 1 w β€ S β w , S = 1 n β 1 X β€ X = V Ξ V β€ , Z = X V k \mathbf{w}_1 = \argmax_{\|\mathbf{w}\|_2 = 1} \mathbf{w}^\top S\, \mathbf{w}, \quad S = \frac{1}{n-1} X^\top X = V \Lambda V^\top, \quad Z = X V_k w 1 β = arg max β₯ w β₯ 2 β = 1 β w β€ S w , S = n β 1 1 β X β€ X = V Ξ V β€ , Z = X V k β Symbols 150 symbols and constructs so far, each with what it means in ML papers, other meanings to watch for, how to type it and a small worked example. All symbols by category β