You will write a small chi-square test for the results of a genetic cross.
The idea. The expected counts come from the ratio. Chi-square adds over the classes. The ratio fits if the value is below the critical value.
Your tasks.
expected_counts. It gives the list of expected counts for a total and a ratio such as [3, 1].chi_square. It gives the value for lists of observed and expected counts.fits. It says whether observed counts fit a ratio, when the critical value is critical.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…
With Standard, you also open 12 more problems, 2 Python labs and 1 extra course. Everything you have used here stays free, always.