All Exams Test series for 1 year @ ₹349 only
Question

It is observed that 50% of mails are spam. There is a software that filters spam mail before reaching the inbox. Its accuracy for detecting a spam mail is 99% and chances of tagging a non-spam mail as spam mail is 5%. If a certain mail is tagged as spam find the probability that it is not a spam mail.

The correct answer is
5/104

Spam Mail Probability Calculation Using Bayes' Theorem

This solution explains how to find the probability that a mail tagged as spam is actually not a spam mail, given specific accuracy rates for a spam filtering software.

Defining the Events

Let's define the events involved in this probability problem:

  • S: The event that a mail is actually Spam.
  • NS: The event that a mail is Not Spam.
  • T: The event that a mail is Tagged as Spam by the filter.

Given Probabilities

From the question, we are given the following probabilities:

  • The probability that a mail is spam: \( P(S) = 50\% = 0.50 \)
  • The probability that a mail is not spam: \( P(NS) = 1 - P(S) = 1 - 0.50 = 0.50 \)
  • The accuracy of the filter for detecting a spam mail (True Positive Rate): \( P(T|S) = 99\% = 0.99 \)
  • The probability that the filter tags a non-spam mail as spam (False Positive Rate): \( P(T|NS) = 5\% = 0.05 \)

Objective of the Question

We need to find the probability that a mail is not spam given that it has been tagged as spam. In notation, we need to calculate \( P(NS|T) \).

Applying Bayes' Theorem

Bayes' Theorem is the perfect tool for this problem. It helps us update our belief (probability) about an event based on new evidence. The formula is:

$ P(NS|T) = \frac{P(T|NS) \times P(NS)}{P(T)} $

To use this formula, we first need to calculate the total probability of a mail being tagged as spam, \( P(T) \).

Calculating the Total Probability of Tagging as Spam (P(T))

A mail can be tagged as spam in two ways:

  1. It is actually spam and the filter correctly tags it as spam.
  2. It is not spam, but the filter incorrectly tags it as spam.

The total probability \( P(T) \) is calculated as:

$ P(T) = P(T \cap S) + P(T \cap NS) $

Using the definition of conditional probability, \( P(A \cap B) = P(A|B) \times P(B) \), we can rewrite this as:

$ P(T) = P(T|S) \times P(S) + P(T|NS) \times P(NS) $

Now, let's plug in the values:

$ P(T) = (0.99 \times 0.50) + (0.05 \times 0.50) $ $ P(T) = 0.495 + 0.025 $ $ P(T) = 0.520 $

So, the overall probability that any given mail gets tagged as spam is 0.520.

Calculating the Final Probability P(NS|T)

Now we can substitute the values into Bayes' Theorem:

$ P(NS|T) = \frac{P(T|NS) \times P(NS)}{P(T)} $ $ P(NS|T) = \frac{0.05 \times 0.50}{0.520} $ $ P(NS|T) = \frac{0.025}{0.520} $

Simplifying the Result

To express the answer as a simple fraction, we can convert the decimals to fractions or multiply the numerator and denominator by 1000 to remove decimals:

$ P(NS|T) = \frac{0.025 \times 1000}{0.520 \times 1000} = \frac{25}{520} $

Now, we simplify this fraction by dividing both the numerator and the denominator by their greatest common divisor, which is 5:

$ P(NS|T) = \frac{25 \div 5}{520 \div 5} = \frac{5}{104} $

Conclusion

Therefore, if a certain mail is tagged as spam, the probability that it is actually not a spam mail is \( \frac{5}{104} \).

Was this answer helpful?

Important Questions from Conditional Probability

  1. A box contains 5 coins: 4 regular coins and 1 fake coin. When a regular coin is tossed, the probability 𝑃(ℎ𝑒𝑎𝑑) = 0.5 and for a fake coin, 𝑃(ℎ𝑒𝑎𝑑) = 1. You pick a coin at random and toss it twice, and get two heads. The probability that the coin you have chosen is the fake coin is _______. (rounded off to two decimal places)

  2. A clinic specializes in testing for a disease D. The result of the test can be either positive or negative.

    A study revealed that if a person suffers from the disease D, the test result in that clinic comes out positive 80% of the time, and negative 20% of the time. If a person is not suffering from the disease D, the test comes out positive 10% of the time and negative 90% of the time. It is also known that among the general population, the disease D occurs in 30% of the individuals.

    If a person tests positive for D in that clinic, the probability that he/she actually suffers from the disease D is __________ . (Rounded off to two decimal places)
  3. Suppose an unbiased coin is tossed 6 times. Each coin toss is independent of all previous coin tosses. Let $E_1$ be the event that among the second, fourth, and sixth coin tosses, there are at least two heads. Let $E_2$ be the event that among the first, second, third, and fifth coin tosses, there are equal number of heads and tails.

    The conditional probability P($E_1$ | $E_2$) is equal to ____________. (rounded off to one decimal place)
  4. A box contains three apples and two oranges. Two fruits are removed randomly in succession. The probability that the first is an apple and the second is an orange is _____ .
  5. An experiment is performed by rolling an unbiased die once. Events A and B are defined as follows:
    Event A: The outcome of the rolled die is a prime number.
    Event B: The outcome of the rolled die is an odd number less than 4.
    The conditional probability of A given B, denoted by P(A|B), is ______ (rounded off to one decimal place).
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App