全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
2630 1
2018-04-22
悬赏 10 个论坛币 未解决
3.1编写一个函数,它将生成并返回一个随机样本大小为n,有两个参数指数分布Exp(λη)任意n,λ,η。(参见示例2.3和2.6)。生成一个大样本Exp(λη)和比较的样本分位数理论分位数。 QQ图片20180422142836.png QQ图片20180422142833.png

3.14 Generate 200 random observations from the 3-dimensional multivariate nor-

mal distribution having mean vector μ = (0,1,2) and covariance matrix

Σ =

[1.0 0.5 0.5]

[−0.5 1.0 0.5]

[0.5 0.5 1.0]

using the Choleski factorization method. Use the R pairs plot to graph an

array of scatter plots for each pair of variables. For each pair of variables,

96 Statistical Computing with R

(visually) check that the location and correlation approximately agree with

the theoretical parameters of the corresponding bivariate normal distribution.

3.15 Write a function that will standardize a multivariate normal sample for arbi-

trary n and d. That is, transform the sample so that the sample mean vector

is zero and sample covariance is the identity matrix. To check your results,

generate multivariate normal samples and print the sample mean vector and

covariance matrix before and after stand=ardization.


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2018-4-22 22:24:58
第一个题可以去看看rexp这个函数

第二个问题Cholesky分解用chol函数
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群