Question: One statistical operation that is sometimes performed on a set of data values is to remove values that are far from the average. Write java
One statistical operation that is sometimes performed on a set of data values is to remove values that are far from the average. Write java program that reads real values from a text file, one per line. Store the data values as Double objects in an instance of the class java.util.ArrayList. Then Use an iterator to compute the average and standard deviation of the values. Display these results. Use a second iterator to remove any value that is more than two standard deviations away from the average. Use a for-each loop to display the remaining values and compute the new average. Display the new average. If the data values arex1,x2,...,xn
, their average is their sum divided by n, and their standard deviation is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
