The Karhunen–Loève expansion writes a centered square-integrable random function as in mean square, where the are principal component functions and the uncorrelated scores satisfy .