Something similar worth looking at is: https://ocw.mit.edu/courses/18-065-matrix-methods-in-data-an...