How do I get P Value at different confidence level other than the default (95%) in python scipy t test or other statistical tests? For example:
import scipy
from scipy import stats
data = [10,12,34,34,45,67,56,78,90,67,80,45,47,58]
stats.ttest_1samp(data,40)
Results are as below --
Out[7]: Ttest_1sampResult(statistic=1.808, pvalue=0.093)
but I need p-value at 90% and 99% confidence level too.
Only one answer is there but not very clear about where its confidence level is specified. Python p-value from t-statistic
Is there any other alternate to Scipy in Python for it, if it can't be done with Scipy?