I've read many similar posts that say Excel's T.INV.2T(probability, degs_Freedom) can be reproduced in python using scipy.stats.t.ppf().
If I use the example of T.INV.2T(0.05, 58) excels yields 2.002.
Based on other answers posted I should get the same answer using scipy.stats.t.ppf(0.05, 58), but I do not. I get -1.672.
Any ideas on what is wrong with my syntax?
source https://stackoverflow.com/questions/69576929/how-to-reproduce-excels-t-inv-2t-in-python
LMAO it's very simple.
ReplyDeleteFor ex.:
α = 0.05
then
T.INV (1 - α/2; df) = T.INV.2T (α; df)
T.INV.2T(0.05, 58) [in excel]
is the same as
scipy.stats.t.ppf(1 - 0.05/2, df = 58) [in Python]