Sum of two Geometric Random Variables with different success probability
$begingroup$
Here is a problem and my answer which I know is wrong. I am hoping somebody can tell me where I went wrong.
Thanks
Bob
Problem:
Let $X$ and $Y$ be independent random variables having geometric
densities with parameters $p_1$ and $p_2$ respectively. Find the density of
$X + Y$.
Answer:
Let $Z = X + Y$.
begin{eqnarray*}
P( Z = 0 ) &=& P( X = 0 ) P(Y = 0) \
P( Z = 1 ) &=& P( X = 0 ) P(Y = 1) + P( X = 1 ) P(Y = 0) \
P( Z = n ) &=& sum_{i = 0}^{n} P(X = i)P(Y = n - i ) = sum_{i = 0}^{n} p_1(1-p_1)^i p_2 (1 - p_2)^{n - i} \
end{eqnarray*}
This is a finite geometric series with $a = p_1 p_2$ and $r = frac{1-p_1}{1-p_2}$. Also observe that there are $n+1$ terms not $n$ terms.
begin{eqnarray*}
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}{1 - frac{1-p_1}{1-p_2}} \
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}
{ frac{p_1 - p_2}{1 - p_2} } \
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}
{ frac{p_1 - p_2}{1 - p_2} } \
end{eqnarray*}
probability probability-distributions
$endgroup$
add a comment |
$begingroup$
Here is a problem and my answer which I know is wrong. I am hoping somebody can tell me where I went wrong.
Thanks
Bob
Problem:
Let $X$ and $Y$ be independent random variables having geometric
densities with parameters $p_1$ and $p_2$ respectively. Find the density of
$X + Y$.
Answer:
Let $Z = X + Y$.
begin{eqnarray*}
P( Z = 0 ) &=& P( X = 0 ) P(Y = 0) \
P( Z = 1 ) &=& P( X = 0 ) P(Y = 1) + P( X = 1 ) P(Y = 0) \
P( Z = n ) &=& sum_{i = 0}^{n} P(X = i)P(Y = n - i ) = sum_{i = 0}^{n} p_1(1-p_1)^i p_2 (1 - p_2)^{n - i} \
end{eqnarray*}
This is a finite geometric series with $a = p_1 p_2$ and $r = frac{1-p_1}{1-p_2}$. Also observe that there are $n+1$ terms not $n$ terms.
begin{eqnarray*}
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}{1 - frac{1-p_1}{1-p_2}} \
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}
{ frac{p_1 - p_2}{1 - p_2} } \
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}
{ frac{p_1 - p_2}{1 - p_2} } \
end{eqnarray*}
probability probability-distributions
$endgroup$
2
$begingroup$
Tiny mistake - $a$ is $p_1 p_2 (1-p_2)^{n},$ not $p_1p_2$.
$endgroup$
– stochasticboy321
Feb 9 '18 at 22:14
$begingroup$
are you sure the question says density?
$endgroup$
– Henry
Feb 9 '18 at 22:54
$begingroup$
@Henry The book does say density but I believe the modern term probability mass function.
$endgroup$
– Bob
Feb 9 '18 at 23:03
add a comment |
$begingroup$
Here is a problem and my answer which I know is wrong. I am hoping somebody can tell me where I went wrong.
Thanks
Bob
Problem:
Let $X$ and $Y$ be independent random variables having geometric
densities with parameters $p_1$ and $p_2$ respectively. Find the density of
$X + Y$.
Answer:
Let $Z = X + Y$.
begin{eqnarray*}
P( Z = 0 ) &=& P( X = 0 ) P(Y = 0) \
P( Z = 1 ) &=& P( X = 0 ) P(Y = 1) + P( X = 1 ) P(Y = 0) \
P( Z = n ) &=& sum_{i = 0}^{n} P(X = i)P(Y = n - i ) = sum_{i = 0}^{n} p_1(1-p_1)^i p_2 (1 - p_2)^{n - i} \
end{eqnarray*}
This is a finite geometric series with $a = p_1 p_2$ and $r = frac{1-p_1}{1-p_2}$. Also observe that there are $n+1$ terms not $n$ terms.
begin{eqnarray*}
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}{1 - frac{1-p_1}{1-p_2}} \
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}
{ frac{p_1 - p_2}{1 - p_2} } \
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}
{ frac{p_1 - p_2}{1 - p_2} } \
end{eqnarray*}
probability probability-distributions
$endgroup$
Here is a problem and my answer which I know is wrong. I am hoping somebody can tell me where I went wrong.
Thanks
Bob
Problem:
Let $X$ and $Y$ be independent random variables having geometric
densities with parameters $p_1$ and $p_2$ respectively. Find the density of
$X + Y$.
Answer:
Let $Z = X + Y$.
begin{eqnarray*}
P( Z = 0 ) &=& P( X = 0 ) P(Y = 0) \
P( Z = 1 ) &=& P( X = 0 ) P(Y = 1) + P( X = 1 ) P(Y = 0) \
P( Z = n ) &=& sum_{i = 0}^{n} P(X = i)P(Y = n - i ) = sum_{i = 0}^{n} p_1(1-p_1)^i p_2 (1 - p_2)^{n - i} \
end{eqnarray*}
This is a finite geometric series with $a = p_1 p_2$ and $r = frac{1-p_1}{1-p_2}$. Also observe that there are $n+1$ terms not $n$ terms.
begin{eqnarray*}
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}{1 - frac{1-p_1}{1-p_2}} \
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}
{ frac{p_1 - p_2}{1 - p_2} } \
P( Z = n ) &=&
frac{p_1 p_2Big(1 - {Big(frac{1-p_1}{1-p_2}Big) } ^{n+1}Big)}
{ frac{p_1 - p_2}{1 - p_2} } \
end{eqnarray*}
probability probability-distributions
probability probability-distributions
edited Jan 10 at 2:56


