Skip to content
DeepForgeby svx
All problems
EasyInformation Theoryinfo-216

Estimator Efficiency

Problem

Return the efficiency of an unbiased estimator:

efficiency = (1 / fisher_info) / variance

An efficient estimator attains the Cramer-Rao bound and scores 1.0.

Hint

Efficiency is below 1 whenever the estimator is noisier than the bound.

Test cases

case 1
in: [1,1]
expected: 1
case 2
in: [2,1]
expected: 0.5
case 3
in: [0.5,2]
expected: 1
case 4
in: [4,0.5]
expected: 0.5
Starter codePython
def estimator_efficiency(variance, fisher_info):
    # Your code here
    pass

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