Homework-5-solutions - Homework-5 Solutions Question 1 The...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework-5 Solutions Question 1 The following table consists of training data from an employee database. department status age salary sales senior 31-40 Medium sales junior 21-30 Low sales junior 31-40 Low systems junior 21-30 Medium systems senior 31-40 High systems junior 21-30 Medium systems senior 41-50 High marketing senior 31-40 Medium marketing junior 31-40 Medium secretary senior 41-50 Medium secretary junior 21-30 Low Given an instance with the values: systems, senior, and 21-30 for the attributes department, status, and age, respectively, what would be a naive bayesian classification for the salary of the sample? Answer: Naive bayesian classification should be the one that maximize Pr ( systems | salary - class ) Pr ( senior | salary - class ) Pr (21 - 30 | salary - class ) Pr ( salary - class ) From above table we have: Pr ( systems | Low ) Pr ( senior | Low ) Pr (21 - 30 | Low ) Pr ( Low ) = 0 × 0 × 2 3 × 3 11 = 0 Pr ( systems | Medium ) Pr ( senior | Medium ) Pr (21 - 30 | Medium
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/03/2009 for the course COMPUTER E 770 taught by Professor Dr.mohammednizari during the Spring '09 term at Jordan University of Science & Tech.

Page1 / 2

Homework-5-solutions - Homework-5 Solutions Question 1 The...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online