Hello,

This is more a technical question.

I was looking for ways to sample from a T-Standard distribution with given mean and variance.

Most programs offer only to modify the Degrees of Freedom, but not the mean nor the variance.

My intuition, is that since the T-Distribution is a generalization of the Normal distribution, shifting it to the mean, and then scaling it times the Cholesky decomposition of the variance should be enough.

Regards

asked May 28 '12 at 22:31

Leon%20Palafox's gravatar image

Leon Palafox ♦
40857194128


One Answer:

I seem to recall from Bayesian Data Analysis, that Gelman stated you can generate samples for the t-distribution by using a hierarchical model where you sample the variance from an inverse-chi-squared distribution:

x_i ~ N(mu, V_i) V_i ~ Invchi^2(nu,sigma)

You can sample from the inverse-chi-squared distribution by sampling from the chi-squared distribution X ~ chi2(nu) and transforming the results, V = frac{nu sigma}{X} . This is the only web resource I found find on sampling from the chi^2 distribution http://stattrek.com/probability-distributions/chi-square.aspx

answered Jun 06 '12 at 16:31

zaxtax's gravatar image

zaxtax ♦
1051122545

edited Jun 06 '12 at 16:49

Your answer
toggle preview

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.