def __gt__(self, val):
if isinstance(val, UncertainFunction):<EOL><INDENT>tstat, pval = ss.ttest_rel(self._mcpts, val._mcpts)<EOL>sgn = np.sign(tstat)<EOL>if pval > <NUM_LIT>:  <EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True if sgn == <NUM_LIT:1> else False<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return <NUM_LIT:1> - (self <= val)<EOL><DEDENT>
If we are comparing two distributions, perform statistical tests,
otherwise, calculate the probability that the distribution is
greater than val