如何生成具有不同边际分布的多元随机数? [英] How to generate multivariate random numbers with different marginal distributions?

查看:68
本文介绍了如何生成具有不同边际分布的多元随机数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对如何生成一些双变量随机树丛一无所知,例如在copula中.边缘具有不同的分布,即t,γ,并且关节结构可以是高斯或t.我将不得不修理他们的肯德尔牛头犬.而且我想研究一下这些随机数的皮尔逊Rho与预设的tau有何不同.

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.

有什么建议吗?高度赞赏R/Matlab中的一个原型!

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

推荐答案

如果具有统计工具箱,则可以使用函数copularnd从系动词生成随机数.文档中有几个示例.要在使用Kendall的tau和Pearson的rho之间进行转换,请查看copulaparamcopulastat.

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.

这篇关于如何生成具有不同边际分布的多元随机数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