conditional probability which their condition have $XOR and Z=X+Y$

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











up vote
0
down vote

favorite












Let $X$ and $Y$ be two independent binary random variable with the same alphabet $0,1$,ie,$Pr(0)=Pr(1)=frac12$



Define $I(X;Y|Z)=H(X|Z)-H(X|Y,Z)$



$1.$Let $Z=X+Y$,Find $I(X;Y|Z)$



$2.$Let $Z=X ⊕Y$, Find $I(X;Y|Z)$. ⊕ means XOR operation



For these two questions,i don't know how to find their probability,can anyone teach me



By the way, i know the $I$(information) and $H$(entropy) are not the probability,$Pr(X;Y|Z)$,but i need the probability before calculating them







share|cite|improve this question





















  • So you want the joint distribution of $X$ and $Y$ given $Z$? $Z$ can be $0,1$ or $2.$ Conditional on $Z=0,$ $(X,Y) = (0,0)$ with probability one. Conditional on $Z=2,$ $(X,Y)=(1,1)$ with probability one. And conditional on $Z=1,$ $(X,Y) = (1,0)$ with probability $1/2$ and $(X,Y) = (0,1)$ with probability $1/2.$
    – spaceisdarkgreen
    Jul 29 at 3:26











  • oh!you misunderstand something,that 2 is the question two.And in fact, i want the joint distribution of X given Y and Z to calculate the I(X;Y|Z)
    – Shine Sun
    Jul 29 at 8:40











  • Given $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2
    – Henry
    Jul 29 at 9:12










  • @Henry I just think that is H(X|Y,Z)=H(X|Z)? Because P(X|Y,Z) should me the sum of Pr(X=x) given that Y=y and Z=z
    – Shine Sun
    Jul 29 at 13:07















up vote
0
down vote

favorite












Let $X$ and $Y$ be two independent binary random variable with the same alphabet $0,1$,ie,$Pr(0)=Pr(1)=frac12$



Define $I(X;Y|Z)=H(X|Z)-H(X|Y,Z)$



$1.$Let $Z=X+Y$,Find $I(X;Y|Z)$



$2.$Let $Z=X ⊕Y$, Find $I(X;Y|Z)$. ⊕ means XOR operation



For these two questions,i don't know how to find their probability,can anyone teach me



By the way, i know the $I$(information) and $H$(entropy) are not the probability,$Pr(X;Y|Z)$,but i need the probability before calculating them







share|cite|improve this question





















  • So you want the joint distribution of $X$ and $Y$ given $Z$? $Z$ can be $0,1$ or $2.$ Conditional on $Z=0,$ $(X,Y) = (0,0)$ with probability one. Conditional on $Z=2,$ $(X,Y)=(1,1)$ with probability one. And conditional on $Z=1,$ $(X,Y) = (1,0)$ with probability $1/2$ and $(X,Y) = (0,1)$ with probability $1/2.$
    – spaceisdarkgreen
    Jul 29 at 3:26











  • oh!you misunderstand something,that 2 is the question two.And in fact, i want the joint distribution of X given Y and Z to calculate the I(X;Y|Z)
    – Shine Sun
    Jul 29 at 8:40











  • Given $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2
    – Henry
    Jul 29 at 9:12










  • @Henry I just think that is H(X|Y,Z)=H(X|Z)? Because P(X|Y,Z) should me the sum of Pr(X=x) given that Y=y and Z=z
    – Shine Sun
    Jul 29 at 13:07













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Let $X$ and $Y$ be two independent binary random variable with the same alphabet $0,1$,ie,$Pr(0)=Pr(1)=frac12$



Define $I(X;Y|Z)=H(X|Z)-H(X|Y,Z)$



$1.$Let $Z=X+Y$,Find $I(X;Y|Z)$



$2.$Let $Z=X ⊕Y$, Find $I(X;Y|Z)$. ⊕ means XOR operation



For these two questions,i don't know how to find their probability,can anyone teach me



