# How do I calculate the confidence interval from a Bayesian analysis

I got the posterior distribution of a parameter from Bayesian analysis. I want to express it as confidence interval. If I plot the empirical cumulative distribution function of the parameter and obtain the 95% interval, will it represent the 95% confidence interval?

• Why not just use the 95% credible interval? The interpretability is often considered more straight forward. The Bayesian credible interval is based on the probability of the parameters given the data. The frequentist confidence interval is based on the probability of the data given some parameters. Here is some discussion of the difference, stats.stackexchange.com/questions/2272/…. – OliverFishCode Mar 3 '19 at 21:08
• Why would you do this? This is like having a business class ticket and asking how you can downgrade to economy for free. – conjectures Mar 11 at 8:35
• Is this a case of a boss/manager/professor asking you for the 95% confidence interval because that's what she always likes to see around a parameter estimate? – Dave Mar 11 at 10:45