Question: Using Python generate a random list of 150 integers.Calculate the Standard Deviation of the List.Ask the user for an integer and determine if its exceptional

Using Python generate a random list of 150 integers.Calculate the Standard Deviation of the List.Ask the user for an integer and determine if its exceptional or not.

Details:You cannot use any built in statistical functions that python has for lists.

The standard deviation is a measure of how spread out a data set is.

To calculate the standard deviation:

  • Assume the data is in a list x[0], x[1], x[2], etc..
  • Find the average of all the numbers, call it u
  • Make a new list of the square of the differences between each of the data points and the average
  • (x[0] - u)2,(x[1] - u)2,etc
  • Find the average of that new list, call it v
  • Finally, the standard deviation is the square root of v

In most normal situations most of the data would fall within 1 standard deviation.If it doesn't fall inside 1 standard deviation it is considered exceptional.

For example, if a class has an average of 75 and the standard deviation is 15, then that indicates that any student who has an average above 90 (75+15) or below 60 (75-15) is somehow exceptional compared to the rest of the class.

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 Programming Questions!