Product of a Discrete Variable and a Continuous Variable
$begingroup$
How would I go about obtaining the probability density function of a random variable that results in a product of a discrete variable and a continuous variable? I know that if $X$ and $Y$ are both continuous, then the probability density function of $Z=XY$ is given by: $$f_Z(z)=int_{-infty}^{infty}f_X(x)f_Yleft(frac{z}{x}right)frac{1}{|x|}dx$$ but what is the method of obtaining $f_Z(z)$ if $X$ is a discrete variable and $Y$ is continuous?
More specific to my case, I have $X$ following a Rademacher distribution, that is $$begin{align*}
P(X=x) = begin{cases}
frac{1}{2} & x = -1\
frac{1}{2} & x = 1\
0 & otherwise
end{cases}
end{align*}$$
and $Y$ following a Rayleigh distribution. What would be the product of these two random variables?
probability probability-theory probability-distributions random-variables dirac-delta
$endgroup$
add a comment |
$begingroup$
How would I go about obtaining the probability density function of a random variable that results in a product of a discrete variable and a continuous variable? I know that if $X$ and $Y$ are both continuous, then the probability density function of $Z=XY$ is given by: $$f_Z(z)=int_{-infty}^{infty}f_X(x)f_Yleft(frac{z}{x}right)frac{1}{|x|}dx$$ but what is the method of obtaining $f_Z(z)$ if $X$ is a discrete variable and $Y$ is continuous?
More specific to my case, I have $X$ following a Rademacher distribution, that is $$begin{align*}
P(X=x) = begin{cases}
frac{1}{2} & x = -1\
frac{1}{2} & x = 1\
0 & otherwise
end{cases}
end{align*}$$
and $Y$ following a Rayleigh distribution. What would be the product of these two random variables?
probability probability-theory probability-distributions random-variables dirac-delta
$endgroup$
$begingroup$
Use $f_X(x)=sum_k P(X=k)delta (x-k)$ (see en.wikipedia.org/wiki/Dirac_delta_function).
$endgroup$
– J.G.
Dec 25 '18 at 13:13
$begingroup$
@J.G. but does that $f_Z(z)$ formula still apply to this case? Is $f_X(x)$ considered continuous?
$endgroup$
– rea
Dec 25 '18 at 13:35
$begingroup$
Yes, it applies.
$endgroup$
– J.G.
Dec 25 '18 at 14:26
add a comment |
$begingroup$
How would I go about obtaining the probability density function of a random variable that results in a product of a discrete variable and a continuous variable? I know that if $X$ and $Y$ are both continuous, then the probability density function of $Z=XY$ is given by: $$f_Z(z)=int_{-infty}^{infty}f_X(x)f_Yleft(frac{z}{x}right)frac{1}{|x|}dx$$ but what is the method of obtaining $f_Z(z)$ if $X$ is a discrete variable and $Y$ is continuous?
More specific to my case, I have $X$ following a Rademacher distribution, that is $$begin{align*}
P(X=x) = begin{cases}
frac{1}{2} & x = -1\
frac{1}{2} & x = 1\
0 & otherwise
end{cases}
end{align*}$$
and $Y$ following a Rayleigh distribution. What would be the product of these two random variables?
probability probability-theory probability-distributions random-variables dirac-delta
$endgroup$
How would I go about obtaining the probability density function of a random variable that results in a product of a discrete variable and a continuous variable? I know that if $X$ and $Y$ are both continuous, then the probability density function of $Z=XY$ is given by: $$f_Z(z)=int_{-infty}^{infty}f_X(x)f_Yleft(frac{z}{x}right)frac{1}{|x|}dx$$ but what is the method of obtaining $f_Z(z)$ if $X$ is a discrete variable and $Y$ is continuous?
More specific to my case, I have $X$ following a Rademacher distribution, that is $$begin{align*}
P(X=x) = begin{cases}
frac{1}{2} & x = -1\
frac{1}{2} & x = 1\
0 & otherwise
end{cases}
end{align*}$$
and $Y$ following a Rayleigh distribution. What would be the product of these two random variables?
probability probability-theory probability-distributions random-variables dirac-delta
probability probability-theory probability-distributions random-variables dirac-delta
edited Dec 25 '18 at 13:58
rea
asked Dec 25 '18 at 13:06
rearea
12
12
$begingroup$
Use $f_X(x)=sum_k P(X=k)delta (x-k)$ (see en.wikipedia.org/wiki/Dirac_delta_function).
$endgroup$
– J.G.
Dec 25 '18 at 13:13
$begingroup$
@J.G. but does that $f_Z(z)$ formula still apply to this case? Is $f_X(x)$ considered continuous?
$endgroup$
– rea
Dec 25 '18 at 13:35
$begingroup$
Yes, it applies.
$endgroup$
– J.G.
Dec 25 '18 at 14:26
add a comment |
$begingroup$
Use $f_X(x)=sum_k P(X=k)delta (x-k)$ (see en.wikipedia.org/wiki/Dirac_delta_function).
$endgroup$
– J.G.
Dec 25 '18 at 13:13
$begingroup$
@J.G. but does that $f_Z(z)$ formula still apply to this case? Is $f_X(x)$ considered continuous?
$endgroup$
– rea
Dec 25 '18 at 13:35
$begingroup$
Yes, it applies.
$endgroup$
– J.G.
Dec 25 '18 at 14:26
$begingroup$
Use $f_X(x)=sum_k P(X=k)delta (x-k)$ (see en.wikipedia.org/wiki/Dirac_delta_function).
$endgroup$
– J.G.
Dec 25 '18 at 13:13
$begingroup$
Use $f_X(x)=sum_k P(X=k)delta (x-k)$ (see en.wikipedia.org/wiki/Dirac_delta_function).
$endgroup$
– J.G.
Dec 25 '18 at 13:13
$begingroup$
@J.G. but does that $f_Z(z)$ formula still apply to this case? Is $f_X(x)$ considered continuous?
$endgroup$
– rea
Dec 25 '18 at 13:35
$begingroup$
@J.G. but does that $f_Z(z)$ formula still apply to this case? Is $f_X(x)$ considered continuous?
$endgroup$
– rea
Dec 25 '18 at 13:35
$begingroup$
Yes, it applies.
$endgroup$
– J.G.
Dec 25 '18 at 14:26
$begingroup$
Yes, it applies.
$endgroup$
– J.G.
Dec 25 '18 at 14:26
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
We can try from the definition:
$$
begin{split}
F_Z(z)
&= mathbb{P}[Z le z] \
&= mathbb{P}[XY le z] \
&= sum_{k=1}^infty mathbb{P}[XY le z, X = k] \
&= sum_{k=1}^infty mathbb{P}[Y le z/k] mathbb{P}[X = k] \
&= sum_{k=1}^infty F_Y(z/k) f_X(k).
end{split}
$$
Note I did not handle the case where $k le 0$...
One can alternatively condtion on $Y$ similarly and end up with an integral instead of a sum:
$$
begin{split}
F_Z(z)
&= mathbb{P}[Z le z] \
&= mathbb{P}[XY le z] \
&= int_mathbb{R} lim_{epsilon to 0}
mathbb{P}[XY le z, |Y-y| < epsilon] dy \
&= int_mathbb{R} F_X(z/y) f_Y(y) dy.
end{split}
$$
$endgroup$
add a comment |
$begingroup$
For the special case of Rademacher $X$, $$P(Zle z)=P(X=1)P(Yle z)+P(X=-1)P(Yge -z)=frac{F_Y(z)+1-F_Y(-z)}{2}.$$with $F_Y$ the cdf of $Y$.
$endgroup$
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%2f3052093%2fproduct-of-a-discrete-variable-and-a-continuous-variable%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
$begingroup$
We can try from the definition:
$$
begin{split}
F_Z(z)
&= mathbb{P}[Z le z] \
&= mathbb{P}[XY le z] \
&= sum_{k=1}^infty mathbb{P}[XY le z, X = k] \
&= sum_{k=1}^infty mathbb{P}[Y le z/k] mathbb{P}[X = k] \
&= sum_{k=1}^infty F_Y(z/k) f_X(k).
end{split}
$$
Note I did not handle the case where $k le 0$...
One can alternatively condtion on $Y$ similarly and end up with an integral instead of a sum:
$$
begin{split}
F_Z(z)
&= mathbb{P}[Z le z] \
&= mathbb{P}[XY le z] \
&= int_mathbb{R} lim_{epsilon to 0}
mathbb{P}[XY le z, |Y-y| < epsilon] dy \
&= int_mathbb{R} F_X(z/y) f_Y(y) dy.
end{split}
$$
$endgroup$
add a comment |
$begingroup$
We can try from the definition:
$$
begin{split}
F_Z(z)
&= mathbb{P}[Z le z] \
&= mathbb{P}[XY le z] \
&= sum_{k=1}^infty mathbb{P}[XY le z, X = k] \
&= sum_{k=1}^infty mathbb{P}[Y le z/k] mathbb{P}[X = k] \
&= sum_{k=1}^infty F_Y(z/k) f_X(k).
end{split}
$$
Note I did not handle the case where $k le 0$...
One can alternatively condtion on $Y$ similarly and end up with an integral instead of a sum:
$$
begin{split}
F_Z(z)
&= mathbb{P}[Z le z] \
&= mathbb{P}[XY le z] \
&= int_mathbb{R} lim_{epsilon to 0}
mathbb{P}[XY le z, |Y-y| < epsilon] dy \
&= int_mathbb{R} F_X(z/y) f_Y(y) dy.
end{split}
$$
$endgroup$
add a comment |
$begingroup$
We can try from the definition:
$$
begin{split}
F_Z(z)
&= mathbb{P}[Z le z] \
&= mathbb{P}[XY le z] \
&= sum_{k=1}^infty mathbb{P}[XY le z, X = k] \
&= sum_{k=1}^infty mathbb{P}[Y le z/k] mathbb{P}[X = k] \
&= sum_{k=1}^infty F_Y(z/k) f_X(k).
end{split}
$$
Note I did not handle the case where $k le 0$...
One can alternatively condtion on $Y$ similarly and end up with an integral instead of a sum:
$$
begin{split}
F_Z(z)
&= mathbb{P}[Z le z] \
&= mathbb{P}[XY le z] \
&= int_mathbb{R} lim_{epsilon to 0}
mathbb{P}[XY le z, |Y-y| < epsilon] dy \
&= int_mathbb{R} F_X(z/y) f_Y(y) dy.
end{split}
$$
$endgroup$
We can try from the definition:
$$
begin{split}
F_Z(z)
&= mathbb{P}[Z le z] \
&= mathbb{P}[XY le z] \
&= sum_{k=1}^infty mathbb{P}[XY le z, X = k] \
&= sum_{k=1}^infty mathbb{P}[Y le z/k] mathbb{P}[X = k] \
&= sum_{k=1}^infty F_Y(z/k) f_X(k).
end{split}
$$
Note I did not handle the case where $k le 0$...
One can alternatively condtion on $Y$ similarly and end up with an integral instead of a sum:
$$
begin{split}
F_Z(z)
&= mathbb{P}[Z le z] \
&= mathbb{P}[XY le z] \
&= int_mathbb{R} lim_{epsilon to 0}
mathbb{P}[XY le z, |Y-y| < epsilon] dy \
&= int_mathbb{R} F_X(z/y) f_Y(y) dy.
end{split}
$$
answered Dec 25 '18 at 13:42
gt6989bgt6989b
34.7k22456
34.7k22456
add a comment |
add a comment |
$begingroup$
For the special case of Rademacher $X$, $$P(Zle z)=P(X=1)P(Yle z)+P(X=-1)P(Yge -z)=frac{F_Y(z)+1-F_Y(-z)}{2}.$$with $F_Y$ the cdf of $Y$.
$endgroup$
add a comment |
$begingroup$
For the special case of Rademacher $X$, $$P(Zle z)=P(X=1)P(Yle z)+P(X=-1)P(Yge -z)=frac{F_Y(z)+1-F_Y(-z)}{2}.$$with $F_Y$ the cdf of $Y$.
$endgroup$
add a comment |
$begingroup$
For the special case of Rademacher $X$, $$P(Zle z)=P(X=1)P(Yle z)+P(X=-1)P(Yge -z)=frac{F_Y(z)+1-F_Y(-z)}{2}.$$with $F_Y$ the cdf of $Y$.
$endgroup$
For the special case of Rademacher $X$, $$P(Zle z)=P(X=1)P(Yle z)+P(X=-1)P(Yge -z)=frac{F_Y(z)+1-F_Y(-z)}{2}.$$with $F_Y$ the cdf of $Y$.
answered Dec 25 '18 at 14:25
J.G.J.G.
29.4k22846
29.4k22846
add a comment |
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%2f3052093%2fproduct-of-a-discrete-variable-and-a-continuous-variable%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
$begingroup$
Use $f_X(x)=sum_k P(X=k)delta (x-k)$ (see en.wikipedia.org/wiki/Dirac_delta_function).
$endgroup$
– J.G.
Dec 25 '18 at 13:13
$begingroup$
@J.G. but does that $f_Z(z)$ formula still apply to this case? Is $f_X(x)$ considered continuous?
$endgroup$
– rea
Dec 25 '18 at 13:35
$begingroup$
Yes, it applies.
$endgroup$
– J.G.
Dec 25 '18 at 14:26