<jupyter_start><jupyter_text>Calculate Variance<jupyter_code>dt_var = variance(game_points) ; print ("Sample variance:", round(dt_var,2))<jupyter_output>Sample variance: 400<jupyter_text>Calculate Standard Deviation<jupyter_code>dt_std = stdev(game_points) ; print ("Sample std.dev:",round(dt_std,2))<jupyter_output>Sample std.dev: 20.0<jupyter_text>Calculate Range<jupyter_code>dt_rng = np.max(game_points,axis=0) - np.min(game_points,axis=0) ; print ("Range:",dt_rng)<jupyter_output>Range: 69<jupyter_text>Calculate percentiles<jupyter_code>print ("Quantiles:")
for val in [20,80,100]:
    dt_qntls = np.percentile(game_points,val)
    print (str(val)+"%", dt_qntls)<jupyter_output>Quantiles:
20% 39.800000000000004
80% 77.4
100% 93.0<jupyter_text>Calculate IQR<jupyter_code>q75, q25 = np.percentile(game_points, [75, 25]); print ("Inter quartile range:", q75 - q25)<jupyter_output>Inter quartile range: 28.5
{'fraction_non_alphanumeric': 0.14615384615384616, 'fraction_numerical': 0.07032967032967033, 'mean_word_length': 9.717647058823529, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '35564', 'license': 'MIT', 'n_tokens_mistral': 413, 'n_tokens_neox': 362, 'n_words': 54, 'path': 'books/stats/chapter1/Stats_pg17.ipynb', 'repo_name': 'decriptor/CS6470MachineLearning', 'size': '910'}