














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















Linear Regression
p(y∣x; θ )=N(y∣θTx, σ 2)p(y|x;\theta) = \mathcal{N}(y|\theta^Tx,\sigma^2)p(y∣x; θ )=N(y∣θTx, σ 2) Logistic Regression
y^{(i)}(\theta^Tx^{(i)}+b)\geq 1 θ ,bmin21∥θ∥2s.t. y(i)( θ Tx(i)+b)≥ 1
H(S)=−∑cpclogpcH(S) = -\sum_c p_c \log p_cH(S)=−c∑pclogpc
p(x∣y=k)=1(2 π )n/2∣Σ∣1/2exp(−12(x− μ k)T Σ −1(x− μ k))p(x|y=k) = \frac{1}{(2\pi)^{n/2}|\Sigma|^{1/2}} \exp\Big(-\tfrac{1}{2}(x-\mu_k)^T
Sigma^{-1}(x- \mu_k)\Big)p(x∣y=k)=(2 π )n/2∣Σ∣1/21exp(−21(x− μ k)T Σ −1(x− μ k))
2. Linear Regression - Model: hθ(x)=θTxh_\theta(x) = \theta^T xhθ(x)=θTx
6. Support Vector Machines (SVMs) - Optimization problem: minθ12∣∣θ∣∣2subject to y(i)(θTx(i)+b)≥1\min_\theta \frac{1}{2} ||\theta||^2
quad \text{subject to } y^{(i)}(\theta^T x^{(i)} + b) \geq 1θmin21∣∣θ∣∣2subject to y(i)(θTx(i)+b)≥
8. Decision Trees - Entropy: H(Y)=−∑cP(y=c)logP(y=c)H(Y) = - \sum_{c} P(y=c)\log P(y=c)H(Y)=−c∑P(y=c)logP(y=c)
H=−∑i=1mσ(θTx(i))(1−σ(θTx(i)))x(i)x(i)TH = -\sum_{i=1}^m \sigma(
theta^Tx^{(i)}) \big(1 - \sigma(\theta^Tx^{(i)})\big) x^{(i)} {x^{(i)}}^TH=−i=1∑mσ(θTx(i)) (1−σ(θTx(i)))x(i)x(i)T
3. SVM Primal (Soft Margin) minθ,b,ξ12∥θ∥2+C∑i=1mξi\min_{\theta, b, \xi} \quad \frac{1}{2}|\theta|^
5. Naive Bayes Posterior P(y∣x)=P(y)∏j=1nP(xj∣y)∑y′P(y′)∏j=1nP(xj∣y′)P(y|x) = \frac{P(y)
prod_{j=1}^n P(x_j|y)}{\sum_{y'} P(y') \prod_{j=1}^n P(x_j|y')}P(y∣x)=∑y′P(y′)∏j=1nP(xj∣y′)P(y)∏j=1nP(xj∣y) 6. Decision Tree Split Criterion (Information Gain) IG(S,A)=H(S)−∑v∈Values(A)∣Sv∣∣S∣H(Sv)IG(S, A) = H(S) - \sum_{v \in
text{Values}(A)} \frac{|S_v|}{|S|} H(S_v)IG(S,A)=H(S)−v∈Values(A)∑∣S∣∣Sv∣H(Sv) where entropy is: H(S)=−∑c∈ClassespclogpcH(S) = - \sum_{c \in \text{Classes}} p_c \log p_cH(S)=−c∈Classes∑pc logpc 7. Bias-Variance Decomposition E[(y−f^(x))2]=(E[f^(x)]−f(x))2+E[(f^(x)−E[f^(x)])2]+σ2\mathbb{E}\Big[ (y