Computing $P(x)$ from $P(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












Given the $x in mathbbR^3$ and $y in mathbbR$ following probability density function $P(x,y)$:



$$P(x,y) = begincases
1/8, & textif x in left[ -1, 1 right]^3 text and y = x_1 + 2x_2 + 2x_3 \
0, & textotherwise
endcases $$



I would like to compute $P(y|x)$. In order to so, I was thinking about computing first $P(x)$ and then through the Bayes theorem to get to $P(y|x)$. Unfortunately, I don't really know how to compute $P(x)$ in this case.



May I ask your help?







share|cite|improve this question





















  • This is a discrete problem. There are only $8$ outcomes so if you write the eight 4-tuples you can answer this by counting.
    – John Douma
    Jul 25 at 15:47










  • ahh damm, I wrote it wrong. I meant with x being a continuous variable. Not a discrete one
    – Tommaso Bendinelli
    Jul 25 at 15:48










  • Either way, there are only a finite number of non-zero outcomes. You should be able to write $P(x)$ in cases as you did with $P(x,y)$.
    – John Douma
    Jul 25 at 15:50










  • How do you know that are only finite number of non-zero outcomes?
    – Tommaso Bendinelli
    Jul 25 at 15:52






  • 1




    If you are interested in the conditional distribution of $y$ given $x$, the answer is quite simple as you expected. $y$ is completely determined by $x$ by the formula $y=x_1+2x_2+2x_3$. So $$mu(dy mid x) = mathbf1_[-1,1]^3(x) delta_x_1+2x_2+2x_3(dy),$$ or if we go back to the careless notation, $$P(ymid x)=begincases1,&textif y=x_1+2x_2+2x_3\0&textotherwiseendcases$$ If you are interested in the conditional distribution of $x$ given $y$, we need to compute some pesky triple integral (which computes volume of part of $[-1,1]^3$ divided by the plane $y=x_1+2x_2+2x_3$).
    – Sangchul Lee
    Jul 25 at 16:34















up vote
0
down vote

favorite












Given the $x in mathbbR^3$ and $y in mathbbR$ following probability density function $P(x,y)$:



$$P(x,y) = begincases
1/8, & textif x in left[ -1, 1 right]^3 text and y = x_1 + 2x_2 + 2x_3 \
0, & textotherwise
endcases $$



I would like to compute $P(y|x)$. In order to so, I was thinking about computing first $P(x)$ and then through the Bayes theorem to get to $P(y|x)$. Unfortunately, I don't really know how to compute $P(x)$ in this case.



May I ask your help?







share|cite|improve this question





















  • This is a discrete problem. There are only $8$ outcomes so if you write the eight 4-tuples you can answer this by counting.
    – John Douma
    Jul 25 at 15:47










  • ahh damm, I wrote it wrong. I meant with x being a continuous variable. Not a discrete one
    – Tommaso Bendinelli
    Jul 25 at 15:48










  • Either way, there are only a finite number of non-zero outcomes. You should be able to write $P(x)$ in cases as you did with $P(x,y)$.
    – John Douma
    Jul 25 at 15:50










  • How do you know that are only finite number of non-zero outcomes?
    – Tommaso Bendinelli
    Jul 25 at 15:52






  • 1




    If you are interested in the conditional distribution of $y$ given $x$, the answer is quite simple as you expected. $y$ is completely determined by $x$ by the formula $y=x_1+2x_2+2x_3$. So $$mu(dy mid x) = mathbf1_[-1,1]^3(x) delta_x_1+2x_2+2x_3(dy),$$ or if we go back to the careless notation, $$P(ymid x)=begincases1,&textif y=x_1+2x_2+2x_3\0&textotherwiseendcases$$ If you are interested in the conditional distribution of $x$ given $y$, we need to compute some pesky triple integral (which computes volume of part of $[-1,1]^3$ divided by the plane $y=x_1+2x_2+2x_3$).
    – Sangchul Lee
    Jul 25 at 16:34













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Given the $x in mathbbR^3$ and $y in mathbbR$ following probability density function $P(x,y)$:



$$P(x,y) = begincases
1/8, & textif x in left[ -1, 1 right]^3 text and y = x_1 + 2x_2 + 2x_3 \
0, & textotherwise
endcases $$



I would like to compute $P(y|x)$. In order to so, I was thinking about computing first $P(x)$ and then through the Bayes theorem to get to $P(y|x)$. Unfortunately, I don't really know how to compute $P(x)$ in this case.



May I ask your help?







share|cite|improve this question













Given the $x in mathbbR^3$ and $y in mathbbR$ following probability density function $P(x,y)$:



$$P(x,y) = begincases
1/8, & textif x in left[ -1, 1 right]^3 text and y = x_1 + 2x_2 + 2x_3 \
0, & textotherwise
endcases $$



I would like to compute $P(y|x)$. In order to so, I was thinking about computing first $P(x)$ and then through the Bayes theorem to get to $P(y|x)$. Unfortunately, I don't really know how to compute $P(x)$ in this case.



May I ask your help?









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 25 at 15:55









Sangchul Lee

85.6k12155253




85.6k12155253









asked Jul 25 at 15:30









Tommaso Bendinelli

285




285











  • This is a discrete problem. There are only $8$ outcomes so if you write the eight 4-tuples you can answer this by counting.
    – John Douma
    Jul 25 at 15:47










  • ahh damm, I wrote it wrong. I meant with x being a continuous variable. Not a discrete one
    – Tommaso Bendinelli
    Jul 25 at 15:48










  • Either way, there are only a finite number of non-zero outcomes. You should be able to write $P(x)$ in cases as you did with $P(x,y)$.
    – John Douma
    Jul 25 at 15:50










  • How do you know that are only finite number of non-zero outcomes?
    – Tommaso Bendinelli
    Jul 25 at 15:52






  • 1




    If you are interested in the conditional distribution of $y$ given $x$, the answer is quite simple as you expected. $y$ is completely determined by $x$ by the formula $y=x_1+2x_2+2x_3$. So $$mu(dy mid x) = mathbf1_[-1,1]^3(x) delta_x_1+2x_2+2x_3(dy),$$ or if we go back to the careless notation, $$P(ymid x)=begincases1,&textif y=x_1+2x_2+2x_3\0&textotherwiseendcases$$ If you are interested in the conditional distribution of $x$ given $y$, we need to compute some pesky triple integral (which computes volume of part of $[-1,1]^3$ divided by the plane $y=x_1+2x_2+2x_3$).
    – Sangchul Lee
    Jul 25 at 16:34

















  • This is a discrete problem. There are only $8$ outcomes so if you write the eight 4-tuples you can answer this by counting.
    – John Douma
    Jul 25 at 15:47










  • ahh damm, I wrote it wrong. I meant with x being a continuous variable. Not a discrete one
    – Tommaso Bendinelli
    Jul 25 at 15:48










  • Either way, there are only a finite number of non-zero outcomes. You should be able to write $P(x)$ in cases as you did with $P(x,y)$.
    – John Douma
    Jul 25 at 15:50










  • How do you know that are only finite number of non-zero outcomes?
    – Tommaso Bendinelli
    Jul 25 at 15:52






  • 1




    If you are interested in the conditional distribution of $y$ given $x$, the answer is quite simple as you expected. $y$ is completely determined by $x$ by the formula $y=x_1+2x_2+2x_3$. So $$mu(dy mid x) = mathbf1_[-1,1]^3(x) delta_x_1+2x_2+2x_3(dy),$$ or if we go back to the careless notation, $$P(ymid x)=begincases1,&textif y=x_1+2x_2+2x_3\0&textotherwiseendcases$$ If you are interested in the conditional distribution of $x$ given $y$, we need to compute some pesky triple integral (which computes volume of part of $[-1,1]^3$ divided by the plane $y=x_1+2x_2+2x_3$).
    – Sangchul Lee
    Jul 25 at 16:34
















This is a discrete problem. There are only $8$ outcomes so if you write the eight 4-tuples you can answer this by counting.
– John Douma
Jul 25 at 15:47




This is a discrete problem. There are only $8$ outcomes so if you write the eight 4-tuples you can answer this by counting.
– John Douma
Jul 25 at 15:47












ahh damm, I wrote it wrong. I meant with x being a continuous variable. Not a discrete one
– Tommaso Bendinelli
Jul 25 at 15:48




ahh damm, I wrote it wrong. I meant with x being a continuous variable. Not a discrete one
– Tommaso Bendinelli
Jul 25 at 15:48












Either way, there are only a finite number of non-zero outcomes. You should be able to write $P(x)$ in cases as you did with $P(x,y)$.
– John Douma
Jul 25 at 15:50




Either way, there are only a finite number of non-zero outcomes. You should be able to write $P(x)$ in cases as you did with $P(x,y)$.
– John Douma
Jul 25 at 15:50












How do you know that are only finite number of non-zero outcomes?
– Tommaso Bendinelli
Jul 25 at 15:52




How do you know that are only finite number of non-zero outcomes?
– Tommaso Bendinelli
Jul 25 at 15:52




1




1




If you are interested in the conditional distribution of $y$ given $x$, the answer is quite simple as you expected. $y$ is completely determined by $x$ by the formula $y=x_1+2x_2+2x_3$. So $$mu(dy mid x) = mathbf1_[-1,1]^3(x) delta_x_1+2x_2+2x_3(dy),$$ or if we go back to the careless notation, $$P(ymid x)=begincases1,&textif y=x_1+2x_2+2x_3\0&textotherwiseendcases$$ If you are interested in the conditional distribution of $x$ given $y$, we need to compute some pesky triple integral (which computes volume of part of $[-1,1]^3$ divided by the plane $y=x_1+2x_2+2x_3$).
– Sangchul Lee
Jul 25 at 16:34





If you are interested in the conditional distribution of $y$ given $x$, the answer is quite simple as you expected. $y$ is completely determined by $x$ by the formula $y=x_1+2x_2+2x_3$. So $$mu(dy mid x) = mathbf1_[-1,1]^3(x) delta_x_1+2x_2+2x_3(dy),$$ or if we go back to the careless notation, $$P(ymid x)=begincases1,&textif y=x_1+2x_2+2x_3\0&textotherwiseendcases$$ If you are interested in the conditional distribution of $x$ given $y$, we need to compute some pesky triple integral (which computes volume of part of $[-1,1]^3$ divided by the plane $y=x_1+2x_2+2x_3$).
– Sangchul Lee
Jul 25 at 16:34
















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',
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%2f2862533%2fcomputing-px-from-px-y%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2862533%2fcomputing-px-from-px-y%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?

Relationship between determinant of matrix and determinant of adjoint?

Color the edges and diagonals of a regular polygon