















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!
















-^
-^
similar clusters
among clusters
-^
-^
iteratively go through reassignment and recenteringiteratively go through reassignment and recenteringsteps until convergence
How can we extend Kmeans to
k
f^
l^
i
make soft clustering
Given a set of clusters centers
μ
μ
μ
, instead ofk
μ^1
,^ μ
μk
directly assign all data points to their closest clusters, wecan assign them
partially based on the distances
If each point only partially belongs to a particular cluster
-^
If
each point only partially belongs to a particular cluster, when computing the centroid, should we still use it as if itwas fully there?
Side track: Gaussian DistribtuionSide
track: Gaussian Distribtuion
Univariate Gaussian distribution:
N(
μ,
σ
2 )
μ^
−^
mean
,^ center of the mass
(^2) σ −
standard deviation, spread of the mass
N(
μ,
Σ) μ^
− (μ
,^1 μ^2
)
Σ^
−^
Covariance matrix
σ^1
2
σ^12 σ^12
σ^2
2
Assume that we have k clusters in our data
-^
Each cluster contains data generated from a Gaussian
-^
Each cluster contains data generated from a Gaussiandistribution
-^
Overall process of generating data:
p^
g
g
distribution of the clusters
draw a random sample from the Gaussian distribution of thatparticular cluster
Similar to the generative model we have learned inBayes Classifier difference?Bayes Classifier, difference?– Here we don’t know the cluster membership of each data point
(unsupervised)
-^
belonging to each cluster
) (
) ( ) | ( ) |
(^
i
i
i^
P
C P C x x P x C x
P^
∈
=
∈
)]
(
)
1 (^2
exp[
) (^2) (
1
) (
) |
(
1
(^2) / 1 (^2) /
i
i T i
i d
i
i
x
x x P
μ
μ
π
α^
− Σ − − Σ ∗ ∝ −
-^
i j^ C
j
i
i^
n^
x
x
1
T
C
i j i j i i
i j n^
x
(x
(x
Clusterprior
Clustermean
Cluster covariance
-^
-^
Compute
for all data points and all ) |
(^
j i j^
C
P^
x
x^
∈
Compute
for all data points and all
clustersThis is called the E-step for it computes the expected values of
the cluster memberships for each data point
) |
(^
Ci
P^
x
x^
∈
the cluster memberships for each data point
Re-compute the parameters of each GaussianThis is called the M-step for it performs maximum likelihood
estimation of parameters