DS Lecture 3b Graphical Displays
DS Lecture 3b Graphical Displays
Graphical Displays
Box Plot, Histogram, Line Chart, Parallel Coordinate Plot and
Scatter Plot
Lecture No. 3b
IQR
Useful Article:
https://www.thoughtco.com/what-is-the-interquartile-range-rule-3126244
Boxplots with Outliers
Drawing a Box Plot.
Example 1: Draw a Box plot for the data below
Q1 Q2 Q3
4, 4, 5, 6, 8, 8, 8, 9, 9, 9, 10,
12
Lower Upper
Media
Quartil Quartil
n=8
e = 5½ e=9
Drawing a Box Plot.
Example 1: Draw a Box plot for the data below
Q1 Q2 Q3
4, 4, 5, 6, 8, 8, 8, 9, 9, 9, 10,
12
Lower Upper
Media
Quartil Quartil
n=8
e = 5½ e=9
4 5 6 7 8 9 10 11 12
Drawing a Box Plot.
Example 2: Draw a Box plot for the data below
Q1 Q2 Q3
3, 4, 4, 6, 8, 8, 8, 9, 10, 10,
15,
Lower Upper
Quartil Media Quartil
e=4 n=8 e = 10
3 4 5 6 7 8 9 10 11 12 13 14 15
Drawing a Box Plot.
Question: Stuart recorded the heights in cm of boys in
his class as shown below. Draw a box plot for this data.
QL Q2 Qu
137, 148, 155, 158, 165, 166, 166, 171, 171, 173, 175, 180, 184,
186, 186
Lower Upper
Quartil Media Quartil
e = 158 n= e = 180
171
Girls
1. The girls are taller on average. 2. The boys are taller on average.
3. The girls show less variability in height. 5. The smallest person is a girl.
4. The boys show less variability in height. 6. The tallest person is a boy.
Example
Boxplot for All Attributes of IRIS dataset
Insights from Boxplots of IRIS Dataset
Setosa is having smaller feature and less
distributed
Versicolor is distributed in a average manner and
average features
Virginica is highly distributed with large no .of
values and features
Clearly the mean/ median values are being shown
by each plots for various features(sepal length &
width, petal length & width)
Box Plot Example
18, 34, 76, 29, 15, 41, 46, 25, 54, 38, 20, 32, 43, 22
worksheet
Workshee
t1
Scatter plot
Provides a first look at bivariate data to see clusters
of points, outliers, etc
Each pair of values is treated as a pair of
coordinates and plotted as points in the plane
Positively and Negatively Correlated Data