subject

Project Array. Create an array of numbers filled by the random number generator. Print the array and determine the smallest, largest, average, and calculate the standard deviation. Allow the client to pick the size of the array to be used and allow the client to repeat the process with a new array. Use a private method to calculate the standard deviation. In statistics and probability theory, the standard deviation shows how much variation or dispersion from the average exists in a group of numbers. A low standard deviation indicates that the data points tend to be very close to the mean (also called expected value); a high standard deviation indicates that the data points are spread out over a large range of values.
For a finite set of numbers, the standard deviation is found by taking the square root of the average of the squared differences of the values from their average value. For example, consider a population consisting of the following eight values: 2, 4, 4, 4, 5, 5, 7, 9. These 8 data points have the mean (average) of 5. (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9)/8 = 5. Calculate the difference of each data point from the mean (average) and square this value.
(2 – 5)2 = (-3)2 = 9 (5 – 5)2 = (0)2 = 0
(4 – 5)2 = (-1)2 = 1 (5 – 5)2 = (0)2 = 0
(4 – 5)2 = (-1)2 = 1 (7 – 5)2 = (2)2 = 4
(4 – 5)2 = (-1)2 = 1 (9 – 5)2 = (4)2 = 16
Next, calculate the mean of these values: (9 + 1 + 1 + 1 + 0 + 0 + 4 + 16)/8 = 4. Now take the square root of the mean. The square root of 4 is 2 which is the standard deviation.
To get square root in Java, use double y = Math. sqrt(x)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
Ap practice - performance task response the ap create performance task asks you to write about an abstraction that you developed and wrote into your code. most of the time that means identifying a function or procedure you wrote to "manage complexity" in your program. here is the actual prompt from the create performance task: 2d. capture and paste a program code segment that contains an abstraction you developed individually on your own (marked with a rectangle). this abstraction must integrate mathematical and logical concepts. explain how your abstraction manage the complexity of your program. (must not exceed 200 words) below is a segment of code from an "under the sea" program with a rectangle drawn around a portion of the code identifying an abstraction. imagine that you wrote this and are composing an ap response about how this abstraction manages complexity. (note: ignore the requirement that the abstraction integrate "mathematical and logical concepts" for this practice response. just write about managing complexity). explain how the abstraction marked with the rectangle in the code above manage complexity of this program. write your response here submit
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
What does a cascading style sheet resolve a conflict over rules for an element? a. the rule affecting the most content wins b. the rule affecting the most content loses c. the rule with the most specific selector loses d. the rule with the most specific selector wins
Answers: 2
question
Computers and Technology, 22.06.2019 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
You know the right answer?
Project Array. Create an array of numbers filled by the random number generator. Print the array and...
Questions
question
Mathematics, 07.05.2021 04:30
question
Mathematics, 07.05.2021 04:30
question
Mathematics, 07.05.2021 04:30
Questions on the website: 13722363