amWhy
1
1
asked Feb 9 '18 at 21:47
BobBob
923515
923515
2
$begingroup$
Tiny mistake - $a$ is $p_1 p_2 (1-p_2)^{n},$ not $p_1p_2$.
$endgroup$
– stochasticboy321
Feb 9 '18 at 22:14
$begingroup$
are you sure the question says density?
$endgroup$
– Henry
Feb 9 '18 at 22:54
$begingroup$
@Henry The book does say density but I believe the modern term probability mass function.
$endgroup$
– Bob
Feb 9 '18 at 23:03
add a comment |
2
$begingroup$
Tiny mistake - $a$ is $p_1 p_2 (1-p_2)^{n},$ not $p_1p_2$.
$endgroup$
– stochasticboy321
Feb 9 '18 at 22:14
$begingroup$
are you sure the question says density?
$endgroup$
– Henry
Feb 9 '18 at 22:54
$begingroup$
@Henry The book does say density but I believe the modern term probability mass function.
$endgroup$
– Bob
Feb 9 '18 at 23:03
2
2
$begingroup$
Tiny mistake - $a$ is $p_1 p_2 (1-p_2)^{n},$ not $p_1p_2$.
$endgroup$
– stochasticboy321
Feb 9 '18 at 22:14
$begingroup$
Tiny mistake - $a$ is $p_1 p_2 (1-p_2)^{n},$ not $p_1p_2$.
$endgroup$
– stochasticboy321
Feb 9 '18 at 22:14
$begingroup$
are you sure the question says density?
$endgroup$
– Henry
Feb 9 '18 at 22:54
$begingroup$
are you sure the question says density?
$endgroup$
– Henry
Feb 9 '18 at 22:54
$begingroup$
@Henry The book does say density but I believe the modern term probability mass function.
$endgroup$
– Bob
Feb 9 '18 at 23:03
$begingroup$
@Henry The book does say density but I believe the modern term probability mass function.
$endgroup$
– Bob
Feb 9 '18 at 23:03
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Your definition of a geometric random variable is not quite consistent with the normal definition; normally one would say that $X$ is the trial on which one has the first success (in a sequence of $p_1$ Benoulli variables).
So that means
$$mathbf{P}(X = k) = (1-p_1)^{k-1} p_1, qquad k = 1,2,ldots$$
In particular the distribution is defined only for integers greater than or equal to $1$. In your definition (which I will denote $widehat X$, you allow $widehat X = 0$ to be non-zero; that is you assume the density is
$$mathbf{P}left( widehat X = kright) = (1-p_1)^k p_1, qquad k = 0,1,ldots$$
This also has an interpretation: this is you are counting the number of failures before success, so your definition is equivalent to
$$ widehat X = X-1.$$
From here we can determine the distribution of $Z = X + Y$ using the method you have
begin{align*}
mathbf{P}(Z = n) & = sum_{k=0}^n P(X = k) P(Y = n-k) \
& = sum_{k=1}^{n-1} P(X = k) P(Y = n-k) \
& = p_1 p_2 sum_{k=1}^{n-1} (1-p_1)^{k-1} (1-p_2)^{n-k-1} \
& = p_1 p_2frac{(1-p_2)^{n-1}}{(1-p_1)} sum_{k=1}^{n-1} left( frac{1-p_1}{1-p_2} right)^{k}.
end{align*}
From here you can manipulate the geometric series (much as you do above) to derive
$$mathbf{P}(Z = n) = frac{p_1p_2}{p_1 - p_2}
big( (1-p_2)^{n-1} - (1-p_1)^{n-1} big), qquad n = 2,3,ldots
$$
Note that $Z$ can only take values greater than or equal to $2$.
$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%2f2643851%2fsum-of-two-geometric-random-variables-with-different-success-probability%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$
Your definition of a geometric random variable is not quite consistent with the normal definition; normally one would say that $X$ is the trial on which one has the first success (in a sequence of $p_1$ Benoulli variables).
So that means
$$mathbf{P}(X = k) = (1-p_1)^{k-1} p_1, qquad k = 1,2,ldots$$
In particular the distribution is defined only for integers greater than or equal to $1$. In your definition (which I will denote $widehat X$, you allow $widehat X = 0$ to be non-zero; that is you assume the density is
$$mathbf{P}left( widehat X = kright) = (1-p_1)^k p_1, qquad k = 0,1,ldots$$
This also has an interpretation: this is you are counting the number of failures before success, so your definition is equivalent to
$$ widehat X = X-1.$$
From here we can determine the distribution of $Z = X + Y$ using the method you have
begin{align*}
mathbf{P}(Z = n) & = sum_{k=0}^n P(X = k) P(Y = n-k) \
& = sum_{k=1}^{n-1} P(X = k) P(Y = n-k) \
& = p_1 p_2 sum_{k=1}^{n-1} (1-p_1)^{k-1} (1-p_2)^{n-k-1} \
& = p_1 p_2frac{(1-p_2)^{n-1}}{(1-p_1)} sum_{k=1}^{n-1} left( frac{1-p_1}{1-p_2} right)^{k}.
end{align*}
From here you can manipulate the geometric series (much as you do above) to derive
$$mathbf{P}(Z = n) = frac{p_1p_2}{p_1 - p_2}
big( (1-p_2)^{n-1} - (1-p_1)^{n-1} big), qquad n = 2,3,ldots
$$
Note that $Z$ can only take values greater than or equal to $2$.
$endgroup$
add a comment |
$begingroup$
Your definition of a geometric random variable is not quite consistent with the normal definition; normally one would say that $X$ is the trial on which one has the first success (in a sequence of $p_1$ Benoulli variables).
So that means
$$mathbf{P}(X = k) = (1-p_1)^{k-1} p_1, qquad k = 1,2,ldots$$
In particular the distribution is defined only for integers greater than or equal to $1$. In your definition (which I will denote $widehat X$, you allow $widehat X = 0$ to be non-zero; that is you assume the density is
$$mathbf{P}left( widehat X = kright) = (1-p_1)^k p_1, qquad k = 0,1,ldots$$
This also has an interpretation: this is you are counting the number of failures before success, so your definition is equivalent to
$$ widehat X = X-1.$$
From here we can determine the distribution of $Z = X + Y$ using the method you have
begin{align*}
mathbf{P}(Z = n) & = sum_{k=0}^n P(X = k) P(Y = n-k) \
& = sum_{k=1}^{n-1} P(X = k) P(Y = n-k) \
& = p_1 p_2 sum_{k=1}^{n-1} (1-p_1)^{k-1} (1-p_2)^{n-k-1} \
& = p_1 p_2frac{(1-p_2)^{n-1}}{(1-p_1)} sum_{k=1}^{n-1} left( frac{1-p_1}{1-p_2} right)^{k}.
end{align*}
From here you can manipulate the geometric series (much as you do above) to derive
$$mathbf{P}(Z = n) = frac{p_1p_2}{p_1 - p_2}
big( (1-p_2)^{n-1} - (1-p_1)^{n-1} big), qquad n = 2,3,ldots
$$
Note that $Z$ can only take values greater than or equal to $2$.
$endgroup$
add a comment |
$begingroup$
Your definition of a geometric random variable is not quite consistent with the normal definition; normally one would say that $X$ is the trial on which one has the first success (in a sequence of $p_1$ Benoulli variables).
So that means
$$mathbf{P}(X = k) = (1-p_1)^{k-1} p_1, qquad k = 1,2,ldots$$
In particular the distribution is defined only for integers greater than or equal to $1$. In your definition (which I will denote $widehat X$, you allow $widehat X = 0$ to be non-zero; that is you assume the density is
$$mathbf{P}left( widehat X = kright) = (1-p_1)^k p_1, qquad k = 0,1,ldots$$
This also has an interpretation: this is you are counting the number of failures before success, so your definition is equivalent to
$$ widehat X = X-1.$$
From here we can determine the distribution of $Z = X + Y$ using the method you have
begin{align*}
mathbf{P}(Z = n) & = sum_{k=0}^n P(X = k) P(Y = n-k) \
& = sum_{k=1}^{n-1} P(X = k) P(Y = n-k) \
& = p_1 p_2 sum_{k=1}^{n-1} (1-p_1)^{k-1} (1-p_2)^{n-k-1} \
& = p_1 p_2frac{(1-p_2)^{n-1}}{(1-p_1)} sum_{k=1}^{n-1} left( frac{1-p_1}{1-p_2} right)^{k}.
end{align*}
From here you can manipulate the geometric series (much as you do above) to derive
$$mathbf{P}(Z = n) = frac{p_1p_2}{p_1 - p_2}
big( (1-p_2)^{n-1} - (1-p_1)^{n-1} big), qquad n = 2,3,ldots
$$
Note that $Z$ can only take values greater than or equal to $2$.
$endgroup$
Your definition of a geometric random variable is not quite consistent with the normal definition; normally one would say that $X$ is the trial on which one has the first success (in a sequence of $p_1$ Benoulli variables).
So that means
$$mathbf{P}(X = k) = (1-p_1)^{k-1} p_1, qquad k = 1,2,ldots$$
In particular the distribution is defined only for integers greater than or equal to $1$. In your definition (which I will denote $widehat X$, you allow $widehat X = 0$ to be non-zero; that is you assume the density is
$$mathbf{P}left( widehat X = kright) = (1-p_1)^k p_1, qquad k = 0,1,ldots$$
This also has an interpretation: this is you are counting the number of failures before success, so your definition is equivalent to
$$ widehat X = X-1.$$
From here we can determine the distribution of $Z = X + Y$ using the method you have
begin{align*}
mathbf{P}(Z = n) & = sum_{k=0}^n P(X = k) P(Y = n-k) \
& = sum_{k=1}^{n-1} P(X = k) P(Y = n-k) \
& = p_1 p_2 sum_{k=1}^{n-1} (1-p_1)^{k-1} (1-p_2)^{n-k-1} \
& = p_1 p_2frac{(1-p_2)^{n-1}}{(1-p_1)} sum_{k=1}^{n-1} left( frac{1-p_1}{1-p_2} right)^{k}.
end{align*}
From here you can manipulate the geometric series (much as you do above) to derive
$$mathbf{P}(Z = n) = frac{p_1p_2}{p_1 - p_2}
big( (1-p_2)^{n-1} - (1-p_1)^{n-1} big), qquad n = 2,3,ldots
$$
Note that $Z$ can only take values greater than or equal to $2$.
answered Feb 10 '18 at 9:38
owen88owen88
3,6721021
3,6721021
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%2f2643851%2fsum-of-two-geometric-random-variables-with-different-success-probability%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
2
$begingroup$
Tiny mistake - $a$ is $p_1 p_2 (1-p_2)^{n},$ not $p_1p_2$.
$endgroup$
– stochasticboy321
Feb 9 '18 at 22:14
$begingroup$
are you sure the question says density?
$endgroup$
– Henry
Feb 9 '18 at 22:54
$begingroup$
@Henry The book does say density but I believe the modern term probability mass function.
$endgroup$
– Bob
Feb 9 '18 at 23:03