By the way, i know the $I$(information) and $H$(entropy) are not the probability,$Pr(X;Y|Z)$,but i need the probability before calculating them







share|cite|improve this question













Let $X$ and $Y$ be two independent binary random variable with the same alphabet $0,1$,ie,$Pr(0)=Pr(1)=frac12$



Define $I(X;Y|Z)=H(X|Z)-H(X|Y,Z)$



$1.$Let $Z=X+Y$,Find $I(X;Y|Z)$



$2.$Let $Z=X ⊕Y$, Find $I(X;Y|Z)$. ⊕ means XOR operation



For these two questions,i don't know how to find their probability,can anyone teach me



By the way, i know the $I$(information) and $H$(entropy) are not the probability,$Pr(X;Y|Z)$,but i need the probability before calculating them









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 29 at 8:41
























asked Jul 29 at 2:00









Shine Sun

1258




1258











  • So you want the joint distribution of $X$ and $Y$ given $Z$? $Z$ can be $0,1$ or $2.$ Conditional on $Z=0,$ $(X,Y) = (0,0)$ with probability one. Conditional on $Z=2,$ $(X,Y)=(1,1)$ with probability one. And conditional on $Z=1,$ $(X,Y) = (1,0)$ with probability $1/2$ and $(X,Y) = (0,1)$ with probability $1/2.$
    – spaceisdarkgreen
    Jul 29 at 3:26











  • oh!you misunderstand something,that 2 is the question two.And in fact, i want the joint distribution of X given Y and Z to calculate the I(X;Y|Z)
    – Shine Sun
    Jul 29 at 8:40











  • Given $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2
    – Henry
    Jul 29 at 9:12










  • @Henry I just think that is H(X|Y,Z)=H(X|Z)? Because P(X|Y,Z) should me the sum of Pr(X=x) given that Y=y and Z=z
    – Shine Sun
    Jul 29 at 13:07

















  • So you want the joint distribution of $X$ and $Y$ given $Z$? $Z$ can be $0,1$ or $2.$ Conditional on $Z=0,$ $(X,Y) = (0,0)$ with probability one. Conditional on $Z=2,$ $(X,Y)=(1,1)$ with probability one. And conditional on $Z=1,$ $(X,Y) = (1,0)$ with probability $1/2$ and $(X,Y) = (0,1)$ with probability $1/2.$
    – spaceisdarkgreen
    Jul 29 at 3:26











  • oh!you misunderstand something,that 2 is the question two.And in fact, i want the joint distribution of X given Y and Z to calculate the I(X;Y|Z)
    – Shine Sun
    Jul 29 at 8:40











  • Given $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2
    – Henry
    Jul 29 at 9:12










  • @Henry I just think that is H(X|Y,Z)=H(X|Z)? Because P(X|Y,Z) should me the sum of Pr(X=x) given that Y=y and Z=z
    – Shine Sun
    Jul 29 at 13:07
















So you want the joint distribution of $X$ and $Y$ given $Z$? $Z$ can be $0,1$ or $2.$ Conditional on $Z=0,$ $(X,Y) = (0,0)$ with probability one. Conditional on $Z=2,$ $(X,Y)=(1,1)$ with probability one. And conditional on $Z=1,$ $(X,Y) = (1,0)$ with probability $1/2$ and $(X,Y) = (0,1)$ with probability $1/2.$
– spaceisdarkgreen
Jul 29 at 3:26





So you want the joint distribution of $X$ and $Y$ given $Z$? $Z$ can be $0,1$ or $2.$ Conditional on $Z=0,$ $(X,Y) = (0,0)$ with probability one. Conditional on $Z=2,$ $(X,Y)=(1,1)$ with probability one. And conditional on $Z=1,$ $(X,Y) = (1,0)$ with probability $1/2$ and $(X,Y) = (0,1)$ with probability $1/2.$
– spaceisdarkgreen
Jul 29 at 3:26













