0% found this document useful (0 votes)
48 views4 pages

DW DM Assignment

This document discusses analyzing and summarizing a dataset of age values. It includes calculating the mean, median, mode, midrange, quartiles, and creating a five-number summary and boxplot. The mode is bimodal with values of 25 and 35. The median is 25, first quartile is 20, and third quartile is 35. A quantile-quantile plot compares the quantiles of two datasets, while a quantile plot directly displays the quantiles of one dataset.

Uploaded by

Altamash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views4 pages

DW DM Assignment

This document discusses analyzing and summarizing a dataset of age values. It includes calculating the mean, median, mode, midrange, quartiles, and creating a five-number summary and boxplot. The mode is bimodal with values of 25 and 35. The median is 25, first quartile is 20, and third quartile is 35. A quantile-quantile plot compares the quantiles of two datasets, while a quantile plot directly displays the quantiles of one dataset.

Uploaded by

Altamash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1 Suppose that the data for analysis includes the attribute age.

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.

You might also like