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.

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

Linear Algebra With Applications

Authors: Jeffrey Holt

2nd Edition

1319057691, 9781319057695

More Books

Students also viewed these Mathematics questions