<jupyter_start><jupyter_text>Wilcoxon test<jupyter_code>import numpy as np
import pandas as pd
import scipy.stats as stats
CSV_PATH = '../../../../../data/statistical_test/wilcoxon_ex_data.csv'
ALPHA = 0.05
NUM_OF_PARTICIPANTS = 8
data = pd.read_csv(CSV_PATH, index_col=0)
display(data)
_, p = stats.wilcoxon(data['No Prediction'], data['With Prediction'])

print('No Prediction vs With Prediction: p={:.5f}'.format(p))
if p < ALPHA:
    print('Significant difference')
else:
    print('No significant difference')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1488970588235294, 'fraction_numerical': 0.011029411764705883, 'mean_word_length': 5.566265060240964, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '205350', 'license': 'MIT', 'n_tokens_mistral': 214, 'n_tokens_neox': 199, 'n_words': 43, 'path': 'src/statistical_test/mean/two/non-parametric/wilcoxon.ipynb', 'repo_name': 'shigeodayo/ex_design_analysis', 'size': '544'}