EMS function

Expected Mean Square Formula