Compute Deviation
Start Timer
0:00:00
Write a function compute_deviation
that takes in a list of dictionaries with a key and list of integers and returns a dictionary with the standard deviation of each list.
Note: This should be done without using the NumPy built-in functions.
Example:
Input:
input = [
{
'key': 'list1',
'values': [4,5,2,3,4,5,2,3],
},
{
'key': 'list2',
'values': [1,1,34,12,40,3,9,7],
}
]
Output:
output = {'list1': 1.12, 'list2': 14.19}
Recommended questions for you
Personalized based on your user activity, skill level, and preferences.
.
.
.
.
.
.
.
.
.
Comments