Skip to content

naive Bayes

learning

Level 2 of 3

Also called the naive Bayes classifier and simple Bayes.

fresh numbers

The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from naive bayes's own run on the numbers shown.

choose one

question 1

Points 9 4 c, 7 1 c, 3 2 s, 0 6 t and 10 3 s, and a new point at 1 across, 7 up. The smoothing count is 2. How many points does naive Bayes count?

024681002468100-10x 0-3x 4-6x 7-10y 0-3y 4-6y 7-10tsc000000000000000000000
the answer, and why

the answer is A

One for each of the 5 points, each added once to its class's row.

if you chose another

  • That counts the classes, each scored once after the counting.
  • That counts each point twice, once for each band; it is one point read once.
  • That is the smoothing count; it is added to counts, never counted.

new numbersthe test page's numbers

question 2

Points 0 6 t, 4 4 c, 7 4 t, 10 5 s, 0 2 s and 5 7 c, and a new point at 7 across, 6 up. The smoothing count is 3. What do the squares score?

024681002468100-10x 0-3x 4-6x 7-10y 0-3y 4-6y 7-10tsc000000000000000000000
the answer, and why

the answer is C

The squares at 10 5 and 0 2 are 2 of 6. One is in band 7 to 10 across, so 1 + 3 over 2 + 9. One is in band 4 to 6 up, so 1 + 3 over 2 + 9. 2/6 × 4/11 × 4/11 is about 0.044.

if you chose another

  • That is the triangles' score, 2/6 × 4/11 × 5/11.
  • That is the circles' score, 2/6 × 3/11 × 4/11.
  • That is the squares' share of the points alone, 2 of 6.

new numbersthe test page's numbers

question 3

Five triangles, 4 8 t, 2 0 t, 1 9 t, 2 6 t and 5 6 t, and one square at 3 6. A new point at 9 across, 2 up, with no smoothing. What do the triangles score?

024681002468100-10x 0-3x 4-6x 7-10y 0-3y 4-6y 7-10ts00000000000000
the answer, and why

the answer is D

No triangle stands in band 7 to 10 across, so one share is 0 of 5, and 0 times anything is 0.

if you chose another

  • That is their score with a smoothing count of 1.
  • That is their share in band 0 to 3 up alone, 1 of 5.
  • That is their share of all the points alone, 5 of 6.

new numbersthe test page's numbers