Premium problem119. Poisson Maximum Likelihood

Easy Locked

Given observed event counts, return the maximum likelihood estimate of the Poisson rate λ\lambda, which is the sample mean.

Input

[2, 3, 1, 4, 0]

Output

2.0

Premium problem

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

Implement solve(...)