Histogram Fitting in Matlab
Show older comments
Hello,
How to do histogram fitting?
Accepted Answer
More Answers (1)
J. Alex Lee
on 10 Oct 2019
0 votes
If you have access to the underlying data...
...and you have a model for the distribution, then you can just do parameter estimation based on the data. A common distribution should have well-established parameter estimation techniques. (your example looks normal, so mean() and std() would work well).
...and you have a model for the distribution but not a way to estimate parameters for it, you can try to force your histogram-generating function to use equal bin sizes, then proceed to do your curve fitting.
If you don't have access to the underlying data...
...maybe you can weight your residuals inversely to the bin widths?
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!