{'fraction_non_alphanumeric': 0.02880658436213992, 'fraction_numerical': 0.0027434842249657062, 'mean_word_length': 4.572519083969466, '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}}
Spearman's Rank-Order Correlation Coefficient

• In this lesson, we will learn how to measure the coefficient of correlation for two sets of ranking. • The coefficient of correlation, r, measures the strength of association or correlation between two sets of data that can be measured. Sometimes, the data is not measurable but can only be ordered, as in ranking. • For example, two students can be asked to rank toast, cereals, and dim sum in terms of preference. They are asked to assign rank 1 to their favourite and rank 3 to the choice of breakfast that they like least. • We will use Spearman's Rank Order Correlation Coefficient to calculate the strength of association between the rankings produced by these two students.