You will predict where woodlice gather and test a real count with chi-squared.
The idea. If a woodlouse walks at in the damp half and in the dry half, the share of time in the damp is . Chi-squared is over the two sides. A value over 3.84 is significant at the 5 per cent level for one degree of freedom.
Your tasks.
damp_share. It gives the share of time in the damp half.chi_square. It takes a list of observed counts and a list of expected counts.is_real. It gives True when the chi-squared value is more than the critical value.Run your code once to unlock the worked solution.
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…