



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!




Machine Learning (CS 5350/CS 6350) 11 Jan 2006
Why linear algebra? Represent a set of linear equations:
4 x 1 + − 5 x 2 = − 13 (1) − 2 x 1 + 3x 2 =9 (2)
can be represented as:
Ax = b, A =
, b =
Now we can solve the set of equations by solving for x. Additionally, provides convenient notation. Will often write ∑ i wixi; it is shorter (and easier to work with) to write w>x or 〈w, x〉 or (w · x) for this (we will stick with the first, but any is okay)... Matlab: w’x. Notation:
Simple operations:
Additional definitions:
1
Norms:
Inverse:
Determinant
det A = ∑ n
(−1)m+nAmn det A−m,−n (for any m ∈ 1 ,... , N ) (4) = ∑ m
(−1)m+nAmn det A−m,−n (for any n ∈ 1 ,... , N ) (5)
Positive definite matrices
Often will think in terms of a data generating model. Discrete distributions take on discrete values:
Continuous distributions take on continuous values. Think of discrete distributions with number of values approaching infinity, and probability of each approaching zero.
Examples:
p(x | μ, σ^2 ) = √ 21 πσ 2 exp
− (^21) σ 2 (x − μ)^2
Examples...
p(x | μ, Σ) = √(2π)^1 N (^) det Σ exp
− 12 (x − μ)>Σ−^1 (x − μ)
Measure distance with Mahalanobis, points of equal distance have constant density. Examples...
Expectations:
The variance is a measure of dispersion: V[x] = E [(x − E[x])^2 ]^ = E[x^2 ] − (E[x])^2. Covariance: Cov[x, y] = V[x, y] = E [(x − E[x])(y − E[y])] If p is a joint distribution (p(x, y)), then ∫^ dx ∫^ dy p(x, y) = 1 and can obtain marginal by p(x) = ∫^ dy p(x, y). x and y are independent in p(x, y) if p(x, y) = p(x)p(y). Simplifies marginalization a lot! Conditional: p(y | x) = p(x, y)/p(x) and p(x, y) = p(y | x)p(x) = p(x | y)p(y). If independent, p(y | x) = p(y). Yields chain rule. Bayes’ rule: p(y | x) = p(x^ p|^ (yx))p (y)as prior times likeligood over marginal.