# Expected Value of Posterior vs. Posterior of Expected Value with epred

**URL:** <https://discourse.mc-stan.org/t/expected-value-of-posterior-vs-posterior-of-expected-value-with-epred/28502>\
**Category:** brms\
**Tags:** brms\
**Created:** [August 10, 2022, 8:01pm UTC](https://discourse.mc-stan.org/t/expected-value-of-posterior-vs-posterior-of-expected-value-with-epred/28502 "2022-08-10T20:01:41Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![rwilcom](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/rwilcom/32/14646_2.png) [@rwilcom](https://discourse.mc-stan.org/u/rwilcom)\
**Post date:** [August 11, 2022, 5:58pm UTC](https://discourse.mc-stan.org/t/expected-value-of-posterior-vs-posterior-of-expected-value-with-epred/28502/6 "2022-08-11T17:58:24Z")

</div>

This is a nice clarification, but then shouldn’t “a posterior distribution of the expectation of the (draw-wise conditional) posterior predictive distribution." instead reference “expectation s” (plural)? The confusing part about the `brms` documentation is then that it is it _does_ seem to imply there is a single posterior predictive for each draw.

@scholz Just looked and Rethinking explains what the posterior predictive is more clearly (but does not discuss the expected value of the distribution vs. the distribution of the expected values issue.

@avehtari The discussion in Regression and Other Stories describes `epred` (when passed new data) as “the expected prediction for a new data point” (p.116) and says "we can compute uncertainty in the expected value or predicted probability E(y\_{new}) = logit^{-1}(x\_{new} \beta) " (p.223) which seems to imply the posterior of the expected value. Similarly, the same type of description is implied on p.315.

---

_[View the full topic](https://discourse.mc-stan.org/t/expected-value-of-posterior-vs-posterior-of-expected-value-with-epred/28502)._
