1

I want to run PCA on a set of data, but I'd like to weigh each row of the input matrix(i.e. each data point) based on how recent it is. In other words, in my calculations of the PCs, I'd like more recent data points to be more important. How can I achieve this?

amoeba
  • 93,463
  • 28
  • 275
  • 317
Baron Yugovich
  • 515
  • 1
  • 6
  • 18

1 Answers1

1

You can do this by weighting each sample of $X$ by weight $w_i$. To do this simply multiply each data point coordinate by $\sqrt{w_i}$ as seen in this answer Weighted principal components analysis

j__
  • 2,204
  • 9
  • 18