# How to plot confidence bounds for a theoretical cumulative distribution function?

7 views (last 30 days)

Show older comments

I understand how to plot upper and lower confidence bounds for an experimental cumulative distribution function using the ecdf function.

But how to plot upper and lower confidence bounds for a theoretical cumulative distribution like for example the Theoretical CDF in the plot shown below? (copied from: https://www.mathworks.com/help/stats/cdfplot.html)

##### 6 Comments

Paul
on 6 Aug 2021

### Answers (1)

Jeff Miller
on 6 Aug 2021

##### 4 Comments

Jeff Miller
on 6 Aug 2021

Thanks for the clarification, @Paul. I misunderstood the original question as pertaining to a known theoretical distribution (i.e., with known parameter values). No, the process I am describing does not apply to fitted distributions.

@Eric-Jan Scharlee As Paul says, CIs around parameter estimates are standard, but CIs around a fitted CDF are not. I am not even sure how that would be defined. I suppose you could generate a range of CDFs with different combinations of parameter values within the parameter CIs and take the extremes of those (at each X) as some kind of theoretical CI, but that's really ad hoc. To me, it seems better to focus on the CIs from the ecdf.

### See Also

### Community Treasure Hunt

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

Start Hunting!