0

I have an excel sheet which does a one sample 2 tailed t-test to calculate statistical significance.

The last step of the calculation uses the excel TDIST formula with these arguments:

  1. t-stat
  2. degree of freedom
  3. tails (called with 2 for a 2 tailed test)

What is the exact SciPy equivalent?

Avi Kaminetzky
  • 1,489
  • 2
  • 19
  • 42

1 Answers1

1
from scipy import stats

stats.t.sf(t_statistic, df=degrees_of_freedom) * 2

This answer has more information.

Avi Kaminetzky
  • 1,489
  • 2
  • 19
  • 42