Question: Bottom part is HW1 C in Python please 3. (30 pts) Use the python function written in HW1 part (c) that accepts a list of

 Bottom part is HW1 C in Python please 3. (30 pts)

Bottom part is HW1 C

Use the python function written in HW1 part (c) that accepts a

list of numbers in any range, then scales the numbers to [0,1].

in Python please

3. (30 pts) Use the python function written in HW1 part (c) that accepts a list of numbers in any range, then scales the numbers to [0,1]. Now modify the code to scale the numbers from [0,1) to integers in [0, 9], and then count the number of occurrences of each integer in the dataset. Note: Use collections.Counter() by passing the list. You need to import collections. Test your function on the three datasets used in Question 2 above. Using the counts you collected, plot the distribution of the three data sets in one figure. Again, try to reproduce all the details of the example below. a. Frequency of Dataset 20.0 17.5 15.0 12.5 10.0 7.5 5.0 2.5 data 1 data 2 data 3 Values

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!