Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate multivariate random numbers with different marginal distributions?

I have lost idea how to generate some bivariate random mumbers, say in copula. The marginals are of different distribution, i.e. t, gamma, and the joint structure can be gaussian or t. I will have to fixed their kendall tau. And I want to examine how the pearson rho of those random numbers are different from the presetted tau.

Any suggestion? A piece of prototype in R/Matlab is highly appreciated!

like image 797
onethird Avatar asked Jan 17 '23 16:01

onethird


1 Answers

If you have Statistics Toolbox you can generate random numbers from copulas using the function copularnd. There are several examples in the documentation. To convert between using Kendall's tau and Pearson's rho, take a look at copulaparam and copulastat.

like image 143
Sam Roberts Avatar answered Jan 30 '23 18:01

Sam Roberts