pub fn ttest_rel_py(
py: Python<'_>,
a: &Bound<'_, PyArray1<f64>>,
b: &Bound<'_, PyArray1<f64>>,
alternative: &str,
) -> PyResult<Py<PyAny>>Expand description
Paired (related samples) t-test.
Tests whether the means of two related/paired samples differ. This is a parametric test for paired observations (e.g., before/after measurements).
Parameters: a: First array of observations (e.g., before treatment) b: Second array of observations (e.g., after treatment) Must be same length as a (paired observations) alternative: Alternative hypothesis: “two-sided” (default), “less”, or “greater”
Returns: Dictionary with ‘statistic’ (t), ‘pvalue’, and ‘df’ (degrees of freedom)