Question: I need help creating a C17 console application to compile the following statistics on a list of real numbers: Number of values minimum value; maximum

I need help creating a C17 console application to compile the following statistics on a list of real numbers:

  • Number of values
  • minimum value;
  • maximum value;
  • median value;
  • arithmetic mean;
  • mean absolute deviation - (mean, median, mode)
  • variance (of a discrete random variable);
  • standard deviation (of a finite population);
  • mode (including multi-modal lists).
  • least squares regression line
  • outliers

Your program must handle any length of list.The list will be input (or piped) from the console, or read from a file. The list is terminated with end-of-stream (^Z, or ^D on Linux) or non-numeric input. A sample input list is posted on FOL.

Keep the output clean and minimal. A sample output file is posted on FOL.

You are to implement your own sort (it must sort two arrays in parallel, or an array of structures). Your grade is dependent upon the sorting algorithm that you choose (to get full marks, implement the quick, merge sort or heap sort). Sorting algorithms can be found at GATS Companion to Searching and Sorting.

A sample of the executable, input file format and output file format are posted on FOL. Your output should be formatted as the output file. All statistics numbers calculated should be displayed to 3 decimal places, where applicable. You should create more input files to verify that all your statistics are done properly.

Least Squares Formulae

Where b is the slope, and a is the y-intercept.

Outliers

Outliers are values that are a significant distance from the mean. When the absolute difference between a sample and its mean exceeds the standard deviation, it is a 1x outlier. Make a list of 2x and 3x outliers - considering the values, the mean, and the standard deviation.

Note!

  1. Note that both the modes and the outliers can have multiple results.
  2. A data set with all values occurring the same number of times has no mode!

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!