All problems
Scaled Median Absolute Deviation
Problem
For normal data the median absolute deviation needs a consistency factor of about 1.4826 to estimate the standard deviation: sigma_hat = 1.4826 * MAD.
Given the MAD value, return the scaled estimate.
Hint
Multiply by the normal consistency constant.
Test cases
case 1
in: [1]
expected: 1.4826
case 2
in: [0.5]
expected: 0.7413
case 3
in: [2]
expected: 2.9652
Starter codePython
def scaled_median_absolute_deviation(mad):
# Your code here
pass3 test cases · run your code against them in the editor