Question: Suppose that the data for analysis includes the attribute age. Consider a variable A that corresponds to a list of ages of customers: 13, 15,

Suppose that the data for analysis includes the attribute age. Consider a variable A that corresponds to a list of ages of customers: 13, 15, 16, 19, 20, 20, 21, 25, 22, 25, 30, 33, 36, 40, 33, 25, 25, 35, 35, 35, 35, 45, 46, 22, 52, 70, 16

(a) Write a script in python that put the variable A list in a list.
(b) Write function that computes respectively the standard deviation of A.
(c) Write a function that gives the histogram of data. Each histogram element H(k) corresponds to the frequency of k in the data. Code should include if andfor loop statements

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!