subject

In class, we learned a Nave Bayes classi er for binary feature values, i. e., xj 2 f0; 1g where we model the class conditional distribution to be Bernoulli. In this exercise, you are going to extend the result to the case where features that are non-binary. We are given a training set f(x(i); y(i)); i = f1; ;mgg, where x(i) 2 f1; 2; ; sgn and y(i) 2 f0; 1g. Again, we model the label as a biased coin with 0 = P(y(i) = 0) and 1 0 = P(y(i) = 1). We model each non-binary feature value x(i) j (an element of x(i)) as a biased dice for each class. This is parameterized by:
P(zj-s|y = 1) = θ.sly=1
Notice that we do not model P(aj sly = 0) and Pu; = sly = 1) directly. Instead we use the above equations to guarantee all probabilities for each class sum to 1.
A) Using the Naive Bayes (NB) assumption, write down the joint probability of the data: in terms of the parameters θο, θjkly-0 and ,,k y-1. You mlay find the indicator function 1(-) useful.
B) Maximizing the joint probability you get in (a) with respect to o, ,ky-o and jk y-1. Write down your resulting θο, θ, k y 0 and θ.kl,-1 and show intermediate steps.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:00
What are procedures that keep a data base current
Answers: 1
question
Computers and Technology, 22.06.2019 22:10
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
You know the right answer?
In class, we learned a Nave Bayes classi er for binary feature values, i. e., xj 2 f0; 1g where we m...
Questions
question
Mathematics, 01.08.2019 23:10
question
Mathematics, 01.08.2019 23:10
Questions on the website: 13722363