Question: Please solve using mathematical methods. Do not code in python, R, etc. Given the dataset below, use the first 10 samples for training and last
Please solve using mathematical methods. Do not code in python, R, etc.
Given the dataset below, use the first 10 samples for training and last 4 samples for test. Train a Nave Bayes classifier using the training set and find the predictions on the test set examples using each of the following density estimation methods for numerical variable Var2.
| ID | Var1 | Var2 | Class |
| 1 | U | 361 | 1 |
| 2 | U | 143 | 0 |
| 3 | Y | 1504 | 1 |
| 4 | Y | 1812 | 0 |
| 5 | Y | 434 | 0 |
| 6 | Y | 458 | 0 |
| 7 | N | 852 | 1 |
| 8 | Y | 231 | 0 |
| 9 | Y | 700 | 0 |
| 10 | N | 601 | 0 |
| 11 | Y | 354 | 0 |
| 12 | N | 183 | 1 |
| 13 | Y | 630 | 0 |
| 14 | U | 550 | 1 |
a)Assume Gaussian Distribution
b)Histogram estimator (h=300, origin is 100)
c)K-Nearest Neighbor estimator (k=3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
