Hi guys, I have two randomly generated variables and want to generate the third which is correlated with one of them and uncorrelated with the other. How can I generate such random variable?
显示 更早的评论
To be specific I have these series
e~N(0,1)and x~N(0,v), where v is variance of x
and I want to generate another variable say Y that satisfy the following conditions
E(y,e) equal to zero E(Y,x) not equal to zero
Please help me out with this.
3 个评论
Does your notation "E(a,b)" basically mean the correlation/covariance between a and b? (It doesn't matter which).
When you say "E(y,e) equal to zero", do you mean "E(Y,e) equal to zero"?
Do we assume that e and x are uncorrelated? This would make things easier in my opinion.
Solomon Gofere
2014-11-2
Harry
2014-11-2
That's good - the answer I wrote should work for you. Please accept it if you are happy with it.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
