Question: If you use python please only use numpy and matplotlib 6. (10 points) Consider the categorical learning problem consisting of a data set with two

If you use python please only use numpy and matplotlib 6. (10If you use python please only use numpy and matplotlib

6. (10 points) Consider the categorical learning problem consisting of a data set with two labels: Label 1: (contains 5 data points) Label 2: (contains 6 data points) (1) For each label above, the data follow a multivariate normal distribution Normal (i,) where the covariance is the same for both labels. Fit a pair of LDA functions to the labels by computing the covariances , means i, and proportion of data. You may use Python (with only numpy library) (a) You should report the values for ,i and . (b) Give the formula for the line forming the decision boundary and plot the graph. (Write done the formula used in your calculation.) (2) Find the probability P(y=1x) for a test point x=[00] for the LDA model. (3) (Bonus Question) Find the quadratic boundary using the QDA method and plot the graph. (You can use Sympy lib to simplify the formula.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!