How Can I draw confidence intervals on probability plot?
13 views (last 30 days)
Show older comments
Hello I would like to draw probability plot using the probplot function for different distributions (e.g. lognormal and weibull) and i would like to know how i can draw the confidence intervals so that i can check if my data points fit into the confidence bounds. Please note that I have censored and uncensored data so I am forced to use probplot in order to take the censored data into account. I also tried to used the "dfittool" in the Statistics toolbox but even there I could not find the way to draw confidence bounds.
Another question is how to determine the p-value of the probability plot so that I can see how good my data fit the chosen distribution.
Thanks
Paolo
0 Comments
Answers (4)
Star Strider
on 19 Oct 2012
Would it do what you want?
1 Comment
Star Strider
on 19 Oct 2012
I'm still not certain what you want, but the function that may be closest to what I believe you're looking for is probably the Kolmogorov-Smirnov test. I'm not sure you can plot its confidence limits, but it may help you decide the distribution that most closely fits your data.
The only other possibility I can think of is for you to use nlinfit and its related functions to fit your data (using an anonymous function to code for the relevant distributions), and then use nlpredci to plot the errors of the fit. If you have the errors and you simply want to plot them, consider errorbar.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!