Probabilities from pdf does not sum to 1

Hello,
I have fitted a distribution function to some empirical data... I applied Weibull, Fréchet and Gumbel distribution fitting.
When I compute the expected probabilities of my Weibull P(x=1), P(x=2), P(x=3), P(x=4) and P(x=5) (my dataset is defined from 1 to 5...) The sum of the probabilities is 1.0012, even if i ask matlab to compute the sum (there should be no problems due to wrong rounding).
I do not have such a problem with the two other distributions that either sums up to 1.000 or to a value smaller than 1.
I do not understand where the problem for Weibull comes from. Moreover, when I compute the cdf of the Weibull and ask P(x<=5) I get 1.0000 as answer.
If anyone has an idea or an explication, thank you very much!
AuW

 採用された回答

Matt J
Matt J 2013 年 7 月 12 日
編集済み: Matt J 2013 年 7 月 12 日

0 投票

These are pdfs, not pmfs. Their integrals should be 1, but nothing can be said about their sums over an arbitrary set of discrete points like 1,...,5.

1 件のコメント

Aurélie
Aurélie 2013 年 7 月 14 日
Thank you a lot for your help!

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

その他の回答 (0 件)

質問済み:

2013 年 7 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by