statsmodels.stats.robust_compare.TrimmedMean.ttest_mean#
- TrimmedMean.ttest_mean(value=0, transform='trimmed', alternative='two-sided')[source]#
One sample t-test for trimmed or Winsorized mean
- Parameters:
- value
float Value of the mean under the Null hypothesis.
- transform{‘trimmed’, ‘winsorized’}
Specified whether the mean test is based on trimmed or winsorized data.
- alternative{‘two-sided’, ‘larger’, ‘smaller’}
Defines the alternative hypothesis. The following options are available (default is ‘two-sided’):
‘two-sided’ : H1: mean not equal to value
‘larger’ : H1: mean larger than value
‘smaller’ : H1: mean smaller than value
- value
- Returns:
tupleThe tuple contains statistic, pvalue and degrees of freedom of the one sample t-test.
Notes
p-value is based on the approximate t-distribution of the test statistic. The approximation is valid if the underlying distribution is symmetric.