Answer:
There is a 47.50% probability that the chosen senator is a Democrat.
Explanation:
This can be formulated as the following problem:
What is the probability of B happening, knowing that A has happened.
It can be calculated by the following formula:
![P = (P(B).P(A/B))/(P(A))](https://img.qammunity.org/2020/formulas/mathematics/college/wkbyxv8connc8r1kohl3buy7m156657fim.png)
Where P(B) is the probability of B happening, P(A/B) is the probability of A happening knowing that B happened and P(A) is the probability of A happening.
In your problem we have that:
A(what happened) is the probability of a gun owner being chosen:
There are 100 people in the survay(53 Democrats, 45 Republicans ans 2 Independents), and 40 of them have guns(19 Democrats, 21 Republicans). So, the probability of a gun owner being chosen is:
![P(A) = (40)/(100) = 0.4](https://img.qammunity.org/2020/formulas/mathematics/college/y577oc8uu720k403k6hrblssbmo0nr8k9n.png)
is the probability of a senator owning a gun, given that he is a Democrat. 19 of 53 Democrats own guns, so the probability of a democrat owning a gun is:
![P(A/B) = (19)/(53) = 0.3585](https://img.qammunity.org/2020/formulas/mathematics/college/joxmhs5eyi3bakhiki176js2ghdi562yat.png)
is the probability that the chosen senators is a Democrat. There are 100 total senators, 53 of which are Democrats, so:
![P(B) = (53)/(100) = 0.53](https://img.qammunity.org/2020/formulas/mathematics/college/h1cicarbmku8zces4le0bivbv04nou8yvx.png)
If a senator participating in that survey was picked at random and turned out to be a gun owner, what was the probability that he or she was a Democrat?
![P = (P(B).P(A/B))/(P(A)) = ((0.53)*(0.3585))/((0.40)) = 0.4750](https://img.qammunity.org/2020/formulas/mathematics/college/ke5saowvlyts4o8idlq5l8olfhaayhfwvo.png)
There is a 47.50% probability that the chosen senator is a Democrat.