HypoResult¶
- class hypotestx.core.result.HypoResult(test_name: str, statistic: float, p_value: float, effect_size: float | None = None, effect_size_name: str | None = None, confidence_interval: tuple | None = None, degrees_of_freedom: int | tuple | None = None, sample_sizes: int | tuple | None = None, assumptions_met: Dict[str, bool] | None = None, interpretation: str | None = None, data_summary: Dict[str, Any] | None = None, alpha: float = 0.05, alternative: str = 'two-sided', **kwargs)[source]¶
Bases:
objectStandardized result object for hypothesis tests
- property is_significant: bool¶
Check if result is statistically significant
- property effect_magnitude: str¶
Interpret effect size magnitude using Cohen’s conventions for the appropriate measure.
- plot(kind: str = 'auto')[source]¶
Visualise this result.
Delegates to
hypotestx.explore.visualize.plot_result().- Parameters:
kind (str) –
"auto"(default),"p_value","bar","box".- Return type:
matplotlib.figure.Figure
- Raises:
ImportError – If matplotlib is not installed. Install with
pip install matplotliborpip install hypotestx[visualization].
Fields Reference¶
Field |
Type |
Description |
|---|---|---|
|
|
Human-readable test name |
|
|
Test statistic value (t, F, χ², U, W, r, …) |
|
|
p-value |
|
|
Effect size (Cohen’s d, r, η², Cramér’s V, …) |
|
|
Name of the effect size measure |
|
|
(lower, upper) confidence interval |
|
|
Degrees of freedom |
|
|
Per-group or total sample size(s) |
|
|
Assumption check results |
|
|
Plain-English interpretation |
|
|
Significance level used |
|
|
|
|
|
Routing confidence: |
|
|
|
|
|
|
|
|
|