{'fraction_non_alphanumeric': 0.017964071856287425, 'fraction_numerical': 0.0, 'mean_word_length': 5.39344262295082, '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}}
SYMMETRY IN SQUARE CONTINGENCY TABLES: TESTS OF HYPOTHESES AND CONFIDENCE INTERVAL CONSTRUCTION

Bowker's test, a generalization of McNemar's test, performs well under the hypothesis of symmetry, but the estimator of variance used in the test is biased when the table is asymmetric and this calls into question the test's performance in non-null situations. We seek an alternative to Bowker's test in search of methods for simultaneous inference that are valid when the hypothesis of symmetry is false. We apply multivariate normal theory to develop chi-square tests and simultaneous confidence intervals for inferences concerning symmetry in k × k contingency tables. We propose a modified Wald statistic as a competitor to Bowker's test. We also proffer quadratic estimators of confidence intervals. In large samples, the recommended test statistic rejects the null hypothesis at the stated level of significance when the null hypothesis is true and always rejects with greater power than Bowker's test. The proffered interval estimators provide good simultaneous coverage of the pairwise differences between the population proportions at the stated confidence level.