Question: Write a function in Python, without using any special packages or libraries, that performs the following: Calculate P ( A | B ) given P
Write a function in Python, without using any special packages or libraries, that performs the following:
Calculate PAB given PA PBA and PB~A
Parameters:
pa float: Probability of A happening.
pbgivena float: Probability of B given A
pbgivennota float: Probability of B given not A
Returns: Probability of A given B float
Test your formula by providing the following values for your parameters:
pa float:
pbgivena float:
pbgivennota float:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
