COEN _Machine Learning and Data Mining Homework 2-Solution

$30.00 $24.00

Implement Linear Discriminant Analysis (LDA) and Quadratic Discriminant Analysis (QDA). You can use Python, R or Matlab for this assignment. Please do not use any machine learning library for this assignment. Perform classifications on the Iris dataset which can be downloaded at http://www.cse.scu.edu/~yfang/coen140/iris.data The dataset contains 3 classes of 50 instances each, where each class…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Implement Linear Discriminant Analysis (LDA) and Quadratic Discriminant Analysis (QDA). You can use Python, R or Matlab for this assignment. Please do not use any machine learning library for this assignment. Perform classifications on the Iris dataset which can be downloaded at http://www.cse.scu.edu/~yfang/coen140/iris.data

The dataset contains 3 classes of 50 instances each, where each class refers to a type of iris plant.

Attribute Information:

  1. sepal length in cm

  2. sepal width in cm

  3. petal length in cm

  4. petal width in cm

  5. class:

    • Iris Setosa

    • Iris Versicolour

    • Iris Virginica

Exercises:

  1. Break the sample into 80% for training, and 20% for test datasets. You can choose the first 80% instances from each class for training and the rest for testing.

  2. Build an LDA classifier based on the training data. Report the training and test errors for your classifier.

  1. Build a QDA classifier based on the training data. Report the training and test errors for your classifier.

  1. Is there any class linearly separable from other classes? Explain your answer based on your experiments.

  1. Are any of the variables not important in classifying iris type? Explain your answer based on your experiments.

  1. Assume the features are independent, i.e., ∑ is a diagonal matrix. Repeat 2 and 3, and report your results.

COEN _Machine Learning and Data Mining Homework 2-Solution
$30.00 $24.00