[Paper Review] LqRT: Robust Hypothesis Testing of Location Parameters using Lq-Likelihood-Ratio-Type Test in Python
This paper introduces LqRT, a robust Python package for two-sample hypothesis testing of location parameters using an Lq-likelihood-ratio-type test. It maintains high power under non-normality and outperforms traditional tests like t-test, Wilcoxon, and sign test, with LqRT showing superior power and valid size even when distributional assumptions are violated.
A t-test is considered a standard procedure for inference on population means and is widely used in scientific discovery. However, as a special case of a likelihood-ratio test, t-test often shows drastic performance degradation due to the deviations from its hard-to-verify distributional assumptions. Alternatively, in this article, we propose a new two-sample Lq-likelihood-ratio-type test (LqRT) along with an easy-to-use Python package for implementation. LqRT preserves high power when the distributional assumption is violated, and maintains the satisfactory performance when the assumption is valid. As numerical studies suggest, LqRT dominates many other robust tests in power, such as Wilcoxon test and sign test, while maintaining a valid size. To the extent that the robustness of the Wilcoxon test (minimum asymptotic relative efficiency (ARE) of the Wilcoxon test vs the t-test is 0.864) suggests that the Wilcoxon test should be the default test of choice (rather than "use Wilcoxon if there is evidence of non-normality", the default position should be "use Wilcoxon unless there is good reason to believe the normality assumption"), the results in this article suggest that the LqRT is potentially the new default go-to test for practitioners.
Motivation & Objective
- To develop a robust statistical test for location parameters that maintains high power under distributional deviations, such as non-normality and outliers.
- To extend the theoretical Lq-likelihood-ratio-type test (LqRT) to practical two-sample settings, including paired and unpaired designs.
- To provide an easy-to-use, accessible Python implementation (via the lqrt package) for practitioners to adopt LqRT in real-world data analysis.
- To demonstrate that LqRT uniformly dominates existing robust tests like Wilcoxon and sign tests in terms of power while maintaining valid size.
- To establish LqRT as a potential new default test for location shift inference, analogous to the recommended use of Wilcoxon over t-test.
Proposed method
- Leverages Lq-likelihood, a robust estimation framework that assigns weights to observations based on their likelihood under the assumed model, reducing sensitivity to outliers.
- Adapts the Lq-likelihood-ratio-type test (LqRT) to two-sample inference, including unpaired and paired designs, for testing equality of location parameters.
- Introduces a data-driven method for selecting the tuning parameter q, balancing robustness and efficiency across different distributional scenarios.
- Implements the test using a bootstrap-based p-value calculation to ensure accurate size control under finite samples.
- Designs the package API to mirror SciPy’s statistical functions (e.g., ttest_ind, wilcoxon), enabling seamless integration into existing data science workflows.
- Supports both equal and unequal variance assumptions in the two-sample unpaired test, analogous to Student’s t-test and Welch’s t-test.
Experimental results
Research questions
- RQ1Can an Lq-likelihood-ratio-type test maintain high statistical power when the normality assumption of the t-test is violated?
- RQ2How does the performance of LqRT compare to the Wilcoxon signed-rank and rank-sum tests in terms of power and size under non-normal distributions?
- RQ3What is the optimal way to select the tuning parameter q in LqRT to balance robustness and efficiency across diverse data conditions?
- RQ4Can LqRT serve as a default alternative to the t-test and Wilcoxon test in practical data analysis, especially when distributional assumptions are uncertain?
- RQ5How does LqRT perform on real-world datasets with potential outliers or heavy-tailed distributions, such as the Breast Cancer Wisconsin dataset?
Key findings
- LqRT dominates the Wilcoxon test and sign test in power across various non-normal distributions, with no loss of performance under normality.
- In simulations, LqRT maintained valid size and showed higher power than the t-test when data deviated from normality, particularly under heavy-tailed or contaminated distributions.
- The LqRT test achieved a p-value of 0.0 when comparing samples from normal distributions with different means (e.g., μ=0 vs μ=1), correctly rejecting the null hypothesis.
- When testing two samples from the same normal distribution (μ=0), LqRT produced a p-value of 0.66 (paired) and 0.99/0.97 (unpaired), confirming correct size control.
- On the Breast Cancer Wisconsin dataset, LqRT successfully detected significant differences in mean features between benign and malignant tumors across all 10 features, with p-values of 0.0 under the unequal variance assumption.
- The package implementation supports both one-sample, paired, and unpaired two-sample tests with consistent syntax and parameter handling, enabling broad usability in applied research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.