Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
Introduction
2.
About Prosecutor's Fallacy
3.
FAQs
4.
Key Takeaways
Last Updated: Mar 27, 2024
Easy

Prosecutor’s fallacy

Author Komal Shaw
0 upvote
Master Python: Predicting weather forecasts
Speaker
Ashwin Goyal
Product Manager @

Introduction

Prosecutor's Fallacy is a fallacy or an error in statistical reasoning. It uncovers a loophole in the logical way of our thinking. It's a confusion between the two conditional probabilities - Probability of A given B and the probability of B given A. So let's understand this Prosecutor's Fallacy.

About Prosecutor's Fallacy

A crime is committed. The city where the crime is committed has a population of say 500000. DNA from the crime scene is discovered. This DNA leads to, say, ten suspects. One of them is brought to trial. Now we need to know whether they are innocent?

Therefore, now we need to solve the case, and for that, we need the followings:-

  1. I - the event that the defendant is innocent.
  2. Ic - the event that the defendant is guilty.
  3. Ev - The event that the defendant matches the information collected at the crime scene.

 

The conditional probabilities are:-

  1. P(Ev|I) - the probability that an innocent person matches the evidence.
  2. P(I|Ev) - the probability that the person who matches the description is innocent.

 

The argument made by the Prosecutor:-

Any innocent random person will have a 1 in 100000 chance of matching the evidence. Thus, if a person has damning evidence, they must be guilty.
Thus, he has committed the Prosecutor's Fallacy by making the above statement.

Mathematically speaking,

P(Ev|I) : 1/100000

P(I|Ev) = P(Ev|I) = 1/100000

The above probability is incorrect, so we can't conclude that the person is guilty and must be punished. Therefore, we now need to calculate the correct value of P(I|Ev).

The solution to calculate the actual value of P(I|Ev) is to use Baye's Theorem.

P(I|Ev) = P(Ev|I) * P(I)/P(Ev).

Let's calculate the probability of P(I|Ev).

Assumptions to be made:-

  1. The guilty person needs to be among the 500000 adults living in the area.
  2. That guilty person should match the evidence as well.

 

The probability that the person is innocent:-

P(I) : 499,999 / 500000 = 0.999998

The probability that the person is not innocent:-

P(Ic) : 1 / 500000 = 0.000002

The probability that the person who is guilty matches with the damning evidence:-

P(Ev|Ic) : 1 (100%)
 

Now using Baye’s Theorem-

  1. P(Ev) = P(Ev|I)*P(I) + P(Ev|Ic)*P(Ic)
    • =0.00001*0.999998 + 1*0.000002
    • =0.000012
  2. P(I|Ev) = P(Ev|I) * P(I)/P(Ev)
    • =0.00001 * 0.999998/0.00012
  3. P(Ic|Ev) = 1 – P(I|Ev) = 0.16667

 

Thus we can see that there is ⅙ chance that a person matching the damning evidence is guilty and ⅚ chance of them being innocent.

Thus there is a high chance that the person, despite matching the damning evidence, is innocent.

Get the tech career you deserve, faster!
Connect with our expert counsellors to understand how to hack your way to success
User rating 4.7/5
1:1 doubt support
95% placement record
Akash Pal
Senior Software Engineer
326% Hike After Job Bootcamp
Himanshu Gusain
Programmer Analyst
32 LPA After Job Bootcamp
After Job
Bootcamp

FAQs

  1. What is the problem with the Prosecutor's Fallacy?
    The problem with Prosecutor's Fallacy is that it assumes that the prior probability of a random match is equal to the defendant's probability of being innocent.
     
  2. Prosecutor's Fallacy is an application of which rule?
    Prosecutor's Fallacy is an application of Baye's Rule.
     
  3. Why does this Fallacy occur?
    The Prosecutor's Fallacy occurs because of the misunderstanding of conditional probability.
     
  4. How can the prosecutor prevent fallacy?
    The prosecutor can prevent fallacy by making sure that the probability answers the right question and by focussing on how the evidence applies to the defendant.
     
  5. What is a statistical fallacy?
    Statistical fallacy refers to some common tricks that data can play on us and thereby leading to mistakes in data interpretation and analysis.

Key Takeaways

In this article, we have extensively discussed Prosecutor's Fallacy and its problem.

We hope this blog has helped you enhance your knowledge regarding Prosecutor's Fallacy. If you would like to learn more, check out our articles on Tautologies & ContradictionsConditional and Biconditional statements.

Refer to our guided paths on Coding Ninjas Studio to learn more about DSA, Competitive Programming, JavaScript, System Design, etc. 

Enrol in our courses and refer to the mock test and problems available.

Take a look at the interview experiences and interview bundle for placement preparations.

 

Do upvote our blog to help other ninjas grow. 

Happy Coding!

Previous article
Normal distribution
Next article
Law of total probability
Live masterclass