← Về thư mục
tests/statistical-analysis/test_scripts.py
- NormalityTests · class · L43-L77 — class NormalityTests(unittest.TestCase)
- test_a_normal_sample_is_reported_as_normal · method · L44-L47 — def test_a_normal_sample_is_reported_as_normal(self) -> None
- test_a_lognormal_sample_is_reported_as_non_normal · method · L49-L52 — def test_a_lognormal_sample_is_reported_as_non_normal(self) -> None
- test_the_verdict_follows_the_supplied_alpha · method · L54-L61 — def test_the_verdict_follows_the_supplied_alpha(self) -> None: # Same data, stricter threshold: the decision must move with alpha # rather than being hardcoded at .05.
- test_the_result_carries_the_test_name_and_a_recommendation · method · L63-L70 — def test_the_result_carries_the_test_name_and_a_recommendation(self) -> None
- test_lists_and_series_are_accepted_as_well_as_arrays · method · L72-L77 — def test_lists_and_series_are_accepted_as_well_as_arrays(self) -> None
- PerGroupNormalityTests · class · L80-L104 — class PerGroupNormalityTests(unittest.TestCase)
- setUp · method · L81-L87 — def setUp(self) -> None
- test_each_group_gets_its_own_verdict · method · L89-L96 — def test_each_group_gets_its_own_verdict(self) -> None
- test_the_result_is_a_frame_with_one_row_and_an_n_per_group · method · L98-L104 — def test_the_result_is_a_frame_with_one_row_and_an_n_per_group(self) -> None
- VarianceTests · class · L107-L141 — class VarianceTests(unittest.TestCase)
- _frame · method · L108-L116 — def _frame(self, spread: float) -> pd.DataFrame
- test_equal_variances_pass_levene · method · L118-L122 — def test_equal_variances_pass_levene(self) -> None
- test_a_tenfold_spread_difference_fails_levene · method · L124-L129 — def test_a_tenfold_spread_difference_fails_levene(self) -> None
- test_more_than_two_groups_are_supported · method · L131-L141 — def test_more_than_two_groups_are_supported(self) -> None
- OutlierTests · class · L144-L176 — class OutlierTests(unittest.TestCase)
- test_the_iqr_method_finds_a_planted_extreme_value · method · L145-L148 — def test_the_iqr_method_finds_a_planted_extreme_value(self) -> None
- test_the_zscore_method_finds_the_same_value · method · L150-L153 — def test_the_zscore_method_finds_the_same_value(self) -> None
- test_a_higher_threshold_flags_fewer_points · method · L155-L163 — def test_a_higher_threshold_flags_fewer_points(self) -> None
- test_clean_data_yields_no_extreme_outliers · method · L165-L169 — def test_clean_data_yields_no_extreme_outliers(self) -> None
- test_the_reported_percentage_matches_the_count · method · L171-L176 — def test_the_reported_percentage_matches_the_count(self) -> None
- LinearityTests · class · L179-L194 — class LinearityTests(unittest.TestCase)
- test_a_straight_line_relationship_is_reported_as_linear · method · L180-L184 — def test_a_straight_line_relationship_is_reported_as_linear(self) -> None
- test_a_quadratic_relationship_is_distinguished_from_a_linear_one · method · L186-L194 — def test_a_quadratic_relationship_is_distinguished_from_a_linear_one(self) -> None
- ComprehensiveCheckTests · class · L197-L209 — class ComprehensiveCheckTests(unittest.TestCase)
- test_the_combined_check_reports_on_every_assumption · method · L198-L209 — def test_the_combined_check_reports_on_every_assumption(self) -> None