Why do I get values above 1 in ksdensity?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Marouen
el 13 de Oct. de 2016
Respondida: Marouen
el 14 de Oct. de 2016
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
0 comentarios
Respuesta aceptada
Walter Roberson
el 13 de Oct. de 2016
ksdensity is Probability Density, about which https://en.wikipedia.org/wiki/Probability_density_function#Further_details
"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."
0 comentarios
Más respuestas (1)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!