You are on page 1of 20

Codecademy: Learn Excel for Data Analysis

Data Visualization
Welcome to the exercise spreadsheet for histograms and scatterplo
There are 2 exercises to do here. Once you're done, head back to Cod

Each exercise is in its own sheet and the solutions are in the final she
"Exercise 1" sheet!

Data

The data you will be working with is derived from the 1990 Census.
housing prices at the district level. You will be working with a subset
median household income and median housing values per district (m

Income Housing price


40.9 2489.0
20.8 975.0
30.9 1399.0
28.8 875.0
15.2 518.0
50.1 2320.0
44.8 1907.0
11.8 561.0
31.6 3667.0
51.8 2016.0
22.1 1767.0
69.5 3140.0
11.8 871.0
31.1 1706.0
52.9 2442.0
29.9 2356.0
18.1 498.0
28.8 989.0
42.4 786.0
52.3 1742.0
28.8 3000.0
37.6 1163.0
36.0 1326.0
17.2 1320.0
54.9 3617.0
13.8 1049.0
26.1 2500.0
66.4 5000.0
27.2 1393.0
34.6 4250.0
18.1 541.0
29.3 1136.0
35.2 1095.0
42.5 2148.0
48.9 2228.0
14.7 886.0
28.3 1644.0
34.5 2109.0
50.1 1657.0
35.0 2244.0
39.0 1873.0
16.3 1643.0
37.9 1030.0
52.0 3536.0
19.8 1340.0
16.4 1485.0
41.6 1198.0
35.5 1828.0
32.4 1052.0
44.4 1326.0
24.2 1784.0
40.6 2227.0
54.5 1433.0
78.8 3519.0
26.0 1621.0
40.4 1289.0
58.6 3276.0
16.8 1531.0
13.0 1102.0
52.3 2398.0
32.0 4469.0
21.8 1183.0
5.4 875.0
39.5 2664.0
59.0 2291.0
20.0 1129.0
57.9 2694.0
24.6 1013.0
55.8 2574.0
48.2 1411.0
23.8 1750.0
132.9 5000.0
46.7 1301.0
15.2 1262.0
24.0 1889.0
55.4 4290.0
23.0 1121.0
55.6 2267.0
36.3 5000.0
34.4 948.0
14.1 846.0
32.3 890.0
32.4 1798.0
47.0 1831.0
47.0 5000.0
17.2 1375.0
81.6 3480.0
18.8 938.0
48.7 2356.0
36.2 965.0
69.7 3604.0
31.5 1188.0
17.8 579.0
122.5 5000.0
18.8 950.0
19.9 1192.0
23.6 879.0
10.0 480.0
31.9 2345.0
40.2 1861.0
Analysis

rams and scatterplots!


one, head back to Codecademy to learn more!

ns are in the final sheet. Get started by navigating to the

om the 1990 Census. It contains information on California


working with a subset of this data, specifically looking at the
values per district (measured in thousands of US dollars).
Exercise 1

Using the dataset below, create a histogram showing the distribution


"Household income distribution".

Household Income D
Income Housing price
6000.0
40.9 2489.0
20.8 975.0 5000.0

30.9 1399.0 4000.0


28.8 875.0
3000.0
15.2 518.0
50.1 2320.0 2000.0
44.8 1907.0
1000.0
11.8 561.0
31.6 3667.0 0.0
1 5 9 13 17 21 25 29 33 37 41 45 49 53
51.8 2016.0
22.1 1767.0 Income Housin
69.5 3140.0
11.8 871.0
31.1 1706.0
52.9 2442.0
29.9 2356.0
18.1 498.0
28.8 989.0
42.4 786.0
52.3 1742.0
28.8 3000.0
37.6 1163.0
36.0 1326.0
17.2 1320.0
54.9 3617.0
13.8 1049.0
26.1 2500.0
66.4 5000.0
27.2 1393.0
34.6 4250.0
18.1 541.0
29.3 1136.0
35.2 1095.0
42.5 2148.0
48.9 2228.0
14.7 886.0
28.3 1644.0
34.5 2109.0
50.1 1657.0
35.0 2244.0
39.0 1873.0
16.3 1643.0
37.9 1030.0
52.0 3536.0
19.8 1340.0
16.4 1485.0
41.6 1198.0
35.5 1828.0
32.4 1052.0
44.4 1326.0
24.2 1784.0
40.6 2227.0
54.5 1433.0
78.8 3519.0
26.0 1621.0
40.4 1289.0
58.6 3276.0
16.8 1531.0
13.0 1102.0
52.3 2398.0
32.0 4469.0
21.8 1183.0
5.4 875.0
39.5 2664.0
59.0 2291.0
20.0 1129.0
57.9 2694.0
24.6 1013.0
55.8 2574.0
48.2 1411.0
23.8 1750.0
132.9 5000.0
46.7 1301.0
15.2 1262.0
24.0 1889.0
55.4 4290.0
23.0 1121.0
55.6 2267.0
36.3 5000.0
34.4 948.0
14.1 846.0
32.3 890.0
32.4 1798.0
47.0 1831.0
47.0 5000.0
17.2 1375.0
81.6 3480.0
18.8 938.0
48.7 2356.0
36.2 965.0
69.7 3604.0
31.5 1188.0
17.8 579.0
122.5 5000.0
18.8 950.0
19.9 1192.0
23.6 879.0
10.0 480.0
31.9 2345.0
40.2 1861.0
wing the distribution of median household incomes. Edit the title to

Household Income Distribution

9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97

Income Housing price


Exercise 2

Using the dataset below, create a scatterplot displaying the relationsh


housing value. Edit the title to "Household income vs. housing price"
so that the horizontal axis displays thousands of dollars and the vertic

Income Housing price


Household Income
40.9 2489.0
6,000.0
20.8 975.0
30.9 1399.0
5,000.0
28.8 875.0
15.2 518.0
4,000.0
50.1 2320.0

Household Prices
44.8 1907.0
3,000.0
11.8 561.0
31.6 3667.0 2600.0
2,000.0
51.8 2016.0 1000.0
22.1 1767.0 300.0
1,000.0
69.5 3140.0 14000.0
11.8 871.0 2100.0
0.0
31.1 1706.0 25000.0 0.0 20.0 40.0 60.
52.9 2442.0 45000.0 House
29.9 2356.0
18.1 498.0
28.8 989.0
42.4 786.0
52.3 1742.0
28.8 3000.0
37.6 1163.0
36.0 1326.0
17.2 1320.0
54.9 3617.0
13.8 1049.0
26.1 2500.0
66.4 5000.0
27.2 1393.0
34.6 4250.0
18.1 541.0
29.3 1136.0
35.2 1095.0
42.5 2148.0
48.9 2228.0
14.7 886.0
28.3 1644.0
34.5 2109.0
50.1 1657.0
35.0 2244.0
39.0 1873.0
16.3 1643.0
37.9 1030.0
52.0 3536.0
19.8 1340.0
16.4 1485.0
41.6 1198.0
35.5 1828.0
32.4 1052.0
44.4 1326.0
24.2 1784.0
40.6 2227.0
54.5 1433.0
78.8 3519.0
26.0 1621.0
40.4 1289.0
58.6 3276.0
16.8 1531.0
13.0 1102.0
52.3 2398.0
32.0 4469.0
21.8 1183.0
5.4 875.0
39.5 2664.0
59.0 2291.0
20.0 1129.0
57.9 2694.0
24.6 1013.0
55.8 2574.0
48.2 1411.0
23.8 1750.0
132.9 5000.0
46.7 1301.0
15.2 1262.0
24.0 1889.0
55.4 4290.0
23.0 1121.0
55.6 2267.0
36.3 5000.0
34.4 948.0
14.1 846.0
32.3 890.0
32.4 1798.0
47.0 1831.0
47.0 5000.0
17.2 1375.0
81.6 3480.0
18.8 938.0
48.7 2356.0
36.2 965.0
69.7 3604.0
31.5 1188.0
17.8 579.0
122.5 5000.0
18.8 950.0
19.9 1192.0
23.6 879.0
10.0 480.0
31.9 2345.0
40.2 1861.0
playing the relationship between median household income and median
me vs. housing price". Edit the axis ticks (the numbers along each axis)
dollars and the vertical axis displays millions of dollars.

Household Income vs. Housing Price

20.0 40.0 60.0 80.0 100.0 120.0 140.0

Household Income
Exercise 1
Statistical > Histogram > Histogram

Income Housing price This chart isn't available in your version of Excel.
40.9 2489.0
Editing this shape or saving this workbook into a different file form
20.8 975.0
permanently break the chart.
30.9 1399.0
28.8 875.0
15.2 518.0
50.1 2320.0
44.8 1907.0
11.8 561.0
31.6 3667.0
51.8 2016.0
22.1 1767.0
69.5 3140.0
11.8 871.0
31.1 1706.0
52.9 2442.0
29.9 2356.0
18.1 498.0
28.8 989.0
42.4 786.0
52.3 1742.0
28.8 3000.0
37.6 1163.0
36.0 1326.0
17.2 1320.0
54.9 3617.0
13.8 1049.0
26.1 2500.0
66.4 5000.0
27.2 1393.0
34.6 4250.0
18.1 541.0
29.3 1136.0
35.2 1095.0
42.5 2148.0
48.9 2228.0
14.7 886.0
28.3 1644.0
34.5 2109.0
50.1 1657.0
35.0 2244.0
39.0 1873.0
16.3 1643.0
37.9 1030.0
52.0 3536.0
19.8 1340.0
16.4 1485.0
41.6 1198.0
35.5 1828.0
32.4 1052.0
44.4 1326.0
24.2 1784.0
40.6 2227.0
54.5 1433.0
78.8 3519.0
26.0 1621.0
40.4 1289.0
58.6 3276.0
16.8 1531.0
13.0 1102.0
52.3 2398.0
32.0 4469.0
21.8 1183.0
5.4 875.0
39.5 2664.0
59.0 2291.0
20.0 1129.0
57.9 2694.0
24.6 1013.0
55.8 2574.0
48.2 1411.0
23.8 1750.0
132.9 5000.0
46.7 1301.0
15.2 1262.0
24.0 1889.0
55.4 4290.0
23.0 1121.0
55.6 2267.0
36.3 5000.0
34.4 948.0
14.1 846.0
32.3 890.0
32.4 1798.0
47.0 1831.0
47.0 5000.0
17.2 1375.0
81.6 3480.0
18.8 938.0
48.7 2356.0
36.2 965.0
69.7 3604.0
31.5 1188.0
17.8 579.0
122.5 5000.0
18.8 950.0
19.9 1192.0
23.6 879.0
10.0 480.0
31.9 2345.0
40.2 1861.0
Exercise 2
am > Histogram X Y (Scatter) > Scatter > Scatter

version of Excel.
Household income vs. hous
workbook into a different file format will 6,000

5,000

4,000

Housing price
3,000

2,000

1,000

0
0 20 40 60 80
Household income
Housing price
12

10

0
0.0 20.0 40.0 60.0 80.0 100.0 120.0 140.0
er) > Scatter > Scatter

Household income vs. housing price

20 40 60 80 100 120 140


Household income

You might also like