If you are given the problem, you can learn the parameters by just computing them. For instance, to estimate the parameters of a gaussian, we can compute the mean and variance and shove it in.