Cross Validated Asked by John on November 28, 2020

Suppose that $Y∈ {0,1}$ and $P(Y=1) = 1/2$. The distribution of $X|Y= 0$ is discrete and is specified by $$P(X= 1|Y= 0) = 1/3 $$ $$P(X= 2|Y= 0) = 2/3$$The distribution of $X|Y= 1$ is discrete and is given by $$P(X= 2|Y= 1) = 1/3$$ $$P(X= 3|Y= 1) = 2/3$$

This is all I can find about the Bayes Classifier in my textbook:

How would I be able to find the Bayes Classifier?

Bayes classifier chooses the class with maximum posterior probability. Since there are two classes, if $P(Y=1|X=x)geq1/2$ it means posterior for class $1$ is the maximum one, and we choose it. That is why if $eta(X)geq 1/2$, it chooses class $1$.

The formula for the posterior you've shared at the end is correct. You just need to be careful about calling the negative class as $0$ or $-1$, and make sure $X$ values given in class conditional probabilities are correct (e.g. the upper one deals with $X=1,2$ and the lower one deals with $X=2,3$). In the end, you'll have a function that for each $X$ value, a class label is assigned.

Answered by gunes on November 28, 2020

1 Asked on November 22, 2020

1 Asked on November 19, 2020 by nolw38

0 Asked on November 17, 2020 by maverick-meerkat

gamma distribution hierarchical bayesian poisson distribution posterior regularization

1 Asked on November 17, 2020 by dc_liv

0 Asked on November 14, 2020 by user819749

1 Asked on November 12, 2020 by mike-land

0 Asked on November 12, 2020 by aaryan-bhagat

references semi supervised supervised learning unsupervised learning

0 Asked on November 9, 2020 by monica

1 Asked on November 9, 2020 by arun

confidence interval interaction marginal effect multiple regression r

1 Asked on November 8, 2020

1 Asked on November 6, 2020 by seth-c

1 Asked on November 3, 2020 by londumas

1 Asked on October 29, 2020 by thomas-lordick

0 Asked on October 26, 2020 by mattjosh

0 Asked on October 26, 2020 by michaelkyei

1 Asked on October 23, 2020 by doug-fir

0 Asked on October 20, 2020 by minstein

Get help from others!

Recent Questions

- How Do I Get The Ifruit App Off Of Gta 5 / Grand Theft Auto 5
- Iv’e designed a space elevator using a series of lasers. do you know anybody i could submit the designs too that could manufacture the concept and put it to use
- Need help finding a book. Female OP protagonist, magic
- Why is the WWF pending games (“Your turn”) area replaced w/ a column of “Bonus & Reward”gift boxes?
- Does Google Analytics track 404 page responses as valid page views?

Recent Answers

- Joshua Engel on Why fry rice before boiling?
- Jon Church on Why fry rice before boiling?
- Peter Machado on Why fry rice before boiling?
- Lex on Does Google Analytics track 404 page responses as valid page views?
- haakon.io on Why fry rice before boiling?

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir