Calculate correlation coefficient for discrete random variable

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












From a population consisting of the numbers: $lbrace 1,2 ldots 10 rbrace$, two samples are chosen from it without replacement. If the random variable denoting the first choice is X and the second choice is $Y$, what is the correlation coefficient ($rho$) between $X$ and $Y$







share|cite|improve this question






















  • does the distribution of $X$ uniform on $1, 2, dots, 10$?
    – pointguard0
    Aug 22 at 5:33










  • yes distribution is uniform
    – Hardik gupta
    Aug 22 at 6:46














up vote
1
down vote

favorite












From a population consisting of the numbers: $lbrace 1,2 ldots 10 rbrace$, two samples are chosen from it without replacement. If the random variable denoting the first choice is X and the second choice is $Y$, what is the correlation coefficient ($rho$) between $X$ and $Y$







share|cite|improve this question






















  • does the distribution of $X$ uniform on $1, 2, dots, 10$?
    – pointguard0
    Aug 22 at 5:33










  • yes distribution is uniform
    – Hardik gupta
    Aug 22 at 6:46












up vote
1
down vote

favorite









up vote
1
down vote

favorite











From a population consisting of the numbers: $lbrace 1,2 ldots 10 rbrace$, two samples are chosen from it without replacement. If the random variable denoting the first choice is X and the second choice is $Y$, what is the correlation coefficient ($rho$) between $X$ and $Y$







share|cite|improve this question














From a population consisting of the numbers: $lbrace 1,2 ldots 10 rbrace$, two samples are chosen from it without replacement. If the random variable denoting the first choice is X and the second choice is $Y$, what is the correlation coefficient ($rho$) between $X$ and $Y$









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 22 at 4:46

























asked Aug 22 at 4:42









Hardik gupta

1156




1156











  • does the distribution of $X$ uniform on $1, 2, dots, 10$?
    – pointguard0
    Aug 22 at 5:33










  • yes distribution is uniform
    – Hardik gupta
    Aug 22 at 6:46
















  • does the distribution of $X$ uniform on $1, 2, dots, 10$?
    – pointguard0
    Aug 22 at 5:33










  • yes distribution is uniform
    – Hardik gupta
    Aug 22 at 6:46















does the distribution of $X$ uniform on $1, 2, dots, 10$?
– pointguard0
Aug 22 at 5:33




does the distribution of $X$ uniform on $1, 2, dots, 10$?
– pointguard0
Aug 22 at 5:33












yes distribution is uniform
– Hardik gupta
Aug 22 at 6:46




yes distribution is uniform
– Hardik gupta
Aug 22 at 6:46










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










Assuming $X$ is uniform on $1, 2, dots, 10$ we have
$$
mathbb E X = frac1 + 2 + dots + 1010 = 5.5, quad mathbbVar X = frac1^2 + dots + 10^210 - mathbb E X^2 = 8.25.
$$
To compute the expected value of $Y$ write
$$
mathbb E Y = sum_x in [10] mathbb E[Y ~|~ X=x] mathbbP(X = x),
$$
where $[n] := 1, 2, dots, n .$ Let us first compute $mathbb E Y:$
$$
mathbb E Y = frac 110left[frac 1 + dots + 99 + dots + frac2 + dots + 109right] = frac5510 = 5.5.
$$
$$
mathbb Var Y = frac 110left[frac 1^2 + dots + 9^29 + dots + frac2^2 + dots + 10^29right] - mathbb E Y^2 = 8.25
$$
For $mathbb E XY$ we have
$$
mathbb E XY = frac110left[frac1 + 2 + dots + 109cdot 10 cdot sum_x, y in [10] setminus x y right] = 30.25.
$$
Hence,
$$
rho(X, Y) = fracmathbb Cov(X, Y)sqrtmathbb Var X mathbb Var Y = frac30.25 - 5.5^28.25 = 0.
$$



As for me, it is counterintuitive that the answer is $0$ and I suspect that there must be much simpler solution.






