General distribution generator, Poisson distribution and correlation?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Context: I am a PhD student in physics, and I am trying to simulate some physical processes with particular statistics.
In particular, I have two matrices. The first matrix, A, has a Poisson distribution, i.e. var(A)=eta*u, where eta and u are two parameters of the experiment, and var is the variance of the matrix.
Now I want to retrieve a second matrix, B, that has a Poisson distribution var(B)=u, but at the same time, it is correlated with the first one, such as corr(A,B)=eta*u, where corr is the correlation (for example the Pearson correlation coefficient)
Can I retrieve the matrix B in some way? I know the function poissrnd, but here I also have a restraint considering the correlation. Is there any function that can do this?
0 Kommentare
Antworten (1)
the cyclist
am 26 Dez. 2023
One way to generate correlated variables from non-normal distributions is to use copulas. There is a detailed discussion on this documentation page. I haven't thought carefully about your specific use case, but I expect it will work.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Probability Distributions and Hypothesis Tests finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!