1
$\begingroup$

I have 4000 iterations from an MCMC summarizing the posterior distribution. In the model used to estimate the posterior (a GLMM), my response variable was in g/m2, but I need to report the result in mg/m2. Can I just multiply each iteration of the posterior by 1000, or do I need to adjust the raw response unit and re-run the model? I assume the former is correct (just multiply), but I have not found direct examples of this approach on this site or in my Bayesian lit.

$\endgroup$
1
  • $\begingroup$ You need more details. The answer to this question will depend on what GLMM you are using. $\endgroup$
    – jaradniemi
    Apr 2, 2018 at 19:59

1 Answer 1

3
$\begingroup$

Assuming, that we're talking here about predictions from the model, you don't have to re-run it, just can multiply it. If you ask about parameters and your model uses some non-linear transformations, it may get more complicated.

Recall that if you define a new random variable as $Y = bX$, where $b>0$ is a constant, then it has probability density (or mass) function $f_Y(y) = f_X(y\,/\,b)\,/\,b$ and cumulative distribution function $F_Y(y) = F_X(y\,/\,b)$. Moreover, given the properties of expected value $E(bX) = b\, E(X)$ and given the properties of variance $\mathrm{Var}(bX) = b^2 \, \mathrm{Var}(X)$. Same goes about the median, since scaling does not change ordering of the values, so the "central point" after scaling, would be central point scaled. Per analogy, if mode was located at some point, then after scaling, the distribution would change it's shape, but the highest peak would just get scaled as everything else (since we just scaled the pdf/pmf!).

$\endgroup$
3
  • $\begingroup$ Shouldn't the pdf be $f_Y(y)=f_X(y/b)/|b|$ ? $\endgroup$ Apr 2, 2018 at 20:34
  • 1
    $\begingroup$ @VladislavsDovgalecs sorry, it's $b>0$, since it is a scale of the distribution, scale cannot be negative. $\endgroup$
    – Tim
    Apr 2, 2018 at 20:43
  • $\begingroup$ Very helpful. Thanks, Tim. Yes, I'm asking about predictions from the model. $\endgroup$
    – jwjwjw
    Apr 2, 2018 at 21:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.