Question: 7 . 6 LAB: Finding eigenvalues and eigenvectors with . corr ( ) and eig ( ) The forestfires.csv data base contains meteorological information and

7.6 LAB: Finding eigenvalues and eigenvectors with .corr() and eig()
The forestfires.csv data base contains meteorological information and the area burned for 517 forest fires that occurred in Montesinho Natural Park in Portugal. The columns of interest are FFMC, DMC, DC, ISI, temp, RH, wind, and rain.
Read in the file forestfires.csv.
Create a new data frame X from the columns FFMC, DMC, DC, ISI, temp, RH, wind, and rain, in that order.
Calculate the correlation matrix for the data in X.
Calculate the eigenvalues and eigenvectors for the correlation matrix.
Ex: If only the columns FFMC, DMC, DC, and ISI are used, the output is:
[2.238670560.989133760.459340110.31285558][[-0.49479654-0.4452682-0.74626070.00275454]
[-0.544461420.411275630.11293664-0.72225995]
[-0.513574420.514479270.036076550.68574841]
[-0.44156478-0.606547340.655010510.0899005]]

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 Programming Questions!