{'fraction_non_alphanumeric': 0.025198938992042442, 'fraction_numerical': 0.001326259946949602, 'mean_word_length': 4.551470588235294, '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}}
Testing the convexity of the support of a distribution

Given n independent, identically distributed random vectors in Rd, drawn from a common density f , one wishes to find out whether the support of f is convex or not. In this paper we describe a test which decides correctly for sufficiently large n, with probability 1, whenever f is bounded away from zero in its compact support. We also show that the assumption of boundedness is necessary. The proposed test statistic is a second-order U -statistic with a random kernel. Moreover, we suggest a way of approximating the distribution of the test statistic under the null hypothesis (i.e., under convexity of the support). The performance of the proposed method is illustrated on simulated data sets.