フィルターのクリア

Why do I get values above 1 in ksdensity?

10 ビュー (過去 30 日間)
Marouen
Marouen 2016 年 10 月 13 日
回答済み: Marouen 2016 年 10 月 14 日
Hi everyone, I've been plotting a ksdensity on a variable distribution, I noticed on the y axis values above 1. Isn't supposed to be a [0-1] probability of occurence of the xaxis value? Thanks

採用された回答

Walter Roberson
Walter Roberson 2016 年 10 月 13 日
"Unlike a probability, a probability density function can take on values greater than one; for example, the uniform distribution on the interval [0, ½] has probability density f(x) = 2 for 0 ≤ x ≤ ½ and f(x) = 0 elsewhere."

その他の回答 (1 件)

Marouen
Marouen 2016 年 10 月 14 日
I found out that it actually integrates to 1. Thank Walter for your help.

Community Treasure Hunt

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

Start Hunting!

Translated by