Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please Use R software to answer this question Question 1. This question is the continuation of the data generation we did in class. We generate

please Use R software to answer this question

image text in transcribed
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 o = c(1, .2, .2, 9) in two classes with mean for Class 0 is (3,7) and Class 1 is (6,10). For Class O, 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_2

Step: 3

blur-text-image_3

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 Foundations Prealgebra, Algebra & Intermediate Algebra (subscription)

Authors: Elayn Martin Gay

2nd Edition

0135257506, 9780135257500

More Books

Students also viewed these Mathematics questions