InferentialStats
v0.3.0A class for performing inferential statistical analysis, including hypothesis tests, confidence intervals, normality tests, and more.
Class Overview
The InferentialStats class provides a comprehensive suite of inferential statistical tools. It accepts pandas.DataFrame, polars.DataFrame, or numpy.ndarray as input with automatic backend detection, and supports hypothesis testing, confidence intervals, normality tests, and variance tests across parametric and non-parametric methods. A backendproperty exposes the active backend. All methods return a TestResultobject with a consistent interface for inspecting statistics, p-values, and significance. v0.3.0 also fixes an ndarray handling bug in internal data conversion.
Constructor
InferentialStats(data: pd.DataFrame | pl.DataFrame | np.ndarray, lang: Literal['es-ES', 'en-US'] = 'es-ES')Methods
TestResult
The TestResult object is returned by all hypothesis test methods. It encapsulates the test statistic, p-value, parameters, and provides a formatted output for easy interpretation.
Properties
__repr__ Formatting
The TestResult object provides a rich formatted string representation via __repr__, which includes: