Home / Expert Answers / Computer Science / my-expected-output-is-supposed-to-be-0-96-263794706748-3-and-my-urrent-one-is-wrong-the-forestfi-pa290

(Solved): My expected output is supposed to be 0.96 263794706748 3 and my urrent one is wrong. The forestfi ...



My expected output is supposed to be 0.96 263794706748 3 and my urrent one is wrong. 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. Your Guiput Expecied catput 96.25379478674827 079263734766748目 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 covariance matrix for the data in X. Calculate the eigenvalues and eigenvectors for the covariance matrix. Calculate the amount of variance contained in the first component. Ex: If only the columns FFMC, DMC, DC, and ISI are used, the output is: [6.35187225e+04 2.12678877e+03 1.13496502e+01 3.31868702e+01] [[ 0.00739596 -0.02478582 -0.58503337 0.81059664] [ 0.17946956 -0.98322216 -0.0012556 -0.03260793] [ 0.98372646 0.17964916 0.00110826 -0.00268257] [ 0.00426876 -0.01964736 0.81100749 0.58469018]] 0.9669459017392729


We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe