How can I estimate confidence bands for kernel density estimation?
Show older comments
Hi everyone
I have a series of residuals that are supposed to be standard normally distributed. By using the ksdensity function, I obtain a smooth curve that indeed looks like a Gaussian. However, I want to construct confidence intervals (95%) around this density plot. Is there a built-in way how to achieve that? I also tried the Distribution fitting tool, which yielded a density plot but no confidence intervals.
Thank you in advance!
Answers (1)
Categories
Find more on Exploration and Visualization 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!