Finding two tail values ​​of P from a t-distribution and degrees of freedom in Python

How to determine the value of P t-scatter with n degrees of freedom.

Research on this point points me to this stack-sharing answer: https://stackoverflow.com/a/412518/

I assume np.abs (tt) is a T-value, but how can I work in degrees of freedom, is that n-1?

Thanks in advance

+4
source share
1 answer

Yes, n-1these are degrees of freedom in this example.

t- , "" sf scipy.stats.t (aka CDF) p-. T, - .

, , 1 T p = 0,1 3.078. , t.sf:

In [7]: from scipy.stats import t

In [8]: t.sf(3.078, 1)
Out[8]: 0.09999038172554342   # Approximately 0.1, as expected.

p- p.

+3

Source: https://habr.com/ru/post/1542101/


All Articles