Question: For this lesson we are going to use both the statistics and math libraries to simulate the results of the sciPy library. If you couldn't

 For this lesson we are going to use both the statistics

For this lesson we are going to use both the statistics and math libraries to simulate the results of the sciPy library. If you couldn't use the sciPy library, how would you calculate z-scores? Create two functions (inside the lesson.py module) def calculate_sample_zscores (n): return None def calculate_pop_zscores (n): return None 1. Each function calculates zscores for the input n -- which is a list of numbers. One is for a population of values, the other for a sample of values. 2. Both functions return a list of corresponding zscores. 3. Do NOT use the sciPy zscore function (comment out any code that imports it or uses it). 4. You may need to consult the documentation for both math and statistics modules (urls given above). There's no need to do the full calculation yourself, use the libraries to help you get the mean and standard deviation. 5. You can assume that the parameter is not None. However, it could be empty. In this case, return None For this lesson we are going to use both the statistics and math libraries to simulate the results of the sciPy library. If you couldn't use the sciPy library, how would you calculate z-scores? Create two functions (inside the lesson.py module) def calculate_sample_zscores (n): return None def calculate_pop_zscores (n): return None 1. Each function calculates zscores for the input n -- which is a list of numbers. One is for a population of values, the other for a sample of values. 2. Both functions return a list of corresponding zscores. 3. Do NOT use the sciPy zscore function (comment out any code that imports it or uses it). 4. You may need to consult the documentation for both math and statistics modules (urls given above). There's no need to do the full calculation yourself, use the libraries to help you get the mean and standard deviation. 5. You can assume that the parameter is not None. However, it could be empty. In this case, return None

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!