Premium problem120. Gaussian Maximum Likelihood

Medium Locked

Return (mu_hat, var_hat), the maximum likelihood estimates for a normal.

The variance divides by n, not n - 1. The MLE is biased low, and the n−1n-1 version is the bias-corrected estimator, a different thing. Interviewers ask this specific question to see whether you know which is which.

Input

[1.0, 2.0, 3.0, 4.0]

Output

(2.5, 1.25)

Premium problem

This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.

Implement solve(...)