Page 5
The number of polymorphic sites within melanogaster and fixed differences between melanogaster and erecta are summarized in the folloing table:
Polymorphic | Fixed | ||
Silent | 13 | 26 | 39 |
Replacement | 1 | 10 | 11 |
14 | 36 | 50 |
Note:
2 X 2 Contingency Chi-square calculation:
P > 0.05 (degrees of freedom dof = 1), thus that the two ratios are not significantly different.
Run chi-square test in Python:
import numpy as np
from scipy.stats import chi2_contingency
observed = np.array([[13, 26], [1, 10]])
chi_val, p_val, dof, expected = chi2_contingency(observed,correction=False)
chi_val, p_val, dof, expected