statistics - How to produce a data set in MATLAB in which variables will correlate to a prespecified level? -


i'm looking create data set 3 columns , arbitrary number of rows.

i'd column 1 have pearson correlation .20 column 2, column 1 correlate .24 column 3, , column 2 correlate .3 column 3.

how do produce this?

you can generate multivariate guassian using mvnrnd , specify covariance achieve desired pearson correlation.

see following documentation: http://www.mathworks.com/help/stats/mvnrnd.html


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -