You will write your own functions for the mean, the sample standard deviation and the correlation coefficient. The checker compares them with the beans of the lesson and with the statistics module.
The idea. The sample standard deviation is . The correlation coefficient is , where each z-score is .
Your tasks.
mean(values).sample_sd(values). Divide by .correlation(xs, ys). Use z-scores and divide the sum of their products by .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…