Getting regression weights from histogram
Show older comments
Hello!
I have generated several data points from a given function in order to fit another curve. Although the input (concentrations) is always different, some output values (temperatures) seem to occur more frequently (see histogram). When fitting my new curve with these temperature values, frequently occurring values (e.g. 350 - 400 °C) are more heavily weighted than others (e.g. 500 - 550 °C).
Therefore I want to do a weighted regression/fit, where I give a little more weight to less frequently occurring values and less weight to more frequently occuring values (since it's not experimental data but just calculation results). I'm looking for something like the red curve drawn on the histogram. Unfortunately, I can't do this by hand since it's too many data points.
Is there a way to get something like the red curve from histogram data?
Thanks,
Matthias

Accepted Answer
More Answers (0)
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!