Computes Bayesian information criterion for a given clustering of a data set.
a matrix (n x m). Rows are observations, columns are predictors.
matrix of cluster means (k x m), where k is the number of clusters.
Bayesian information criterion (BIC) is calculated using the formula, BIC = -2 * log(L) + k*log(n). k is the number of free parameters, in this case is m*k + k - 1. n is the number of observations (rows of data). L is the liklihood for the given set of cluster centres.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.