Compute a p-value from a test statistic and degrees of freedom for t, chi-square and related tests, with a significance-level hint.