how to create dataset with given correlation coefficient



Hi,
I think this may be a FAQ. However, I couldnot figure it out how to do
it. Please help me.
I would like to generate a dataset with two variables(X,Y). One is
normal(0,1) and the other is normal with mean =0.8 and s.d. =0.2. The
correlation between X and Y is 0.4.
Thank you very much!

.



Relevant Pages

  • [PATCH 2/3] s390: Replace driver_data with dev_[gs]et_drvdata
    ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
    (Linux-Kernel)
  • Re: [patch] latency tracer, 2.6.15-rc7
    ... Lee ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
    (Linux-Kernel)
  • Re: fclose() ?
    ... Dave ... MVP VC++ FAQ: http://www.mvps.org/vcfaq ... Prev by Date: ...
    (microsoft.public.vc.mfc)
  • Re: List Box
    ... Dave ... MVP VC++ FAQ: http://www.mvps.org/vcfaq ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)
  • [PATCH 2/12] generic __ffs()
    ... * fls: find last bit set. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
    (Linux-Kernel)