We have a domain where there is only one feature, X, which is binary. The domain has also a category label Y, which is binary as well.
Given a Naive Bayes model with following parameters:
P(X=T|Y=T) = 0.2
P(X=F|Y=F) = 0.6
P(Y = T) = 0.7
Given an instance X = T, what is the probability that its label is True calculated by the model?
here P(X=T)=P(Y=T)*P(X=T|Y=T)+P(Y=F)*P(X=T|Y=F)=0.7*0.2+(1-0.7)*(1-0.6)=0.14+0.12=0.26
hence P(Y=T|X=T)=P(Y=T)*P(X=T|Y=T)/P(X=T)=0.7*0.2/0.26=0.538462
We have a domain where there is only one feature, X, which is binary. The domain...
Suppose that we have the data below, where Stolen is the target attribute that consists of binary values (yes or no). Color Type Origin Stolen red sports domestic yes red sports domesticno red sports domestic yes yellow sports domestic no yellow sports imported yes yellow Suy imported no yellow suy imported yes yellow suv domesticno red Suy imported no red sports imported yes You have a naive bayes model and a new test instance with attributes color=red, type=suv and origin=imported....
2. (20 pts.) Consider the Binary Independence Model for text document. Given a vocabulary V (w., wa) of all English words (and tokens), assume that a text document is rep- resented as a vector of binary features x-(x1, ,xd)t such that xỉ 1s I if the word wi appears in the document, and r, is 0 otherwise. We want to classify text documents into c categories. Let P(wj) be the prior probability for the class w for j-1,..., c. Assume...
2, M = 〈D, δ〉 is a model for a first-order language with a unary predicate P and a binary relation T. The domain of M is the set fa, b, c, dy; and the denotations of P and T are as follows: .8T) = {(a,b),(b,c),(c, d),(d,a)} Which of the following formulae are satisfied by this model: (a) 3x[T(x, x)] (c) Vr3y T(r, y)
2, M = 〈D, δ〉 is a model for a first-order language with a unary predicate...
1. Suppose that we catch either salmon (state 1) or sea bass (state 2) according to a Markov Model where the transition matrix is given by 0.8 0.2 A= 0.4 0.6 Suppose that we compare the length, x, of each fish that we catch to 15cm, and that for all times P(x> 15| salmon) 0.2 P(x > 15 sea bass) 0.7 (a) Suppose we caught a salmon at time 1. What is the probability that we catch a sea bass...
Let us consider a binary symmetric channel, as shown in Figure 1, where the probabilities of the input X are Pr(X-0] = m and Pr(X-1-1-m, and the error probability during the transmission from X and Y is p. 0 1-p Figure 1: A typical binary symmetric channel, where the input is X and the output is Y. a) Given that p-1/3 and m-3/4, find H(X), H (Y), H (YİX), and 1(X:Y). (8 marks) b) Still given p = 1 /3....
Consider a binary erasure channel, in which the input X ∼
Bernoulli ? (1 ?,
3)
and the output Y ∈ {0, e, 1} where the symbol e denotes an
erasure event (e appears when the channel is too “bad”). The
conditional distribution of Y given X is as follows:
pY |X (0|0) = 0.9, pY |X (e|0) = 0.1, pY |X (1|1) = 0.8, pY |X
(e|1) = 0.2.
Given that an erased symbol has been observed, i.e., Y...
6. The distribution law of random variable X is given -0.4 -0.2 0 0.1 0.4 0.3 0.2 0.6 Xi Pi Find the variance of random variable X. 7. Let X be a continuous random variable whose probability density function is: f(x)=Ice + ax, ifXE (0,1) if x ¢ (0:1) 0, Find 1) the coefficient a; 2) P(O.5 X<0.7); 3) P(X>3). Part 3. Statistics A sample of measurements is given Y 8 4 2 2 0 8. Compute the coefficient of...
A continuous probability density function is a non-negative continuous function f with integral over its entire domain D R" equal to unity. The domain D may have any number n of dimensions. Thus Jpfdzi..d 1. The mean, also called expectation, of a function q is denoted by or E(a) and defined by J.pla f)dy...dr The same function f may also represent a density of matter or a density of electrical charges. Definition 1 The Bivariate Cauchy Probability Density Function f...
5. Suppose we have two random variables X and Y. They are discrete and have the exact same distribution and also independent. You see below the distribution of X which of course also the distribution of Y as well, that is what we called independent and identically distributed) P(X =- X. Remem- a./ (-) Find and draw the cumulative distribution function F() function of ber that F(x) -P(X S) HINT: For the next 3 parts you might want to make...
Suppose we fitted the following model: logit(P( Y = 1 )) = alpha +betaX, where X is age in years and Y is a binary variable with 1 = dead and 0 = alive. Which of the following is FALSE? i.) exp(beta) is the odds ratio of death for a one year increase in age. ii.) exp( alpha+ beta * 20) / (1 + exp( alpha+ beta * 20)) is the probability of death when age is 20. iii.) beta...