Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) (20 marks) Use the Gaussian Discriminant Analysis method to come up with a mathematical description of the decision boundary used to classify Class 1

image text in transcribed

(a) (20 marks) Use the Gaussian Discriminant Analysis method to come up with a mathematical description of the decision boundary used to classify Class 1 and 2. Use the training data to train the model and determine the decision boundary. Then classify each of the test points based on the posterior probabilities (1|) and (2|). In your submission, show the steps in your computation of the following items.

i. : The prior probability of Class 1; ii. : The mean vectors of the two classes; iii. : The covariance matrices of the two classes and the mean covariance matrix; iv. and 0 in the decision boundary equation: +0 =0.

(20 marks) Write a Python function called GaussianDiscriminantAnalysis. The function header should have the following form: def GaussianDiscriminantAnalysis(X1, X2) where data points in X1 and X2 are arranged in columns. In the function, codes should be written to (1) compute Item i, ii, iii and iv in Part (a) and the decision boundary and (2) plot of all the training data points with the decision boundary superimposed. You are encouraged to use the matlabplotlib.pyplot library for plotting.

X1train=[23324432545328460065]X2train=[716915101311119171313914111511141012]Xtest=[40102.51012.5]

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions

Question

3. The group answers the questions.

Answered: 1 week ago