{'fraction_non_alphanumeric': 0.012565445026178011, 'fraction_numerical': 0.0, 'mean_word_length': 5.167741935483871, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Non-parametric weighted tests for independence based on empirical copula process

We propose a class of flexible non-parametric tests for the presence of dependence between components of a random vector based on weighted Cramér–von Mises functionals of the empirical copula process. The weights act as a tuning parameter and are shown to significantly influence the power of the test, making it more sensitive to different types of dependence. Asymptotic properties of the test are stated in the general case, for an arbitrary bounded and integrable weighting function, and computational formulas for a number of weighted statistics are provided. Several issues relating to the choice of the weights are discussed, and a simulation study is conducted to investigate the power of the test under a variety of dependence alternatives. The greatest gain in power is found to occur when weights are set proportional to true deviations from independence copula.