There are two lists with numbers: sync = [85.1 83.8 69.9 82.1 84.4 80.4 78.1 88.4 77. 91.5 76.7 86.6 91.8 73.3 83.9 76.7 85.8 89.6 91.7 87.2 79. 85.3] asyncr = [89.8 81.6 87.4 81. 66.9 72.5 78.4 68.5 78.3 62.6 73.7 77.7 63. 77.5] Write code that will calculate the similarity statistics of these samples, p-value and display them
from scipy import stats import numpy as np sync = [85.1, 83.8, 69.9, 82.1, 84.4, 80.4, 78.1, 88.4, 77., 91.5, 76.7, 86.6, 91.8, 73.3, 83.9, 76.7, 85.8, 89.6, 91.7, 87.2, 79., 85.3] asyncr = [89.8, 81.6, 87.4, 81., 66.9, 72.5, 78.4, 68.5, 78.3, 62.6, 73.7, 77.7, 63., 77.5] stats.ttest_ind(sync, asyncr, equal_var = False) np.var(sync), np.var(asyncr)