Bayes formula and picking variance from distribution

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 3K views
freshmanaskin
Messages
2
Reaction score
0
This should be rather simple bayesian problem, but I can't figure it out for myself.

If i pick numbers from normal distributionS, where the variance of the distribution at each pick v1, is in turn picked out of a normal distribution with variance v2.

What is then the distribution of the random number? i tried this on my calculator a bit, and it looks as if it is normal itself, but what is the variance of x?

This is not homework, but something I would like to understand how to calculate.

//Cal
 
Physics news on Phys.org
If i pick numbers from normal distributionS, where the variance of the distribution at each pick v1, is in turn picked out of a normal distribution with variance v2.

You need to clarify this.
 
If you have two continuous random variables (for example), X and Y, with joint pdf [itex]\rho_{X,Y}(x,y)[/itex], this can be written in terms of the conditional distribution [itex]\rho_{X|Y}(x|y)[/itex] or [itex]\rho_{Y|X}(y|x)[/itex] as:

[tex]\rho_{X,Y}(x,y) = \rho_{X|Y}(x|y)\rho_Y(y) = \rho_{Y|X}(y|x)\rho_X(x),[/tex]

where the individual distributions are

[tex]\rho_X(x) = \int_{-\infty}^\infty dy~\rho_{X,Y}(x,y),[/tex]
and similarly for y. So, if you knew the distribution for y and you knew the condition distribution for x given y, you can calculate the distribution of x as

[tex]\rho_X(x) = \int_{-\infty}^\infty dy~\rho_{X|Y}(x|y)\rho_Y(y).[/tex]

Amusingly enough, I was dealing with this concept myself this week, although in the context of a much more intractable problem.

This said, I think you need to tweak your suggested problem. The variance of a distribution is positive, so it can't be normally distributed. If you use the standard deviation, I don't think you'll get a result, because you'll have a factor of [itex]1/\sigma[/itex] in your integration, why of course blows up at the origin, but the exponential will also be even in sigma, so the principal value might be zero.
 
Last edited:
Thank you mute, all you said seems very right and true to me. with large enough mu compared to sigma it will become pretty normal. I might have to use some other distribution to pick the variance if i use this for something. But this was more of a though experiment.