Expression for Covariance- summation over duplicates












0














Suppose I have a random variable:
$$
Y_{it}=A_{it}+B_{it}
$$

which is made up of two random variables $A$ and $B.$ $i$ is the
unit of observation that runs through $i=1....N$ for each time period $t=1...T$. Now taking the
covariance of $Y$ for any two units $i$ and $j$ over time, we have:
$$
cov(Y_{i},Y_{j})=cov(A_{i},A_{j})+cov(B_{i},B_{j})+cov(A_{i},B_{j})+cov(A_{j},B_{i})
$$

Now, I want to figure out the average contribution of the term $cov(A_{i},A_{j})$
to the term $cov(Y_{i},Y_{J}).$ What I have is
$$
C=frac{1}{N^2}sum_{i=1}^{N}sum_{j=1}^{N}frac{cov(A_{i},A_{j})}{cov(Y_{i},Y_{j})}
$$



Notice that the variance-covariance matrix is symmetric. As such, there are ionly $N/(N-1)/2$ unique entries ($cov(A_{1},A_{_2}$)=$cov(A_{2},A_{1})$. I know that the expression above is incorrect (as it generates duplicates). How can I modify the above expression to correct notation such that it contains only a unique occurence of symmetric covariances?










share|cite|improve this question






















  • Assuming that the only duplicates are of the form $mathrm{Cov}(A_i,A_j) = mathrm{Cov}(A_j,A_2)$ you could simply rewrite the summation as $$frac{1}{binom{n}{2} +n} sumlimits_{i=1}^Nsumlimits_{j=i}^N frac{mathrm{Cov}(A_i,A_j) }{mathrm{Cov}(Y_i,Y_j) }.$$
    – Cain
    Nov 26 at 22:18












  • Why does the duplication of entries make it incorrect?
    – herb steinberg
    Nov 26 at 22:46












  • @herb It doesn't make it incorrect, but I am simply not considering them.
    – ChinG
    Nov 27 at 4:42










  • @herbsteinberg . In your expression, the summation still is over all N for i and j. How will this ignore duplicates?
    – ChinG
    Nov 27 at 4:42










  • @ChinG Why ignore duplicates? The only thing to be careful of is the treatment of those terms where i=j.
    – herb steinberg
    Nov 27 at 4:54
















0














Suppose I have a random variable:
$$
Y_{it}=A_{it}+B_{it}
$$

which is made up of two random variables $A$ and $B.$ $i$ is the
unit of observation that runs through $i=1....N$ for each time period $t=1...T$. Now taking the
covariance of $Y$ for any two units $i$ and $j$ over time, we have:
$$
cov(Y_{i},Y_{j})=cov(A_{i},A_{j})+cov(B_{i},B_{j})+cov(A_{i},B_{j})+cov(A_{j},B_{i})
$$

Now, I want to figure out the average contribution of the term $cov(A_{i},A_{j})$
to the term $cov(Y_{i},Y_{J}).$ What I have is
$$
C=frac{1}{N^2}sum_{i=1}^{N}sum_{j=1}^{N}frac{cov(A_{i},A_{j})}{cov(Y_{i},Y_{j})}
$$



Notice that the variance-covariance matrix is symmetric. As such, there are ionly $N/(N-1)/2$ unique entries ($cov(A_{1},A_{_2}$)=$cov(A_{2},A_{1})$. I know that the expression above is incorrect (as it generates duplicates). How can I modify the above expression to correct notation such that it contains only a unique occurence of symmetric covariances?










share|cite|improve this question






















  • Assuming that the only duplicates are of the form $mathrm{Cov}(A_i,A_j) = mathrm{Cov}(A_j,A_2)$ you could simply rewrite the summation as $$frac{1}{binom{n}{2} +n} sumlimits_{i=1}^Nsumlimits_{j=i}^N frac{mathrm{Cov}(A_i,A_j) }{mathrm{Cov}(Y_i,Y_j) }.$$
    – Cain
    Nov 26 at 22:18












  • Why does the duplication of entries make it incorrect?
    – herb steinberg
    Nov 26 at 22:46












  • @herb It doesn't make it incorrect, but I am simply not considering them.
    – ChinG
    Nov 27 at 4:42










  • @herbsteinberg . In your expression, the summation still is over all N for i and j. How will this ignore duplicates?
    – ChinG
    Nov 27 at 4:42










  • @ChinG Why ignore duplicates? The only thing to be careful of is the treatment of those terms where i=j.
    – herb steinberg
    Nov 27 at 4:54














0












0








0







Suppose I have a random variable:
$$
Y_{it}=A_{it}+B_{it}
$$

which is made up of two random variables $A$ and $B.$ $i$ is the
unit of observation that runs through $i=1....N$ for each time period $t=1...T$. Now taking the
covariance of $Y$ for any two units $i$ and $j$ over time, we have:
$$
cov(Y_{i},Y_{j})=cov(A_{i},A_{j})+cov(B_{i},B_{j})+cov(A_{i},B_{j})+cov(A_{j},B_{i})
$$

Now, I want to figure out the average contribution of the term $cov(A_{i},A_{j})$
to the term $cov(Y_{i},Y_{J}).$ What I have is
$$
C=frac{1}{N^2}sum_{i=1}^{N}sum_{j=1}^{N}frac{cov(A_{i},A_{j})}{cov(Y_{i},Y_{j})}
$$



Notice that the variance-covariance matrix is symmetric. As such, there are ionly $N/(N-1)/2$ unique entries ($cov(A_{1},A_{_2}$)=$cov(A_{2},A_{1})$. I know that the expression above is incorrect (as it generates duplicates). How can I modify the above expression to correct notation such that it contains only a unique occurence of symmetric covariances?










share|cite|improve this question













Suppose I have a random variable:
$$
Y_{it}=A_{it}+B_{it}
$$

which is made up of two random variables $A$ and $B.$ $i$ is the
unit of observation that runs through $i=1....N$ for each time period $t=1...T$. Now taking the
covariance of $Y$ for any two units $i$ and $j$ over time, we have:
$$
cov(Y_{i},Y_{j})=cov(A_{i},A_{j})+cov(B_{i},B_{j})+cov(A_{i},B_{j})+cov(A_{j},B_{i})
$$

Now, I want to figure out the average contribution of the term $cov(A_{i},A_{j})$
to the term $cov(Y_{i},Y_{J}).$ What I have is
$$
C=frac{1}{N^2}sum_{i=1}^{N}sum_{j=1}^{N}frac{cov(A_{i},A_{j})}{cov(Y_{i},Y_{j})}
$$



Notice that the variance-covariance matrix is symmetric. As such, there are ionly $N/(N-1)/2$ unique entries ($cov(A_{1},A_{_2}$)=$cov(A_{2},A_{1})$. I know that the expression above is incorrect (as it generates duplicates). How can I modify the above expression to correct notation such that it contains only a unique occurence of symmetric covariances?







covariance






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 24 at 21:19









ChinG

11411




11411












  • Assuming that the only duplicates are of the form $mathrm{Cov}(A_i,A_j) = mathrm{Cov}(A_j,A_2)$ you could simply rewrite the summation as $$frac{1}{binom{n}{2} +n} sumlimits_{i=1}^Nsumlimits_{j=i}^N frac{mathrm{Cov}(A_i,A_j) }{mathrm{Cov}(Y_i,Y_j) }.$$
    – Cain
    Nov 26 at 22:18












  • Why does the duplication of entries make it incorrect?
    – herb steinberg
    Nov 26 at 22:46












  • @herb It doesn't make it incorrect, but I am simply not considering them.
    – ChinG
    Nov 27 at 4:42










  • @herbsteinberg . In your expression, the summation still is over all N for i and j. How will this ignore duplicates?
    – ChinG
    Nov 27 at 4:42










  • @ChinG Why ignore duplicates? The only thing to be careful of is the treatment of those terms where i=j.
    – herb steinberg
    Nov 27 at 4:54


















  • Assuming that the only duplicates are of the form $mathrm{Cov}(A_i,A_j) = mathrm{Cov}(A_j,A_2)$ you could simply rewrite the summation as $$frac{1}{binom{n}{2} +n} sumlimits_{i=1}^Nsumlimits_{j=i}^N frac{mathrm{Cov}(A_i,A_j) }{mathrm{Cov}(Y_i,Y_j) }.$$
    – Cain
    Nov 26 at 22:18












  • Why does the duplication of entries make it incorrect?
    – herb steinberg
    Nov 26 at 22:46












  • @herb It doesn't make it incorrect, but I am simply not considering them.
    – ChinG
    Nov 27 at 4:42










  • @herbsteinberg . In your expression, the summation still is over all N for i and j. How will this ignore duplicates?
    – ChinG
    Nov 27 at 4:42










  • @ChinG Why ignore duplicates? The only thing to be careful of is the treatment of those terms where i=j.
    – herb steinberg
    Nov 27 at 4:54
















Assuming that the only duplicates are of the form $mathrm{Cov}(A_i,A_j) = mathrm{Cov}(A_j,A_2)$ you could simply rewrite the summation as $$frac{1}{binom{n}{2} +n} sumlimits_{i=1}^Nsumlimits_{j=i}^N frac{mathrm{Cov}(A_i,A_j) }{mathrm{Cov}(Y_i,Y_j) }.$$
– Cain
Nov 26 at 22:18






Assuming that the only duplicates are of the form $mathrm{Cov}(A_i,A_j) = mathrm{Cov}(A_j,A_2)$ you could simply rewrite the summation as $$frac{1}{binom{n}{2} +n} sumlimits_{i=1}^Nsumlimits_{j=i}^N frac{mathrm{Cov}(A_i,A_j) }{mathrm{Cov}(Y_i,Y_j) }.$$
– Cain
Nov 26 at 22:18














Why does the duplication of entries make it incorrect?
– herb steinberg
Nov 26 at 22:46






Why does the duplication of entries make it incorrect?
– herb steinberg
Nov 26 at 22:46














@herb It doesn't make it incorrect, but I am simply not considering them.
– ChinG
Nov 27 at 4:42




@herb It doesn't make it incorrect, but I am simply not considering them.
– ChinG
Nov 27 at 4:42












@herbsteinberg . In your expression, the summation still is over all N for i and j. How will this ignore duplicates?
– ChinG
Nov 27 at 4:42




@herbsteinberg . In your expression, the summation still is over all N for i and j. How will this ignore duplicates?
– ChinG
Nov 27 at 4:42












@ChinG Why ignore duplicates? The only thing to be careful of is the treatment of those terms where i=j.
– herb steinberg
Nov 27 at 4:54




@ChinG Why ignore duplicates? The only thing to be careful of is the treatment of those terms where i=j.
– herb steinberg
Nov 27 at 4:54















active

oldest

votes











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3012095%2fexpression-for-covariance-summation-over-duplicates%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3012095%2fexpression-for-covariance-summation-over-duplicates%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix