Skip to main content

ttest_ind_py

Function ttest_ind_py 

Source
pub fn ttest_ind_py(
    py: Python<'_>,
    a: &Bound<'_, PyArray1<f64>>,
    b: &Bound<'_, PyArray1<f64>>,
    equal_var: bool,
    alternative: &str,
) -> PyResult<Py<PyAny>>
Expand description

Two-sample independent t-test

Test whether two independent samples have different means.

Parameters:

  • a: First sample
  • b: Second sample
  • equal_var: If true, perform standard t-test assuming equal variance
  • alternative: “two-sided”, “less”, or “greater”