One statistical operation that is sometimes performed on a set of data values is to remove values…
One statistical operation that is sometimes performed on a set of data values is to remove values that are far from the average. Write a 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.