I want to fit some data points to a normal distribution, but I can't find a function that lets me put in the weights of the data points. scipy.stats.norm.fit only wants some data and if necessary the loc and scale parameters are used for average and standard deviation.
The weights of my data are floating points, so I can't use the solution described in Fit normal distribution to weighted list for obvious reasons.
values = [0, 1, 2, 3, ..., 44, 52]
weights = [0.06537925227866273, 0.9735569357920033, 3.1333312174908325, 5.558819116316957, ..., 0.0070813375592937555, 0.040237487324237445]
For me it's not a good solution to multiple the weights by 100 and then use round(), because the weights can get smaller than that.