the homework of 09 12 23 examined the correlations among nine types of
The homework of 09/12/23 examined the correlations among nine types of electrical impedance
measurements performed on breast biopsy samples. The large number of variables and the strong
correlation between some of them make it difficult to use these values for diagnosis. The purpose of
this assignment is to define three most significant, mutually independent variables from these
values, then determine if different pathological classes segregate to different regions in the three-
1. Generate a matrix P where each column represents a principal component.
2. Generate a plot of cumulative percentage variance carried by the principal components.
Label x-axis as "Number of Principal Components" and y-axis as "Percentage Total Variance".
3. Write code to determine the number of principal components needed to account for 85% of
the total variances. Print a line of "Need at least XX principal components to account for
85% of the total variance" where XX is generated by the code.
4. Generate a 3D plot with its axes formed by the first three principal components. Label the
axes as P(1), P(2), and P(3) respectively. Mark each patient with a filled circle, using different
colors to represent different pathological classes (car, fad, mas,...). Use red circles for car.
Add a legend indicating which symbol is for which class.
Number of Compet
Notes: To generate a standalone graph outside the Live Editor, add "set(gcf, 'Visible','on')" after
the plotting command. To allow rotation of the 3D plot under mouse control, add "rotate3d on"
after the plotting command.
*The amount will be in form of wallet points that you can redeem to pay upto 10% of the price for any assignment. **Use of solution provided by us for unfair practice like cheating will result in action from our end which may include permanent termination of the defaulter’s account.Disclaimer:The website contains certain images which are not owned by the company/ website. Such images are used for indicative purposes only and is a third-party content. All credits go to its rightful owner including its copyright owner. It is also clarified that the use of any photograph on the website including the use of any photograph of any educational institute/ university is not intended to suggest any association, relationship, or sponsorship whatsoever between the company and the said educational institute/ university. Any such use is for representative purposes only and all intellectual property rights belong to the respective owners.