oh!you misunderstand something,that 2 is the question two.And in fact, i want the joint distribution of X given Y and Z to calculate the I(X;Y|Z)
– Shine Sun
Jul 29 at 8:40





oh!you misunderstand something,that 2 is the question two.And in fact, i want the joint distribution of X given Y and Z to calculate the I(X;Y|Z)
– Shine Sun
Jul 29 at 8:40













Given $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2
– Henry
Jul 29 at 9:12




Given $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2
– Henry
Jul 29 at 9:12












@Henry I just think that is H(X|Y,Z)=H(X|Z)? Because P(X|Y,Z) should me the sum of Pr(X=x) given that Y=y and Z=z
– Shine Sun
Jul 29 at 13:07





@Henry I just think that is H(X|Y,Z)=H(X|Z)? Because P(X|Y,Z) should me the sum of Pr(X=x) given that Y=y and Z=z
– Shine Sun
Jul 29 at 13:07











1 Answer
1






active

oldest

votes

















up vote
0
down vote













You asked for the probabilities. These are:



X Y X+Y X⊕Y Prob
0 0 0 0 1/4
0 1 1 1 1/4
1 0 1 1 1/4
1 1 2 0 1/4


For $mathbb P(X=x mid Z=z)$, in Part 1 you have, as spaceisdarkgreen says,



  • $mathbb P(X=0 mid X+Y=0)=1$, $,mathbb P(X=1 mid X+Y=0)=0$,

  • $mathbb P(X=0 mid X+Y=1)=frac12$, $mathbb P(X=1 mid X+Y=1)=frac12$,

  • $mathbb P(X=0 mid X+Y=2)=0$, $,mathbb P(X=1 mid X+Y=1)=1$

In Part 2 you have



  • $mathbb P(X=0 mid X⊕Y=0)=frac12$, $mathbb P(X=1 mid X⊕Y=0)=frac12$,

  • $mathbb P(X=0 mid X⊕Y=1)=frac12$, $mathbb P(X=1 mid X⊕Y=1)=frac12$

Given both $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2, since in part 1 you have $X=Z-Y$ while in part 2 you have $X=Z⊕Y$






share|cite|improve this answer





















  • Why is the $P(X=0|X+Y=0)=1$,not $frac14$ ?
    – Shine Sun
    Jul 29 at 13:11










  • @ShineSun Because the only case where $X+Y=0$ is the top row of the table. You need to calculate the conditional probability $mathbb P(X=0 mid X+Y=0)= dfracmathbb P(X=0 , X+Y=0)mathbb P(X+Y=0) =dfrac1/41/4=1$
    – Henry
    Jul 29 at 14:16











  • get it! can i ask how to calculate the P(X|Y,Z) according to your table?because i think P(X|Y,Z) may be equal to P(X,Z)
    – Shine Sun
    Jul 29 at 14:26










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%2f2865732%2fconditional-probability-which-their-condition-have-xor-and-z-xy%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
0
down vote













You asked for the probabilities. These are:



X Y X+Y X⊕Y Prob
0 0 0 0 1/4
0 1 1 1 1/4
1 0 1 1 1/4
1 1 2 0 1/4


For $mathbb P(X=x mid Z=z)$, in Part 1 you have, as spaceisdarkgreen says,



  • $mathbb P(X=0 mid X+Y=0)=1$, $,mathbb P(X=1 mid X+Y=0)=0$,

  • $mathbb P(X=0 mid X+Y=1)=frac12$, $mathbb P(X=1 mid X+Y=1)=frac12$,

  • $mathbb P(X=0 mid X+Y=2)=0$, $,mathbb P(X=1 mid X+Y=1)=1$

In Part 2 you have



  • $mathbb P(X=0 mid X⊕Y=0)=frac12$, $mathbb P(X=1 mid X⊕Y=0)=frac12$,

  • $mathbb P(X=0 mid X⊕Y=1)=frac12$, $mathbb P(X=1 mid X⊕Y=1)=frac12$

