fredag den 16. november 2018

Gender Equality in Denmark - using BigQuery

Equality in Denmark - difference in what men and women earn


According to Danmarks Statistik, pay gap in 2017 was 13%


Pay gap is the average difference between the remuneration for men and women who are working
Pay gap was 13% in Denmark according to data that is publicly available in Statistikbanken at https://www.statistikbanken.dk/LIGELI2

Data contains job roles and age. Here are the top 15 job roles where pay gap is over 20%


Top 15


RowWorkAge31to39Age41to49
122 Work in the field of health21.731.0
2
3311 Work on securities and currency trading
19.827.4
3331 Work with finance, accounting and mathematics20.126.2
43313 Accounting20.825.1
51211 Management in finance functions16.824.2
6815 Operator work in the manufacture of textile, fur and leather products17.024.0
71420 Management of the main activity in retail and wholesale trade15.323.9
8142 Management of the main activity in retail and wholesale trade15.323.9
93321 Insurance work18.623.8
103331 Freight Forwarders Work17.323.7
1133 Work in business services, finance, administration and sales19.622.7
127511 Butchery, fish trade and related work in food production14.422.5
1352 Sales15.422.5
143334 Real estate agency and property management work22.222.2
15226 Other Health work13.721.9


Pay gap doubles with age 
The numbers increase consistently for all work functions. Men apparently get better at their jobs. Women get worse?


Working functions with negative pay gap

I found work functions with negative pay gap - where women in the 40's earn more than men.

RowWorkAge31to39Age41to49
12353 Other language teaching-1.2-6.5
29411 Cooking fastfood -10.9-5.5
32263 Work in the field of work and hygiene0.0-3.5
41324 Management of the main activity in supply, distribution and the like-7.3-3.3
5941 Manual work in cooking the food-6.8-3.2
694 Manual work in cooking the food-6.8-3.2
75329 Other care work in the field of health-2.1-2.9
84224 Hotel receptionist work-3.0-2.3
91321 Management in production10.6-2.0
105321 Care work at institutions and hospitals (excluding nursing homes)-1.2-2.0
112636 Work in religion-1.1-1.6

Teaching and manual work. Hm, exciting. Age is also a crucial factor here. It appears that women in the 40's are worse at cooking and teaching than women in the 30's.


How did I do this?

I have worked with BI before and I can remember it as something very difficult. Firstly, my laptop should be big enough to install additional Tools in Excel.

It may seem strange - yes, Sonja you are a developer, you have a big laptop. No, no when you sit with customers, you get the same laptop as the customer's employees. Employees working with BI do not otherwise need "developer" laptops and Windows and Office Pro versions and licenses.

Other thing that irritates me that BI work ends up many times being a work on installing SQL or fixing the SQL installation.

In addition, ordinary employees are not allowed to install software so even though their laptops are big enough they can not get anything but "standard" Windows and Office.

So, how did I do this?

I used Google BigQuery that runs completely in browser.

1. I found a page about equality her and data in .csv format at https://www.statistikbanken.dk/

2. I chose all the columns at https://www.statistikbanken.dk/LIGELI2



3. Saved everything as a .csv file
4. I opened https://bigquery.cloud.google.com/
5. I selected "Create new data set" and called it "loengab"


6. I added new table "PayGap" and used the .csv file as source


7. "Automatically detect" is very smart, but I chose to add my own columns

8. I clicked on "Compose query" button in top left corner of the page


9. A page where I can write SQL queries opened. Cool...




10. The result is a table, data that can be saved or exported to sheets.

Query to get job roles where women earn more:



Ingen kommentarer:

Send en kommentar

The Mensa test

Mensa IQ test I took the test yesterday. I signed up for the test couple of weeks ago. It is a culture neutral test with pictures, dots...