Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1. This question is the continuation of the data generation we did in class. We generate data set with two explanatory variables x1 and

Question 1. This question is the continuation of the data generation we did in class. We generate data set with two explanatory variables x1 and x2 from multinomial Normal distribution with covariance matrix = c(1, .2, .2, 9) in two classes with mean for Class 0 is (3,7) and Class 1 is (6,10). For Class 0, we generate 20 observations and for Class 1, 10 observations. While generating this data, use the set.seed("6559"). Find the linear discriminant function weights. Plot the data with two colors and draw the discriminant function for classification. Also plot the 4 test data (3.68, 5.65), (3.28, 5.20), (3.57, 8.82), (4.64, 7.98) and predict the test data. Use the R program also to predict the test data.

I have generated the data now I need the codes for how :

draw the discriminant function for classification. Also plot the 4 test data (3.68, 5.65), (3.28, 5.20), (3.57, 8.82), (4.64, 7.98) and predict the test data. Use the R program also to predict the test data.

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

Advanced Calculus

Authors: R Creighton Buck

3rd Edition

147861613X, 9781478616139

More Books

Students also viewed these Mathematics questions

Question

What is Centrifugation?

Answered: 1 week ago

Question

To find integral of ?a 2 - x 2

Answered: 1 week ago

Question

To find integral of e 3x sin4x

Answered: 1 week ago

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago

Question

Presentation Aids Practicing Your Speech?

Answered: 1 week ago