Question about 4.1 - Classification boundaries

16 views
Skip to first unread message

yanyu liang

unread,
Sep 19, 2015, 3:26:34 PM9/19/15
to WekaMOOC-general
Why "checkerboard pattern" comes from "variables are treated independently" in Naive Bayes?

Ian Witten

unread,
Sep 21, 2015, 7:47:00 PM9/21/15
to wekamooc...@googlegroups.com
Suppose in a simple 2-class case there are two numeric attributes, x and y, both ranging from 0 to 1.

The information that attribute x contains about the class can be visualised as a probability distribution along the x-axis. Suppose that there are some regions on the x-axis where a certain outcome has probability 1, and others where it has probability 0. Choose some regions and draw a picture.

The information that attribute y contains about the class can be visualised as a probability distribution along the y-axis. Suppose that there are some regions on the y-axis where a certain outcome has probability 1, and others where it has probability 0. Add this to your picture.

Naive Bayes multiples the two probability distributions to get the final distribution used to determine the outcome. Do this on your picture. Some regions will have probability 1 (1 times 1) and others will have probability 0 (0 times 0, 0 times 1, 1 times 0). It will have a checkerboard pattern.

This interpretation is simplistic because Naive Bayes has been defined in the class as applying to nominal attributes, not numeric ones. What picture you get from Weka will depend on the how the Naive Bayes implementation deals with numeric attributes. But the principle remains true.

cheers
ian

On 20/09/2015, at 7:26 am, yanyu liang <yany...@gmail.com> wrote:

Why "checkerboard pattern" comes from "variables are treated independently" in Naive Bayes?

--
You received this message because you are subscribed to the Google Groups "WekaMOOC-general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wekamooc-gener...@googlegroups.com.
To post to this group, send email to wekamooc...@googlegroups.com.
Visit this group at http://groups.google.com/group/wekamooc-general.
To view this discussion on the web, visit https://groups.google.com/d/msgid/wekamooc-general/c7c3281e-b861-4f50-a22d-f00e3732000d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

yanyu liang

unread,
Oct 11, 2015, 6:53:56 PM10/11/15
to wekamooc...@googlegroups.com
Hi, Ian

Thanks for your reply. What if the attributes are not treated independently? I think it will also lead to "checkerboard" pattern disappears. Is that right?

Thanks,

Yanyu

--
You received this message because you are subscribed to a topic in the Google Groups "WekaMOOC-general" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wekamooc-general/aZv01Dka_s0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wekamooc-gener...@googlegroups.com.

To post to this group, send email to wekamooc...@googlegroups.com.
Visit this group at http://groups.google.com/group/wekamooc-general.
Reply all
Reply to author
Forward
0 new messages