1 / 12

People

Cluster Analysis. Variables. Customers are grouped by common characteristics. People. K-means. Minimize squared error, the distance between points labeled to be in a cluster and a point designated as the center of that cluster. K-means Clustering.

tyrell
Télécharger la présentation

People

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cluster Analysis Variables Customers are grouped by common characteristics People

  2. K-means • Minimize squared error, the distance between points labeled to be in a cluster and a point designated as the center of that cluster.

  3. K-means Clustering - Each cluster is represented by the center of the cluster. The algorithm steps: Step 1: Choose the number of clusters, k. Step 2: Randomly generate k clusters and determine the cluster centers, or directly generate k random points as cluster centers. Step 3: Assign each point to the nearest cluster center. Step 4: Recompute the new cluster centers. Step 5: Repeat the two previous steps until some convergence criterion is met (usually that the assignment hasn't changed).

  4. k3 k1 k2 Step 1: Choose the number of clusters, k. Algorithm: k-means, Distance Metric: Euclidean Distance 5 4 3 2 1 0 0 1 2 3 4 5

  5. k1 k2 k3 Step 2: Randomly generate k clusters and determine the cluster centers, or directly generate k random points as cluster centers. 5 4 3 2 1 0 0 1 2 3 4 5

  6. k1 k2 k3 Step 3: Assign each point to the nearest cluster center. 5 4 3 2 1 0 0 1 2 3 4 5

  7. k1 k2 k3 Step 4: Recompute the new cluster centers. 5 4 3 2 1 0 0 1 2 3 4 5

  8. k1 k2 k3 Step 5: Repeat the two previous steps until some convergence criterion is met

  9. Advantages/Disadvantages: K-means Advantages: • Relatively efficient Disadvantages: • Unable to handle noisy data and outliers • Very sensitive with respect to initial choice of clusters • Need to specify number of clusters in advance • Applicable only when mean is defined – what about categorical data?

More Related