EMS function

Expected values of M and S