Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's suppose that some data points follow $Lognormal(\mu,\sigma^2)$ and both parameters are unknown . My goal is to obtain the posterior distribution by assigning conjugate prior distributions on both $\mu$ and $\sigma^2$,. How this can be done in WinBugs?

share|improve this question
Why not just transform your data so that it is normal, i.e. take the log of your data? – guy Jan 15 '13 at 0:44
1) If the priors really are conjugate, there's no need to use WinBUGS, as the posterior will have a nice closed form. 2) If you take the log of your data, it will be Normally distributed, and you can use the conjugate priors for the Normal. – jbowman Jan 15 '13 at 0:44
@guy, jbowman. Yes, this can be solved by transforming the data to normal, but i really need to learn this without transformation (i.e., what is the conjugate prior for lognormal's parameters?) – user9292 Jan 15 '13 at 1:13
@act00 the conjugate prior for the lognormal distribution is the normal distribution (or normal-inverse-gamma if you want to put a prior on $(\mu, \sigma^2)$). Why? Because you can transform the data so that it is normal, and then use the conjugate prior for the normal. However, if you want to use the lognormal directly it is given by dlnorm(mu, tau) where tau is $1 / \sigma^2$ in the usual parameterization; just stick a normal-gamma prior on those two. – guy Jan 15 '13 at 2:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.