DW DM Assignment
DW DM Assignment
The age values for the data tuples are (in increasing order)
13, 15, 16, 16, 19, 20, 20, 21, 22, 22, 25, 25, 25, 25, 30,
33, 33, 35, 35, 35, 35, 36, 40, 45, 46, 52, 70.
(a) What is the mean of the data? What is the median?
(b) What is the mode of the data? Comment on the data’s modality (i.e., bimodal, trimodal, etc.).
(c) What is the midrange of the data?
(d) Can you find (roughly) the first quartile (Q1) and the third quartile (Q3) of the data?
(e) Give the five-number summary of the data.
(f) Show a boxplot of the data.
(g) How is a quantile–quantile plot different from a quantile plot?
Mean=(13+15+16+16+20+21+22+22+25+25+25+25+30+33+33+35+35+35+36+40+46+52+70)/ 27 = 29.96Median = 25
The modes of data are 25 and 35. This data set has two values that occur with the same highest frequency and is, therefore, b
The midrange (average of the largest and smallest values in the data set) of the data is: (70+13) / 2 = 41.5
Here the median is 25. So, till 25 it goes under 1st half and from 25 till end it goes under 2nd half: 1st half median is 20, 2nd ha
The five number summary of a distribution consists ofthe minimum value, first quartile, median value, third quartile, and maxi
Quantile plots directly display the quantiles of a set of values. The sample quantiles are plotted against the fraction of the sam
is, therefore, bimodal
an is 20, 2nd half median is 35. First quartile = 25% of the given data and the value of quartile1 is 20.25. Third quartile = 75% of the given d
artile, and maximum value. It provides a goodsummary of the shape of the distribution and for this datais: 13, 20, 25, 35, 70.
tion of the sample they correspond to. There is no built-in quantile plot in R, but it is relatively simple to produce one. Quantile-quantile p
d quartile = 75% of the given data and the value of quartile3 is 35.
3, 20, 25, 35, 70.
duce one. Quantile-quantile plots allow us to compare the quantiles of two sets of numbers.