Plot confidence intervals/bounds of the estimated theoretical cdf
8 views (last 30 days)
Show older comments
Hi,
Please understand that I am no mathematician or statistician, so I might mix up terms here. Any correction would be appreciated as I am here to learn!
I have experimental data that I have used to generate an ecdf and then fitted a theoretical cdf, by evaluating numerous distributions (e.g., Weibull, log-logistic etc.) using the AD-test to find the best theoretical distribution (e.g., Normal, Weibull, log-normal, logistic, log-logistic etc.).
I want to plot confidence bounds of the theoretical cdf (I want smooth confidence bounds, not the step-function shape of the ecdf), such that it should surround the fitted/theoretical curve (theoretical cdf)?
But using fitdist on the experimental data only returns the 95% confidence bounds for the distribution parameters of the theoretical distribution I use as input in fitdist.
I have been wrongly using the confidence bounds from fitdist, believing it would give me the confidence intervals of the theoretical (fitted) function/cdf (so that it can be compared to the generated/fitted theoretical cdf). But now learning that it is the confidence intervals of the distribution parameters only.
Is there a MATLAB-function that allows me to plot the true confidence interval of the theoretical cdf, such that I can plot the confidence bounds so that they surround the theoretical curve/cdf?
Thank you
Jia-Cheng
5 Comments
Jeff Miller
on 14 Dec 2023
Your plot shows two boundary CDFs. Was one computed with the lower bounds of the two parameters and the other computed with the upper bounds of the two parameters? If so, what happens if you compute boundary CDFs with the other two pairs of parameters--i.e., lower bound of parameter 1 and upper bound of parameter 2, or vice versa? I'm not familiar with the parameters of this distribution, but it is certainly possible that the leftmost/rightmost CDF curves will be found with the largest value of one parameter and the smallest value of the other parameter.
Like Torsten, I've never heard of confidence intervals for predicted CDFs. Your overall goal of somehow visualizing the range of predicted CDFs certainly makes sense, but it probably isn't technically correct to call this a CI for a predicted CDF.
Paul
on 15 Dec 2023
I don't understand how there could be a confidence interval around the theoretical CDF. But one can get a confidence interval around the estimated, or empirical, CDF and the function ecdf can do exactly that. It sounds like you're aware of that functionality, but I don't understand what the objection is.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!