Professional Documents
Culture Documents
Cross table
Background You have employment data about country X. You have been asked to prepare a cross-table sho
60% of 18 to 25-year-olds are employed
85% of 25 to 35-year-olds are employed
5% of 35 to 45-year-olds are unemployed
3% of 45 to 55-year-olds are unemployed
3% of 55 to 65-year-olds are unemployed
All 65+ are employed. Note: the definition of unemployed is: without a job, but actively searching
Task 1 Create a cross table summarizing the data you have been given.
Task 2 Create a side-by-side bar chart (it is called clustered column chart in Excel), in order to visually
Solution:
Employment by age group
Age group \ Employment % Employed Unemployed Total
120
18-25 60 40 100
25-35 85 15 100 100
35-45 95 5 100
45-55 97 3 100 80
55-65 97 3 100 60
65+ 100 0 100
Total 534 66 600 40
20
0
18-25 25-35 35-
Emplo
to prepare a cross-table showing that data.
a job, but actively searching for one. That's probably why all 65+s are employed.
Employed Unemployed
Cross table and scatter plot
Scatter plot
Background You are given the closing stock prices of Apple, Alphabet Inc. (Google) and Bank of America on different dates for a perio
Task 1 Create a scatter plot with Apple and Alphabet stock prices.
Task 2 Create a scatter plot with Apple and Bank of America stock prices
Task 3 Explore if there is a relationship between the two variables.
Solution: You may need to scroll down a bit for this one :)
Alphabet CLass A
800
1/11/2017 119.75 829.86 23.07
1/12/2017 119.25 829.53 22.92
600
1/13/2017 119.04 830.94 23.01
1/17/2017 120 827.46 22.05
400
1/18/2017 119.99 829.02 22.63
1/19/2017 119.78 824.37 22.53
200
1/20/2017 120 828.17 22.64
1/23/2017 120.08 844.43 22.56
1/24/2017 22.95 0
119.97 849.53 110 115 120 125 130
1/25/2017 121.88 858.45 23.37
1/26/2017 121.94 856.98 23.44
1/27/2017 121.95 845.03 23.36
1/30/2017 121.63 823.83 22.95
Apple - Google
1/31/2017 121.35 820.19 22.64
2/1/2017 128.75 815.24 22.89 1100
2/2/2017 128.53 818.26 22.72
1050
2/3/2017 129.08 820.13 23.29
2/6/2017 130.29 821.62 23.12 1000
2/7/2017 131.53 829.23 22.9
Alphabet CLass A
22
21
25
Bank of America
24
oogle
T1: The first graph represents the relationship between Apple's sto
Alphabet's stock price is much higher (this is a financial decisi
stock price value does not mean much out of context. Most co
priced around $40 per share, since it has some advantages. If
can perform a stock split and have twice as big number of sha
This example shows us that if the two dataset are too different
0 115 120 125 130 135 140 145 150 155 160 T3: As for the relationship between them, as you probably anticipa
When one is higher, the other is, too, and vice versa.
Apple
e - Bank of America
T1: The graph represents the relationship between Apple's stock p
Since the our sample values are not that far apart, we don't ne
T3: We can clearly see, that when one stock is higher, this does n
115 120 125 130 135 140 145 150 155 160
Apple
ts the relationship between Apple's stock price and Alphabet's (Google) stock price.
much higher (this is a financial decision. Higher or lower
ot mean much out of context. Most companies prefer to be
hare, since it has some advantages. If your stock is price $80, you
t and have twice as big number of shares at $40)
that if the two dataset are too different, it is a good idea to restrict the axes accordingly.
etween them, as you probably anticipated, the two stocks are very highly correlated.
other is, too, and vice versa.
e relationship between Apple's stock price and Bank of America's stock price.
lues are not that far apart, we don't need the correction from the previous example.
when one stock is higher, this does not imply the same for the other.