Trouble understanding Bayes Theorem
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
I was watching a video on YouTube and i am not sure if the given solution is correct. Can someone confirm?
probability naive-bayes
add a comment |Â
up vote
1
down vote
favorite
I was watching a video on YouTube and i am not sure if the given solution is correct. Can someone confirm?
probability naive-bayes
The final+
in the denominator should bex
.
– BruceET
6 hours ago
5
There is no such a thing as "naive Bayes theorem", there are naive Bayes algorithm and Bayes theorem.
– Tim♦
6 hours ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I was watching a video on YouTube and i am not sure if the given solution is correct. Can someone confirm?
probability naive-bayes
I was watching a video on YouTube and i am not sure if the given solution is correct. Can someone confirm?
probability naive-bayes
probability naive-bayes
edited 21 mins ago
asked 7 hours ago


siddhartha pachhai
435
435
The final+
in the denominator should bex
.
– BruceET
6 hours ago
5
There is no such a thing as "naive Bayes theorem", there are naive Bayes algorithm and Bayes theorem.
– Tim♦
6 hours ago
add a comment |Â
The final+
in the denominator should bex
.
– BruceET
6 hours ago
5
There is no such a thing as "naive Bayes theorem", there are naive Bayes algorithm and Bayes theorem.
– Tim♦
6 hours ago
The final
+
in the denominator should be x
.– BruceET
6 hours ago
The final
+
in the denominator should be x
.– BruceET
6 hours ago
5
5
There is no such a thing as "naive Bayes theorem", there are naive Bayes algorithm and Bayes theorem.
– Tim♦
6 hours ago
There is no such a thing as "naive Bayes theorem", there are naive Bayes algorithm and Bayes theorem.
– Tim♦
6 hours ago
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
Seems correct, except for the typo noted in my Comment. Let $D$ indicate 'has disease' and $T$ indicate 'tests positive'.
Bayes' Theorem states the following (denoting intersection of events as 'multiplication'):
$$P(D|T) = fracP(DT)P(T) =
fracP(D)P(TP(DT)+P(D^cT)
= fracP(D)P(TD)+P(D^c)P(T.$$
Sometimes, $P(T) = P(D)P(T|D)+P(D^c)P(T|D^c)$ is called the Law of Total Probability.
You are given that $P(D) = 0.01,, P(T|D) = P(T^c|D^c) = 0.99.$
Then by the Complement Rule, $P(D^c) = 0.99,, P(T|D^c) = 0.01.$
Plug in these numbers to get the answer claimed.
To understand these probabilities, notice that $P(DT), P(D|T),$ and $P(T|D)$ all contain the same events, but they refer to three different populations:
the first to the population of everyone who may take the test, the second to
the population of those who tested positive, and the third to the population of those who have the STD.
Note: You can find more detailed discussions of this kind of situation in several
of the links under 'Related' in the right margin. Also, you may want to look
at Wikipedia articles on "Bayes' Theorem" and "screening test."
Okay, yea thank you!
– siddhartha pachhai
11 mins ago
add a comment |Â
up vote
2
down vote
Yes even without consulting the equations it is possible to work it out from the information. See below.
New contributor
Curtis White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Thanks, this method also explains alot
– siddhartha pachhai
8 mins ago
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Seems correct, except for the typo noted in my Comment. Let $D$ indicate 'has disease' and $T$ indicate 'tests positive'.
Bayes' Theorem states the following (denoting intersection of events as 'multiplication'):
$$P(D|T) = fracP(DT)P(T) =
fracP(D)P(TP(DT)+P(D^cT)
= fracP(D)P(TD)+P(D^c)P(T.$$
Sometimes, $P(T) = P(D)P(T|D)+P(D^c)P(T|D^c)$ is called the Law of Total Probability.
You are given that $P(D) = 0.01,, P(T|D) = P(T^c|D^c) = 0.99.$
Then by the Complement Rule, $P(D^c) = 0.99,, P(T|D^c) = 0.01.$
Plug in these numbers to get the answer claimed.
To understand these probabilities, notice that $P(DT), P(D|T),$ and $P(T|D)$ all contain the same events, but they refer to three different populations:
the first to the population of everyone who may take the test, the second to
the population of those who tested positive, and the third to the population of those who have the STD.
Note: You can find more detailed discussions of this kind of situation in several
of the links under 'Related' in the right margin. Also, you may want to look
at Wikipedia articles on "Bayes' Theorem" and "screening test."
Okay, yea thank you!
– siddhartha pachhai
11 mins ago
add a comment |Â
up vote
2
down vote
accepted
Seems correct, except for the typo noted in my Comment. Let $D$ indicate 'has disease' and $T$ indicate 'tests positive'.
Bayes' Theorem states the following (denoting intersection of events as 'multiplication'):
$$P(D|T) = fracP(DT)P(T) =
fracP(D)P(TP(DT)+P(D^cT)
= fracP(D)P(TD)+P(D^c)P(T.$$
Sometimes, $P(T) = P(D)P(T|D)+P(D^c)P(T|D^c)$ is called the Law of Total Probability.
You are given that $P(D) = 0.01,, P(T|D) = P(T^c|D^c) = 0.99.$
Then by the Complement Rule, $P(D^c) = 0.99,, P(T|D^c) = 0.01.$
Plug in these numbers to get the answer claimed.
To understand these probabilities, notice that $P(DT), P(D|T),$ and $P(T|D)$ all contain the same events, but they refer to three different populations:
the first to the population of everyone who may take the test, the second to
the population of those who tested positive, and the third to the population of those who have the STD.
Note: You can find more detailed discussions of this kind of situation in several
of the links under 'Related' in the right margin. Also, you may want to look
at Wikipedia articles on "Bayes' Theorem" and "screening test."
Okay, yea thank you!
– siddhartha pachhai
11 mins ago
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Seems correct, except for the typo noted in my Comment. Let $D$ indicate 'has disease' and $T$ indicate 'tests positive'.
Bayes' Theorem states the following (denoting intersection of events as 'multiplication'):
$$P(D|T) = fracP(DT)P(T) =
fracP(D)P(TP(DT)+P(D^cT)
= fracP(D)P(TD)+P(D^c)P(T.$$
Sometimes, $P(T) = P(D)P(T|D)+P(D^c)P(T|D^c)$ is called the Law of Total Probability.
You are given that $P(D) = 0.01,, P(T|D) = P(T^c|D^c) = 0.99.$
Then by the Complement Rule, $P(D^c) = 0.99,, P(T|D^c) = 0.01.$
Plug in these numbers to get the answer claimed.
To understand these probabilities, notice that $P(DT), P(D|T),$ and $P(T|D)$ all contain the same events, but they refer to three different populations:
the first to the population of everyone who may take the test, the second to
the population of those who tested positive, and the third to the population of those who have the STD.
Note: You can find more detailed discussions of this kind of situation in several
of the links under 'Related' in the right margin. Also, you may want to look
at Wikipedia articles on "Bayes' Theorem" and "screening test."
Seems correct, except for the typo noted in my Comment. Let $D$ indicate 'has disease' and $T$ indicate 'tests positive'.
Bayes' Theorem states the following (denoting intersection of events as 'multiplication'):
$$P(D|T) = fracP(DT)P(T) =
fracP(D)P(TP(DT)+P(D^cT)
= fracP(D)P(TD)+P(D^c)P(T.$$
Sometimes, $P(T) = P(D)P(T|D)+P(D^c)P(T|D^c)$ is called the Law of Total Probability.
You are given that $P(D) = 0.01,, P(T|D) = P(T^c|D^c) = 0.99.$
Then by the Complement Rule, $P(D^c) = 0.99,, P(T|D^c) = 0.01.$
Plug in these numbers to get the answer claimed.
To understand these probabilities, notice that $P(DT), P(D|T),$ and $P(T|D)$ all contain the same events, but they refer to three different populations:
the first to the population of everyone who may take the test, the second to
the population of those who tested positive, and the third to the population of those who have the STD.
Note: You can find more detailed discussions of this kind of situation in several
of the links under 'Related' in the right margin. Also, you may want to look
at Wikipedia articles on "Bayes' Theorem" and "screening test."
edited 6 hours ago
answered 6 hours ago
BruceET
3,7281519
3,7281519
Okay, yea thank you!
– siddhartha pachhai
11 mins ago
add a comment |Â
Okay, yea thank you!
– siddhartha pachhai
11 mins ago
Okay, yea thank you!
– siddhartha pachhai
11 mins ago
Okay, yea thank you!
– siddhartha pachhai
11 mins ago
add a comment |Â
up vote
2
down vote
Yes even without consulting the equations it is possible to work it out from the information. See below.
New contributor
Curtis White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Thanks, this method also explains alot
– siddhartha pachhai
8 mins ago
add a comment |Â
up vote
2
down vote
Yes even without consulting the equations it is possible to work it out from the information. See below.
New contributor
Curtis White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Thanks, this method also explains alot
– siddhartha pachhai
8 mins ago
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Yes even without consulting the equations it is possible to work it out from the information. See below.
New contributor
Curtis White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Yes even without consulting the equations it is possible to work it out from the information. See below.
New contributor
Curtis White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Curtis White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 6 hours ago
Curtis White
1212
1212
New contributor
Curtis White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Curtis White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Curtis White is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Thanks, this method also explains alot
– siddhartha pachhai
8 mins ago
add a comment |Â
Thanks, this method also explains alot
– siddhartha pachhai
8 mins ago
Thanks, this method also explains alot
– siddhartha pachhai
8 mins ago
Thanks, this method also explains alot
– siddhartha pachhai
8 mins ago
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f371899%2ftrouble-understanding-bayes-theorem%23new-answer', 'question_page');
);
Post as a guest
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
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
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
The final
+
in the denominator should bex
.– BruceET
6 hours ago
5
There is no such a thing as "naive Bayes theorem", there are naive Bayes algorithm and Bayes theorem.
– Tim♦
6 hours ago