Nonnegative matrix factorization (NMF) decomposes a data matrix into two nonnegative matrices and can be shown to be equivalent to k-means clustering and spectral clustering. NMF provides parts-based representations of data and soft clustering. Experiments on text datasets demonstrated NMF achieved better clustering accuracy than k-means.