Write a Java program to run statistical analysis.

Definition: Mean, Median, Mode, Variance, and Standard Deviation for a population.

• Mean, Median and Mode are three different ways of measuring central tendencies:
• Mean or the average value, µ is given as µ = (x1+x2+x3+...+xn) / n or µ = ∑x /n. Where n is number of data points
• b. Median is the middle value based on the order of magnitude. For example, the median of the following sample set {1 2 3 4 5 6 7} is 4. If there are two middle values then the mean of the two values is median value. e.g. in the set {1 2 3 4 5 6 7 8}, median value is 4.5.
• c. Mode is the value that occurs most frequently. There may be more than one mode. For this assignment choose the first one found.
• Variance, σ2 of is often used to reflect the scatter, spread, or dispersion of the data. It is σ2 = [(x1-µ)2 + (x2-µ)2 + (x3-µ)2 + ... + (xn-µ)2] / n
• Standard Deviation is the square root of the variance, σ2 . Use the Math function provided by Java.

Steps:

• Display a description of your program.
• Using a descriptive prompt, let user enter size of data in the range of 1-100, store it in a variable “size”. ( 2pts)
• Let the user enter integer data, store it in an array called numArray.( 5 pts)
• Write a method called displayNumbers to display all the numbers entered by the user in a row separated by three spaces between them. (7 pts).
• Write a method for each analysis. Your program must have atleast 7 additional methods called getNumbers, sort, mean, median, mode, standardDeviation, and variance.(56 pts)
• Use prinf to format and display your output to two decimal places. (3 pts)
• Use Unicode to display the special character µ for mean and σ for standard deviation. (5 pts)
• Good programming practices. (10 pts)