sum of two discrete uniform random variables
Let $X$ be an integer chosen uniformly at random from the set ${1,2,...,n}$ and $Y$ be an independent integer chosen uniformly at random from the set ${1,2,...,m}$. Find the probability mass function of $X+Y$.
My attempt:
Without loss of generality suppose $n<m$. Possible values of $X+Y: 2,3,...,m+n.$ For $2leq kleq n$ using independence of $X$ and $Y$ we have
$P(X+Y=k)=sum_{i=2}^{n}P(X=k)P(Y=n-k)=frac{n-1}{mn}.$
I'm stuck here and don't know how to proceed. What other cases are needed to be considered?
probability
add a comment |
Let $X$ be an integer chosen uniformly at random from the set ${1,2,...,n}$ and $Y$ be an independent integer chosen uniformly at random from the set ${1,2,...,m}$. Find the probability mass function of $X+Y$.
My attempt:
Without loss of generality suppose $n<m$. Possible values of $X+Y: 2,3,...,m+n.$ For $2leq kleq n$ using independence of $X$ and $Y$ we have
$P(X+Y=k)=sum_{i=2}^{n}P(X=k)P(Y=n-k)=frac{n-1}{mn}.$
I'm stuck here and don't know how to proceed. What other cases are needed to be considered?
probability
Perform the simple combinatorics to find the number of ways (and hence relative probability) of obtaining each output, $1, ldots, m+n$.
– David G. Stork
Nov 28 '18 at 5:08
add a comment |
Let $X$ be an integer chosen uniformly at random from the set ${1,2,...,n}$ and $Y$ be an independent integer chosen uniformly at random from the set ${1,2,...,m}$. Find the probability mass function of $X+Y$.
My attempt:
Without loss of generality suppose $n<m$. Possible values of $X+Y: 2,3,...,m+n.$ For $2leq kleq n$ using independence of $X$ and $Y$ we have
$P(X+Y=k)=sum_{i=2}^{n}P(X=k)P(Y=n-k)=frac{n-1}{mn}.$
I'm stuck here and don't know how to proceed. What other cases are needed to be considered?
probability
Let $X$ be an integer chosen uniformly at random from the set ${1,2,...,n}$ and $Y$ be an independent integer chosen uniformly at random from the set ${1,2,...,m}$. Find the probability mass function of $X+Y$.
My attempt:
Without loss of generality suppose $n<m$. Possible values of $X+Y: 2,3,...,m+n.$ For $2leq kleq n$ using independence of $X$ and $Y$ we have
$P(X+Y=k)=sum_{i=2}^{n}P(X=k)P(Y=n-k)=frac{n-1}{mn}.$
I'm stuck here and don't know how to proceed. What other cases are needed to be considered?
probability
probability
asked Nov 28 '18 at 4:32
dxdydz
1949
1949
Perform the simple combinatorics to find the number of ways (and hence relative probability) of obtaining each output, $1, ldots, m+n$.
– David G. Stork
Nov 28 '18 at 5:08
add a comment |
Perform the simple combinatorics to find the number of ways (and hence relative probability) of obtaining each output, $1, ldots, m+n$.
– David G. Stork
Nov 28 '18 at 5:08
Perform the simple combinatorics to find the number of ways (and hence relative probability) of obtaining each output, $1, ldots, m+n$.
– David G. Stork
Nov 28 '18 at 5:08
Perform the simple combinatorics to find the number of ways (and hence relative probability) of obtaining each output, $1, ldots, m+n$.
– David G. Stork
Nov 28 '18 at 5:08
add a comment |
1 Answer
1
active
oldest
votes
You have confused a little your variables and indexes. The sum for the case $2le kle n$ should be
$$sum_{i=1}^{k-1}P(X=i)P(Y=k-i).$$
Also consider the cases
$$n<kle m,quad 1le i le n$$
and
$$m<kle n+m,quad k-mle ile n.$$
To see this, think that $i$, the values that $X$ take, can be from $1$ to $n$, as long as the respective values for $Y$, that is $k-i$ are between $1$ and $m$. This implies:
$$1le k-i le m iff -m le i-k le -1 iff k-m le i le k-1.$$
So we have $ige 1$ and also $ige k-m$. This means that if $kle m$, $i$ can take the value $1$, but if $k>m$, then the minimum value for $i$ has to be $k-m$ (actually, this is also $1$ for $k=m+1$, but this does not contradicts what we said).
In the same way, $i$ has to be smaller or equal than $n$ and $k-1$, so if $kle n$, the maximum value for $i$ is $k-1$, but when $k>n$, the maximum value for $i$ is $n$. Combining these results, we get the three cases mentioned above.
Is there an intuitive way to understand how we choose the boundaries for different cases?
– dxdydz
Nov 28 '18 at 5:53
I added that to the answer.
– Alejandro Nasif Salum
Nov 28 '18 at 6:01
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%2f3016719%2fsum-of-two-discrete-uniform-random-variables%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
You have confused a little your variables and indexes. The sum for the case $2le kle n$ should be
$$sum_{i=1}^{k-1}P(X=i)P(Y=k-i).$$
Also consider the cases
$$n<kle m,quad 1le i le n$$
and
$$m<kle n+m,quad k-mle ile n.$$
To see this, think that $i$, the values that $X$ take, can be from $1$ to $n$, as long as the respective values for $Y$, that is $k-i$ are between $1$ and $m$. This implies:
$$1le k-i le m iff -m le i-k le -1 iff k-m le i le k-1.$$
So we have $ige 1$ and also $ige k-m$. This means that if $kle m$, $i$ can take the value $1$, but if $k>m$, then the minimum value for $i$ has to be $k-m$ (actually, this is also $1$ for $k=m+1$, but this does not contradicts what we said).
In the same way, $i$ has to be smaller or equal than $n$ and $k-1$, so if $kle n$, the maximum value for $i$ is $k-1$, but when $k>n$, the maximum value for $i$ is $n$. Combining these results, we get the three cases mentioned above.
Is there an intuitive way to understand how we choose the boundaries for different cases?
– dxdydz
Nov 28 '18 at 5:53
I added that to the answer.
– Alejandro Nasif Salum
Nov 28 '18 at 6:01
add a comment |
You have confused a little your variables and indexes. The sum for the case $2le kle n$ should be
$$sum_{i=1}^{k-1}P(X=i)P(Y=k-i).$$
Also consider the cases
$$n<kle m,quad 1le i le n$$
and
$$m<kle n+m,quad k-mle ile n.$$
To see this, think that $i$, the values that $X$ take, can be from $1$ to $n$, as long as the respective values for $Y$, that is $k-i$ are between $1$ and $m$. This implies:
$$1le k-i le m iff -m le i-k le -1 iff k-m le i le k-1.$$
So we have $ige 1$ and also $ige k-m$. This means that if $kle m$, $i$ can take the value $1$, but if $k>m$, then the minimum value for $i$ has to be $k-m$ (actually, this is also $1$ for $k=m+1$, but this does not contradicts what we said).
In the same way, $i$ has to be smaller or equal than $n$ and $k-1$, so if $kle n$, the maximum value for $i$ is $k-1$, but when $k>n$, the maximum value for $i$ is $n$. Combining these results, we get the three cases mentioned above.
Is there an intuitive way to understand how we choose the boundaries for different cases?
– dxdydz
Nov 28 '18 at 5:53
I added that to the answer.
– Alejandro Nasif Salum
Nov 28 '18 at 6:01
add a comment |
You have confused a little your variables and indexes. The sum for the case $2le kle n$ should be
$$sum_{i=1}^{k-1}P(X=i)P(Y=k-i).$$
Also consider the cases
$$n<kle m,quad 1le i le n$$
and
$$m<kle n+m,quad k-mle ile n.$$
To see this, think that $i$, the values that $X$ take, can be from $1$ to $n$, as long as the respective values for $Y$, that is $k-i$ are between $1$ and $m$. This implies:
$$1le k-i le m iff -m le i-k le -1 iff k-m le i le k-1.$$
So we have $ige 1$ and also $ige k-m$. This means that if $kle m$, $i$ can take the value $1$, but if $k>m$, then the minimum value for $i$ has to be $k-m$ (actually, this is also $1$ for $k=m+1$, but this does not contradicts what we said).
In the same way, $i$ has to be smaller or equal than $n$ and $k-1$, so if $kle n$, the maximum value for $i$ is $k-1$, but when $k>n$, the maximum value for $i$ is $n$. Combining these results, we get the three cases mentioned above.
You have confused a little your variables and indexes. The sum for the case $2le kle n$ should be
$$sum_{i=1}^{k-1}P(X=i)P(Y=k-i).$$
Also consider the cases
$$n<kle m,quad 1le i le n$$
and
$$m<kle n+m,quad k-mle ile n.$$
To see this, think that $i$, the values that $X$ take, can be from $1$ to $n$, as long as the respective values for $Y$, that is $k-i$ are between $1$ and $m$. This implies:
$$1le k-i le m iff -m le i-k le -1 iff k-m le i le k-1.$$
So we have $ige 1$ and also $ige k-m$. This means that if $kle m$, $i$ can take the value $1$, but if $k>m$, then the minimum value for $i$ has to be $k-m$ (actually, this is also $1$ for $k=m+1$, but this does not contradicts what we said).
In the same way, $i$ has to be smaller or equal than $n$ and $k-1$, so if $kle n$, the maximum value for $i$ is $k-1$, but when $k>n$, the maximum value for $i$ is $n$. Combining these results, we get the three cases mentioned above.
edited Nov 28 '18 at 6:01
answered Nov 28 '18 at 5:12
Alejandro Nasif Salum
4,399118
4,399118
Is there an intuitive way to understand how we choose the boundaries for different cases?
– dxdydz
Nov 28 '18 at 5:53
I added that to the answer.
– Alejandro Nasif Salum
Nov 28 '18 at 6:01
add a comment |
Is there an intuitive way to understand how we choose the boundaries for different cases?
– dxdydz
Nov 28 '18 at 5:53
I added that to the answer.
– Alejandro Nasif Salum
Nov 28 '18 at 6:01
Is there an intuitive way to understand how we choose the boundaries for different cases?
– dxdydz
Nov 28 '18 at 5:53
Is there an intuitive way to understand how we choose the boundaries for different cases?
– dxdydz
Nov 28 '18 at 5:53
I added that to the answer.
– Alejandro Nasif Salum
Nov 28 '18 at 6:01
I added that to the answer.
– Alejandro Nasif Salum
Nov 28 '18 at 6:01
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%2f3016719%2fsum-of-two-discrete-uniform-random-variables%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
Perform the simple combinatorics to find the number of ways (and hence relative probability) of obtaining each output, $1, ldots, m+n$.
– David G. Stork
Nov 28 '18 at 5:08