Given both $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2, since in part 1 you have $X=Z-Y$ while in part 2 you have $X=Z⊕Y$






share|cite|improve this answer





















  • Why is the $P(X=0|X+Y=0)=1$,not $frac14$ ?
    – Shine Sun
    Jul 29 at 13:11










  • @ShineSun Because the only case where $X+Y=0$ is the top row of the table. You need to calculate the conditional probability $mathbb P(X=0 mid X+Y=0)= dfracmathbb P(X=0 , X+Y=0)mathbb P(X+Y=0) =dfrac1/41/4=1$
    – Henry
    Jul 29 at 14:16











  • get it! can i ask how to calculate the P(X|Y,Z) according to your table?because i think P(X|Y,Z) may be equal to P(X,Z)
    – Shine Sun
    Jul 29 at 14:26














up vote
0
down vote













You asked for the probabilities. These are:



X Y X+Y X⊕Y Prob
0 0 0 0 1/4
0 1 1 1 1/4
1 0 1 1 1/4
1 1 2 0 1/4


For $mathbb P(X=x mid Z=z)$, in Part 1 you have, as spaceisdarkgreen says,



  • $mathbb P(X=0 mid X+Y=0)=1$, $,mathbb P(X=1 mid X+Y=0)=0$,

  • $mathbb P(X=0 mid X+Y=1)=frac12$, $mathbb P(X=1 mid X+Y=1)=frac12$,

  • $mathbb P(X=0 mid X+Y=2)=0$, $,mathbb P(X=1 mid X+Y=1)=1$

In Part 2 you have



  • $mathbb P(X=0 mid X⊕Y=0)=frac12$, $mathbb P(X=1 mid X⊕Y=0)=frac12$,

  • $mathbb P(X=0 mid X⊕Y=1)=frac12$, $mathbb P(X=1 mid X⊕Y=1)=frac12$

Given both $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2, since in part 1 you have $X=Z-Y$ while in part 2 you have $X=Z⊕Y$






share|cite|improve this answer





















  • Why is the $P(X=0|X+Y=0)=1$,not $frac14$ ?
    – Shine Sun
    Jul 29 at 13:11










  • @ShineSun Because the only case where $X+Y=0$ is the top row of the table. You need to calculate the conditional probability $mathbb P(X=0 mid X+Y=0)= dfracmathbb P(X=0 , X+Y=0)mathbb P(X+Y=0) =dfrac1/41/4=1$
    – Henry
    Jul 29 at 14:16











  • get it! can i ask how to calculate the P(X|Y,Z) according to your table?because i think P(X|Y,Z) may be equal to P(X,Z)
    – Shine Sun
    Jul 29 at 14:26












up vote
0
down vote










up vote
0
down vote









You asked for the probabilities. These are:



X Y X+Y X⊕Y Prob
0 0 0 0 1/4
0 1 1 1 1/4
1 0 1 1 1/4
1 1 2 0 1/4


For $mathbb P(X=x mid Z=z)$, in Part 1 you have, as spaceisdarkgreen says,



  • $mathbb P(X=0 mid X+Y=0)=1$, $,mathbb P(X=1 mid X+Y=0)=0$,

  • $mathbb P(X=0 mid X+Y=1)=frac12$, $mathbb P(X=1 mid X+Y=1)=frac12$,

  • $mathbb P(X=0 mid X+Y=2)=0$, $,mathbb P(X=1 mid X+Y=1)=1$

In Part 2 you have



  • $mathbb P(X=0 mid X⊕Y=0)=frac12$, $mathbb P(X=1 mid X⊕Y=0)=frac12$,

  • $mathbb P(X=0 mid X⊕Y=1)=frac12$, $mathbb P(X=1 mid X⊕Y=1)=frac12$

Given both $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2, since in part 1 you have $X=Z-Y$ while in part 2 you have $X=Z⊕Y$






share|cite|improve this answer













You asked for the probabilities. These are:



