Orthogonal polynomial approximation and Extended Dynamic Mode Decomposition in chaos