What is wrong with my solution for finding $f_Y$ if $Y = X^n$?
I have a solution to the following problem without using all the assumptions, and I am wondering if my solution is wrong as a result.
Let $X$ be a continuous nonnegative random variable with density function $f_X$, and let $Y = X^n$. Find $f_Y$, the probability density function of $Y$ in terms of $f_X$.
This question is answered here using the cumulative distribution functions of $X$ and $Y$, and this solution uses the fact $X$ is non-negative. I think I have a different solution that arrives at the same answer without using the fact $X$ is non-negative as shown below:
Since $Y = X^n$, we have $dy = nx^{n-1}dx$ and so
begin{align*}
f_Y(y) &= int_{-infty}^{infty} f(x, y), dx\
&= int_{-infty}^{infty} f(x, y), (frac{dy}{nx^{n-1}})\
&= frac{1}{nx^{n-1}}int_{-infty}^{infty} f(x, y),dy\
&= frac{f_X(x)}{nx^{n-1}}
end{align*}
Why is this solution wrong, or where do I need the assmption $Xge 0$?
Edit: From my interpretation of Ingix's answer, I think a better solution would be:
begin{align*}
f_Y(y) &= int_{-infty}^{infty} f(x, y), dx\
&= int_{0}^{infty} f(x, y), dxtag{Since $xge 0$}\
&= int_{0}^{infty} f(x, y), (frac{dy}{nx^{n-1}})tag{Using the subtitution $y = x^n$}\
&= frac{1}{nx^{n-1}}int_{0}^{infty} f(x, y),dy\
&= frac{f_X(x)}{nx^{n-1}}tag{as $f(x,y) = 0$ for $yneq x^n$}
end{align*}
calculus probability integration
add a comment |
I have a solution to the following problem without using all the assumptions, and I am wondering if my solution is wrong as a result.
Let $X$ be a continuous nonnegative random variable with density function $f_X$, and let $Y = X^n$. Find $f_Y$, the probability density function of $Y$ in terms of $f_X$.
This question is answered here using the cumulative distribution functions of $X$ and $Y$, and this solution uses the fact $X$ is non-negative. I think I have a different solution that arrives at the same answer without using the fact $X$ is non-negative as shown below:
Since $Y = X^n$, we have $dy = nx^{n-1}dx$ and so
begin{align*}
f_Y(y) &= int_{-infty}^{infty} f(x, y), dx\
&= int_{-infty}^{infty} f(x, y), (frac{dy}{nx^{n-1}})\
&= frac{1}{nx^{n-1}}int_{-infty}^{infty} f(x, y),dy\
&= frac{f_X(x)}{nx^{n-1}}
end{align*}
Why is this solution wrong, or where do I need the assmption $Xge 0$?
Edit: From my interpretation of Ingix's answer, I think a better solution would be:
begin{align*}
f_Y(y) &= int_{-infty}^{infty} f(x, y), dx\
&= int_{0}^{infty} f(x, y), dxtag{Since $xge 0$}\
&= int_{0}^{infty} f(x, y), (frac{dy}{nx^{n-1}})tag{Using the subtitution $y = x^n$}\
&= frac{1}{nx^{n-1}}int_{0}^{infty} f(x, y),dy\
&= frac{f_X(x)}{nx^{n-1}}tag{as $f(x,y) = 0$ for $yneq x^n$}
end{align*}
calculus probability integration
Your solution depends on $n$ as for $n$ even $Y$ will always be positive, whilst for $n$ odd, there is a bijections between $X$ and $Y.$
– Will M.
Nov 26 '18 at 5:10
@WillM. I dont quite understand what you mean
– Lindstorm
Nov 26 '18 at 8:07
Well, then there is nothing I can do to help you. Sorry and good luck.
– Will M.
Nov 26 '18 at 16:39
add a comment |
I have a solution to the following problem without using all the assumptions, and I am wondering if my solution is wrong as a result.
Let $X$ be a continuous nonnegative random variable with density function $f_X$, and let $Y = X^n$. Find $f_Y$, the probability density function of $Y$ in terms of $f_X$.
This question is answered here using the cumulative distribution functions of $X$ and $Y$, and this solution uses the fact $X$ is non-negative. I think I have a different solution that arrives at the same answer without using the fact $X$ is non-negative as shown below:
Since $Y = X^n$, we have $dy = nx^{n-1}dx$ and so
begin{align*}
f_Y(y) &= int_{-infty}^{infty} f(x, y), dx\
&= int_{-infty}^{infty} f(x, y), (frac{dy}{nx^{n-1}})\
&= frac{1}{nx^{n-1}}int_{-infty}^{infty} f(x, y),dy\
&= frac{f_X(x)}{nx^{n-1}}
end{align*}
Why is this solution wrong, or where do I need the assmption $Xge 0$?
Edit: From my interpretation of Ingix's answer, I think a better solution would be:
begin{align*}
f_Y(y) &= int_{-infty}^{infty} f(x, y), dx\
&= int_{0}^{infty} f(x, y), dxtag{Since $xge 0$}\
&= int_{0}^{infty} f(x, y), (frac{dy}{nx^{n-1}})tag{Using the subtitution $y = x^n$}\
&= frac{1}{nx^{n-1}}int_{0}^{infty} f(x, y),dy\
&= frac{f_X(x)}{nx^{n-1}}tag{as $f(x,y) = 0$ for $yneq x^n$}
end{align*}
calculus probability integration
I have a solution to the following problem without using all the assumptions, and I am wondering if my solution is wrong as a result.
Let $X$ be a continuous nonnegative random variable with density function $f_X$, and let $Y = X^n$. Find $f_Y$, the probability density function of $Y$ in terms of $f_X$.
This question is answered here using the cumulative distribution functions of $X$ and $Y$, and this solution uses the fact $X$ is non-negative. I think I have a different solution that arrives at the same answer without using the fact $X$ is non-negative as shown below:
Since $Y = X^n$, we have $dy = nx^{n-1}dx$ and so
begin{align*}
f_Y(y) &= int_{-infty}^{infty} f(x, y), dx\
&= int_{-infty}^{infty} f(x, y), (frac{dy}{nx^{n-1}})\
&= frac{1}{nx^{n-1}}int_{-infty}^{infty} f(x, y),dy\
&= frac{f_X(x)}{nx^{n-1}}
end{align*}
Why is this solution wrong, or where do I need the assmption $Xge 0$?
Edit: From my interpretation of Ingix's answer, I think a better solution would be:
begin{align*}
f_Y(y) &= int_{-infty}^{infty} f(x, y), dx\
&= int_{0}^{infty} f(x, y), dxtag{Since $xge 0$}\
&= int_{0}^{infty} f(x, y), (frac{dy}{nx^{n-1}})tag{Using the subtitution $y = x^n$}\
&= frac{1}{nx^{n-1}}int_{0}^{infty} f(x, y),dy\
&= frac{f_X(x)}{nx^{n-1}}tag{as $f(x,y) = 0$ for $yneq x^n$}
end{align*}
calculus probability integration
calculus probability integration
edited Nov 26 '18 at 18:23
asked Nov 26 '18 at 4:59
Lindstorm
466
466
Your solution depends on $n$ as for $n$ even $Y$ will always be positive, whilst for $n$ odd, there is a bijections between $X$ and $Y.$
– Will M.
Nov 26 '18 at 5:10
@WillM. I dont quite understand what you mean
– Lindstorm
Nov 26 '18 at 8:07
Well, then there is nothing I can do to help you. Sorry and good luck.
– Will M.
Nov 26 '18 at 16:39
add a comment |
Your solution depends on $n$ as for $n$ even $Y$ will always be positive, whilst for $n$ odd, there is a bijections between $X$ and $Y.$
– Will M.
Nov 26 '18 at 5:10
@WillM. I dont quite understand what you mean
– Lindstorm
Nov 26 '18 at 8:07
Well, then there is nothing I can do to help you. Sorry and good luck.
– Will M.
Nov 26 '18 at 16:39
Your solution depends on $n$ as for $n$ even $Y$ will always be positive, whilst for $n$ odd, there is a bijections between $X$ and $Y.$
– Will M.
Nov 26 '18 at 5:10
Your solution depends on $n$ as for $n$ even $Y$ will always be positive, whilst for $n$ odd, there is a bijections between $X$ and $Y.$
– Will M.
Nov 26 '18 at 5:10
@WillM. I dont quite understand what you mean
– Lindstorm
Nov 26 '18 at 8:07
@WillM. I dont quite understand what you mean
– Lindstorm
Nov 26 '18 at 8:07
Well, then there is nothing I can do to help you. Sorry and good luck.
– Will M.
Nov 26 '18 at 16:39
Well, then there is nothing I can do to help you. Sorry and good luck.
– Will M.
Nov 26 '18 at 16:39
add a comment |
2 Answers
2
active
oldest
votes
Your solution is wrong because you seem to pull the relation $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ out of a hat(I'm not entirely sure if it's true, it may be). Before using such a strong assumption about X and Y you would have to justify it and the only thing we know about f(x,y) is that it is the derivative of $P(X leq x, Y leq y)$ so we seem to get back to the solution in the link, sort of.
I would consider it pretty trivial that $y =x^niff dy = nx^{n-1}dx$ unless im missing something. Nonetheless, i revised my post justifying that line
– Lindstorm
Nov 26 '18 at 9:33
@Lindstorm: I agree that $y=x^n$ implies that $dy=nx^{n-1}dx$(this is just a simple relation between some non-random functions), but there is no reason why $Y=X^n$ would imply that $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ a priori. This is completely different. It's a relation between random variables and between their pdf's. Unless you justify this starting from what a pdf means, it seems to me that your proof is very much incomplete and very confusing.
– Sorin Tirc
Nov 26 '18 at 9:46
add a comment |
To see that your formula is (generally) incorrect for random $Xs$ that can be negative and even $n$, consider $X_1$ being a random variable uniformely distributed on the interval $[0,1]$ and $X_2$ uniformely distributed on the interval $[-1,1]$. Obviously $f_{X_1}(t) = 1 = 2 f_{X_2}(t)$ for any $t in [0,1]$.
However, both $Y_i=X_i^2 (i=1,2)$ have the same distribution, because $Y_i$ depends only on $|X_i|$, and both $|X_1|$ and $|X_2|$ have the same distribution (uniform on $[0,1]$).
As has been established, your end result is correct for non-negative $X$, so your formula will correctly get $f_{Y_1}(y)$, but incorrectly get $f_{Y_2}(y)$, because the $f_{X_{1,2}}(x)$ are different but the result should be the same (and the formula is linear (so injective) in $f_{X}(x))$.
The reason for this error is that in order to do the differential substitution you did, going from $dx$ to $dy$, you also need to transform the integral bounds, and in that process you need to establish the areas where your transformation function is monotone, to possibly split the integral into more than one.
For odd $n$, this is not a problem, as $y=x^n$ is increasing. When only considering non-negative $X$, this isn't a problem for even $n$, as the integral effectively goes from $0$ to $infty$, and $y=x^n$ is increasing in that interval as well. But it falls down if you have potentially negative values and even $n$.
Another hint that something is not as it should be with your formula is that for even $n$, there are two $x$ that satisfy $y=x^n$ for a given posiive $y$. Which one should it be in your formula, considering the density function might be different for them?
Ah this makes sense. Considering this by changing the bounds to $0$ to $infty$ and noting this is for non-negative $x$, is my formulation correct?
– Lindstorm
Nov 26 '18 at 17:04
I'm not totally sure. For starters, what is your $f(x,y)$? If it is supposed to be the density of the common distribution of $(Y,X)$, then that is not a real valued function, because the density must be 0 for $y neq x^n$ and then the integral can't be anything else than 0.
– Ingix
Nov 26 '18 at 17:10
Yes, $f(x,y)$ is the joint density function of $X$ and $Y$. I have edited my solution based off my interpretation of what you said, does this fix it?
– Lindstorm
Nov 26 '18 at 18:25
See, there is not joint density function of $X$ and $Y$, at least not in the sense as a real valued function. It simply does not exist! You need to look at en.wikipedia.org/wiki/Distribution_(mathematics) to find the mathematical groundwork that makes it possible to work as though it does. That's why your integral solution produced the correct result.
– Ingix
Nov 26 '18 at 18:32
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%2f3013873%2fwhat-is-wrong-with-my-solution-for-finding-f-y-if-y-xn%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your solution is wrong because you seem to pull the relation $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ out of a hat(I'm not entirely sure if it's true, it may be). Before using such a strong assumption about X and Y you would have to justify it and the only thing we know about f(x,y) is that it is the derivative of $P(X leq x, Y leq y)$ so we seem to get back to the solution in the link, sort of.
I would consider it pretty trivial that $y =x^niff dy = nx^{n-1}dx$ unless im missing something. Nonetheless, i revised my post justifying that line
– Lindstorm
Nov 26 '18 at 9:33
@Lindstorm: I agree that $y=x^n$ implies that $dy=nx^{n-1}dx$(this is just a simple relation between some non-random functions), but there is no reason why $Y=X^n$ would imply that $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ a priori. This is completely different. It's a relation between random variables and between their pdf's. Unless you justify this starting from what a pdf means, it seems to me that your proof is very much incomplete and very confusing.
– Sorin Tirc
Nov 26 '18 at 9:46
add a comment |
Your solution is wrong because you seem to pull the relation $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ out of a hat(I'm not entirely sure if it's true, it may be). Before using such a strong assumption about X and Y you would have to justify it and the only thing we know about f(x,y) is that it is the derivative of $P(X leq x, Y leq y)$ so we seem to get back to the solution in the link, sort of.
I would consider it pretty trivial that $y =x^niff dy = nx^{n-1}dx$ unless im missing something. Nonetheless, i revised my post justifying that line
– Lindstorm
Nov 26 '18 at 9:33
@Lindstorm: I agree that $y=x^n$ implies that $dy=nx^{n-1}dx$(this is just a simple relation between some non-random functions), but there is no reason why $Y=X^n$ would imply that $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ a priori. This is completely different. It's a relation between random variables and between their pdf's. Unless you justify this starting from what a pdf means, it seems to me that your proof is very much incomplete and very confusing.
– Sorin Tirc
Nov 26 '18 at 9:46
add a comment |
Your solution is wrong because you seem to pull the relation $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ out of a hat(I'm not entirely sure if it's true, it may be). Before using such a strong assumption about X and Y you would have to justify it and the only thing we know about f(x,y) is that it is the derivative of $P(X leq x, Y leq y)$ so we seem to get back to the solution in the link, sort of.
Your solution is wrong because you seem to pull the relation $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ out of a hat(I'm not entirely sure if it's true, it may be). Before using such a strong assumption about X and Y you would have to justify it and the only thing we know about f(x,y) is that it is the derivative of $P(X leq x, Y leq y)$ so we seem to get back to the solution in the link, sort of.
answered Nov 26 '18 at 9:06
Sorin Tirc
1,520113
1,520113
I would consider it pretty trivial that $y =x^niff dy = nx^{n-1}dx$ unless im missing something. Nonetheless, i revised my post justifying that line
– Lindstorm
Nov 26 '18 at 9:33
@Lindstorm: I agree that $y=x^n$ implies that $dy=nx^{n-1}dx$(this is just a simple relation between some non-random functions), but there is no reason why $Y=X^n$ would imply that $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ a priori. This is completely different. It's a relation between random variables and between their pdf's. Unless you justify this starting from what a pdf means, it seems to me that your proof is very much incomplete and very confusing.
– Sorin Tirc
Nov 26 '18 at 9:46
add a comment |
I would consider it pretty trivial that $y =x^niff dy = nx^{n-1}dx$ unless im missing something. Nonetheless, i revised my post justifying that line
– Lindstorm
Nov 26 '18 at 9:33
@Lindstorm: I agree that $y=x^n$ implies that $dy=nx^{n-1}dx$(this is just a simple relation between some non-random functions), but there is no reason why $Y=X^n$ would imply that $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ a priori. This is completely different. It's a relation between random variables and between their pdf's. Unless you justify this starting from what a pdf means, it seems to me that your proof is very much incomplete and very confusing.
– Sorin Tirc
Nov 26 '18 at 9:46
I would consider it pretty trivial that $y =x^niff dy = nx^{n-1}dx$ unless im missing something. Nonetheless, i revised my post justifying that line
– Lindstorm
Nov 26 '18 at 9:33
I would consider it pretty trivial that $y =x^niff dy = nx^{n-1}dx$ unless im missing something. Nonetheless, i revised my post justifying that line
– Lindstorm
Nov 26 '18 at 9:33
@Lindstorm: I agree that $y=x^n$ implies that $dy=nx^{n-1}dx$(this is just a simple relation between some non-random functions), but there is no reason why $Y=X^n$ would imply that $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ a priori. This is completely different. It's a relation between random variables and between their pdf's. Unless you justify this starting from what a pdf means, it seems to me that your proof is very much incomplete and very confusing.
– Sorin Tirc
Nov 26 '18 at 9:46
@Lindstorm: I agree that $y=x^n$ implies that $dy=nx^{n-1}dx$(this is just a simple relation between some non-random functions), but there is no reason why $Y=X^n$ would imply that $f(x,y)dx = f(x,y)frac{dy}{nx^{n-1}}$ a priori. This is completely different. It's a relation between random variables and between their pdf's. Unless you justify this starting from what a pdf means, it seems to me that your proof is very much incomplete and very confusing.
– Sorin Tirc
Nov 26 '18 at 9:46
add a comment |
To see that your formula is (generally) incorrect for random $Xs$ that can be negative and even $n$, consider $X_1$ being a random variable uniformely distributed on the interval $[0,1]$ and $X_2$ uniformely distributed on the interval $[-1,1]$. Obviously $f_{X_1}(t) = 1 = 2 f_{X_2}(t)$ for any $t in [0,1]$.
However, both $Y_i=X_i^2 (i=1,2)$ have the same distribution, because $Y_i$ depends only on $|X_i|$, and both $|X_1|$ and $|X_2|$ have the same distribution (uniform on $[0,1]$).
As has been established, your end result is correct for non-negative $X$, so your formula will correctly get $f_{Y_1}(y)$, but incorrectly get $f_{Y_2}(y)$, because the $f_{X_{1,2}}(x)$ are different but the result should be the same (and the formula is linear (so injective) in $f_{X}(x))$.
The reason for this error is that in order to do the differential substitution you did, going from $dx$ to $dy$, you also need to transform the integral bounds, and in that process you need to establish the areas where your transformation function is monotone, to possibly split the integral into more than one.
For odd $n$, this is not a problem, as $y=x^n$ is increasing. When only considering non-negative $X$, this isn't a problem for even $n$, as the integral effectively goes from $0$ to $infty$, and $y=x^n$ is increasing in that interval as well. But it falls down if you have potentially negative values and even $n$.
Another hint that something is not as it should be with your formula is that for even $n$, there are two $x$ that satisfy $y=x^n$ for a given posiive $y$. Which one should it be in your formula, considering the density function might be different for them?
Ah this makes sense. Considering this by changing the bounds to $0$ to $infty$ and noting this is for non-negative $x$, is my formulation correct?
– Lindstorm
Nov 26 '18 at 17:04
I'm not totally sure. For starters, what is your $f(x,y)$? If it is supposed to be the density of the common distribution of $(Y,X)$, then that is not a real valued function, because the density must be 0 for $y neq x^n$ and then the integral can't be anything else than 0.
– Ingix
Nov 26 '18 at 17:10
Yes, $f(x,y)$ is the joint density function of $X$ and $Y$. I have edited my solution based off my interpretation of what you said, does this fix it?
– Lindstorm
Nov 26 '18 at 18:25
See, there is not joint density function of $X$ and $Y$, at least not in the sense as a real valued function. It simply does not exist! You need to look at en.wikipedia.org/wiki/Distribution_(mathematics) to find the mathematical groundwork that makes it possible to work as though it does. That's why your integral solution produced the correct result.
– Ingix
Nov 26 '18 at 18:32
add a comment |
To see that your formula is (generally) incorrect for random $Xs$ that can be negative and even $n$, consider $X_1$ being a random variable uniformely distributed on the interval $[0,1]$ and $X_2$ uniformely distributed on the interval $[-1,1]$. Obviously $f_{X_1}(t) = 1 = 2 f_{X_2}(t)$ for any $t in [0,1]$.
However, both $Y_i=X_i^2 (i=1,2)$ have the same distribution, because $Y_i$ depends only on $|X_i|$, and both $|X_1|$ and $|X_2|$ have the same distribution (uniform on $[0,1]$).
As has been established, your end result is correct for non-negative $X$, so your formula will correctly get $f_{Y_1}(y)$, but incorrectly get $f_{Y_2}(y)$, because the $f_{X_{1,2}}(x)$ are different but the result should be the same (and the formula is linear (so injective) in $f_{X}(x))$.
The reason for this error is that in order to do the differential substitution you did, going from $dx$ to $dy$, you also need to transform the integral bounds, and in that process you need to establish the areas where your transformation function is monotone, to possibly split the integral into more than one.
For odd $n$, this is not a problem, as $y=x^n$ is increasing. When only considering non-negative $X$, this isn't a problem for even $n$, as the integral effectively goes from $0$ to $infty$, and $y=x^n$ is increasing in that interval as well. But it falls down if you have potentially negative values and even $n$.
Another hint that something is not as it should be with your formula is that for even $n$, there are two $x$ that satisfy $y=x^n$ for a given posiive $y$. Which one should it be in your formula, considering the density function might be different for them?
Ah this makes sense. Considering this by changing the bounds to $0$ to $infty$ and noting this is for non-negative $x$, is my formulation correct?
– Lindstorm
Nov 26 '18 at 17:04
I'm not totally sure. For starters, what is your $f(x,y)$? If it is supposed to be the density of the common distribution of $(Y,X)$, then that is not a real valued function, because the density must be 0 for $y neq x^n$ and then the integral can't be anything else than 0.
– Ingix
Nov 26 '18 at 17:10
Yes, $f(x,y)$ is the joint density function of $X$ and $Y$. I have edited my solution based off my interpretation of what you said, does this fix it?
– Lindstorm
Nov 26 '18 at 18:25
See, there is not joint density function of $X$ and $Y$, at least not in the sense as a real valued function. It simply does not exist! You need to look at en.wikipedia.org/wiki/Distribution_(mathematics) to find the mathematical groundwork that makes it possible to work as though it does. That's why your integral solution produced the correct result.
– Ingix
Nov 26 '18 at 18:32
add a comment |
To see that your formula is (generally) incorrect for random $Xs$ that can be negative and even $n$, consider $X_1$ being a random variable uniformely distributed on the interval $[0,1]$ and $X_2$ uniformely distributed on the interval $[-1,1]$. Obviously $f_{X_1}(t) = 1 = 2 f_{X_2}(t)$ for any $t in [0,1]$.
However, both $Y_i=X_i^2 (i=1,2)$ have the same distribution, because $Y_i$ depends only on $|X_i|$, and both $|X_1|$ and $|X_2|$ have the same distribution (uniform on $[0,1]$).
As has been established, your end result is correct for non-negative $X$, so your formula will correctly get $f_{Y_1}(y)$, but incorrectly get $f_{Y_2}(y)$, because the $f_{X_{1,2}}(x)$ are different but the result should be the same (and the formula is linear (so injective) in $f_{X}(x))$.
The reason for this error is that in order to do the differential substitution you did, going from $dx$ to $dy$, you also need to transform the integral bounds, and in that process you need to establish the areas where your transformation function is monotone, to possibly split the integral into more than one.
For odd $n$, this is not a problem, as $y=x^n$ is increasing. When only considering non-negative $X$, this isn't a problem for even $n$, as the integral effectively goes from $0$ to $infty$, and $y=x^n$ is increasing in that interval as well. But it falls down if you have potentially negative values and even $n$.
Another hint that something is not as it should be with your formula is that for even $n$, there are two $x$ that satisfy $y=x^n$ for a given posiive $y$. Which one should it be in your formula, considering the density function might be different for them?
To see that your formula is (generally) incorrect for random $Xs$ that can be negative and even $n$, consider $X_1$ being a random variable uniformely distributed on the interval $[0,1]$ and $X_2$ uniformely distributed on the interval $[-1,1]$. Obviously $f_{X_1}(t) = 1 = 2 f_{X_2}(t)$ for any $t in [0,1]$.
However, both $Y_i=X_i^2 (i=1,2)$ have the same distribution, because $Y_i$ depends only on $|X_i|$, and both $|X_1|$ and $|X_2|$ have the same distribution (uniform on $[0,1]$).
As has been established, your end result is correct for non-negative $X$, so your formula will correctly get $f_{Y_1}(y)$, but incorrectly get $f_{Y_2}(y)$, because the $f_{X_{1,2}}(x)$ are different but the result should be the same (and the formula is linear (so injective) in $f_{X}(x))$.
The reason for this error is that in order to do the differential substitution you did, going from $dx$ to $dy$, you also need to transform the integral bounds, and in that process you need to establish the areas where your transformation function is monotone, to possibly split the integral into more than one.
For odd $n$, this is not a problem, as $y=x^n$ is increasing. When only considering non-negative $X$, this isn't a problem for even $n$, as the integral effectively goes from $0$ to $infty$, and $y=x^n$ is increasing in that interval as well. But it falls down if you have potentially negative values and even $n$.
Another hint that something is not as it should be with your formula is that for even $n$, there are two $x$ that satisfy $y=x^n$ for a given posiive $y$. Which one should it be in your formula, considering the density function might be different for them?
answered Nov 26 '18 at 15:46
Ingix
3,289145
3,289145
Ah this makes sense. Considering this by changing the bounds to $0$ to $infty$ and noting this is for non-negative $x$, is my formulation correct?
– Lindstorm
Nov 26 '18 at 17:04
I'm not totally sure. For starters, what is your $f(x,y)$? If it is supposed to be the density of the common distribution of $(Y,X)$, then that is not a real valued function, because the density must be 0 for $y neq x^n$ and then the integral can't be anything else than 0.
– Ingix
Nov 26 '18 at 17:10
Yes, $f(x,y)$ is the joint density function of $X$ and $Y$. I have edited my solution based off my interpretation of what you said, does this fix it?
– Lindstorm
Nov 26 '18 at 18:25
See, there is not joint density function of $X$ and $Y$, at least not in the sense as a real valued function. It simply does not exist! You need to look at en.wikipedia.org/wiki/Distribution_(mathematics) to find the mathematical groundwork that makes it possible to work as though it does. That's why your integral solution produced the correct result.
– Ingix
Nov 26 '18 at 18:32
add a comment |
Ah this makes sense. Considering this by changing the bounds to $0$ to $infty$ and noting this is for non-negative $x$, is my formulation correct?
– Lindstorm
Nov 26 '18 at 17:04
I'm not totally sure. For starters, what is your $f(x,y)$? If it is supposed to be the density of the common distribution of $(Y,X)$, then that is not a real valued function, because the density must be 0 for $y neq x^n$ and then the integral can't be anything else than 0.
– Ingix
Nov 26 '18 at 17:10
Yes, $f(x,y)$ is the joint density function of $X$ and $Y$. I have edited my solution based off my interpretation of what you said, does this fix it?
– Lindstorm
Nov 26 '18 at 18:25
See, there is not joint density function of $X$ and $Y$, at least not in the sense as a real valued function. It simply does not exist! You need to look at en.wikipedia.org/wiki/Distribution_(mathematics) to find the mathematical groundwork that makes it possible to work as though it does. That's why your integral solution produced the correct result.
– Ingix
Nov 26 '18 at 18:32
Ah this makes sense. Considering this by changing the bounds to $0$ to $infty$ and noting this is for non-negative $x$, is my formulation correct?
– Lindstorm
Nov 26 '18 at 17:04
Ah this makes sense. Considering this by changing the bounds to $0$ to $infty$ and noting this is for non-negative $x$, is my formulation correct?
– Lindstorm
Nov 26 '18 at 17:04
I'm not totally sure. For starters, what is your $f(x,y)$? If it is supposed to be the density of the common distribution of $(Y,X)$, then that is not a real valued function, because the density must be 0 for $y neq x^n$ and then the integral can't be anything else than 0.
– Ingix
Nov 26 '18 at 17:10
I'm not totally sure. For starters, what is your $f(x,y)$? If it is supposed to be the density of the common distribution of $(Y,X)$, then that is not a real valued function, because the density must be 0 for $y neq x^n$ and then the integral can't be anything else than 0.
– Ingix
Nov 26 '18 at 17:10
Yes, $f(x,y)$ is the joint density function of $X$ and $Y$. I have edited my solution based off my interpretation of what you said, does this fix it?
– Lindstorm
Nov 26 '18 at 18:25
Yes, $f(x,y)$ is the joint density function of $X$ and $Y$. I have edited my solution based off my interpretation of what you said, does this fix it?
– Lindstorm
Nov 26 '18 at 18:25
See, there is not joint density function of $X$ and $Y$, at least not in the sense as a real valued function. It simply does not exist! You need to look at en.wikipedia.org/wiki/Distribution_(mathematics) to find the mathematical groundwork that makes it possible to work as though it does. That's why your integral solution produced the correct result.
– Ingix
Nov 26 '18 at 18:32
See, there is not joint density function of $X$ and $Y$, at least not in the sense as a real valued function. It simply does not exist! You need to look at en.wikipedia.org/wiki/Distribution_(mathematics) to find the mathematical groundwork that makes it possible to work as though it does. That's why your integral solution produced the correct result.
– Ingix
Nov 26 '18 at 18:32
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
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%2f3013873%2fwhat-is-wrong-with-my-solution-for-finding-f-y-if-y-xn%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
Your solution depends on $n$ as for $n$ even $Y$ will always be positive, whilst for $n$ odd, there is a bijections between $X$ and $Y.$
– Will M.
Nov 26 '18 at 5:10
@WillM. I dont quite understand what you mean
– Lindstorm
Nov 26 '18 at 8:07
Well, then there is nothing I can do to help you. Sorry and good luck.
– Will M.
Nov 26 '18 at 16:39