Cluster probabilites: Bayesian network (sprinkler example, Russel/ Norvig) as a clustered network
$begingroup$
like others here I am also learning with Russel's and Norvig's book about artificial intelligence. My question is about the conditional probability tables of a clustered multiply connected network with a meganode.
We have the following Bayesian multiply connected network.

In order to reduce computation (according to the book). We combine Sprinkler and Rain and get a meganode.

I have my difficulties with understanding the conditional probability table for the new meganode.
I assume that the values
- $P(S+R|C) = .08$ can be calculated with $.08 = P(S|C) cdot P(R|C) = .10 cdot .80$.
- Same goes for $.02$ with $.02 = P(S|C) cdot P(R|neg C) = .10 cdot .20$.
However I do not understand why
- $P(S+R|neg C) = .40$ could be computed with $.40 = P(S|neg C) cdot P(R|C) = .40 cdot .80$: Since according to the $TT$ column Sprinkler should be true and Cloudy should be true, same with Rain. However we have to use Sprinkler true but Cloudy false.
- or $0.72$ could be computed with $.72 = P(R|C) - ( P(S|C) cdot P(R|C)) = .80 - .10 cdot .80 = .80 - .08$
Hence my overall question is how $P(S+R=x)$ can be computed.
Thank you!
probability machine-learning bayesian naive-bayes
$endgroup$
add a comment |
$begingroup$
like others here I am also learning with Russel's and Norvig's book about artificial intelligence. My question is about the conditional probability tables of a clustered multiply connected network with a meganode.
We have the following Bayesian multiply connected network.

In order to reduce computation (according to the book). We combine Sprinkler and Rain and get a meganode.

I have my difficulties with understanding the conditional probability table for the new meganode.
I assume that the values
- $P(S+R|C) = .08$ can be calculated with $.08 = P(S|C) cdot P(R|C) = .10 cdot .80$.
- Same goes for $.02$ with $.02 = P(S|C) cdot P(R|neg C) = .10 cdot .20$.
However I do not understand why
- $P(S+R|neg C) = .40$ could be computed with $.40 = P(S|neg C) cdot P(R|C) = .40 cdot .80$: Since according to the $TT$ column Sprinkler should be true and Cloudy should be true, same with Rain. However we have to use Sprinkler true but Cloudy false.
- or $0.72$ could be computed with $.72 = P(R|C) - ( P(S|C) cdot P(R|C)) = .80 - .10 cdot .80 = .80 - .08$
Hence my overall question is how $P(S+R=x)$ can be computed.
Thank you!
probability machine-learning bayesian naive-bayes
$endgroup$
add a comment |
$begingroup$
like others here I am also learning with Russel's and Norvig's book about artificial intelligence. My question is about the conditional probability tables of a clustered multiply connected network with a meganode.
We have the following Bayesian multiply connected network.

In order to reduce computation (according to the book). We combine Sprinkler and Rain and get a meganode.

I have my difficulties with understanding the conditional probability table for the new meganode.
I assume that the values
- $P(S+R|C) = .08$ can be calculated with $.08 = P(S|C) cdot P(R|C) = .10 cdot .80$.
- Same goes for $.02$ with $.02 = P(S|C) cdot P(R|neg C) = .10 cdot .20$.
However I do not understand why
- $P(S+R|neg C) = .40$ could be computed with $.40 = P(S|neg C) cdot P(R|C) = .40 cdot .80$: Since according to the $TT$ column Sprinkler should be true and Cloudy should be true, same with Rain. However we have to use Sprinkler true but Cloudy false.
- or $0.72$ could be computed with $.72 = P(R|C) - ( P(S|C) cdot P(R|C)) = .80 - .10 cdot .80 = .80 - .08$
Hence my overall question is how $P(S+R=x)$ can be computed.
Thank you!
probability machine-learning bayesian naive-bayes
$endgroup$
like others here I am also learning with Russel's and Norvig's book about artificial intelligence. My question is about the conditional probability tables of a clustered multiply connected network with a meganode.
We have the following Bayesian multiply connected network.

In order to reduce computation (according to the book). We combine Sprinkler and Rain and get a meganode.

