\(\mu\) (controls the Gaussian's location)
\(\sigma\) (controls the Gaussian's width)
The data points shown above were drawn from a Gaussian. What were the Gaussian's parameters? We can estimate them using the principle of Maximum Likelihood.
Move the sliders above to adjust the parameter estimates. As you do, the likelihood of that choice of parameters with respect to the data will be shown as the blue bar labeled "current likelihood". The largest likelihood seen so far is represented by the gray bar. Try to maximize the likelihood.
Recall that the
In the case where we assume that the data came from a Gaussian, we do not need to use an iterative approach to find the maximum likelihood estimates for \( \mu \) and \( \sigma \); we can derive formulas for them that work on any set of data. Namely: $$ \mu_\text{MLE} = \frac{1}{n} \sum_{i=1}^n x^{(i)} \qquad \sigma_\text{MLE} = \sqrt{\frac{1}{n} \sum_{i=1}^n (x^{(i)} - \mu_\text{MLE})^2} $$ That is, the maximum likelihood estimates are the mean and standard deviation, respectively. There are similar results for distributions other than Gaussian, too.