working on SVD and the question is this: s being the svd(data), the proportion of variabiilty in the data explained by the xth column of is equal to s$d[x]^2 divided by the sum of all s$d values.
It asks the 'proportion' for different column values and requires the ans be between 0 and 1. I have tried nearly everything including an endless google search, I'd be grateful for any kind of help. (I'm aware it's probably an easy thing to do, but I can't seem to get to it) Thanks!