Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions