Histogram comparison - relative frequency to chosen reference distribution

1 回表示 (過去 30 日間)
Aske Ejdrup
Aske Ejdrup 2019 年 6 月 23 日
コメント済み: dpb 2019 年 6 月 24 日
Hi there,
Comparing the relative frequency of multiple histograms is possible with the 'Normalization' parameter. But is it possible to chose one distribution, set each bin to height 1, and then plot another distributions with identical bin-width where the bin-height is the relative frequency relative to the original distribution?
It may be a bit messy to understand, but it would look like a completely flat reference histogram, with the compared histograms having different profiles but equal area under the curve.
Hope it makes sense, and someone is able to help me out.
  4 件のコメント
Aske Ejdrup
Aske Ejdrup 2019 年 6 月 24 日
編集済み: Aske Ejdrup 2019 年 6 月 24 日
I've considered bar() as well, but I'm not a big fan of the native bar-plot in MATLAB. If it turns out to be futile with histogram, that might have to be my solution.
dpb
dpb 2019 年 6 月 24 日
I agree w/ Steven, however, it would be simpler to have a sample dataset with actual illustration of what you want...handdrawn figure to illustrate the specific plot for the given data would be ok. I didn't have a lot of time and not that familiar w/ histogram() the function so while agree bar() is a bxxx to do anything with other than basics, figured can get the bin heights if I do follow what you're asking for.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by