Empirical probability density function

19 visualizaciones (últimos 30 días)
Martin
Martin el 27 de Mayo de 2012
I have a vector with 200.000 simulated values. I want to plot an empirical probability density function using this vector, but i have no idea how to do it. Can anybody help?
  1 comentario
Oleg Komarov
Oleg Komarov el 27 de Mayo de 2012
Useful thread http://www.mathworks.com.au/matlabcentral/newsreader/view_thread/308951

Iniciar sesión para comentar.

Respuestas (1)

the cyclist
the cyclist el 27 de Mayo de 2012
If you have the Statistics Toolbox, try the ksdensity() function.
>> doc ksdensity
  5 comentarios
the cyclist
the cyclist el 28 de Mayo de 2012
Martin,
I understand your desire for "100% empirical", but don't fool yourself that the hist() function isn't also imposing some of its own theoretical constructs. It is.
In the end, you are finding a statistical estimator to the "true" probability density function, and the important thing is to understand what you plan to do with the result, and what are the strengths and weaknesses of the choices of estimator. I am not an expert on this, so can't help you much. But of course the web abounds with references. Here is one I found: http://www.stat.ufl.edu/~rrandles/sta6934/smhandout.pdf. Caveat emptor.
the cyclist
the cyclist el 28 de Mayo de 2012
Here is a more surfable version of the same content, that I discovered just after I added the prior comment:
http://ned.ipac.caltech.edu/level5/March02/Silverman/Silver_contents.html

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by