I have a data frame:
import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame([100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 5, 1, 0.9, 0.07, 0.001, 0.00001], columns=['Frequency'])
I assume this data follows a half norm distribution.
df.sort_values(by='Frequency').plot.bar(y='Frequency')
plt.savefig('test_dist.png')
This visualization results in:
How can I first fit a half-norm (half bell shape) distribution on this data and then return the third standard deviation? I could find the scipy.stats.halfnorm
but don't know how to use it. I'm open to other languages such as R if you know a solution with R.