Skip to content

Instantly share code, notes, and snippets.

@jonpage
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonpage/d37b4e364591cfaecafd to your computer and use it in GitHub Desktop.
Save jonpage/d37b4e364591cfaecafd to your computer and use it in GitHub Desktop.
Exploratory Analysis of Time Series Clusters with D3.js

Clustering algorithms exist to assign observational units to relavant groups. A major problem is identifying the ideal number of groups if the true number is not known in advance.

This is the first in a series of blocks where we will create a visualization designed to help a domain expert identify the ideal number of groups for a set of time series observations.

The images above were created in R as part of the data analysis process. We'll use D3 to create an interactive version.

Next Step

<!DOCTYPE html>
<meta charset="utf-8">
<style>
img {
display: block;
}
a {
display: block;
}
</style>
<h2>Income from ages 25-65</h2>
<img src="hdinc.png" alt="Income Series"/>
<h2>Group Assignment with k = 10</h2>
<img src="kmeans_c_10.png" alt="Clusters for K = 10"/>
<a href="kmeans_matrix.pdf" target="_blank">Matrix of Clusters</a>
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment