Question: USE MATLAB! USE MATLAB! QUESTION 3a: In the class, the concept of interquartile range (IQR) has been mentioned. Quartiles are points that divide an ordered
USE MATLAB!

USE MATLAB!
QUESTION 3a: In the class, the concept of interquartile range (IQR) has been mentioned. Quartiles are points that divide an ordered data set into four groups. The second quartile, Q2, is the median of the data set. It cuts the data set in half. The first quartile, Q1, cuts the lower half of the data set in half. Q3 cuts the upper half of the data set in half. The interquartile range is then defined as Q3 - Q1. Write a function that will receive a data set as a vector and will return the interquartile range. The function would work for any data sets. Note: The built-in function prctile is NOT allowed. Other built-in functions are allowed. In a separate script file, test the function by evaluating the data set x given below: >> x = (-22 20 12 7 6 10 -5 2 6 -7] QUESTION 3: Generate a boxplot for the data set x given in QUESTION 3a. Determine the 20th and the 80'h percentiles using the built-in function pretile
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