I have my difficulties with understanding the conditional probability table for the new meganode.
I assume that the values
- $P(S+R|C) = .08$ can be calculated with $.08 = P(S|C) cdot P(R|C) = .10 cdot .80$.
- Same goes for $.02$ with $.02 = P(S|C) cdot P(R|neg C) = .10 cdot .20$.
However I do not understand why
- $P(S+R|neg C) = .40$ could be computed with $.40 = P(S|neg C) cdot P(R|C) = .40 cdot .80$: Since according to the $TT$ column Sprinkler should be true and Cloudy should be true, same with Rain. However we have to use Sprinkler true but Cloudy false.
- or $0.72$ could be computed with $.72 = P(R|C) - ( P(S|C) cdot P(R|C)) = .80 - .10 cdot .80 = .80 - .08$
Hence my overall question is how $P(S+R=x)$ can be computed.
Thank you!
probability machine-learning bayesian naive-bayes
probability machine-learning bayesian naive-bayes
asked Apr 3 '15 at 18:55
Peter F.wellPeter F.well
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
I think there's a dyslexic typo here. Swap $0.1$'s with $0.4$'s. So for example,
$$P(S=T,R=T|C=F)=P(S=T|C=F)P(R=T|C=F)=0.5cdot 0.2 =0.1,$$
$$P(S=F,R=T|C=F)=P(S=F|C=F)P(R=T|C=F)=0.5cdot 0.2 =0.1,$$
$$P(S=T,R=F|C=F)=P(S=T|C=F)P(R=F|C=F)=0.5cdot 0.8 =0.4,$$
$$P(S=F,R=F|C=F)=P(S=F|C=F)P(R=F|C=F)=0.5cdot 0.8 =0.4.$$
$endgroup$
$begingroup$
Thank you for your answer. I could understand the bottom row of the table. Maybe we should inform Russel & Norvig about the typo. However I cannot apply your approach to the top row: $$ P(S=T,R=T|C=T)=P(S=T|C=T)P(R=T|C=T)=0.1cdot 0.8 =0.08 checkmark \ P(S=T,R=F|C=T)=P(S=T|C=T)P(R=F|C=T)=0.1cdot 0.2 =0.02 checkmark \ P(S=F,R=T|C=T)=P(S=F|C=T)P(R=T|C=T)=0.5cdot 0.8 =0.4 bigstar\ P(S=F,R=F|C=T)=P(S=F|C=T)P(R=F|C=T)=0.5cdot 0.2 =0.1 bigstar\ $$ What is my calculation error in the last two lines?
$endgroup$
– Peter F.well
Apr 3 '15 at 20:10
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%2f1219042%2fcluster-probabilites-bayesian-network-sprinkler-example-russel-norvig-as-a%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$
I think there's a dyslexic typo here. Swap $0.1$'s with $0.4$'s. So for example,
$$P(S=T,R=T|C=F)=P(S=T|C=F)P(R=T|C=F)=0.5cdot 0.2 =0.1,$$
$$P(S=F,R=T|C=F)=P(S=F|C=F)P(R=T|C=F)=0.5cdot 0.2 =0.1,$$
$$P(S=T,R=F|C=F)=P(S=T|C=F)P(R=F|C=F)=0.5cdot 0.8 =0.4,$$
$$P(S=F,R=F|C=F)=P(S=F|C=F)P(R=F|C=F)=0.5cdot 0.8 =0.4.$$
$endgroup$
$begingroup$
Thank you for your answer. I could understand the bottom row of the table. Maybe we should inform Russel & Norvig about the typo. However I cannot apply your approach to the top row: $$ P(S=T,R=T|C=T)=P(S=T|C=T)P(R=T|C=T)=0.1cdot 0.8 =0.08 checkmark \ P(S=T,R=F|C=T)=P(S=T|C=T)P(R=F|C=T)=0.1cdot 0.2 =0.02 checkmark \ P(S=F,R=T|C=T)=P(S=F|C=T)P(R=T|C=T)=0.5cdot 0.8 =0.4 bigstar\ P(S=F,R=F|C=T)=P(S=F|C=T)P(R=F|C=T)=0.5cdot 0.2 =0.1 bigstar\ $$ What is my calculation error in the last two lines?
$endgroup$
– Peter F.well
Apr 3 '15 at 20:10
add a comment |
$begingroup$
I think there's a dyslexic typo here. Swap $0.1$'s with $0.4$'s. So for example,
$$P(S=T,R=T|C=F)=P(S=T|C=F)P(R=T|C=F)=0.5cdot 0.2 =0.1,$$
$$P(S=F,R=T|C=F)=P(S=F|C=F)P(R=T|C=F)=0.5cdot 0.2 =0.1,$$
$$P(S=T,R=F|C=F)=P(S=T|C=F)P(R=F|C=F)=0.5cdot 0.8 =0.4,$$
$$P(S=F,R=F|C=F)=P(S=F|C=F)P(R=F|C=F)=0.5cdot 0.8 =0.4.$$
$endgroup$
$begingroup$
Thank you for your answer. I could understand the bottom row of the table. Maybe we should inform Russel & Norvig about the typo. However I cannot apply your approach to the top row: $$ P(S=T,R=T|C=T)=P(S=T|C=T)P(R=T|C=T)=0.1cdot 0.8 =0.08 checkmark \ P(S=T,R=F|C=T)=P(S=T|C=T)P(R=F|C=T)=0.1cdot 0.2 =0.02 checkmark \ P(S=F,R=T|C=T)=P(S=F|C=T)P(R=T|C=T)=0.5cdot 0.8 =0.4 bigstar\ P(S=F,R=F|C=T)=P(S=F|C=T)P(R=F|C=T)=0.5cdot 0.2 =0.1 bigstar\ $$ What is my calculation error in the last two lines?
$endgroup$
– Peter F.well
Apr 3 '15 at 20:10
add a comment |
$begingroup$
I think there's a dyslexic typo here. Swap $0.1$'s with $0.4$'s. So for example,
$$P(S=T,R=T|C=F)=P(S=T|C=F)P(R=T|C=F)=0.5cdot 0.2 =0.1,$$
$$P(S=F,R=T|C=F)=P(S=F|C=F)P(R=T|C=F)=0.5cdot 0.2 =0.1,$$
$$P(S=T,R=F|C=F)=P(S=T|C=F)P(R=F|C=F)=0.5cdot 0.8 =0.4,$$
$$P(S=F,R=F|C=F)=P(S=F|C=F)P(R=F|C=F)=0.5cdot 0.8 =0.4.$$
$endgroup$
I think there's a dyslexic typo here. Swap $0.1$'s with $0.4$'s. So for example,
$$P(S=T,R=T|C=F)=P(S=T|C=F)P(R=T|C=F)=0.5cdot 0.2 =0.1,$$
$$P(S=F,R=T|C=F)=P(S=F|C=F)P(R=T|C=F)=0.5cdot 0.2 =0.1,$$
$$P(S=T,R=F|C=F)=P(S=T|C=F)P(R=F|C=F)=0.5cdot 0.8 =0.4,$$
$$P(S=F,R=F|C=F)=P(S=F|C=F)P(R=F|C=F)=0.5cdot 0.8 =0.4.$$
answered Apr 3 '15 at 19:48
Alex R.Alex R.
24.9k12452
24.9k12452
$begingroup$
Thank you for your answer. I could understand the bottom row of the table. Maybe we should inform Russel & Norvig about the typo. However I cannot apply your approach to the top row: $$ P(S=T,R=T|C=T)=P(S=T|C=T)P(R=T|C=T)=0.1cdot 0.8 =0.08 checkmark \ P(S=T,R=F|C=T)=P(S=T|C=T)P(R=F|C=T)=0.1cdot 0.2 =0.02 checkmark \ P(S=F,R=T|C=T)=P(S=F|C=T)P(R=T|C=T)=0.5cdot 0.8 =0.4 bigstar\ P(S=F,R=F|C=T)=P(S=F|C=T)P(R=F|C=T)=0.5cdot 0.2 =0.1 bigstar\ $$ What is my calculation error in the last two lines?
$endgroup$
– Peter F.well
Apr 3 '15 at 20:10
add a comment |
$begingroup$
Thank you for your answer. I could understand the bottom row of the table. Maybe we should inform Russel & Norvig about the typo. However I cannot apply your approach to the top row: $$ P(S=T,R=T|C=T)=P(S=T|C=T)P(R=T|C=T)=0.1cdot 0.8 =0.08 checkmark \ P(S=T,R=F|C=T)=P(S=T|C=T)P(R=F|C=T)=0.1cdot 0.2 =0.02 checkmark \ P(S=F,R=T|C=T)=P(S=F|C=T)P(R=T|C=T)=0.5cdot 0.8 =0.4 bigstar\ P(S=F,R=F|C=T)=P(S=F|C=T)P(R=F|C=T)=0.5cdot 0.2 =0.1 bigstar\ $$ What is my calculation error in the last two lines?
$endgroup$
– Peter F.well
Apr 3 '15 at 20:10
$begingroup$
Thank you for your answer. I could understand the bottom row of the table. Maybe we should inform Russel & Norvig about the typo. However I cannot apply your approach to the top row: $$ P(S=T,R=T|C=T)=P(S=T|C=T)P(R=T|C=T)=0.1cdot 0.8 =0.08 checkmark \ P(S=T,R=F|C=T)=P(S=T|C=T)P(R=F|C=T)=0.1cdot 0.2 =0.02 checkmark \ P(S=F,R=T|C=T)=P(S=F|C=T)P(R=T|C=T)=0.5cdot 0.8 =0.4 bigstar\ P(S=F,R=F|C=T)=P(S=F|C=T)P(R=F|C=T)=0.5cdot 0.2 =0.1 bigstar\ $$ What is my calculation error in the last two lines?
$endgroup$
– Peter F.well
Apr 3 '15 at 20:10
$begingroup$
Thank you for your answer. I could understand the bottom row of the table. Maybe we should inform Russel & Norvig about the typo. However I cannot apply your approach to the top row: $$ P(S=T,R=T|C=T)=P(S=T|C=T)P(R=T|C=T)=0.1cdot 0.8 =0.08 checkmark \ P(S=T,R=F|C=T)=P(S=T|C=T)P(R=F|C=T)=0.1cdot 0.2 =0.02 checkmark \ P(S=F,R=T|C=T)=P(S=F|C=T)P(R=T|C=T)=0.5cdot 0.8 =0.4 bigstar\ P(S=F,R=F|C=T)=P(S=F|C=T)P(R=F|C=T)=0.5cdot 0.2 =0.1 bigstar\ $$ What is my calculation error in the last two lines?
$endgroup$
– Peter F.well
Apr 3 '15 at 20:10
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%2f1219042%2fcluster-probabilites-bayesian-network-sprinkler-example-russel-norvig-as-a%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