4. Hypothesis Testing Basics¶
4.1. t_test
¶
-
statspy.tests.
t_test
(x, y=None, mu=0.0, conf_level=0.95)[source]¶ Performs one and two sample t-tests on vectors of data.
same functions as t.test in r:
t.test(x, ...)
t.test(x, y = NULL,
alternative = c("two.sided", "less", "greater"),
mu = 0, paired = FALSE, var.equal = FALSE,
conf.level = 0.95, ...)
Parameters: - x – a (non-empty) numeric vector of data values.
- y – an optional (non-empty) numeric vector of data values.
- mu – vector of standard deviations.
- conf_level – confidence level of the interval.
Returns: the vector of the random numbers.
Author: Wenqiang Feng
Email: