I have a 20 element array, x, of floating point numbers, ex:
x = [ 0.35945087, 0.08999019, 0.51313128, 0.75455967, 0.50654956, 0.12404178, 0.25115332, 0.94167661, 0.95727792, 0.35572299, 0.65264679, 0.09416763, 0.861585, 0.19661212, 0.62882119, 0.1180147, 0.17153433, 0.07275386, 0.01895795, 0.00578392]
This data is not normally distributed, it rather follows a power law distribution.
I need to generate a second array, y, which is correlated with x and the correlation coefficient is 0.70.
How do I do this with python?