ksdensity function for pdf estimation
Show older comments
i feed some data to ksdensity but i got a gaussian pdf with peak greater than 1 how is that
Answers (2)
David Sanchez
on 14 May 2014
As you can see in the ksdensity documentation, depending n how you use the function, there is nothing abnormal with your result:
From documentation: Generate a mixture of two normal distributions, and plot the estimated inverse cumulative distribution function at a specified set of values:
x = [randn(30,1); 5+randn(30,1)];
yi = linspace(.01,.99,99);
g = ksdensity(x,yi,'function','icdf');
plot(yi,g);
Paste the code you are using in order to provide a good solution to your question.
1 Comment
yasser
on 14 May 2014
yasser
on 14 May 2014
0 votes
Categories
Find more on HDL-Optimized System Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!