Skip to content

Commit c48d00e

Browse files
author
Chris Fonnesbeck
committed
Merge pull request pymc-devs#944 from aloctavodia/master
Correct column names for the HPD interval in df_summary
2 parents 861bbe2 + faa81ec commit c48d00e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ def df_summary(trace, vars=None, stat_funcs=None, extend=False,
411411

412412

413413
def _hpd_df(x, alpha):
414-
cnames = ['hpd_{0:g}'.format(100 * alpha),
415-
'hpd_{0:g}'.format(100 * (1 - alpha))]
414+
cnames = ['hpd_{0:g}'.format(100 * alpha/2),
415+
'hpd_{0:g}'.format(100 * (1 - alpha/2))]
416416
return pd.DataFrame(hpd(x, alpha), columns=cnames)
417417

418418

0 commit comments

Comments
 (0)