Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

With all parts explained and sample code please. Thank you for your time. All parts of the same project please have all parts In this

With all parts explained and sample code please. Thank you for your time. All parts of the same project please have all parts
image text in transcribed
image text in transcribed
image text in transcribed
In this programming project you will implement a number of Python functions to run descriptive statistics on lists. Make sure you follow the provided style guide (you will be graded on it!). Here's the built-in functions you are allowed to use: round ( ). You are not allowed to use for loops - use while loops. Name the program stats. py. Make sure that gradescope gives you the points for passing the test cases. Mean 1. Function name is mean 2. It takes a list of numeric values (integers or floats) as argument: numbers 3. It calculates the mean of the values in numbers by summing each value (use a while loop) and dividing the total by the number of items in the list numbers 4. It returns a float rounded at two decimals representing the mean of the values in 1. Function name is variance 2. It takes a list of numeric values (integers or floats) as argument: numbers 3. It calculates the variance of the values in numbers by: 1. calculating the mean (call the function you created to calculate mean) 2. summing the squares of the difference between each value in numbers and the mean - create a total variable, in a while loop add to total the squared difference between each value and the mean 3. dividing the sum of squares (previous step) by the number of items in the list numbers minus 1 n1xmean2 4. It returns the result as a float rounded at two decimals Standard Deviation 1. Function name is sd 2. It takes a list of numeric values (integers or floats) as argument: numbers 3. It calculates the standard deviation of the values in numbers by: 1. calculating the variance (use the function you wrote) 2. taking the square root of the result in the previous step 4. It returns the result as a float rounded at two decimals 1. Function name is list_range 2. It takes a list of numeric values (integers or floats) as argument: numbers 3. It finds the lowest and highest numbers in the numbers argument 4. It returns the difference between the highest and lowest number (that is the range) 5. Do not use built-in functions max, min and range

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

5. Understand the importance of flow in Lean

Answered: 1 week ago