Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help understanding the Rcode neecesary to answer the questions. This assignment will use the wbca data we have been using in class. Assume

I need help understanding the Rcode neecesary to answer the questions.

image text in transcribed
This assignment will use the wbca data we have been using in class. Assume throughout that the prior probability of sampling a malignant tumor is To = 1/3 and the prior probability for sampling a benign tumor is 71 = 2/3. 1. Using all 9 features to classify in the wbca data, find the confusion table of the naive Bayes classifier using multinomial distributions for each variable like we did in class, but doing LOOCV. 2. Once again use the naive Bayes classifier with multinomials, but use whatever techniques you choose to see if you can find a good subset of the 9 features that classifies better than the full set. Again, use LOOCV. 3. Using the full set of features do LOOCV this time doing naive Bayes classification assuming independent normal distributions for the 9 features. 4. Now assess the performance of the Bayes classifier assuming multivariate normal distributions for the 9 variables, again using LOOCV. 5. Add all 9 features for each case, w = _;=1 X1. Inspect histograms of w for both cases and controls. Assess the performance of the Bayes classifier assuming w has a normal distribution for both malignant and benign tumors

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Algebra and Trigonometry

Authors: Ron Larson

10th edition

9781337514255, 1337271179, 133751425X, 978-1337271172

More Books

Students also viewed these Mathematics questions