Generating correlated normal vectors with observationsWhat is the correlation function in multivariable/vectoral case?Random point distribtionCorrelation Coefficient Distribution Function: An Apparent Discrepancy?Whether or not $X_1$,…,$X_n$ are independent and exchangeableAnalytical form of a joint PDF of two uniformly distributed random variableswhat do these odds ratios represent?Affine transformation does not preserve normal vectorsLinear transformation of random variable to get correlation 0Use Pearson Correlation to Assess Nonlinear Association?Conditional density in hierarchical model
From an axiomatic set theoric approach why can we take uncountable unions?
Why do we say ‘pairwise disjoint’, rather than ‘disjoint’?
The meaning of ‘otherwise’
How do we create new idioms and use them in a novel?
Can I negotiate a patent idea for a raise, under French law?
What will happen if my luggage gets delayed?
Having the player face themselves after the mid-game
What is this diamond of every day?
Professor forcing me to attend a conference, I can't afford even with 50% funding
Are all players supposed to be able to see each others' character sheets?
Shifting between bemols and diesis in the key signature
What is better: yes / no radio, or simple checkbox?
Rationale to prefer local variables over instance variables?
Outlet with 3 sets of wires
Can the alpha, lambda values of a glmnet object output determine whether ridge or Lasso?
What do you call someone who likes to pick fights?
Which situations would cause a company to ground or recall a aircraft series?
Making a kiddush for a girl that has hard time finding shidduch
Finitely many repeated replacements
How to resolve: Reviewer #1 says remove section X vs. Reviewer #2 says expand section X
Dynamic Linkage of LocatorPane and InputField
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
Specifying a starting column with colortbl package and xcolor
After `ssh` without `-X` to a machine, is it possible to change `$DISPLAY` to make it work like `ssh -X`?
Generating correlated normal vectors with observations
What is the correlation function in multivariable/vectoral case?Random point distribtionCorrelation Coefficient Distribution Function: An Apparent Discrepancy?Whether or not $X_1$,…,$X_n$ are independent and exchangeableAnalytical form of a joint PDF of two uniformly distributed random variableswhat do these odds ratios represent?Affine transformation does not preserve normal vectorsLinear transformation of random variable to get correlation 0Use Pearson Correlation to Assess Nonlinear Association?Conditional density in hierarchical model
$begingroup$
Assume we are given two normally distributed random variables, $X_1$ and $X_2$, with $X_i sim mathcal N (0, sigma_x_i^2)$, with correlation coefficient $rho_x$. Assume further that we need to generate another two normally distributed random variables $Y_1$ and $Y_2$ with $Y_j sim mathcal N (0,sigma_y_j^2)$, with correlation coefficient $rho_y$ and cross correlation
$$rho_i,j =fracmathbbEX_i Y_jsigma_x_i sigma_y_i$$
I.e., we need to generate $[Y_1, Y_2]$ taken into consideration the given $[X_1, X_2]$. I know how to generate all of them together $[X_1,X_2, Y_1, Y_2]$ using covariance matrix
$$M_4times4 =
beginbmatrix
sigma_x_1^2 &rho_x sigma_x_1sigma_x_2 &rho_1,1sigma_x_1 sigma_y_1 &rho_1,2sigma_x_1sigma_y_2\
rho_x sigma_x_1sigma_x_2 &sigma_x_2^2 &rho_2,1sigma_x_2 sigma_y_1 & rho_2,2sigma_x_2 sigma_y_2\
rho_1,1 sigma_x_1 sigma_y_1 & rho_1,2 sigma_x_2 sigma_y_1 & sigma_y_1^2 & rho_ysigma_y_1sigma_y_2\
rho_1,2 sigma_x_1 sigma_y_2 & rho_2,2 sigma_x_2sigma_y_2 & rho_ysigma_y_1sigma_y_2 & sigma_y_2^2 \
endbmatrix = beginbmatrix A_2times2 & B_2times2 \ B^top_2times2 & C_2times2 \ endbmatrix $$
I think we can generate $[Y_1, Y_2]$ by conditioning on $[X_1, X_2]$ and calculate the new conditional covariance, $tildeC = beginbmatrix C - B^top A^-1B endbmatrix$. Assuming that $A,B$ and $C$ are positive semidefinite (PSD), but not $M$, is it still possible to generate $[Y_1,Y_2]$?! or are we going to get always a non-PSD $tildeC$.
statistics numerical-linear-algebra conditional-probability
$endgroup$
add a comment |
$begingroup$
Assume we are given two normally distributed random variables, $X_1$ and $X_2$, with $X_i sim mathcal N (0, sigma_x_i^2)$, with correlation coefficient $rho_x$. Assume further that we need to generate another two normally distributed random variables $Y_1$ and $Y_2$ with $Y_j sim mathcal N (0,sigma_y_j^2)$, with correlation coefficient $rho_y$ and cross correlation
$$rho_i,j =fracmathbbEX_i Y_jsigma_x_i sigma_y_i$$
I.e., we need to generate $[Y_1, Y_2]$ taken into consideration the given $[X_1, X_2]$. I know how to generate all of them together $[X_1,X_2, Y_1, Y_2]$ using covariance matrix
$$M_4times4 =
beginbmatrix
sigma_x_1^2 &rho_x sigma_x_1sigma_x_2 &rho_1,1sigma_x_1 sigma_y_1 &rho_1,2sigma_x_1sigma_y_2\
rho_x sigma_x_1sigma_x_2 &sigma_x_2^2 &rho_2,1sigma_x_2 sigma_y_1 & rho_2,2sigma_x_2 sigma_y_2\
rho_1,1 sigma_x_1 sigma_y_1 & rho_1,2 sigma_x_2 sigma_y_1 & sigma_y_1^2 & rho_ysigma_y_1sigma_y_2\
rho_1,2 sigma_x_1 sigma_y_2 & rho_2,2 sigma_x_2sigma_y_2 & rho_ysigma_y_1sigma_y_2 & sigma_y_2^2 \
endbmatrix = beginbmatrix A_2times2 & B_2times2 \ B^top_2times2 & C_2times2 \ endbmatrix $$
I think we can generate $[Y_1, Y_2]$ by conditioning on $[X_1, X_2]$ and calculate the new conditional covariance, $tildeC = beginbmatrix C - B^top A^-1B endbmatrix$. Assuming that $A,B$ and $C$ are positive semidefinite (PSD), but not $M$, is it still possible to generate $[Y_1,Y_2]$?! or are we going to get always a non-PSD $tildeC$.
statistics numerical-linear-algebra conditional-probability
$endgroup$
add a comment |
$begingroup$
Assume we are given two normally distributed random variables, $X_1$ and $X_2$, with $X_i sim mathcal N (0, sigma_x_i^2)$, with correlation coefficient $rho_x$. Assume further that we need to generate another two normally distributed random variables $Y_1$ and $Y_2$ with $Y_j sim mathcal N (0,sigma_y_j^2)$, with correlation coefficient $rho_y$ and cross correlation
$$rho_i,j =fracmathbbEX_i Y_jsigma_x_i sigma_y_i$$
I.e., we need to generate $[Y_1, Y_2]$ taken into consideration the given $[X_1, X_2]$. I know how to generate all of them together $[X_1,X_2, Y_1, Y_2]$ using covariance matrix
$$M_4times4 =
beginbmatrix
sigma_x_1^2 &rho_x sigma_x_1sigma_x_2 &rho_1,1sigma_x_1 sigma_y_1 &rho_1,2sigma_x_1sigma_y_2\
rho_x sigma_x_1sigma_x_2 &sigma_x_2^2 &rho_2,1sigma_x_2 sigma_y_1 & rho_2,2sigma_x_2 sigma_y_2\
rho_1,1 sigma_x_1 sigma_y_1 & rho_1,2 sigma_x_2 sigma_y_1 & sigma_y_1^2 & rho_ysigma_y_1sigma_y_2\
rho_1,2 sigma_x_1 sigma_y_2 & rho_2,2 sigma_x_2sigma_y_2 & rho_ysigma_y_1sigma_y_2 & sigma_y_2^2 \
endbmatrix = beginbmatrix A_2times2 & B_2times2 \ B^top_2times2 & C_2times2 \ endbmatrix $$
I think we can generate $[Y_1, Y_2]$ by conditioning on $[X_1, X_2]$ and calculate the new conditional covariance, $tildeC = beginbmatrix C - B^top A^-1B endbmatrix$. Assuming that $A,B$ and $C$ are positive semidefinite (PSD), but not $M$, is it still possible to generate $[Y_1,Y_2]$?! or are we going to get always a non-PSD $tildeC$.
statistics numerical-linear-algebra conditional-probability
$endgroup$
Assume we are given two normally distributed random variables, $X_1$ and $X_2$, with $X_i sim mathcal N (0, sigma_x_i^2)$, with correlation coefficient $rho_x$. Assume further that we need to generate another two normally distributed random variables $Y_1$ and $Y_2$ with $Y_j sim mathcal N (0,sigma_y_j^2)$, with correlation coefficient $rho_y$ and cross correlation
$$rho_i,j =fracmathbbEX_i Y_jsigma_x_i sigma_y_i$$
I.e., we need to generate $[Y_1, Y_2]$ taken into consideration the given $[X_1, X_2]$. I know how to generate all of them together $[X_1,X_2, Y_1, Y_2]$ using covariance matrix
$$M_4times4 =
beginbmatrix
sigma_x_1^2 &rho_x sigma_x_1sigma_x_2 &rho_1,1sigma_x_1 sigma_y_1 &rho_1,2sigma_x_1sigma_y_2\
rho_x sigma_x_1sigma_x_2 &sigma_x_2^2 &rho_2,1sigma_x_2 sigma_y_1 & rho_2,2sigma_x_2 sigma_y_2\
rho_1,1 sigma_x_1 sigma_y_1 & rho_1,2 sigma_x_2 sigma_y_1 & sigma_y_1^2 & rho_ysigma_y_1sigma_y_2\
rho_1,2 sigma_x_1 sigma_y_2 & rho_2,2 sigma_x_2sigma_y_2 & rho_ysigma_y_1sigma_y_2 & sigma_y_2^2 \
endbmatrix = beginbmatrix A_2times2 & B_2times2 \ B^top_2times2 & C_2times2 \ endbmatrix $$
I think we can generate $[Y_1, Y_2]$ by conditioning on $[X_1, X_2]$ and calculate the new conditional covariance, $tildeC = beginbmatrix C - B^top A^-1B endbmatrix$. Assuming that $A,B$ and $C$ are positive semidefinite (PSD), but not $M$, is it still possible to generate $[Y_1,Y_2]$?! or are we going to get always a non-PSD $tildeC$.
statistics numerical-linear-algebra conditional-probability
statistics numerical-linear-algebra conditional-probability
edited 19 hours ago
MrX
asked yesterday
MrXMrX
302313
302313
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
You have a small typo: the conditional covariance is $C - B^top A^-1 B$.
If you take for granted that the formula for conditional covariance is correct, then you know it must be PSD simply because it is a covariance matrix. (Similarly, you know $A$ and $C$ must be PSD since they are covariance matrices for $(X_1, X_2)$ and $(Y_1, Y_2)$).
For general matrices that don't have any context as covariance matrices, you can refer to these results on the Schur complement.
$endgroup$
$begingroup$
I corrected the typo, it is due to the fact I was initially using $sigma_x_i = sigma_x$, i.e.,$B$ would be symmetric.
$endgroup$
– MrX
19 hours ago
$begingroup$
But the core of my question boils down to the following: I think from the "if and only of" when $M$ is not PSD then $tildeC$ is not PSD, is this correct? and thus we cannot generate $[Y_1, Y_2]$ (unless we use the generalized inverse)
$endgroup$
– MrX
19 hours ago
$begingroup$
@MrX But why do you think $M$ is not PSD?
$endgroup$
– angryavian
19 hours ago
$begingroup$
I am assuming it is given that $M$ is not a PSD, I was thinking if there is a work around to generate $[X_1, X_2, Y_1,Y_2]$ when $M$ is not PSD, and then thought of this iterative method (first $[X_1, X_2]$ then $[Y_1,Y_2]$)... frankly it would make sense that $tildeC$ is not PSD if $M$ is not.
$endgroup$
– MrX
19 hours ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3140909%2fgenerating-correlated-normal-vectors-with-observations%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
You have a small typo: the conditional covariance is $C - B^top A^-1 B$.
If you take for granted that the formula for conditional covariance is correct, then you know it must be PSD simply because it is a covariance matrix. (Similarly, you know $A$ and $C$ must be PSD since they are covariance matrices for $(X_1, X_2)$ and $(Y_1, Y_2)$).
For general matrices that don't have any context as covariance matrices, you can refer to these results on the Schur complement.
$endgroup$
$begingroup$
I corrected the typo, it is due to the fact I was initially using $sigma_x_i = sigma_x$, i.e.,$B$ would be symmetric.
$endgroup$
– MrX
19 hours ago
$begingroup$
But the core of my question boils down to the following: I think from the "if and only of" when $M$ is not PSD then $tildeC$ is not PSD, is this correct? and thus we cannot generate $[Y_1, Y_2]$ (unless we use the generalized inverse)
$endgroup$
– MrX
19 hours ago
$begingroup$
@MrX But why do you think $M$ is not PSD?
$endgroup$
– angryavian
19 hours ago
$begingroup$
I am assuming it is given that $M$ is not a PSD, I was thinking if there is a work around to generate $[X_1, X_2, Y_1,Y_2]$ when $M$ is not PSD, and then thought of this iterative method (first $[X_1, X_2]$ then $[Y_1,Y_2]$)... frankly it would make sense that $tildeC$ is not PSD if $M$ is not.
$endgroup$
– MrX
19 hours ago
add a comment |
$begingroup$
You have a small typo: the conditional covariance is $C - B^top A^-1 B$.
If you take for granted that the formula for conditional covariance is correct, then you know it must be PSD simply because it is a covariance matrix. (Similarly, you know $A$ and $C$ must be PSD since they are covariance matrices for $(X_1, X_2)$ and $(Y_1, Y_2)$).
For general matrices that don't have any context as covariance matrices, you can refer to these results on the Schur complement.
$endgroup$
$begingroup$
I corrected the typo, it is due to the fact I was initially using $sigma_x_i = sigma_x$, i.e.,$B$ would be symmetric.
$endgroup$
– MrX
19 hours ago
$begingroup$
But the core of my question boils down to the following: I think from the "if and only of" when $M$ is not PSD then $tildeC$ is not PSD, is this correct? and thus we cannot generate $[Y_1, Y_2]$ (unless we use the generalized inverse)
$endgroup$
– MrX
19 hours ago
$begingroup$
@MrX But why do you think $M$ is not PSD?
$endgroup$
– angryavian
19 hours ago
$begingroup$
I am assuming it is given that $M$ is not a PSD, I was thinking if there is a work around to generate $[X_1, X_2, Y_1,Y_2]$ when $M$ is not PSD, and then thought of this iterative method (first $[X_1, X_2]$ then $[Y_1,Y_2]$)... frankly it would make sense that $tildeC$ is not PSD if $M$ is not.
$endgroup$
– MrX
19 hours ago
add a comment |
$begingroup$
You have a small typo: the conditional covariance is $C - B^top A^-1 B$.
If you take for granted that the formula for conditional covariance is correct, then you know it must be PSD simply because it is a covariance matrix. (Similarly, you know $A$ and $C$ must be PSD since they are covariance matrices for $(X_1, X_2)$ and $(Y_1, Y_2)$).
For general matrices that don't have any context as covariance matrices, you can refer to these results on the Schur complement.
$endgroup$
You have a small typo: the conditional covariance is $C - B^top A^-1 B$.
If you take for granted that the formula for conditional covariance is correct, then you know it must be PSD simply because it is a covariance matrix. (Similarly, you know $A$ and $C$ must be PSD since they are covariance matrices for $(X_1, X_2)$ and $(Y_1, Y_2)$).
For general matrices that don't have any context as covariance matrices, you can refer to these results on the Schur complement.
answered yesterday
angryavianangryavian
42k23381
42k23381
$begingroup$
I corrected the typo, it is due to the fact I was initially using $sigma_x_i = sigma_x$, i.e.,$B$ would be symmetric.
$endgroup$
– MrX
19 hours ago
$begingroup$
But the core of my question boils down to the following: I think from the "if and only of" when $M$ is not PSD then $tildeC$ is not PSD, is this correct? and thus we cannot generate $[Y_1, Y_2]$ (unless we use the generalized inverse)
$endgroup$
– MrX
19 hours ago
$begingroup$
@MrX But why do you think $M$ is not PSD?
$endgroup$
– angryavian
19 hours ago
$begingroup$
I am assuming it is given that $M$ is not a PSD, I was thinking if there is a work around to generate $[X_1, X_2, Y_1,Y_2]$ when $M$ is not PSD, and then thought of this iterative method (first $[X_1, X_2]$ then $[Y_1,Y_2]$)... frankly it would make sense that $tildeC$ is not PSD if $M$ is not.
$endgroup$
– MrX
19 hours ago
add a comment |
$begingroup$
I corrected the typo, it is due to the fact I was initially using $sigma_x_i = sigma_x$, i.e.,$B$ would be symmetric.
$endgroup$
– MrX
19 hours ago
$begingroup$
But the core of my question boils down to the following: I think from the "if and only of" when $M$ is not PSD then $tildeC$ is not PSD, is this correct? and thus we cannot generate $[Y_1, Y_2]$ (unless we use the generalized inverse)
$endgroup$
– MrX
19 hours ago
$begingroup$
@MrX But why do you think $M$ is not PSD?
$endgroup$
– angryavian
19 hours ago
$begingroup$
I am assuming it is given that $M$ is not a PSD, I was thinking if there is a work around to generate $[X_1, X_2, Y_1,Y_2]$ when $M$ is not PSD, and then thought of this iterative method (first $[X_1, X_2]$ then $[Y_1,Y_2]$)... frankly it would make sense that $tildeC$ is not PSD if $M$ is not.
$endgroup$
– MrX
19 hours ago
$begingroup$
I corrected the typo, it is due to the fact I was initially using $sigma_x_i = sigma_x$, i.e.,$B$ would be symmetric.
$endgroup$
– MrX
19 hours ago
$begingroup$
I corrected the typo, it is due to the fact I was initially using $sigma_x_i = sigma_x$, i.e.,$B$ would be symmetric.
$endgroup$
– MrX
19 hours ago
$begingroup$
But the core of my question boils down to the following: I think from the "if and only of" when $M$ is not PSD then $tildeC$ is not PSD, is this correct? and thus we cannot generate $[Y_1, Y_2]$ (unless we use the generalized inverse)
$endgroup$
– MrX
19 hours ago
$begingroup$
But the core of my question boils down to the following: I think from the "if and only of" when $M$ is not PSD then $tildeC$ is not PSD, is this correct? and thus we cannot generate $[Y_1, Y_2]$ (unless we use the generalized inverse)
$endgroup$
– MrX
19 hours ago
$begingroup$
@MrX But why do you think $M$ is not PSD?
$endgroup$
– angryavian
19 hours ago
$begingroup$
@MrX But why do you think $M$ is not PSD?
$endgroup$
– angryavian
19 hours ago
$begingroup$
I am assuming it is given that $M$ is not a PSD, I was thinking if there is a work around to generate $[X_1, X_2, Y_1,Y_2]$ when $M$ is not PSD, and then thought of this iterative method (first $[X_1, X_2]$ then $[Y_1,Y_2]$)... frankly it would make sense that $tildeC$ is not PSD if $M$ is not.
$endgroup$
– MrX
19 hours ago
$begingroup$
I am assuming it is given that $M$ is not a PSD, I was thinking if there is a work around to generate $[X_1, X_2, Y_1,Y_2]$ when $M$ is not PSD, and then thought of this iterative method (first $[X_1, X_2]$ then $[Y_1,Y_2]$)... frankly it would make sense that $tildeC$ is not PSD if $M$ is not.
$endgroup$
– MrX
19 hours ago
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3140909%2fgenerating-correlated-normal-vectors-with-observations%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown