Question: Python only, please! WHILE AND NESTED LOOPS IN PYTHON - Mean and standard deviation: Write a Python program that reads a set of floating point

 Python only, please! WHILE AND NESTED LOOPS IN PYTHON - Mean

Python only, please!

WHILE AND NESTED LOOPS IN PYTHON - Mean and standard deviation: Write a Python program that reads a set of floating point data values. Choose an appropriate mechanism for prompting for the end of the data set. When all values have been read, print out the count of the values, the . average, and standard deviation. The average of the data set (xi, x2. x,) is,where LMP (x,-x)2 x, = xit x2 + + x" is the sum of the input values. The standard deviation is s = n-1 However, this formula is not suitable for the task. By the time the program has computed x, the individual x, are long gone. Until you know how to save these values (through the use of lists), use the following numerically less stable formula: n -1 You can compute this quantity by keeping track of the count, the sum and the sum of squares as you process the input values WHILE AND NESTED LOOPS IN PYTHON - Mean and standard deviation: Write a Python program that reads a set of floating point data values. Choose an appropriate mechanism for prompting for the end of the data set. When all values have been read, print out the count of the values, the . average, and standard deviation. The average of the data set (xi, x2. x,) is,where LMP (x,-x)2 x, = xit x2 + + x" is the sum of the input values. The standard deviation is s = n-1 However, this formula is not suitable for the task. By the time the program has computed x, the individual x, are long gone. Until you know how to save these values (through the use of lists), use the following numerically less stable formula: n -1 You can compute this quantity by keeping track of the count, the sum and the sum of squares as you process the input values

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!