Joint Probability Estimation Using Tensor Decomposition and Dictionaries