Implementation of Bayes law(probabilities)

  • Thread starter Thread starter dionys
  • Start date Start date
AI Thread Summary
The discussion revolves around applying Bayes' Law to a probability problem involving forks and knives in two drawers. The user struggles to define the events and calculate the necessary probabilities after their roommate alters the contents of the drawers. By identifying the events where one holds a knife and opens the left drawer, the probabilities can be calculated. The probability of holding a knife is determined to be 100%, while the probability of opening the left drawer is 0.45. Ultimately, using Bayes' Law, it is concluded that there is a 45% chance that the left drawer was opened if a knife is held.
dionys
Messages
10
Reaction score
0
Hi guys
i know that i post a problem without my own answer but this problem is
very difficult for me and I'm very comfused.
The exercise says that we must implement the Bayes' Law to solve the exercise.My problem is that i can't distinguish and write down the events ):

Problem:In my kitchen i put my 10 forks in the left drawer and my 10 knifes in the right drawer.
before my room mate change something:
k=knife,f=forks
left drawer : (10f,0k)
right drawer: (0f,10k))

When my room-mate came he took 2 forks from the left drawer and he put them in the right drawer.

after my room mate's alteration:
left drawer : (8f,0k)
right drawer: (2f,10k)


After this action he chooses one piece(knife or fork) from the right drawer and he puts the piece in the left drawer.

left drawer : (9f,0k) or (8f,1k)
right drawer: (1f,10k) or (2f,9k)

After all these changes i come and choose one piece from 1 of the 2 drawers.
IF Is given that i hold a knife,what is the probability that i opened the left drawer?
 
Physics news on Phys.org
apply simple Bayesian Law,
Let K be the event u pick the knife
Let L be the event u pick something from the left drawer
to find,
P(L/K)

simple Bayesian states,
P(L/K)*P(K) = P(K/L)*P(L)

can u find P(K),P(K/L),P(L) ??

-- AI
 


In order to solve this problem using Bayes' Law, we need to define the events and their corresponding probabilities. In this case, the events we are interested in are:
- Event A: I hold a knife after all the changes have been made.
- Event B: I opened the left drawer.

Next, we need to determine the probabilities of each event. Since we are given that I hold a knife, the probability of event A is 1, or 100%. The probability of event B can be calculated by considering the total number of pieces in the left drawer (9) and the total number of pieces in both drawers (9+11=20). Therefore, the probability of event B is 9/20 or 0.45.

Using Bayes' Law, we can now calculate the probability of opening the left drawer given that I hold a knife:

P(B|A) = P(A|B) * P(B) / P(A)

P(B|A) = (1 * 0.45) / 1 = 0.45

Therefore, there is a 45% chance that I opened the left drawer if I am holding a knife.
 
Kindly see the attached pdf. My attempt to solve it, is in it. I'm wondering if my solution is right. My idea is this: At any point of time, the ball may be assumed to be at an incline which is at an angle of θ(kindly see both the pics in the pdf file). The value of θ will continuously change and so will the value of friction. I'm not able to figure out, why my solution is wrong, if it is wrong .
Thread 'Voltmeter readings for this circuit with switches'
TL;DR Summary: I would like to know the voltmeter readings on the two resistors separately in the picture in the following cases , When one of the keys is closed When both of them are opened (Knowing that the battery has negligible internal resistance) My thoughts for the first case , one of them must be 12 volt while the other is 0 The second case we'll I think both voltmeter readings should be 12 volt since they are both parallel to the battery and they involve the key within what the...
Thread 'Trying to understand the logic behind adding vectors with an angle between them'
My initial calculation was to subtract V1 from V2 to show that from the perspective of the second aircraft the first one is -300km/h. So i checked with ChatGPT and it said I cant just subtract them because I have an angle between them. So I dont understand the reasoning of it. Like why should a velocity be dependent on an angle? I was thinking about how it would look like if the planes where parallel to each other, and then how it look like if one is turning away and I dont see it. Since...
Back
Top