share|cite|improve this answer




















  • the given answer is -1/9
    – Hardik gupta
    Aug 22 at 6:44










  • did you manually do all the calculations?
    – Hardik gupta
    Aug 22 at 6:49






  • 1




    yes, probably miscalculated something, but you got the idea
    – pointguard0
    Aug 22 at 8:32











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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f2890628%2fcalculate-correlation-coefficient-for-discrete-random-variable%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










Assuming $X$ is uniform on $1, 2, dots, 10$ we have
$$
mathbb E X = frac1 + 2 + dots + 1010 = 5.5, quad mathbbVar X = frac1^2 + dots + 10^210 - mathbb E X^2 = 8.25.
$$
To compute the expected value of $Y$ write
$$
mathbb E Y = sum_x in [10] mathbb E[Y ~|~ X=x] mathbbP(X = x),
$$
where $[n] := 1, 2, dots, n .$ Let us first compute $mathbb E Y:$
$$
mathbb E Y = frac 110left[frac 1 + dots + 99 + dots + frac2 + dots + 109right] = frac5510 = 5.5.
$$
$$
mathbb Var Y = frac 110left[frac 1^2 + dots + 9^29 + dots + frac2^2 + dots + 10^29right] - mathbb E Y^2 = 8.25
$$
For $mathbb E XY$ we have
$$
mathbb E XY = frac110left[frac1 + 2 + dots + 109cdot 10 cdot sum_x, y in [10] setminus x y right] = 30.25.
$$
Hence,
$$
rho(X, Y) = fracmathbb Cov(X, Y)sqrtmathbb Var X mathbb Var Y = frac30.25 - 5.5^28.25 = 0.
$$



As for me, it is counterintuitive that the answer is $0$ and I suspect that there must be much simpler solution.






share|cite|improve this answer




















  • the given answer is -1/9
    – Hardik gupta
    Aug 22 at 6:44










  • did you manually do all the calculations?
    – Hardik gupta
    Aug 22 at 6:49






  • 1




    yes, probably miscalculated something, but you got the idea
    – pointguard0
    Aug 22 at 8:32















up vote
1
down vote



accepted










Assuming $X$ is uniform on $1, 2, dots, 10$ we have
$$
mathbb E X = frac1 + 2 + dots + 1010 = 5.5, quad mathbbVar X = frac1^2 + dots + 10^210 - mathbb E X^2 = 8.25.
$$
To compute the expected value of $Y$ write
$$
mathbb E Y = sum_x in [10] mathbb E[Y ~|~ X=x] mathbbP(X = x),
$$
where $[n] := 1, 2, dots, n .$ Let us first compute $mathbb E Y:$
$$
mathbb E Y = frac 110left[frac 1 + dots + 99 + dots + frac2 + dots + 109right] = frac5510 = 5.5.
$$
$$
mathbb Var Y = frac 110left[frac 1^2 + dots + 9^29 + dots + frac2^2 + dots + 10^29right] - mathbb E Y^2 = 8.25
$$
For $mathbb E XY$ we have
$$
mathbb E XY = frac110left[frac1 + 2 + dots + 109cdot 10 cdot sum_x, y in [10] setminus x y right] = 30.25.
$$
Hence,
$$
rho(X, Y) = fracmathbb Cov(X, Y)sqrtmathbb Var X mathbb Var Y = frac30.25 - 5.5^28.25 = 0.
$$



As for me, it is counterintuitive that the answer is $0$ and I suspect that there must be much simpler solution.






share|cite|improve this answer




















  • the given answer is -1/9
    – Hardik gupta
    Aug 22 at 6:44










  • did you manually do all the calculations?
    – Hardik gupta
    Aug 22 at 6:49






  • 1




    yes, probably miscalculated something, but you got the idea
    – pointguard0
    Aug 22 at 8:32













up vote
1
down vote



accepted







up vote
1
down vote



accepted






