Joint PMF has two different cases, and not sure which one to choose
I was studying probability theory (more specifically joint distributions), and came across an exercise problem that I managed to almost solve, but am having trouble understanding a part of the solution. Allow me to elaborate. Here's the exercise problem (paraphrased):
(Source: Introduction to Probability (1e) - Blitzstein & Hwang)
There are two doctors, Dr. Hibbert and Nick. They are called upon to perform $n$ surgeries. Let $H$ be the indicator random variable for Dr. Hibbert performing the surgery, and suppose that $E(H) =p$. Given that Hibbert performs the surgery, each surgery is successful with probability $a$, independently, and with probability $b$ in case Nick performs the surgery, again independently. Let $X$ be the number of successful surgeries.
(a) Find the joint PMF of $H$ and $X$.
(b) Find the marginal PMF of $X$.
(c) Find the conditional PMF of $H$ given $X=k$.
When I solved this, I managed to get the answer for (b),
begin{align}
P(X=k) & = P(X=k, H=0) + P(X=k, H=1) \
& = P(X=k | H=0)P(H=0) + P(X=k | H=1)P(H=1) \
& =left(binom{n}{k}b^k(1-b)^{n-k}times (1-p)right) + left(binom{n}{k}a^k(1-a)^{n-k}times pright) \
end{align}
which makes sense because the success of a particular number of surgeries would depend on how many were performed by each doctor. I'm having trouble understanding the answer for (a).
The solution gives two answers for each case of $H$ (i.e. for $H=1$ and $H=0$). The left portion of $P(X=k)$ for $H=1$, and the right side for $H=0$.
How should I understand this? Does this mean we're simply taking into account two different cases of PMFs, and the marginal PMF of $X$ is simply combining these two?
Any feedback is appreciated. Thank you.
probability probability-distributions
add a comment |
I was studying probability theory (more specifically joint distributions), and came across an exercise problem that I managed to almost solve, but am having trouble understanding a part of the solution. Allow me to elaborate. Here's the exercise problem (paraphrased):
(Source: Introduction to Probability (1e) - Blitzstein & Hwang)
There are two doctors, Dr. Hibbert and Nick. They are called upon to perform $n$ surgeries. Let $H$ be the indicator random variable for Dr. Hibbert performing the surgery, and suppose that $E(H) =p$. Given that Hibbert performs the surgery, each surgery is successful with probability $a$, independently, and with probability $b$ in case Nick performs the surgery, again independently. Let $X$ be the number of successful surgeries.
(a) Find the joint PMF of $H$ and $X$.
(b) Find the marginal PMF of $X$.
(c) Find the conditional PMF of $H$ given $X=k$.
When I solved this, I managed to get the answer for (b),
begin{align}
P(X=k) & = P(X=k, H=0) + P(X=k, H=1) \
& = P(X=k | H=0)P(H=0) + P(X=k | H=1)P(H=1) \
& =left(binom{n}{k}b^k(1-b)^{n-k}times (1-p)right) + left(binom{n}{k}a^k(1-a)^{n-k}times pright) \
end{align}
which makes sense because the success of a particular number of surgeries would depend on how many were performed by each doctor. I'm having trouble understanding the answer for (a).
The solution gives two answers for each case of $H$ (i.e. for $H=1$ and $H=0$). The left portion of $P(X=k)$ for $H=1$, and the right side for $H=0$.
How should I understand this? Does this mean we're simply taking into account two different cases of PMFs, and the marginal PMF of $X$ is simply combining these two?
Any feedback is appreciated. Thank you.
probability probability-distributions
1
What do we understand as an event $H$?
– vermator
Nov 28 at 13:19
@vermator Oh my goodness, I hadn't realized I completely left that out. Thank you so much for letting me know.
– Seankala
Nov 28 at 16:22
add a comment |
I was studying probability theory (more specifically joint distributions), and came across an exercise problem that I managed to almost solve, but am having trouble understanding a part of the solution. Allow me to elaborate. Here's the exercise problem (paraphrased):
(Source: Introduction to Probability (1e) - Blitzstein & Hwang)
There are two doctors, Dr. Hibbert and Nick. They are called upon to perform $n$ surgeries. Let $H$ be the indicator random variable for Dr. Hibbert performing the surgery, and suppose that $E(H) =p$. Given that Hibbert performs the surgery, each surgery is successful with probability $a$, independently, and with probability $b$ in case Nick performs the surgery, again independently. Let $X$ be the number of successful surgeries.
(a) Find the joint PMF of $H$ and $X$.
(b) Find the marginal PMF of $X$.
(c) Find the conditional PMF of $H$ given $X=k$.
When I solved this, I managed to get the answer for (b),
begin{align}
P(X=k) & = P(X=k, H=0) + P(X=k, H=1) \
& = P(X=k | H=0)P(H=0) + P(X=k | H=1)P(H=1) \
& =left(binom{n}{k}b^k(1-b)^{n-k}times (1-p)right) + left(binom{n}{k}a^k(1-a)^{n-k}times pright) \
end{align}
which makes sense because the success of a particular number of surgeries would depend on how many were performed by each doctor. I'm having trouble understanding the answer for (a).
The solution gives two answers for each case of $H$ (i.e. for $H=1$ and $H=0$). The left portion of $P(X=k)$ for $H=1$, and the right side for $H=0$.
How should I understand this? Does this mean we're simply taking into account two different cases of PMFs, and the marginal PMF of $X$ is simply combining these two?
Any feedback is appreciated. Thank you.
probability probability-distributions
I was studying probability theory (more specifically joint distributions), and came across an exercise problem that I managed to almost solve, but am having trouble understanding a part of the solution. Allow me to elaborate. Here's the exercise problem (paraphrased):
(Source: Introduction to Probability (1e) - Blitzstein & Hwang)
There are two doctors, Dr. Hibbert and Nick. They are called upon to perform $n$ surgeries. Let $H$ be the indicator random variable for Dr. Hibbert performing the surgery, and suppose that $E(H) =p$. Given that Hibbert performs the surgery, each surgery is successful with probability $a$, independently, and with probability $b$ in case Nick performs the surgery, again independently. Let $X$ be the number of successful surgeries.
(a) Find the joint PMF of $H$ and $X$.
(b) Find the marginal PMF of $X$.
(c) Find the conditional PMF of $H$ given $X=k$.
When I solved this, I managed to get the answer for (b),
begin{align}
P(X=k) & = P(X=k, H=0) + P(X=k, H=1) \
& = P(X=k | H=0)P(H=0) + P(X=k | H=1)P(H=1) \
& =left(binom{n}{k}b^k(1-b)^{n-k}times (1-p)right) + left(binom{n}{k}a^k(1-a)^{n-k}times pright) \
end{align}
which makes sense because the success of a particular number of surgeries would depend on how many were performed by each doctor. I'm having trouble understanding the answer for (a).
The solution gives two answers for each case of $H$ (i.e. for $H=1$ and $H=0$). The left portion of $P(X=k)$ for $H=1$, and the right side for $H=0$.
How should I understand this? Does this mean we're simply taking into account two different cases of PMFs, and the marginal PMF of $X$ is simply combining these two?
Any feedback is appreciated. Thank you.
probability probability-distributions
probability probability-distributions
edited Nov 28 at 17:12
asked Nov 28 at 8:59
Seankala
24210
24210
1
What do we understand as an event $H$?
– vermator
Nov 28 at 13:19
@vermator Oh my goodness, I hadn't realized I completely left that out. Thank you so much for letting me know.
– Seankala
Nov 28 at 16:22
add a comment |
1
What do we understand as an event $H$?
– vermator
Nov 28 at 13:19
@vermator Oh my goodness, I hadn't realized I completely left that out. Thank you so much for letting me know.
– Seankala
Nov 28 at 16:22
1
1
What do we understand as an event $H$?
– vermator
Nov 28 at 13:19
What do we understand as an event $H$?
– vermator
Nov 28 at 13:19
@vermator Oh my goodness, I hadn't realized I completely left that out. Thank you so much for letting me know.
– Seankala
Nov 28 at 16:22
@vermator Oh my goodness, I hadn't realized I completely left that out. Thank you so much for letting me know.
– Seankala
Nov 28 at 16:22
add a comment |
1 Answer
1
active
oldest
votes
The joint PMF is
$$p_{HX}(h,x)=P(H=h,X=x),$$
with $hin{0,1}$ and $xin {0,1,ldots,n}$.
We can write this in terms of conditional probability as
$$p_{HX}(h,x)=P(X=x|H=h)P(H=h).$$
Since $E(H)=p$ we know that $P(H=1)=p$ and $P(H=0)=1-p$. Then, for $h=1$ (Hibbbert), we have
$$p_{HX}(1,x)=P(X=x|H=1)P(H=1)={n choose x}a^x(1-a)^{n-x}p,$$
and if $h=0$ (Nick),
$$p_{HX}(0,x)=P(X=x|H=0)P(H=0)={n choose x}b^x(1-b)^{n-x}(1-p).$$
Now, the marginal PMF of $X$ is given by
$$p_X(x)=sum_{h=0}^1 p_{HX}(h,x)={n choose x}b^x(1-b)^{n-x}(1-p)+{n choose x}a^x(1-a)^{n-x}p,$$
and the conditional distribution of $H$ given $X=k$ is
$$p_{H|X=k}(h)=frac{p_{HX}(h,k)}{p_X(k)},$$
that is
$$p_{H|X=k}(h)=left{begin{matrix}frac{{n choose k}b^k(1-b)^{n-k}(1-p)}{{n choose x}b^x(1-b)^{n-x}(1-p)+{n choose x}a^x(1-a)^{n-x}p}&h=0\frac{{n choose k}a^x(1-a)^{n-k}p}{{n choose k}b^k(1-b)^{n-k}(1-p)+{n choose k}a^k(1-a)^{n-k}p}&h=1.end{matrix}right.$$
Hi. So does this mean that when we write the joint PMF, we write two separate cases, and for the marginal PMF of $X$ we simply combine the two?
– Seankala
Nov 29 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%2f3016922%2fjoint-pmf-has-two-different-cases-and-not-sure-which-one-to-choose%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
The joint PMF is
$$p_{HX}(h,x)=P(H=h,X=x),$$
with $hin{0,1}$ and $xin {0,1,ldots,n}$.
We can write this in terms of conditional probability as
$$p_{HX}(h,x)=P(X=x|H=h)P(H=h).$$
Since $E(H)=p$ we know that $P(H=1)=p$ and $P(H=0)=1-p$. Then, for $h=1$ (Hibbbert), we have
$$p_{HX}(1,x)=P(X=x|H=1)P(H=1)={n choose x}a^x(1-a)^{n-x}p,$$
and if $h=0$ (Nick),
$$p_{HX}(0,x)=P(X=x|H=0)P(H=0)={n choose x}b^x(1-b)^{n-x}(1-p).$$
Now, the marginal PMF of $X$ is given by
$$p_X(x)=sum_{h=0}^1 p_{HX}(h,x)={n choose x}b^x(1-b)^{n-x}(1-p)+{n choose x}a^x(1-a)^{n-x}p,$$
and the conditional distribution of $H$ given $X=k$ is
$$p_{H|X=k}(h)=frac{p_{HX}(h,k)}{p_X(k)},$$
that is
$$p_{H|X=k}(h)=left{begin{matrix}frac{{n choose k}b^k(1-b)^{n-k}(1-p)}{{n choose x}b^x(1-b)^{n-x}(1-p)+{n choose x}a^x(1-a)^{n-x}p}&h=0\frac{{n choose k}a^x(1-a)^{n-k}p}{{n choose k}b^k(1-b)^{n-k}(1-p)+{n choose k}a^k(1-a)^{n-k}p}&h=1.end{matrix}right.$$
Hi. So does this mean that when we write the joint PMF, we write two separate cases, and for the marginal PMF of $X$ we simply combine the two?
– Seankala
Nov 29 at 0:20
add a comment |
The joint PMF is
$$p_{HX}(h,x)=P(H=h,X=x),$$
with $hin{0,1}$ and $xin {0,1,ldots,n}$.
We can write this in terms of conditional probability as
$$p_{HX}(h,x)=P(X=x|H=h)P(H=h).$$
Since $E(H)=p$ we know that $P(H=1)=p$ and $P(H=0)=1-p$. Then, for $h=1$ (Hibbbert), we have
$$p_{HX}(1,x)=P(X=x|H=1)P(H=1)={n choose x}a^x(1-a)^{n-x}p,$$
and if $h=0$ (Nick),
$$p_{HX}(0,x)=P(X=x|H=0)P(H=0)={n choose x}b^x(1-b)^{n-x}(1-p).$$
Now, the marginal PMF of $X$ is given by
$$p_X(x)=sum_{h=0}^1 p_{HX}(h,x)={n choose x}b^x(1-b)^{n-x}(1-p)+{n choose x}a^x(1-a)^{n-x}p,$$
and the conditional distribution of $H$ given $X=k$ is
$$p_{H|X=k}(h)=frac{p_{HX}(h,k)}{p_X(k)},$$
that is
$$p_{H|X=k}(h)=left{begin{matrix}frac{{n choose k}b^k(1-b)^{n-k}(1-p)}{{n choose x}b^x(1-b)^{n-x}(1-p)+{n choose x}a^x(1-a)^{n-x}p}&h=0\frac{{n choose k}a^x(1-a)^{n-k}p}{{n choose k}b^k(1-b)^{n-k}(1-p)+{n choose k}a^k(1-a)^{n-k}p}&h=1.end{matrix}right.$$
Hi. So does this mean that when we write the joint PMF, we write two separate cases, and for the marginal PMF of $X$ we simply combine the two?
– Seankala
Nov 29 at 0:20
add a comment |
The joint PMF is
$$p_{HX}(h,x)=P(H=h,X=x),$$
with $hin{0,1}$ and $xin {0,1,ldots,n}$.
We can write this in terms of conditional probability as
$$p_{HX}(h,x)=P(X=x|H=h)P(H=h).$$
Since $E(H)=p$ we know that $P(H=1)=p$ and $P(H=0)=1-p$. Then, for $h=1$ (Hibbbert), we have
$$p_{HX}(1,x)=P(X=x|H=1)P(H=1)={n choose x}a^x(1-a)^{n-x}p,$$
and if $h=0$ (Nick),
$$p_{HX}(0,x)=P(X=x|H=0)P(H=0)={n choose x}b^x(1-b)^{n-x}(1-p).$$
Now, the marginal PMF of $X$ is given by
$$p_X(x)=sum_{h=0}^1 p_{HX}(h,x)={n choose x}b^x(1-b)^{n-x}(1-p)+{n choose x}a^x(1-a)^{n-x}p,$$
and the conditional distribution of $H$ given $X=k$ is
$$p_{H|X=k}(h)=frac{p_{HX}(h,k)}{p_X(k)},$$
that is
$$p_{H|X=k}(h)=left{begin{matrix}frac{{n choose k}b^k(1-b)^{n-k}(1-p)}{{n choose x}b^x(1-b)^{n-x}(1-p)+{n choose x}a^x(1-a)^{n-x}p}&h=0\frac{{n choose k}a^x(1-a)^{n-k}p}{{n choose k}b^k(1-b)^{n-k}(1-p)+{n choose k}a^k(1-a)^{n-k}p}&h=1.end{matrix}right.$$
The joint PMF is
$$p_{HX}(h,x)=P(H=h,X=x),$$
with $hin{0,1}$ and $xin {0,1,ldots,n}$.
We can write this in terms of conditional probability as
$$p_{HX}(h,x)=P(X=x|H=h)P(H=h).$$
Since $E(H)=p$ we know that $P(H=1)=p$ and $P(H=0)=1-p$. Then, for $h=1$ (Hibbbert), we have
$$p_{HX}(1,x)=P(X=x|H=1)P(H=1)={n choose x}a^x(1-a)^{n-x}p,$$
and if $h=0$ (Nick),
$$p_{HX}(0,x)=P(X=x|H=0)P(H=0)={n choose x}b^x(1-b)^{n-x}(1-p).$$
Now, the marginal PMF of $X$ is given by
$$p_X(x)=sum_{h=0}^1 p_{HX}(h,x)={n choose x}b^x(1-b)^{n-x}(1-p)+{n choose x}a^x(1-a)^{n-x}p,$$
and the conditional distribution of $H$ given $X=k$ is
$$p_{H|X=k}(h)=frac{p_{HX}(h,k)}{p_X(k)},$$
that is
$$p_{H|X=k}(h)=left{begin{matrix}frac{{n choose k}b^k(1-b)^{n-k}(1-p)}{{n choose x}b^x(1-b)^{n-x}(1-p)+{n choose x}a^x(1-a)^{n-x}p}&h=0\frac{{n choose k}a^x(1-a)^{n-k}p}{{n choose k}b^k(1-b)^{n-k}(1-p)+{n choose k}a^k(1-a)^{n-k}p}&h=1.end{matrix}right.$$
answered Nov 28 at 17:42
Alejandro Nasif Salum
3,999117
3,999117
Hi. So does this mean that when we write the joint PMF, we write two separate cases, and for the marginal PMF of $X$ we simply combine the two?
– Seankala
Nov 29 at 0:20
add a comment |
Hi. So does this mean that when we write the joint PMF, we write two separate cases, and for the marginal PMF of $X$ we simply combine the two?
– Seankala
Nov 29 at 0:20
Hi. So does this mean that when we write the joint PMF, we write two separate cases, and for the marginal PMF of $X$ we simply combine the two?
– Seankala
Nov 29 at 0:20
Hi. So does this mean that when we write the joint PMF, we write two separate cases, and for the marginal PMF of $X$ we simply combine the two?
– Seankala
Nov 29 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.
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%2f3016922%2fjoint-pmf-has-two-different-cases-and-not-sure-which-one-to-choose%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
1
What do we understand as an event $H$?
– vermator
Nov 28 at 13:19
@vermator Oh my goodness, I hadn't realized I completely left that out. Thank you so much for letting me know.
– Seankala
Nov 28 at 16:22