Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Police Department has asked you to assist with the interrogation of several suspects accused of cheating at AI course. Each suspect makes a

The Police Department has asked you to assist with the interrogation of several suspects accused of cheating P(I,  

The Police Department has asked you to assist with the interrogation of several suspects accused of cheating at AI course. Each suspect makes a single statement during interrogation, and from this statement you areto determine whether they are Guilty (G) or Innocent (I). To assist you, the police department provides you with records of past cheating cases: statements made by suspects, labeled with whether the suspect ended up being found Guilty (G) or Innocent (I). Training Statements I am definitely innocent, officer Officer, I swear I am not lying I am not lying, I swear I am innocent, officer, I swear Officer, I am definitely not lying (a) You plan to apply a Naive Bayes classifier to this problem. Given the class label, this model treats each word in the sentence as an independent feature. The parameters of this model take the form of conditional probabilities P (G), P (W ord = "am" G). Using the training data, find the maximum likelihood estimate of the parameters (they will be the class-conditional relative frequencies of each word). Ignore punctuation and capitalization. (b) (G/I) (1) (1) (1) (G) (G) Word P(Word G) P (Word) I am Prior Prob definitely G innocent I officer swear not lying Using the probabilities found above, compute the following probabilities: P(G, "Officer, I am not lying") P(I, "Officer, I am not lying") What is the most likely classification for the above sentence? (c) Another suspect has been caught; this time, he gives the statement "I am honest, officer". Using the same Naive Bayes model, compute the probability P(G, "I am honest, officer"). (d) Instead of maximum likelihood, use Laplace (add-one) smoothing to find new values for the model parameters (using the same training data as in (a)) and use these new parameters to compute the probability P(G"I am honest, officer"). Assume for the purposes of smoothing that every word you will see is contained in your training set and test sentence (but do not use the test sentence when computing parameter estimates). Make sure to smooth both the prior P (G), P () and conditional distributions.

Step by Step Solution

3.43 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

a Maximum Likelihood Estimation of Parameters Count Words Count occurrences of each word in the training data am 4 occurrences out of 20 total words d... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Auditing and Assurance services an integrated approach

Authors: Alvin a. arens, Randal j. elder, Mark s. Beasley

14th Edition

133081605, 132575957, 9780133081602, 978-0132575959

More Books

Students also viewed these Programming questions

Question

How does the use of a database management system affect risks?

Answered: 1 week ago