Question: A dataset named iris_data will be analyzed in this project. The dataset gives Ronald Fisher's measurements of type, petal width (PW), petal length (PL), sepal
A dataset named "iris_data" will be analyzed in this project. The dataset gives Ronald Fisher's measurements of type, petal width (PW), petal length (PL), sepal width (SW), and sepal length (SL) for a sample of 100 irises. The lengths are measured in millimeters. Type 1 is Verginica; and type 2 is Versicolor. The dataset is given in Matlab aa file'rsdatamat)Afer loding the file, the first column is the class label: either "I" or "2", corresponding to the two iris types. The second to the fifth columns are four feature values following the aforementioned order. Therefore, this is a two-class data analysis task where each data sample is represented by four features and labeled by either"" or"2" Please write a Matlab program to: (1) load the raw data, plot the distribution of all data samples using the first two features (PW, PL) (2) perform the principal component analysis (3) plot two graphs. The first is the distribution of the projections of all data samples on the first two principal components. The second is the distribution of the projections on the second and third principal components; (4) perform the linear discriminant analysis; (5) plot the distribution of the feature projections using x-0 for all projected points. Different symbols should be used to represent the projected samples from different classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
