Highest Posterior Density Region and Central Credible Region

前端 未结 7 1025
情深已故
情深已故 2021-01-31 09:36

Given a posterior p(Θ|D) over some parameters Θ, one can define the following:

Highest Posterior Density Region:

The Highest Posterior Density Region

7条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-31 10:17

    To calculate HPD you can leverage pymc3, Here is an example

    import pymc3
    from scipy.stats import norm
    a = norm.rvs(size=10000)
    pymc3.stats.hpd(a)
    

提交回复
热议问题