computing P_E empirically