Calculating $Y|X$ density with distribution $U[X,X+1]$
$begingroup$
I have two random variables $X$ and $Y$ where $X$ has distribution $U [0; 1]$ and $Y | X$ has distribution $U [X; X +1]$ (that is, $f (x) = 1$ for $x$ and $[0, 1]$ and $0$ cc, and $fY|X(y|x) = 1$ if $y in[x; x + 1]$ and $0$ cc, for all $x$.)
How can I calculate the density of Y?
Also, can you clarify how to work with $U [X; X +1]$?
Any hint?
probability probability-theory
$endgroup$
add a comment |
$begingroup$
I have two random variables $X$ and $Y$ where $X$ has distribution $U [0; 1]$ and $Y | X$ has distribution $U [X; X +1]$ (that is, $f (x) = 1$ for $x$ and $[0, 1]$ and $0$ cc, and $fY|X(y|x) = 1$ if $y in[x; x + 1]$ and $0$ cc, for all $x$.)
How can I calculate the density of Y?
Also, can you clarify how to work with $U [X; X +1]$?
Any hint?
probability probability-theory
$endgroup$
add a comment |
$begingroup$
I have two random variables $X$ and $Y$ where $X$ has distribution $U [0; 1]$ and $Y | X$ has distribution $U [X; X +1]$ (that is, $f (x) = 1$ for $x$ and $[0, 1]$ and $0$ cc, and $fY|X(y|x) = 1$ if $y in[x; x + 1]$ and $0$ cc, for all $x$.)
How can I calculate the density of Y?
Also, can you clarify how to work with $U [X; X +1]$?
Any hint?
probability probability-theory
$endgroup$
I have two random variables $X$ and $Y$ where $X$ has distribution $U [0; 1]$ and $Y | X$ has distribution $U [X; X +1]$ (that is, $f (x) = 1$ for $x$ and $[0, 1]$ and $0$ cc, and $fY|X(y|x) = 1$ if $y in[x; x + 1]$ and $0$ cc, for all $x$.)
How can I calculate the density of Y?
Also, can you clarify how to work with $U [X; X +1]$?
Any hint?
probability probability-theory
probability probability-theory
asked Jan 11 at 2:06
LauraLaura
2358
2358
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Given the marginal distribution for $X$, and the conditional distribution $Y|X$, you can recover the distribution for $Y$ from a continuous version of the law of total probability:
$$
f_Y(y) = int f_{Y|X=x}(y)f_X(x),dx
$$
The marginal pdf $f_X(x)$ is $1$ on $[0,1]$ and $0$ elsewhere, so this becomes
$$
f_Y(y)=int_0^1 f_{Y|X=x}(y),dx
$$
The conditional pdf $f_{Y|X=x}(y)$ is equal to $1$ when $x<y<x+1$. Otherwise, it is $0$. Effectively, in addition to the bounds $0<x<1$ of integration, we also have the bounds $y-1<x<y$. These two imply we are integrating the function $1$ over the region where $max(0,y-1)<x<min(1,y)$. Whenever $0<y<2$, this region is nonempty, and we get
$$
f_Y(y)=int_{max(0,y-1)}^{min(1,y)}1,dx=min(1,y)-max(0,y-1).
$$
When $0<y<1$, $f_Y(y)=y$. When $1<y<2$, $f_Y(y)=2-y$. Otherwise, $f_Y(y)=0$.
$endgroup$
$begingroup$
thank you very much. Its really difficult this question for me. Thanks!
$endgroup$
– Laura
Jan 14 at 0:20
add a comment |
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
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3069416%2fcalculating-yx-density-with-distribution-ux-x1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Given the marginal distribution for $X$, and the conditional distribution $Y|X$, you can recover the distribution for $Y$ from a continuous version of the law of total probability:
$$
f_Y(y) = int f_{Y|X=x}(y)f_X(x),dx
$$
The marginal pdf $f_X(x)$ is $1$ on $[0,1]$ and $0$ elsewhere, so this becomes
$$
f_Y(y)=int_0^1 f_{Y|X=x}(y),dx
$$
The conditional pdf $f_{Y|X=x}(y)$ is equal to $1$ when $x<y<x+1$. Otherwise, it is $0$. Effectively, in addition to the bounds $0<x<1$ of integration, we also have the bounds $y-1<x<y$. These two imply we are integrating the function $1$ over the region where $max(0,y-1)<x<min(1,y)$. Whenever $0<y<2$, this region is nonempty, and we get
$$
f_Y(y)=int_{max(0,y-1)}^{min(1,y)}1,dx=min(1,y)-max(0,y-1).
$$
When $0<y<1$, $f_Y(y)=y$. When $1<y<2$, $f_Y(y)=2-y$. Otherwise, $f_Y(y)=0$.
$endgroup$
$begingroup$
thank you very much. Its really difficult this question for me. Thanks!
$endgroup$
– Laura
Jan 14 at 0:20
add a comment |
$begingroup$
Given the marginal distribution for $X$, and the conditional distribution $Y|X$, you can recover the distribution for $Y$ from a continuous version of the law of total probability:
$$
f_Y(y) = int f_{Y|X=x}(y)f_X(x),dx
$$
The marginal pdf $f_X(x)$ is $1$ on $[0,1]$ and $0$ elsewhere, so this becomes
$$
f_Y(y)=int_0^1 f_{Y|X=x}(y),dx
$$
The conditional pdf $f_{Y|X=x}(y)$ is equal to $1$ when $x<y<x+1$. Otherwise, it is $0$. Effectively, in addition to the bounds $0<x<1$ of integration, we also have the bounds $y-1<x<y$. These two imply we are integrating the function $1$ over the region where $max(0,y-1)<x<min(1,y)$. Whenever $0<y<2$, this region is nonempty, and we get
$$
f_Y(y)=int_{max(0,y-1)}^{min(1,y)}1,dx=min(1,y)-max(0,y-1).
$$
When $0<y<1$, $f_Y(y)=y$. When $1<y<2$, $f_Y(y)=2-y$. Otherwise, $f_Y(y)=0$.
$endgroup$
$begingroup$
thank you very much. Its really difficult this question for me. Thanks!
$endgroup$
– Laura
Jan 14 at 0:20
add a comment |
$begingroup$
Given the marginal distribution for $X$, and the conditional distribution $Y|X$, you can recover the distribution for $Y$ from a continuous version of the law of total probability:
$$
f_Y(y) = int f_{Y|X=x}(y)f_X(x),dx
$$
The marginal pdf $f_X(x)$ is $1$ on $[0,1]$ and $0$ elsewhere, so this becomes
$$
f_Y(y)=int_0^1 f_{Y|X=x}(y),dx
$$
The conditional pdf $f_{Y|X=x}(y)$ is equal to $1$ when $x<y<x+1$. Otherwise, it is $0$. Effectively, in addition to the bounds $0<x<1$ of integration, we also have the bounds $y-1<x<y$. These two imply we are integrating the function $1$ over the region where $max(0,y-1)<x<min(1,y)$. Whenever $0<y<2$, this region is nonempty, and we get
$$
f_Y(y)=int_{max(0,y-1)}^{min(1,y)}1,dx=min(1,y)-max(0,y-1).
$$
When $0<y<1$, $f_Y(y)=y$. When $1<y<2$, $f_Y(y)=2-y$. Otherwise, $f_Y(y)=0$.
$endgroup$
Given the marginal distribution for $X$, and the conditional distribution $Y|X$, you can recover the distribution for $Y$ from a continuous version of the law of total probability:
$$
f_Y(y) = int f_{Y|X=x}(y)f_X(x),dx
$$
The marginal pdf $f_X(x)$ is $1$ on $[0,1]$ and $0$ elsewhere, so this becomes
$$
f_Y(y)=int_0^1 f_{Y|X=x}(y),dx
$$
The conditional pdf $f_{Y|X=x}(y)$ is equal to $1$ when $x<y<x+1$. Otherwise, it is $0$. Effectively, in addition to the bounds $0<x<1$ of integration, we also have the bounds $y-1<x<y$. These two imply we are integrating the function $1$ over the region where $max(0,y-1)<x<min(1,y)$. Whenever $0<y<2$, this region is nonempty, and we get
$$
f_Y(y)=int_{max(0,y-1)}^{min(1,y)}1,dx=min(1,y)-max(0,y-1).
$$
When $0<y<1$, $f_Y(y)=y$. When $1<y<2$, $f_Y(y)=2-y$. Otherwise, $f_Y(y)=0$.
edited Jan 13 at 20:45
Did
247k23223460
247k23223460
answered Jan 11 at 3:27
Mike EarnestMike Earnest
22.4k12051
22.4k12051
$begingroup$
thank you very much. Its really difficult this question for me. Thanks!
$endgroup$
– Laura
Jan 14 at 0:20
add a comment |
$begingroup$
thank you very much. Its really difficult this question for me. Thanks!
$endgroup$
– Laura
Jan 14 at 0:20
$begingroup$
thank you very much. Its really difficult this question for me. Thanks!
$endgroup$
– Laura
Jan 14 at 0:20
$begingroup$
thank you very much. Its really difficult this question for me. Thanks!
$endgroup$
– Laura
Jan 14 at 0:20
add a comment |
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.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3069416%2fcalculating-yx-density-with-distribution-ux-x1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
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