finished empirical power code for new validation experiment