Code Monkey home page Code Monkey logo

Comments (5)

ASKurz avatar ASKurz commented on May 31, 2024 1

For reference, Paul addressed the question here.

from statistical_rethinking_with_brms_ggplot2_and_the_tidyverse.

ASKurz avatar ASKurz commented on May 31, 2024

If I follow, it seems like you’re asking about the distinction between predict() and fitted(). From the predict subsection of the brms reference manual:

Predict responses based on the fitted model. Can be performed for the data used to fit the model (posterior predictive checks) or for new data. By definition, these predictions have higher variance than predictions of the fitted values (i.e., the ’regression line’) performed by the fitted method. This is because the measurement error is incorporated. The estimated means of both methods should, however, be very similar.

from statistical_rethinking_with_brms_ggplot2_and_the_tidyverse.

jroberayalas avatar jroberayalas commented on May 31, 2024

Thanks for your reply! I understand that, in the case of a linear regression model, the measurement error is incorporated via the sigma value, i.e. N(mu, sigma). In the case of the binomial model, do you know where this measurement error is coming from?

from statistical_rethinking_with_brms_ggplot2_and_the_tidyverse.

ASKurz avatar ASKurz commented on May 31, 2024

It's been a bit since I've updated them, but you might also look at my vignettes on how to work with fitted() and predict(). I stick to the Gaussian, but the vignettes might still clarify the distinction, here.

from statistical_rethinking_with_brms_ggplot2_and_the_tidyverse.

ASKurz avatar ASKurz commented on May 31, 2024

Ah. Okay. I see what you're saying. My math stats isn't strong enough to give you a satisfying answer. My sense is that in this situation you might think of it as simulation variance.

from statistical_rethinking_with_brms_ggplot2_and_the_tidyverse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.