Random number generator of 2 normal distributions partially correlated

Click For Summary
SUMMARY

This discussion focuses on generating two normal random distributions, x1,...,xn and y1,...,yn, that exhibit a predefined degree of correlation while maintaining identical means and standard deviations. The method involves generating samples from a standard normal distribution and applying a linear transformation to achieve the desired correlation. This approach ensures that both distributions retain their statistical properties while being correlated.

PREREQUISITES
  • Understanding of normal distributions and their properties
  • Familiarity with linear transformations in statistics
  • Knowledge of random number generation techniques
  • Basic statistical concepts such as mean and standard deviation
NEXT STEPS
  • Research methods for generating correlated random variables
  • Explore linear transformation techniques in statistics
  • Learn about the Cholesky decomposition for correlation
  • Investigate statistical software tools for random number generation, such as NumPy in Python
USEFUL FOR

Statisticians, data scientists, and researchers involved in simulations or modeling that require correlated random variables.

statwannabe
Messages
1
Reaction score
0
I am trying to generate 2 normal random distributions (x1,...,xn) (y1,...,yn) that have a predefined degree of correlation between them. The constrain is that I am trying to have the same mean and stdev for both of them.
 
Physics news on Phys.org
You can generate two samples from a standard normal distribution and then apply a linear transformation.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 26 ·
Replies
26
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K