import scipy.stats as st st.t.ppf(0.95, df=9)
As per this, I should get 2.262 with dof = 9.
Data Science Stack Exchange is a question and answer site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field. It only takes a minute to sign up.Sign up to join this community
t.ppf is calculating a 1-tail inverse cdf. It looks like you're trying to look up the t-value for p=.95, but the value you are referring to in the table is a 2-tailed value of .95, meaning the one tailed value is 1 - (1-.95)/2 = .975. So
In : st.t.ppf(0.975, df=9) Out: 2.2621571627409915