Assuming $X$ is uniform on $1, 2, dots, 10$ we have
$$
mathbb E X = frac1 + 2 + dots + 1010 = 5.5, quad mathbbVar X = frac1^2 + dots + 10^210 - mathbb E X^2 = 8.25.
$$
To compute the expected value of $Y$ write
$$
mathbb E Y = sum_x in [10] mathbb E[Y ~|~ X=x] mathbbP(X = x),
$$
where $[n] := 1, 2, dots, n .$ Let us first compute $mathbb E Y:$
$$
mathbb E Y = frac 110left[frac 1 + dots + 99 + dots + frac2 + dots + 109right] = frac5510 = 5.5.
$$
$$
mathbb Var Y = frac 110left[frac 1^2 + dots + 9^29 + dots + frac2^2 + dots + 10^29right] - mathbb E Y^2 = 8.25
$$
For $mathbb E XY$ we have
$$
mathbb E XY = frac110left[frac1 + 2 + dots + 109cdot 10 cdot sum_x, y in [10] setminus x y right] = 30.25.
$$
Hence,
$$
rho(X, Y) = fracmathbb Cov(X, Y)sqrtmathbb Var X mathbb Var Y = frac30.25 - 5.5^28.25 = 0.
$$



As for me, it is counterintuitive that the answer is $0$ and I suspect that there must be much simpler solution.






share|cite|improve this answer












Assuming $X$ is uniform on $1, 2, dots, 10$ we have
$$
mathbb E X = frac1 + 2 + dots + 1010 = 5.5, quad mathbbVar X = frac1^2 + dots + 10^210 - mathbb E X^2 = 8.25.
$$
To compute the expected value of $Y$ write
$$
mathbb E Y = sum_x in [10] mathbb E[Y ~|~ X=x] mathbbP(X = x),
$$
where $[n] := 1, 2, dots, n .$ Let us first compute $mathbb E Y:$
$$
mathbb E Y = frac 110left[frac 1 + dots + 99 + dots + frac2 + dots + 109right] = frac5510 = 5.5.
$$
$$
mathbb Var Y = frac 110left[frac 1^2 + dots + 9^29 + dots + frac2^2 + dots + 10^29right] - mathbb E Y^2 = 8.25
$$
For $mathbb E XY$ we have
$$
mathbb E XY = frac110left[frac1 + 2 + dots + 109cdot 10 cdot sum_x, y in [10] setminus x y right] = 30.25.
$$
Hence,
$$
rho(X, Y) = fracmathbb Cov(X, Y)sqrtmathbb Var X mathbb Var Y = frac30.25 - 5.5^28.25 = 0.
$$



As for me, it is counterintuitive that the answer is $0$ and I suspect that there must be much simpler solution.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Aug 22 at 6:16









pointguard0

1,236821




1,236821











  • the given answer is -1/9
    – Hardik gupta
    Aug 22 at 6:44










  • did you manually do all the calculations?
    – Hardik gupta
    Aug 22 at 6:49






  • 1




    yes, probably miscalculated something, but you got the idea
    – pointguard0
    Aug 22 at 8:32

















  • the given answer is -1/9
    – Hardik gupta
    Aug 22 at 6:44










  • did you manually do all the calculations?
    – Hardik gupta
    Aug 22 at 6:49






  • 1




    yes, probably miscalculated something, but you got the idea
    – pointguard0
    Aug 22 at 8:32
















the given answer is -1/9
– Hardik gupta
Aug 22 at 6:44




the given answer is -1/9
– Hardik gupta
Aug 22 at 6:44












did you manually do all the calculations?
– Hardik gupta
Aug 22 at 6:49




did you manually do all the calculations?
– Hardik gupta
Aug 22 at 6:49




1




1




yes, probably miscalculated something, but you got the idea
– pointguard0
Aug 22 at 8:32





yes, probably miscalculated something, but you got the idea
– pointguard0
Aug 22 at 8:32













 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2890628%2fcalculate-correlation-coefficient-for-discrete-random-variable%23new-answer', 'question_page');

);

Post as a guest













































































這個網誌中的熱門文章

tkz-euclide: tkzDrawCircle[R] not working

How to combine Bézier curves to a surface?

1st Magritte Awards