{'fraction_non_alphanumeric': 0.011857707509881422, 'fraction_numerical': 0.0, 'mean_word_length': 4.827586206896552, '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}}
An algorithm for sample variance

The most popular measure of variability of values in a sample is the variance – the average of the squares of observations deviated from the mean. That it is also an indicator of the deviations among observations themselves is not obvious from the popular formula of variance. In this note, we highlight the deviations among observations as the building block of variance in an amusingly instructive way. A simple algorithm has been presented to calculate sample variance.