Probabilistic Decomposition in Machine Learning Problems