Which is the probability of JohnCalls given Burglary? Why?

In summary, the probability of JohnCalls given Burglary refers to the likelihood that John will call when a burglary occurs. This probability is influenced by various factors such as the relationship between John and the burglary event, prior experiences, and the overall context of the situation. Understanding this probability involves analyzing the connection between the occurrence of a burglary and John's response, taking into account any relevant data or patterns that may affect his likelihood to call.
  • #1
alima
Gold Member
10
2
Homework Statement
Which is the probability of JohnCalls given Burglary? Why?
Relevant Equations
Bayes' Theorem = P (A|B) = ( P(B|A) * P(A) ) / P(B)
Questions:
  1. P (JohnCalls|Burglary) ?
  2. Why?
1715104580685.png

Source of the image: Artificial Intelligence: A Modern Approach - Third Edition, by Stuart Russell and Peter Norvig.

My attempt at solving: using Bayes' Theorem = P (A|B) = ( P(B|A) * P(A) ) / P(B)

P(JohnCalls|Burglary) = P(J|B) = ( P(B|J) * P(J) / P(B) )
  • P(B): 0.001
  • P(J): it depends on the Alarm ringing or not!
  • P(B|J): how I am supposed to deduce this???
 
Physics news on Phys.org
  • #2
alima said:
Homework Statement: Which is the probability of JohnCalls given Burglary? Why?
Relevant Equations: Bayes' Theorem = P (A|B) = ( P(B|A) * P(A) ) / P(B)

Questions:
  1. P (JohnCalls|Burglary) ?
  2. Why?
View attachment 344732
Source of the image: Artificial Intelligence: A Modern Approach - Third Edition, by Stuart Russell and Peter Norvig.

My attempt at solving: using Bayes' Theorem = P (A|B) = ( P(B|A) * P(A) ) / P(B)

P(JohnCalls|Burglary) = P(J|B) = ( P(B|J) * P(J) / P(B) )
  • P(B): 0.001
  • P(J): it depends on the Alarm ringing or not!
  • P(B|J): how I am supposed to deduce this???
What does the illustration represent, particularly the JohnCalls and MaryCalls parts? Is the idea that if there is a burglary or earthquake, then the alarm goes off, after which either John or Mary calls someone? This isn't clear to me from the drawing.

There is a formula for conditional probability that you don't show.
$$P(A | B) = \frac{P(A \cap B)}{P(B)}, \text{ if } P(B) \ne 0$$
 
  • #3
Mark44 said:
What does the illustration represent, particularly the JohnCalls and MaryCalls parts? Is the idea that if there is a burglary or earthquake, then the alarm goes off, after which either John or Mary calls someone? This isn't clear to me from the drawing.
Sorry for not being clear enough. Here is the description of the book in my own words:
  1. There is a house, and this house has an Alarm;
  2. The Alarm detects Burglary, but also sometimes respond to minor Earthquakes;
  3. John and Mary are neighbours of said house and will call you, the resident, if they hear the Alarm ringing;
  4. The neighbours are not 100% accurate. John sometimes thinks the telephone ring is the Alarm ring (false positive), and Mary does not always hear the Alarm because she likes to hear to loud music (false negative).
Mark44 said:
There is a formula for conditional probability that you don't show.
$$P(A | B) = \frac{P(A \cap B)}{P(B)}, \text{ if } P(B) \ne 0$$
I didn't mention it because I don't know it.
Is it relevant to the problem?
My professor did not present this equation to my class.
 
  • #5
There is an important point that you need to notice. According to that diagram, the event of who calls is independent of whether the alarm is due to a burglary or an earthquake. Reversing that, whether the alarm was due to a burglary or an earthquake is independent of who calls. (Independence is reflexive or you can prove this with another application of Bayes Rule.) So P(B|J) = P(B).
WAIT! I might have to think about this because I am assuming from the diagram the exact thing the problem is asking about.
 
Last edited:
  • Wow
Likes alima
  • #6
FactChecker said:
There is an important point that you need to notice. According to that diagram, the event of who calls is independent of whether the alarm is due to a burglary or an earthquake.
That is totally correct.
The diagram can be simplified like that, right, since Earthquake isn't relevant to the question?
1715110577683.png
 
  • #7
Mark44 said:
There is a formula for conditional probability that you don't show.
$$P(A | B) = \frac{P(A \cap B)}{P(B)}, \text{ if } P(B) \ne 0$$

Fine, applying it to the problem:
$$P(J | B) = \frac{P(J \cap B)}{P(B)}$$
  1. P(R) is 0.001, great!;
  2. P(J ∩ R) I don't know how to deduce. Could you give me a hint?
I mean, there is no direct relationship between J and R, because there is A (Alarm) in the middle of the path.
 
Last edited:
  • #8
alima said:
The diagram can be simplified like that, right, since Earthquake isn't relevant to the question?
I don't know whether you can disregard earthquake events. P(A) = .95 if both burglary and earthquake are true, but P(A) = .94 if only a burglary event occurred. If we assume that event B (burglary) means that only a burglary has occurred, then the probability .94 seems appropriate. But we also have to consider that the alarm goes off with probability .001 even if no burglary has occurred.

