Question

In: Computer Science

For this problem, use the e1-p3.csv dataset. A1 A2 A3 Class low hot medium Y low...

For this problem, use the e1-p3.csv dataset.

A1

A2

A3

Class

low

hot

medium

Y

low

mild

large

N

low

hot

small

N

low

cold

medium

N

high

cold

small

N

high

mild

medium

Y

high

cold

large

N

low

cold

medium

Y

high

mild

large

Y

low

mild

large

N

high

hot

medium

Y

high

cold

large

N

low

mild

small

Y

low

hot

small

N

low

hot

medium

N

(1). Using the Naïve Bayes algorithm that we discussed in the class, classify the following unseen instance:

            X = <A1 = high, A2 = hot, A3 = large>

You should not use Weka, JMP Pro, or any other data mining/machine learning software. You must show all intermediate results and calculations.

(2). Suppose that P(X) = 0.0667. Calculate P(Y | X) and P(N | X). You must show all intermediate results and calculations.

Solutions

Expert Solution

Hi,

First we should know the formula

Naive assumption : if any two events A and B and they are independent, then

P(A,B) = P(A) P(B)

Based on classes, we calculate the all conditional probabilties

Now, we pick up the output with maximum probability and which gives label of class and can be expressed as given below.

now comes to our question

In the above image, we are able to see that P(X|Y) has less probability than P(X|N) so P(X|N) will dominate P(X|Y)hence X intance will be labeled as "NO" .

----------------------------------------------------------------------------------------------------------------------------------------------------

Hope it helps..

Still if you have any doubt, please let me know in comment section and if you like, Please upvote.

Thank You !


Related Solutions

For this problem, use the e1-p1.csv dataset. Using the decision tree algorithm that we discussed in...
For this problem, use the e1-p1.csv dataset. Using the decision tree algorithm that we discussed in the class, determine which attribute is the best attribute at the root level. You should not use Weka, JMP Pro, or any other data mining/machine learning software. You must show all intermediate results and calculations. For this problem, use the e1-p1.csv dataset. Using the decision tree algorithm that we discussed in the class, determine which attribute is the best attribute at the root level....
Problem 17-5A Pricing analysis with ABC and a plantwide overhead rate LO A1, A2, P1, P3...
Problem 17-5A Pricing analysis with ABC and a plantwide overhead rate LO A1, A2, P1, P3 [The following information applies to the questions displayed below.] Sara’s Salsa Company produces its condiments in two types: Extra Fine for restaurant customers and Family Style for home use. Salsa is prepared in department 1 and packaged in department 2. The activities, overhead costs, and drivers associated with these two manufacturing processes and the company’s production support activities follow. Process Activity Overhead cost Driver...
Problem 17-5A Pricing analysis with ABC and a plantwide overhead rate LO A1, A2, P1, P3...
Problem 17-5A Pricing analysis with ABC and a plantwide overhead rate LO A1, A2, P1, P3 [The following information applies to the questions displayed below.] Sara’s Salsa Company produces its condiments in two types: Extra Fine for restaurant customers and Family Style for home use. Salsa is prepared in department 1 and packaged in department 2. The activities, overhead costs, and drivers associated with these two manufacturing processes and the company’s production support activities follow. Process Activity Overhead cost Driver...
Problem 17-5A Pricing analysis with ABC and a plantwide overhead rate LO A1, A2, P1, P3...
Problem 17-5A Pricing analysis with ABC and a plantwide overhead rate LO A1, A2, P1, P3 [The following information applies to the questions displayed below.] Sara’s Salsa Company produces its condiments in two types: Extra Fine for restaurant customers and Family Style for home use. Salsa is prepared in department 1 and packaged in department 2. The activities, overhead costs, and drivers associated with these two manufacturing processes and the company’s production support activities follow. Process Activity Overhead cost Driver...
how to represent the following in a linear model y=Xb + e where b' = (u,a1,a2,a3,y1,y2,y3)...
how to represent the following in a linear model y=Xb + e where b' = (u,a1,a2,a3,y1,y2,y3) and e'=(e11,e12,e13,e21,e22,e23,e31,e32,e33) ' means transpose y11=u+a1+y1+e11 y12=u+a1+y2+e12 y13=u+a1+y3+e13 y21=u+a2+y1+e21 y22=u+a2+y2+e22 y23=u+a2+y3+e23 y31=u+a3+y1+e31 y32=u+a3+y2+e32 y33+u+a3+y3+e33 X is a matrix pattern but I am confused about 1 and 0 placement Also can X'X and X'y be determined and written in normal equations
Problem 17-1A Comparing costs using ABC with the plantwide overhead rate LO P1, P3, A1, A2...
Problem 17-1A Comparing costs using ABC with the plantwide overhead rate LO P1, P3, A1, A2 The following data are for the two products produced by Tadros Company. Product A Product B Direct materials $ 13 per unit $ 25 per unit Direct labor hours 0.6 DLH per unit 1.5 DLH per unit Machine hours 0.5 MH per unit 1.1 MH per unit Batches 120 batches 240 batches Volume 10,000 units 2,000 units Engineering modifications 9 modifications 45 modifications Number...
Problem 3-8A Preparing closing entries, financial statements, and ratios LO A1, A2, P3, P4 The adjusted...
Problem 3-8A Preparing closing entries, financial statements, and ratios LO A1, A2, P3, P4 The adjusted trial balance for Tybalt Construction as of December 31, 2017, follows. TYBALT CONSTRUCTION Adjusted Trial Balance December 31, 2017 No. Account Title Debit Credit 101 Cash $ 5,000 104 Short-term investments 23,500 126 Supplies 9,900 128 Prepaid insurance 8,000 167 Equipment 60,000 168 Accumulated depreciation—Equipment $ 30,000 173 Building 165,000 174 Accumulated depreciation—Building 55,000 183 Land 63,100 201 Accounts payable 16,000 203 Interest payable...
Problem 17-1A Comparing costs using ABC with the plantwide overhead rate LO P1, P3, A1, A2...
Problem 17-1A Comparing costs using ABC with the plantwide overhead rate LO P1, P3, A1, A2 The following data are for the two products produced by Tadros Company. Product A Product B Direct materials $ 14 per unit $ 27 per unit Direct labor hours 0.5 DLH per unit 1.5 DLH per unit Machine hours 0.4 MH per unit 1.1 MH per unit Batches 105 batches 210 batches Volume 10,000 units 2,000 units Engineering modifications 9 modifications 45 modifications Number...
Problem 17-1A Comparing costs using ABC with the plantwide overhead rate LO P1, P3, A1, A2...
Problem 17-1A Comparing costs using ABC with the plantwide overhead rate LO P1, P3, A1, A2 The following data are for the two products produced by Tadros Company. Product A Product B Direct materials $ 14 per unit $ 25 per unit Direct labor hours 0.6 DLH per unit 1.5 DLH per unit Machine hours 0.5 MH per unit 1.1 MH per unit Batches 110 batches 220 batches Volume 10,000 units 2,000 units Engineering modifications 8 modifications 40 modifications Number...
Problem 04-3A Applying activity-based costing LO P1, P3, A1, A2, C3 Skip to question [The following...
Problem 04-3A Applying activity-based costing LO P1, P3, A1, A2, C3 Skip to question [The following information applies to the questions displayed below.] Craft Pro Machining produces machine tools for the construction industry. The following details about overhead costs were taken from its company records. Production Activity Indirect Labor Indirect Materials Other Overhead Grinding $ 380,000 Polishing $ 205,000 Product modification 550,000 Providing power $ 245,000 System calibration 560,000 Additional information on the drivers for its production activities follows. Grinding...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT