Engr421 Homework 6-Maximization Clustering Solved

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

Rate this product

In this homework, you will implement an expectation-maximization (EM) clustering algorithm in Matlab, Python, or R. Here are the steps you need to follow:

1. Generate random data points from five bivariate Gaussian densities with the following parameters:

𝜇 = #+2.5( , ! +2.5

𝜇” = #−2.5( , +2.5

𝜇# = #−2.5( , −2.5

𝜇$ = #+2.5( , −2.5

𝜇% = #+0.0( , +0.0

Σ !

Σ” Σ# Σ$ Σ%

= #+0.8 −0.6 = #+0.8 +0.6 = #+0.8 −0.6 = #+0.8 +0.6 = #+1.6 +0.0

−0.6( , 𝑁=50 +0.8 !

+0.6( , +0.8 −0.6( , +0.8 +0.6( , +0.8 +0.0( , +1.6

𝑁” = 50 𝑁# = 50 𝑁$ = 50 𝑁% = 100

Your data points should be similar to the following figure.

2. To initialize your EM algorithm from a good initial solution, run 𝑘-means clustering algorithm with 𝑘 = 5 just for two iterations.

  1. After running 𝑘-means clustering algorithm for two iterations, take centroids as the initial values for the mean vectors in your EM algorithm. Using the data points covered by each center, estimate the initial covariance matrices and prior probabilities in your EM algorithm.
  2. After the initialization step, run your EM algorithm for 100 iterations. Report the mean vectors your EM algorithm finds. Your results should be similar to the following matrix.
  3. Draw the clustering result obtained by your EM algorithm by coloring each cluster with a different color. You should also draw the original Gaussian densities you use to generate data points and the Gaussian densities your EM algorithm finds with dashed and solid lines, respectively. Draw these Gaussian densities where their values are equal to 0.05. Your figure should be similar to the following figure.

 

  • Assignment-6-vrg5dw.zip