Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Calculations for Box and Whiskers Plots: Write a program that creates a 100 elem

ID: 3765230 • Letter: C

Question

Calculations for Box and Whiskers Plots: Write a program that creates a 100 element array of random numbers from 0 to 20. Manually add 1000 to any one element. Manually subtract 800 from any one element other than the one to which you just added 1000. These two elements serve as outliers so that the data is at least somewhat more realistic. Then, calculate the median, the 25th percentile, the 75th percentile, the top and the bottom fence and the outliers as specified below. Output your random data set and the following calculated statistics for your data set. Median: The median is a measure of central tendency. It is the middle number after all numbers of a data set have been put in ascending order. (Therefore, you will want to also have a sort function to sort your data). The median is also known as the 50th percentile. If there is an even number of elements in your array, you will need to calculate the average of the middle two numbers in order to get the median. Percentiles: The 25th and 75th percentile marks of a box plot mark the boundaries of the most reasonable data points. The location (index) in the array of each percentile can be calculated as such: 25th Percentile array index = (25.0 / 100.0) * size of array 75th Percentile array index = (75.0 / 100.0) * size of array Be sure to drop the decimal since you want an array index and not a decimal value. Interquartile Range (IQR): The IQR is a measure of spread for the most reasonable data points within you data set. The IQR tells you the range of values of your data set which are most reasonable. The IQR value (not the array index!) is calculated as such: QR value = 75th percentile value - 25th percentile value Note that the percentiles in this formula are NOT the array indices but are instead the actual values AT those indices! Top and Bottom Fences: The top and bottom fences mark the outer limits of the reasonably high and reasonably low data values. These values can be calculated as such: Top Fence Value = 75th Percentile Value + 1.5 * IQR Value Bottom Fence Value = 25th Percentile Value -1.5 * IQR Value Note that the variables in this formula are NOT the array indices but are instead the actual values AT those indices! Outliers: Outliers are unreasonably high or low data points. These are data point outside the bounds of the top and bottom fences. Search your data for outliers, print out how many are unreasonably high outliers, how many are unreasonably low outliers and print out their values. For this part of the problem, you will need to search your data. You can either create your own search function or use one of the search functions we discussed in

Explanation / Answer

#include #include #include using namespace std; void main() { const int size; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote