How to calculate the 95% (area under the curve) of Kernel probability density curve?
2 views (last 30 days)
I require to plot the kernel density curve and mark its 5% and 95% values on the plot. I attempted but not working (my script is attached) May someone suggest to me how can I fix this?
pdSix = fitdist(a,'Kernel','Width',0.5);
x = -5:0.01:5;
ySix = pdf(pdSix,x);
The espected output should be like this.