X Y X+Y X⊕Y Prob
0 0 0 0 1/4
0 1 1 1 1/4
1 0 1 1 1/4
1 1 2 0 1/4


For $mathbb P(X=x mid Z=z)$, in Part 1 you have, as spaceisdarkgreen says,



  • $mathbb P(X=0 mid X+Y=0)=1$, $,mathbb P(X=1 mid X+Y=0)=0$,

  • $mathbb P(X=0 mid X+Y=1)=frac12$, $mathbb P(X=1 mid X+Y=1)=frac12$,

  • $mathbb P(X=0 mid X+Y=2)=0$, $,mathbb P(X=1 mid X+Y=1)=1$

In Part 2 you have



  • $mathbb P(X=0 mid X⊕Y=0)=frac12$, $mathbb P(X=1 mid X⊕Y=0)=frac12$,

  • $mathbb P(X=0 mid X⊕Y=1)=frac12$, $mathbb P(X=1 mid X⊕Y=1)=frac12$

Given both $Y$ and $Z$, the value of $X$ is certain in both parts 1 and 2, since in part 1 you have $X=Z-Y$ while in part 2 you have $X=Z⊕Y$







share|cite|improve this answer













share|cite|improve this answer



share|cite|improve this answer











answered Jul 29 at 9:20









Henry

92.8k469147




92.8k469147











  • Why is the $P(X=0|X+Y=0)=1$,not $frac14$ ?
    – Shine Sun
    Jul 29 at 13:11










  • @ShineSun Because the only case where $X+Y=0$ is the top row of the table. You need to calculate the conditional probability $mathbb P(X=0 mid X+Y=0)= dfracmathbb P(X=0 , X+Y=0)mathbb P(X+Y=0) =dfrac1/41/4=1$
    – Henry
    Jul 29 at 14:16











  • get it! can i ask how to calculate the P(X|Y,Z) according to your table?because i think P(X|Y,Z) may be equal to P(X,Z)
    – Shine Sun
    Jul 29 at 14:26
















  • Why is the $P(X=0|X+Y=0)=1$,not $frac14$ ?
    – Shine Sun
    Jul 29 at 13:11










  • @ShineSun Because the only case where $X+Y=0$ is the top row of the table. You need to calculate the conditional probability $mathbb P(X=0 mid X+Y=0)= dfracmathbb P(X=0 , X+Y=0)mathbb P(X+Y=0) =dfrac1/41/4=1$
    – Henry
    Jul 29 at 14:16











  • get it! can i ask how to calculate the P(X|Y,Z) according to your table?because i think P(X|Y,Z) may be equal to P(X,Z)
    – Shine Sun
    Jul 29 at 14:26















Why is the $P(X=0|X+Y=0)=1$,not $frac14$ ?
– Shine Sun
Jul 29 at 13:11




Why is the $P(X=0|X+Y=0)=1$,not $frac14$ ?
– Shine Sun
Jul 29 at 13:11












@ShineSun Because the only case where $X+Y=0$ is the top row of the table. You need to calculate the conditional probability $mathbb P(X=0 mid X+Y=0)= dfracmathbb P(X=0 , X+Y=0)mathbb P(X+Y=0) =dfrac1/41/4=1$
– Henry
Jul 29 at 14:16





@ShineSun Because the only case where $X+Y=0$ is the top row of the table. You need to calculate the conditional probability $mathbb P(X=0 mid X+Y=0)= dfracmathbb P(X=0 , X+Y=0)mathbb P(X+Y=0) =dfrac1/41/4=1$
– Henry
Jul 29 at 14:16













get it! can i ask how to calculate the P(X|Y,Z) according to your table?because i think P(X|Y,Z) may be equal to P(X,Z)
– Shine Sun
Jul 29 at 14:26




get it! can i ask how to calculate the P(X|Y,Z) according to your table?because i think P(X|Y,Z) may be equal to P(X,Z)
– Shine Sun
Jul 29 at 14:26












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2865732%2fconditional-probability-which-their-condition-have-xor-and-z-xy%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?