Change 'mean' to 'expectation' everywhere.