<jupyter_start><jupyter_text>Amphipod A Head Depth to Length Relationship<jupyter_code>import csv
import matplotlib.pyplot as plt
import numpy as np

ama_x = []
ama_y = []
with open('data/AMA_HeadDepth_Length.csv', 'rb') as csvfile:
    reader = csv.reader(csvfile, delimiter=',')
    next(reader, None)
    for row in reader:
        ama_x.append(float(row[0]))
        ama_y.append(float(row[1]))


(m, b) = np.polyfit(ama_x, ama_y, 1)
print "y = " + str(m) + "x " + "+ " + str(b)
yp = np.polyval([m,b], ama_x)

fig = plt.figure()
ax = fig.add_subplot(111)

ax.set_xlabel("Length (mm)")
ax.set_ylabel("Head Depth (mm)")
ax.set_title("Amphipod AMA Length Head Depth Relationship")

ax.plot(ama_x, yp, color='r')
ax.scatter(ama_x, ama_y)
plt.show()<jupyter_output>y = 0.146931205104x + 0.0899237678573
{'fraction_non_alphanumeric': 0.16354556803995007, 'fraction_numerical': 0.04119850187265917, 'mean_word_length': 4.647887323943662, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '593997', 'license': 'MIT', 'n_tokens_mistral': 371, 'n_tokens_neox': 343, 'n_words': 70, 'path': 'ipython/10. Amphipod A Head-Depth .ipynb', 'repo_name': 'rah/optimal-size-selection', 'size': '801'}