Skip to content
DeepForgeby svx
All problems
EasyStatisticsst-390

Exponential MLE Rate

Problem

The maximum likelihood estimate of the exponential rate is n / sum(x_i), the reciprocal of the sample mean.

Given the sample values (all positive), return the rate estimate.

Hint

Invert the sample mean.

Test cases

case 1
in: [[1,3]]
expected: 0.5
case 2
in: [[2,2]]
expected: 0.5
case 3
in: [[0.5,1,1.5]]
expected: 1
Starter codePython
def exponential_mle_rate(values):
    # Your code here
    pass

3 test cases · run your code against them in the editor