Also, you have to consider that John calls 90% of the time when he hears the alarm, and also 5% of the time otherwise (like if the telephone rings but he thinks it's the alarm).
 
  • Like
Likes FactChecker
  • #9
Mark44 said:
I don't know whether you can disregard earthquake events. P(A) = .95 if both burglary and earthquake are true, but P(A) = .94 if only a burglary event occurred.
Good catch! I didn't realize that the probabilities of the alarm might create a dependence between (burglary,earthquake) and (JohnCalls, MaryCalls). I think it does in this case.
 
  • #10
FactChecker said:
Good catch! I didn't realize that the probabilities of the alarm might create a dependence between (burglary,earthquake) and (JohnCalls, MaryCalls). I think it does in this case.
I should say that the alarm probabilities creates a dependence between (burglary,earthquake) and (JohnCalls, MaryCalls, nobody calls).
 
  • #11
Mark44 said:
There is a formula for conditional probability that you don't show.
$$P(A | B) = \frac{P(A \cap B)}{P(B)}, \text{ if } P(B) \ne 0$$
I don't think that helps here because
alima said:
$$P(J | B) = \frac{P(J \cap B)}{P(B)}$$

I mean, there is no direct relationship between J and B, because there is A (Alarm) in the middle of the path.
... in other words we don't know ## P(J \cap B) ##.

But we do know ## P(J | A) ## and ## P(J | \neg A) ##, and we should be able to work out ## P(A | B) ## (note we are given ## P(A | (B \cap E) ## and ## P(A | (B \cap \neg E) )##).

Can you see how to combine these?

If you are a visual thinker you might find it helps to draw a probability tree.
 
  • #12
Mark44 said:
But we also have to consider that the alarm goes off with probability .001 even if no burglary has occurred.
No we don't have to consider that, because we are given that a burglary has occurred.

What we do have to consider though is the possibility that an earthquake has also occurred, making the probability that the alarm goes off 0.95 instead of 0.94. How can we account for this? Is the effect smaller than the precision appropriate to the problem?
 
  • #13
pbuk said:
I don't think that helps here because [...] we don't know ## P(J \cap B) ##.
So, I must use just Bayes Theorem instead of the formula that Mark44 shown?

pbuk said:
We do know ## P(J | A) ## and ## P(J | \neg A) ##, and we should be able to work out ## P(A | B) ## (note we are given ## P(A | (B \cap E) ## and ## P(A | (B \cap \neg E) )##).

Can you see how to combine these?

If you are a visual thinker you might find it helps to draw a probability tree.
On my first post, I pointed out that my doubt is how to discover ## P(B | J) ## and ## P(J) ## , in order to complete the Bayes Theorem . Am I focusing wrongly?
 
  • #14
Mark44 said:
I don't know whether you can disregard earthquake events.
You are right. I reincluded the Earthquake on my simplified diagram.
1715173168750.png

What else should I change?
 
  • #15
alima said:
So, I must use just Bayes Theorem instead of the formula that Mark44 shown?
No, Bayes' Theorem is no help to you here.

alima said:
On my first post, I pointed out that my doubt is how to discover ## P(B | J) ## and ## P(J) ## , in order to complete the Bayes Theorem . Am I focusing wrongly?
Yes you are focusing wrongly because as you point out:
pbuk said:
we don't know ## P(J \cap B) ##.

Instead, focus on the probabilities in this:
pbuk said:
we do know ## P(J | A) ## and ## P(J | \neg A) ##, and we should be able to work out ## P(A | B) ## (note we are given ## P(A | (B \cap E) ## and ## P(A | (B \cap \neg E) )##).
and
pbuk said:
If you are a visual thinker you might find it helps to draw a probability tree.
 
  • #16
alima said:
What else should I change?
Nothing, the diagram in the first post in this thread was already fine.
 
  • #17
Hint: looking for an equation that will give you the answer will not help, the solution is easily built up from simple combinations of probabilities, either in a diagram or a table

The table starts like this
## B \cap \neg E \cap A \cap J ##
## 1 \cdot 0.998 \cdot 0.94 \cdot 0.9 ##0.844308
 
  • Wow
Likes alima
  • #18
pbuk said:
Hint: looking for an equation that will give you the answer will not help, the solution is easily built up from simple combinations of probabilities, either in a diagram or a table

The table starts like this
## B \cap \neg E \cap A \cap J #### 1 \cdot 0.998 \cdot 0.94 \cdot 0.9 ##0.844308

Hey, a Truth Table I know how to make!
I learned it from classes about binary calculation and also philosophy classes.

Here it is:
#​
Burglary​
JohnCalls​
Alarm​
Earthquake​
1​
T​
T​
T​
T​
2​
T​
T​
T​
F
3​
T​
T​
F
T​
4​
T​
T​
F
F

Entering the numbers on it, it becomes:
#​
Burglary​
JohnCalls​
Alarm​
Earthquake​
1​
0.001​
0.90​
0.95​
0.002​
2​
0.001​
0.90​
0.94​
0.998​
3​
0.001​
0.05​
0.05​
0.002​
4​
0.001​
0.05​
0.06​
0.998​

Mutiplying each line, I get these results for each of the 4 scenarios:
  1. 0.00000171
  2. 0,000844308
  3. 0,000000005
  4. 0,000002994
Did I understand rightly so far on this post?
 
  • #19
alima said:
Did I understand rightly so far on this post?
Almost: you don't need to multiply by 0.001 because B is true for ## P(J|B) ##.
 
  • Like
Likes alima
  • #20
pbuk said:
Almost: you don't need to multiply by 0.001 because B is true for ## P(J|B) ##.
You are right. The scenario already states that B happened, so it should be 1 (100%) instead of just 0.001.

Fixing:
  1. 0.00171;
  2. 0.844308;
  3. 0.000005;
  4. 0.002994.
Or could also be represented as:
  1. 0.171%;
  2. 84.4308%;
  3. 0.0005%;
  4. 0.2994%.
But I still don't see how these numbers can help me "work out ## P(A | B) ##". I don't see how to combine ## P(A | (B \cap E) ## and ## P(A | (B \cap \neg E) )## because I'm a total noob and failed in getting more knowledge online. This forum is being the most helpful place so far.
pbuk said:
But we do know ## P(J | A) ## and ## P(J | \neg A) ##, and we should be able to work out ## P(A | B) ## (note we are given ## P(A | (B \cap E) ## and ## P(A | (B \cap \neg E) )##).

Can you see how to combine these?
Is it too much to ask for another hint?
 
  • #21
You have four numbers representing the probabilities of all of the possible combinations of events where J is true, given that B is true.

Just add them together!
 
  • Like
  • Wow
Likes FactChecker and alima
  • #22
pbuk said:
You have four numbers representing the probabilities of all of the possible combinations of events where J is true, given that B is true.
Oh, now I understand why use the Truth Table!

pbuk said:
Just add them together!
0.00171 + 0.844308 + 0.000005 + 0.002994 = 0.849017

Thank you for all the help.
 
  • Like
Likes pbuk and FactChecker
  • #23
pbuk said:
If you are a visual thinker you might find it helps to draw a probability tree.

I'm curious about how a decision tree of this scenario would be.
I sketched one on my agenda book, which I reproduce below.

But I could not fit Earthquake on it, because it is simultaneous with Burglary when it happens, and in the decision tree there is no space for simultaneous events.

How could I fit Earthquake on such Decision Tree?

Decision tree:
                                         [ JohnCalls
                          /  Alarm rings [ !JohnCalls
            - happens    <               
          /                 \ !Alarm rings [ JohnCalls
         /                                 [ !JohnCalls
Burglary<
         \                                  [ JohnCalls
          \                  /  Alarm rings [ !JohnCalls
          - don't happen <                 
                          \ !Alarm rings [ JohnCalls
                                         [ !JohnCalls
 
  • #24
alima said:
But I could not fit Earthquake on it, because it is simultaneous with Burglary when it happens, and in the decision tree there is no space for simultaneous events.

How could I fit Earthquake on such Decision Tree?
When you have simultaneous events you can put them in an arbitrary order: in this case, because we only need to consider the "Burglary happens" branch, I would do it like this:
Decision tree:
                                                                [ JohnCalls
                                                 /  Alarm rings [ !JohnCalls
                                   - happens    <              
                                 /               \ !Alarm rings [ JohnCalls
                                /                               [ !JohnCalls
Burglary happens -> Earthquake <
                                \                                   [ JohnCalls
                                 \                   /  Alarm rings [ !JohnCalls
                                   - doesn't happen <                
                                                     \ !Alarm rings [ JohnCalls
                                                                    [ !JohnCalls
 
  • Like
Likes alima

FAQ: Which is the probability of JohnCalls given Burglary? Why?

1. What does "JohnCalls" represent in the context of Burglary?

"JohnCalls" typically represents an event where John makes a phone call, often to report a burglary or seek help. In a probabilistic model, it is used to analyze the relationship between the occurrence of a burglary and the likelihood of John calling.

2. How do we calculate the probability of JohnCalls given Burglary?

The probability of JohnCalls given Burglary can be calculated using Bayes' theorem. This involves finding the conditional probability P(JohnCalls | Burglary), which can be expressed as P(Burglary | JohnCalls) * P(JohnCalls) / P(Burglary). The values for these probabilities can be derived from historical data or a probabilistic model.

3. Why is it important to understand the probability of JohnCalls given Burglary?

Understanding this probability is crucial for decision-making in security systems and emergency response. It helps in assessing the reliability of alerts, optimizing resource allocation for police response, and improving communication strategies in the event of a burglary.

4. What factors might influence the probability of JohnCalls in the case of a Burglary?

Several factors can influence this probability, including the time of day, the presence of other witnesses, the severity of the burglary, John's proximity to the event, and John's previous experiences or knowledge about burglary occurrences in the area.

5. Can the probability of JohnCalls given Burglary change over time?

Yes, the probability can change over time due to various factors such as changes in neighborhood security, alterations in John's behavior or awareness, shifts in crime rates, or improvements in communication technologies that affect how quickly and effectively he can report an incident.

Similar threads

Back
Top