Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started