conditional probability which their condition have $XOR and Z=X+Y$
Clash 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
probability information-theory entropy
add a comment |Â
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
probability information-theory entropy
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
add a comment |Â
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
probability information-theory entropy
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
probability information-theory entropy
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
add a comment |Â
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
add a comment |Â
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$
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
add a comment |Â
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$
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
add a comment |Â
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$
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
add a comment |Â
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$
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$
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
add a comment |Â
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
add a comment |Â
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
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
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
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
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
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