Created by nick-koberstein
Created on December 15, 2022
229 Bytes
obs = [8, 6, 10, 7, 8, 11, 9] expected = [9, 8, 11, 8, 10, 7, 6] contributions = [] for i in range(len(obs)): a=((obs[i]-expected[i])**(2))/expected[i] contributions.append(a) print(contributions)