Visualizing Data: Ritesh Pandey

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 33

Visualizing Data

Ritesh Pandey

July 14, 2022

Ritesh Pandey July 14, 2022 1 / 33


Concepts

Drawing the histogram in MS-Excel

Select the data range containing the two columns: ‘Class Intervals’ and
‘Frequency’.

Ritesh Pandey July 14, 2022 2 / 33


Concepts

Drawing the histogram in MS-Excel

On the Ribbon in a worksheet, click ‘Insert’.

Ritesh Pandey July 14, 2022 3 / 33


Concepts

Drawing the histogram in MS-Excel

Select ‘Recommended Charts’

Ritesh Pandey July 14, 2022 4 / 33


Concepts

Drawing the histogram in MS-Excel


Select ‘All Charts’, and then select ‘Histogram’.

Ritesh Pandey July 14, 2022 5 / 33


Concepts

Drawing the histogram in MS-Excel


Select ‘OK’

Ritesh Pandey July 14, 2022 6 / 33


Concepts

Drawing the histogram in MS-Excel

On the chart, right click on the x-axis and select ‘Format Chart Area’

Ritesh Pandey July 14, 2022 7 / 33


Concepts

Drawing the histogram in MS-Excel


In ‘Format Axis’ → ‘Axis Options’, fill in the ‘Bin Width’ and ‘No. of
Bins’.

Ritesh Pandey July 14, 2022 8 / 33


Concepts

Deciding the number of class intervals

The approximate number of classes can be determined using the following


table.

No. of observations (n) No. of classes


Less than 50 5-7
50-200 7-9
200-500 9 - 10
500-1000 10 - 11
1000-5000 11 - 13
5000-50000 13 - 17
More than 50000 17 - 20

Ritesh Pandey July 14, 2022 9 / 33


Concepts

Deciding the number of class intervals

Alternatively, we use the Sturges’s formula:

Number of class intervals = 1 + 3.3 log (n) (1)

where n is the number of observations in the dataset.


We may need to round off the number to the nearest integer.

Ritesh Pandey July 14, 2022 10 / 33


Concepts

Deciding the width of class intervals

We find the width of the class interval using the following formula.
Largest observation − Smallest observation
Class width = (2)
No. of classes
We may need to round off the width to the nearest integer.

Ritesh Pandey July 14, 2022 11 / 33


Concepts

Drawing the Line Chart in MS-Excel

Ritesh Pandey July 14, 2022 12 / 33


Concepts

Drawing the Line Chart in MS-Excel

Select the columns containing the time series variable: ‘Price per Gallons (cents)’.

Ritesh Pandey July 14, 2022 13 / 33


Concepts

Drawing the Line Chart in MS-Excel

On the Ribbon in a worksheet, click ‘Insert’. Then select ‘Recommended


Charts’.

Ritesh Pandey July 14, 2022 14 / 33


Concepts

Drawing the Line Chart in MS-Excel

Ritesh Pandey July 14, 2022 15 / 33


Concepts

Drawing the Line Chart in MS-Excel


Select ‘All Charts’, and then select ‘Line Chart’. Finally, select ‘OK’.

Ritesh Pandey July 14, 2022 16 / 33


Concepts

Drawing the Line Chart in MS-Excel

On the chart, right click on the x-axis and select ‘Format Chart Area’ etc.

Ritesh Pandey July 14, 2022 17 / 33


Concepts

Drawing the Line Chart in MS-Excel

Ritesh Pandey July 14, 2022 18 / 33


Concepts

Drawing the Line Chart in MS-Excel

Ritesh Pandey July 14, 2022 19 / 33


Concepts

Drawing the Line Chart in MS-Excel

Ritesh Pandey July 14, 2022 20 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

Ritesh Pandey July 14, 2022 21 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

Select the data range containing the two columns: ‘Size’ and ‘Price’.

Ritesh Pandey July 14, 2022 22 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

On the Ribbon in a worksheet, click ‘Insert’. Then select ‘Recommended Charts’.

Ritesh Pandey July 14, 2022 23 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

Ritesh Pandey July 14, 2022 24 / 33


Concepts

Drawing the Scatter diagram in MS-Excel


Select ‘All Charts’, and then select ‘XY Scatter’.

Ritesh Pandey July 14, 2022 25 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

Select ‘OK’

Ritesh Pandey July 14, 2022 26 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

On the chart, right click on the x-axis and select ‘Format Chart Area’.

Ritesh Pandey July 14, 2022 27 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

Ritesh Pandey July 14, 2022 28 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

Ritesh Pandey July 14, 2022 29 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

Ritesh Pandey July 14, 2022 30 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

Ritesh Pandey July 14, 2022 31 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

Ritesh Pandey July 14, 2022 32 / 33


Concepts

Drawing the Scatter diagram in MS-Excel

Ritesh Pandey July 14, 2022 33 / 33

You might also like