Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Question: Suppose that we have prior information concerning whether a random incoming message is spam. In particular, suppose that over a time period, we find that s spam messages arrive and h messages arrive that are not spam.

a) Use this information to estimate p(S), the probability that an incoming message is spam, and\(p(\bar S)\), the probability an incoming message is not spam.

b) Use Bayes’ theorem and part (a) to estimate the probability that an incoming message containing the word w is spam, where p(w)is the probability that w occurs in a spam message and q(w) is the probability that w occurs in a message that is not spam.

Short Answer

Expert verified

Answer:

(a)\(p(S) = \frac{s}{{s + h}}\) and \(p(\bar S) = \frac{h}{{s + h}}\)

(b) The probability that an incoming message containing the word w is spam is \(\frac{{p(w).s}}{{p(w).s + q(w).h}}\)

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

Over 22 million students worldwide already upgrade their learning with Vaia!

01

Given

We have prior information concerning whether a random incoming message is spam. In particular, suppose that over a time period, we find that s spam messages arrive and h messages arrive that are no spam.

02

Formula

Bayes’ Formula:

\(P(F/E) = \frac{{P(E/F)P(F)}}{{P(E/F)P(F) + P(E/\bar F)P(\bar F)}}\)

03

Calculation for part(a)

We have\(p(S) = \frac{s}{{s + h}}\)and

\(\begin{array}{l}p(\bar S) = 1 - p(S)\\ = 1 - \frac{s}{{s + h}}\\ = \frac{{s + h - s}}{{s + h}}\\ = \frac{h}{{s + h}}\end{array}\)

04

Final Answer for part(a)

Hence,

\(p(S) = \frac{s}{{s + h}}\)and \(p(\bar S) = \frac{h}{{s + h}}\)

05

Calculation for part(b)

The probability that an incoming message containing the word w is spam is

\(\frac{{p(E/S).p(S)}}{{p(E/S).p(S) + p(E/\bar S).p(\bar S)}} = \frac{{p(w).s}}{{p(w).s + q(w).h}}\)

Here p(w)is the probability that w occurs in a spam message and q(w) is the probability that w occurs in a message that is not spam.

06

Final Answer for part(b)

The probability that an incoming message containing the word w is spam is\(\frac{{p(w).s}}{{p(w).s + q(w).h}}\)

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Question: Suppose that the probability that \(x\) is in a list of n distinct integers is\(\frac{2}{3}\) and that it is equally likely that \(x\) equals any element in the list. Find the average number of comparisons used by the linear search algorithm to find \(x\) or to determine that it is not in the list.

Question:In roulette, a wheel with 38 numbers is spun. Of these, 18 are red, and 18 are black. The other two numbers, which are neither black nor red, are 0 and 00. The probability that when the wheel is spun it lands on any particular

number is 1/38.

(a) What is the probability that the wheel lands on a red number.

(b) What is the probability that the wheel lands on a black number twice in a row.

(c) What is the probability that wheel the lands on 0 or 00.

(d) What is the probability that in five spins the wheel never lands on either 0 or 00.

(e) What is the probability that the wheel lands on one of the first six integers on one spin, but does not land on any of them on the next spin.

Question: Suppose that 100 people enter a contest and that different winners are selected at random for first, second, and third prizes. What is the probability that Kumar, Janice, and Pedro each win a prize if each has entered the contest?

Question: What is the expected sum of the numbers that appear when three fair dice are rolled?

Question: A space probe near Neptune communicates with Earth using bit strings. Suppose that in its transmissions it sends a 1 one-third of the time and a 0 two-thirds of the time. When a 0 is sent, the probability that it is received correctly is 0.9, and the probability that it is received incorrectly (as a 1) is 0.1. When a 1 is sent, the probability that it is received correctly is 0.8, and the probability that it is received incorrectly (as a 0) is 0.2

a) Find the probability that a 0 is received.

b) Use Hayes theorem to find the probability that a 0 was transmitted, given that a 0 was received.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free