Skip to main content

ttest_1samp_py

Function ttest_1samp_py 

Source
pub fn ttest_1samp_py(
    py: Python<'_>,
    data: &Bound<'_, PyArray1<f64>>,
    popmean: f64,
    alternative: &str,
) -> PyResult<Py<PyAny>>
Expand description

One-sample t-test

Test whether the mean of a sample is different from a given value.

Parameters:

  • data: Input data
  • popmean: Population mean for null hypothesis
  • alternative: “two-sided”, “less”, or “greater”