Skip to content

Instantly share code, notes, and snippets.

@airalcorn2
Created November 2, 2016 17:29
Show Gist options
  • Save airalcorn2/6ded3c84850e600271d960f18b0cb943 to your computer and use it in GitHub Desktop.
Save airalcorn2/6ded3c84850e600271d960f18b0cb943 to your computer and use it in GitHub Desktop.
Comparing fiscal policies and GDP to poverty rates in different countries.
Rank Country GDP (millions of Int$)
World 119,097,427
1 China 21,269,017
European Union[n 1] 19,973,035
2 United States 18,561,934
3 India 8,720,514
4 Japan 4,931,877
5 Germany 3,979,083
6 Russia 3,745,084
7 Brazil 3,134,892
8 Indonesia 3,027,827
9 United Kingdom 2,787,741
10 France 2,736,717
11 Mexico 2,306,668
12 Italy 2,220,580
13 South Korea 1,928,621
14 Saudi Arabia 1,731,229
15 Spain 1,689,710
16 Canada 1,674,313
17 Turkey 1,669,893
18 Iran 1,459,195
19 Australia 1,188,764
20 Thailand 1,152,421
21 Nigeria 1,128,025
22 Taiwan 1,125,988
23 Egypt 1,092,634
24 Poland 1,051,559
25 Pakistan 982,380
26 Argentina 971,608
27 Malaysia 859,881
28 Netherlands 856,265
29 Philippines 793,193
30 South Africa 735,078
31 Colombia 690,847
32 United Arab Emirates 669,679
33 Bangladesh 620,376
34 Algeria 604,014
35 Vietnam 592,848
36 Iraq 588,737
37 Belgium 504,757
38 Sweden 495,586
39 Switzerland 493,126
40 Singapore 484,951
41 Venezuela 479,136
42 Romania 435,454
43 Kazakhstan 433,909
44 Chile 433,118
Hong Kong, China 427,632
45 Austria 413,333
46 Peru 407,674
47 Norway 363,290
48 Ukraine 339,481
49 Czech Republic 332,477
50 Qatar 319,818
51 Portugal 289,791
52 Kuwait 288,382
53 Greece 285,976
54 Myanmar 283,532
55 Morocco 287,533
56 Israel 281,939
57 Denmark 258,702
58 Hungary 258,444
59 Ireland 257,417
60 Finland 224,999
61 Sri Lanka 223,024
62 Uzbekistan 187,947
63 Angola 184,438
64 Ecuador 183,358
65 Oman 171,363
66 Azerbaijan 169,445
67 New Zealand 168,187
68 Belarus 167,692
69 Sudan 166,957
70 Ethiopia 161,634
71 Slovak Republic 160,998
72 Dominican Republic 149,692
73 Kenya 141,861
74 Tanzania 138,461
75 Bulgaria 136,855
76 Tunisia 126,968
77 Guatemala 125,862
80 Syria[n 2] 121,397
79 Ghana 114,701
78 Serbia 121,502
81 Libya 92,608
82 Croatia 91,096
83 Turkmenistan 88,600
84 Panama 87,196
85 Lebanon 83,057
86 Jordan 82,725
87 Lithuania 82,355
88 Uganda 79,884
89 Côte d'Ivoire 78,621
90 Yemen 75,535
91 Costa Rica 74,888
92 Bolivia 74,391
93 Uruguay 73,463
94 Cameroon 72,644
95 Nepal 70,091
96 Bahrain 64,799
97 Slovenia 63,964
98 Democratic Republic of the Congo 62,873
99 Zambia 62,709
100 Afghanistan 62,318
101 Paraguay 60,977
102 Luxembourg 55,730
103 Cambodia 54,205
104 El Salvador 52,947
105 Latvia 49,081
106 Trinidad and Tobago 44,306
107 Honduras 41,057
108 Bosnia and Herzegovina 40,532
109 Estonia 37,549
110 Laos 37,322
111 Senegal 36,687
112 Mongolia 36,068
113 Mali 35,832
114 Georgia 35,604
115 Madagascar 35,437
116 Botswana 34,844
117 Gabon 34,575
118 Brunei Darussalam 33,219
119 Mozambique 33,187
120 Albania 32,650
121 Nicaragua 31,333
122 Burkina Faso 30,878
123 Chad 30,468
124 Republic of Congo 29,362
125 Macedonia 29,037
126 Zimbabwe 28,102
127 Cyprus 28,058
128 Equatorial Guinea 25,386
129 Namibia 25,341
130 Armenia 25,323
131 Jamaica 24,647
132 Mauritius 24,566
133 South Sudan 23,691
134 Tajikistan 23,306
135 Benin 22,948
136 Malawi 20,359
137 Kyrgyz Republic 20,095
138 Niger 19,053
139 Rwanda 18,901
140 Haiti 18,745
141 Papua New Guinea 18,595
142 Moldova 17,793
143 Kosovo 17,391
144 Mauritania 16,289
145 Malta 15,382
146 Iceland 15,154
147 Guinea 14,982
148 Togo 10,849
149 Swaziland 10,845
150 Montenegro 10,035
151 Sierra Leone 9,966
152 Bahamas 9,166
153 Suriname 9,090
154 Eritrea 8,713
155 Fiji 8,048
156 Burundi 7,711
157 Timor-Leste 6,570
158 Bhutan 6,385
159 Lesotho 5,770
160 Guyana 5,759
161 Maldives 5,191
162 Barbados 4,636
163 Liberia 3,749
164 Cabo Verde 3,423
165 The Gambia 3,261
166 Djibouti 3,094
167 Belize 3,049
168 Central African Republic 3,018
169 Guinea-Bissau 2,680
170 Seychelles 2,417
171 Antigua and Barbuda 2,097
172 St. Lucia 2,030
173 San Marino 1,982
174 Grenada 1,401
175 St. Kitts and Nevis 1,379
176 Comoros 1,214
177 St. Vincent and the Grenadines 1,205
178 Solomon Islands 1,146
179 Samoa 1,000
180 Dominica 763
181 Vanuatu 685
182 São Tomé and Príncipe 658
183 Tonga 526
184 Micronesia 306
185 Palau 272
186 Kiribati 203
187 Marshall Islands 175
188 Tuvalu 37
Country Tax burden % GDP Govt. expend. % GDP
Afghanistan 8.7 23.0
Albania 23.0 28.5
Algeria 10.0 40.4
Angola 6.1 38.6
Argentina 34.6 40.9
Armenia 16.7 25.0
Australia 25.6 35.3
Austria 42.1 50.5
Azerbaijan 12.8 34.2
Bahamas 16.4 23.0
Bahrain 3.1 30.9
Bangladesh 9.9 16.0
Barbados 27.4 40.9
Belarus 24.7 36.0
Belgium 44.0 53.3
Belize 23.3 29.3
Benin 15.5 21.5
Bhutan 13.5 37.8
Bolivia 22.2 35.4
Bosnia and Herzegovina 38.9 49.2
Botswana 28.1 31.8
Brazil 34.8 39.1
Bulgaria 26.1 34.4
Burkina Faso 13.7 24.3
Burma 3.7 19.0
Burundi 14.3 40.0
Cambodia 10.9 19.6
Cameroon 11.0 21.6
Canada 31.0 41.9
Cape Verde 20.2 32.3
Central African Republic 9.4 15.7
Chad 5.1 25.8
Chile 18.7 23.2
China 19.0 23.9
Colombia 15.1 28.9
Comoros 12.4 22.1
Democratic Republic of the Congo 23.6 29.1
Congo 8.4 26.1
Costa Rica 21.9 18.2
Ivory Coast 13.1 25.9
Croatia 32.6 42.5
Cuba 24.4 66.7
Cyprus 26.5 46.1
Czech Republic 35.3 43.3
Denmark 48.1 57.6
Djibouti 20.3 35.2
Dominica 24.2 35.7
Dominican Republic 12.9 16.1
Ecuador 17.6 44.0
Egypt 13.8 31.8
El Salvador 15.4 21.7
Equatorial Guinea 1.5 35.3
Eritrea 50.0 33.6
Estonia 32.8 38.3
Ethiopia 11.3 18.4
Fiji 23.0 28.2
Finland 43.4 55.1
France 44.2 56.1
Gabon 10.1 24.7
Gambia 13.2 26.0
Georgia 25.4 31.8
Germany 37.1 45.4
Ghana 14.6 23.6
Greece 31.2 51.9
Guatemala 10.9 14.6
Guinea 15.6 21.5
Guinea-Bissau 8.6 21.2
Guyana 21.2 30.6
Haiti 13.1 33.5
Honduras 16.1 25.9
Hong Kong 14.2 18.5
Hungary 35.7 49.4
Iceland 36.0 47.3
India 7.0 27.2
Indonesia 11.8 18.5
Iran 9.3 21.7
Iraq 1.9 44.6
Ireland 27.6 48.1
Israel 32.6 44.6
Italy 42.9 49.8
Jamaica 23.4 31.9
Japan 27.6 42.0
Jordan 14.4 33.2
Kazakhstan 14.6 22.4
Kenya 20.1 29.1
Kiribati 20.2 91.8
North Korea N/A N/A
South Korea 25.9 30.2
Kuwait 0.8 38.5
Kyrgyzstan 18.5 36.4
Laos 13.7 21.0
Latvia 27.2 38.8
Lebanon 17.0 29.6
Lesotho 37.6 63.1
Liberia 19.8 31.4
Libya 1.0 66.6
Liechtenstein N/A N/A
Lithuania 16.0 38.3
Luxembourg 37.1 41.8
Macau 34.5 16.6
Macedonia 25.6 31.3
Madagascar 11.1 16.0
Malawi 19.9 35.1
Malaysia 15.3 28.5
Maldives 16.2 43.3
Mali 14.0 24.7
Malta 34.4 42.0
Mauritania 17.5 28.4
Mauritius 18.3 24.7
Mexico 10.6 26.6
F.S. Micronesia 12.0 65.3
Moldova 30.8 39.0
Mongolia 33.1 45.1
Montenegro 24.2 43.8
Morocco 23.0 34.6
Mozambique 19.6 34.4
Namibia 28.0 37.0
Nepal 12.6 18.6
Netherlands 38.7 49.8
New Zealand 31.7 47.5
Nicaragua 18.4 25.8
Niger 14.1 19.6
Nigeria 4.7 29.2
Norway 43.2 43.9
Oman 2.2 38.3
Pakistan 9.3 19.8
Panama 17.8 26.6
Papua New Guinea 25.8 28.6
Paraguay 13.4 19.1
Peru 17.0 19.1
Philippines 12.3 16.0
Poland 31.7 43.5
Portugal 31.3 49.4
Qatar 2.9 30.5
Romania 28.0 36.9
Russia 29.5 35.8
Rwanda 13.1 27.0
Saint Lucia 25.1 34.8
Saint Vincent and the Grenadines 22.1 30.3
Samoa 23.4 43.9
São Tomé and Príncipe 16.8 49.0
Saudi Arabia 3.7 35.1
Senegal 19.0 28.6
Serbia 35.2 45.2
Seychelles 31.7 35.7
Sierra Leone 11.5 21.9
Singapore 13.8 17.1
Slovakia 28.8 38.3
Slovenia 36.8 50.8
Solomon Islands 36.9 51.2
South Africa 27.3 32.1
Spain 31.6 45.2
Sri Lanka 12.4 21.4
Sudan 6.7 17.9
Suriname 19.0 26.9
Swaziland 23.3 31.2
Sweden 44.5 51.2
Switzerland 28.5 33.8
Syria 10.4 N/A
Taiwan 8.8 22.6
Tajikistan 19.5 27.0
Tanzania 15.2 26.9
Thailand 16.2 23.4
Timor-Leste 276.7 139.7
Togo 16.7 24.2
Tonga 17.5 29.0
Trinidad and Tobago 16.5 35.4
Tunisia 21.1 34.8
Turkey 25.0 34.9
Turkmenistan 17.8 15.2
Uganda 17.0 20.6
Ukraine 38.0 45.6
United Arab Emirates 6.1 23.7
United Kingdom 35.5 48.5
United States 25.1 41.6
Uruguay 27.2 32.6
Uzbekistan 20.2 31.4
Vanuatu 16.4 24.7
Venezuela 12.5 40.1
Vietnam 21.1 30.9
Yemen 5.3 28.9
Zambia 19.3 23.9
Zimbabwe 30.0 34.6
Somalia N/A N/A
Brunei 24.0 33.6
Country World Bank Year CIA Year Other Year
Afghanistan 15.8 2011 16 FY08/09 N/A N/A
Albania 14.3 2012 14.3 2012 est. N/A N/A
Algeria 22.6 1995 23 2006 est. N/A N/A
Andorra N/A N/A N/A N/A N/A N/A
Angola 36.6 2008 40.5 2006 est. N/A N/A
Anguilla N/A N/A 23 2002 N/A N/A
Argentina N/A N/A 30 2013 5.4 2013
Armenia 27.6 2008 32 2013 est. N/A N/A
Austria N/A N/A 4.2 2013 N/A N/A
Azerbaijan 7.6 2011 6 2012 est. N/A N/A
Bahamas, The N/A N/A 9.3 2004 N/A N/A
Bangladesh 22% 2015 26 2012 est. N/A N/A
Belarus 7.3 2011 6.3 2012 est. N/A N/A
Belgium N/A N/A 15.1 2013 est. N/A N/A
Belize 33.5 2002 41 2013 est. N/A N/A
Benin 36.2 2011 37.4 2007 est. N/A N/A
Bermuda N/A N/A 19 2000 N/A N/A
Bhutan 23.2 2007 12 2012 est. N/A N/A
Bolivia 45.0 2011 51.3 2009 est. 54.0 2007
Bosnia and Herzegovina 17.9 2011 18.6 2007 est. N/A N/A
Botswana 19.3 2009 30.3 2003 N/A N/A
Brazil 10.0 2013 21.4 2013 12.1 2011
Bulgaria 20.7 2009 21 2012 est. N/A N/A
Burkina Faso 46.7 2009 46.4 2004 N/A N/A
Burma N/A N/A 32.7 2007 est. N/A N/A
Burundi 66.9 2006 68 2002 est. N/A N/A
Cambodia 30.1 2007 17.7 2012 est. N/A N/A
Cameroon 39.9 2007 48 2000 est. N/A N/A
Canada N/A N/A 9.4 2008 4.9 2004
Cape Verde 26.6 30 2007/2000 N/A N/A
Central African Republic 62 2008 N/A N/A N/A N/A
Chad 46.7 2011 80 2001 est. N/A N/A
Chile 14.4 2011 11.5 2012 10.4 2011
China N/A N/A 6.1 2013 N/A N/A
Colombia 32.7 2012 32.7 2012 est. 45.5 2012
Comoros 44.8 2004 60 2002 est. N/A N/A
Congo, Democratic Republic of the 71.3 2006 63 2012 est. N/A N/A
Congo, Republic of the 46.5 2011 N/A N/A N/A N/A
Costa Rica 20.6 2012 24.8 2011 est. 18.9 2009
Côte d'Ivoire 42.7 2008 42 2006 est. N/A N/A
Croatia 11.1 2004 19.5 2014 N/A N/A
Czech Republic 8.6 2012 8.6 2012 est. N/A N/A
Denmark N/A N/A 13.4 2011 N/A N/A
Djibouti N/A N/A 18.8 2012 est. N/A N/A
Dominica N/A N/A 29 2009 est. N/A N/A
Dominican Republic 34.4 2010 41.1 2013 est. 41.1 2009
East Timor 49.9 2007 41 2009 est. N/A N/A
Ecuador 27.3 2012 25.6 December 2013 40.2 2009
Egypt 25.2 2011 20 2005 est. N/A N/A
El Salvador 34.5 2012 36.5 2010 est. 47.9 2009
Equatorial Guinea 76.8 2006 N/A N/A N/A N/A
Eritrea 69 1993 50 2004 est. N/A N/A
Estonia N/A N/A 22.1 2013 est. N/A N/A
Ethiopia 38.9 2005 39 2012 est. N/A N/A
Fiji 31 2009 25.5 FY90/91 N/A N/A
France N/A N/A 8.1 2012 est. N/A N/A
Gabon 32.7 2005 N/A N/A N/A N/A
Gambia, The 48.4 2010 N/A N/A N/A N/A
Gaza Strip N/A N/A 38 2010 est. N/A N/A
Georgia 17.7 2011 9.7 2010 N/A N/A
Germany N/A N/A 15.5 2010 est. N/A N/A
Ghana 24.2 2012 24.2 2013 est. N/A N/A
Greece N/A N/A 44 2013 est. N/A N/A
Greenland N/A N/A 9.2 2007 est. N/A N/A
Grenada N/A N/A 38 2008 N/A N/A
Guam N/A N/A 23 2001 est. N/A N/A
Guatemala 53.7 2011 54 2011 est. 54.8 2006
Guinea-Bissau 69.3 2010 N/A N/A N/A N/A
Guinea 55.2 2012 47 2006 est. N/A N/A
Guyana N/A N/A 35 2006 N/A N/A
Haiti 58.5 2012 58.5 2012 est. N/A N/A
Honduras 60 2010 65 2010 68.9 2007
Hungary 12.2 2009 14 2012 est. N/A N/A
India 22% 2015 N/A N/A N/A N/A
Indonesia 12.5 2011 11.33 2014 N/A N/A
Iran N/A N/A 18.7 2007 est. N/A N/A
Iraq 22.9 2007 25 2008 est. N/A N/A
Italy N/A N/A 29.9 2012 10.3 2014
Ireland N/A N/A 5.5 2009 6.8 2004 est.
Israel N/A N/A 21 2012 N/A N/A
Jamaica 17.6 2010 16.5 2009 est. N/A N/A
Japan N/A N/A 16.1 2013 est. N/A N/A
Jordan 14.4 2010 14.2 2002 N/A N/A
Kazakhstan 8.2 2009 8.2 2009 N/A N/A
Kenya 45.9 2005 43.4 2012 est. N/A N/A
Korea, South N/A N/A 14.6 2013 est. N/A N/A
Kosovo 29.2 2010 30 2013 est. N/A N/A
Kyrgyzstan 33.7 2010 33.7 2011 est. N/A N/A
Laos 27.6 2008 22 2013 est. N/A N/A
Latvia 5.9 2004 N/A N/A N/A N/A
Lebanon N/A N/A 28 1999 est. N/A N/A
Lesotho 56.6 2003 49 1999 N/A N/A
Liberia 63.8 2007 80 2000 est. N/A N/A
Libya N/A N/A See note. N/A N/A
Lithuania N/A N/A 4 2008 N/A N/A
Macedonia, Republic of 27.1 2010 30.9 2010 30.4 2011
Madagascar 75.3 2010 50 2004 est. N/A N/A
Malawi 50.7 2010 53 2004 N/A N/A
Malaysia 3.8 2009 3.8 2007 est. N/A N/A
Maldives N/A N/A 16 2008 N/A N/A
Mali 43.6 2010 36.1 2005 est. N/A N/A
Mauritania 42 2008 40 2004 est. N/A N/A
Mauritius N/A N/A 8 2006 est. N/A N/A
Mexico 51.3 2010 48.0 2013 48.0 2013
Micronesia, Federated States of N/A N/A 26.7 2000 N/A N/A
Moldova 16.6 2012 26.3 2009 N/A N/A
Mongolia 27.4 2012 39.2 2010 N/A N/A
Montenegro 11.3 2012 8.6 2013 est. N/A N/A
Morocco 9 2007 15 2007 est. N/A N/A
Mozambique 54.7 2009 54 2008 est. N/A N/A
Namibia 28.7 2009 55.8 2005 est. N/A N/A
Nepal 25.2 2011 25.2 2011 N/A N/A
Netherlands N/A N/A 9.1 2013 est. N/A N/A
Nicaragua 42.5 2009 46.2 2005 61.9 2005
Niger 59.5 2007 63 1993 est. N/A N/A
Nigeria 46.0 2010 70 2007 est. N/A N/A
Norway N/A N/A N/A N/A 4.3 2007
Pakistan 17.2 2006 22.3 FY05/06 est. 21 2013
Panama 27.6 2011 26 2012 est. 26.4 2009
Papua New Guinea 39.9 2009 37 2002 est. N/A N/A
Paraguay 26.9 2012 34.7 2010 est. 56.0 2009
Peru 25.8 2012 25.8 2012 est. 34.8 2009
Philippines 25.2 2012 25.2 2012 est. N/A N/A
Poland 7.6 2008 10.2 2003 est. N/A N/A
Portugal N/A N/A 18.7 2012 est. N/A N/A
Romania 13.8 2006 22.2 2011 est. N/A N/A
Russia 12.7 2011 11 2013 est. 13.1 Dec. 2008
Rwanda 44.9 2011 60 2001 est. N/A N/A
São Tomé and Príncipe 61.7 2009 54 2004 est. N/A N/A
Saudi Arabia N/A N/A N/A N/A 12.7 2012
Senegal 46.7 2011 54 2001 est. N/A N/A
Serbia 24.6 2011 9.2 2013 est. N/A N/A
Sierra Leone 52.9 2011 70.2 2004 N/A N/A
Slovakia 13.2 2011 20.5 2012 est. N/A N/A
Slovenia N/A N/A 13.5 2012 est. N/A N/A
South Africa 23 2006 35.9 2012 est. N/A N/A
South Sudan 50.6 2009 N/A N/A N/A N/A
Spain N/A N/A 21.1 2012 est. 21.1 2012
Sri Lanka 8.9 2010 8.9 2009 est. N/A N/A
Sudan 46.5 2009 40 2004 est. N/A N/A
Suriname N/A N/A 70 2002 est. N/A N/A
Swaziland 63.0 2009 69 2006 N/A N/A
Switzerland N/A N/A 6.9 2010 N/A N/A
Syria N/A N/A 11.9 2006 est. N/A N/A
Taiwan N/A N/A 1.5 2012 est. N/A N/A
Tajikistan 46.7 2009 35.6 2013 est. N/A N/A
Tanzania 28.2 2012 36 2002 est. N/A N/A
Thailand 13.2 2011 12.6 2012 est. N/A N/A
Togo 58.7 2011 32 1989 est. N/A N/A
Tonga N/A N/A 24 FY03/04 N/A N/A
Trinidad and Tobago N/A N/A 17 2007 est. N/A N/A
Tunisia 15.5 2010 3.8 2005 est. 3.8 2005
Turkey 18.1 2009 16.9 2010 20.5 2005
Turkmenistan N/A N/A 0.2 2012 est. N/A N/A
Uganda 24.5 2009 19.7 2013 est. N/A N/A
Ukraine 7.8 2011 24.1 2010 24.3 2013
United Arab Emirates N/A N/A 19.5 2003 0.0 2011
United Kingdom N/A N/A 15 2013 est. N/A N/A
United States N/A N/A 15.1 2010 est. 14.5 2013
Uruguay 12.4 2012 18.6 2010 est. 6.7 2012
Uzbekistan 16.0 2011 26 2008 est. N/A N/A
Venezuela 25.4 2012 31.6 2011 est. 27.6 2008
Vietnam 17.2 2012 11.3 2012 est. N/A N/A
Virgin Islands, U.S. N/A N/A 28.9 2002 N/A N/A
West Bank N/A N/A 18.3 2010 est. N/A N/A
West Bank and Gaza 25.8 2011 N/A N/A N/A N/A
Yemen 34.8 2005 54 2014 N/A N/A
Zambia 59.3 2006 64 2006 N/A N/A
Zimbabwe 72.3 2011 72.3 2012 est. N/A N/A
# Michael A. Alcorn (airalcorn2@gmail.com)
# Data from:
# -https://en.wikipedia.org/wiki/List_of_countries_by_tax_rates.
# -https://en.wikipedia.org/wiki/Government_spending#As_a_percentage_of_GDP
# -https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(PPP)
# -https://en.wikipedia.org/wiki/List_of_countries_by_percentage_of_population_living_in_poverty
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import re
import statsmodels.api as sm
from csv import DictReader
reader = DictReader(open("tax_rates.csv"))
country_data = {}
# Read in tax data.
tax_per = r"\d+\.?\d*%"
for row in reader:
country = row["Country"]
corporate_tax = re.search(tax_per, row["Corporate tax"])
if corporate_tax is not None:
corporate_tax = float(corporate_tax.group()[:-1])
individual_tax = re.search(tax_per, row["Individual (max)"])
if individual_tax is not None:
individual_tax = float(individual_tax.group()[:-1])
country_data[country] = {"corporate_tax": corporate_tax, "individual_tax": individual_tax}
# Read in goverment spending data.
reader = DictReader(open("government_spending.csv"))
for row in reader:
country = row["Country"]
govt_spend = re.search(r"\d+\.?\d*", row["Govt. expend. % GDP"])
if govt_spend is not None:
govt_spend = float(govt_spend.group())
if country in country_data:
country_data[country]["govt_spend"] = govt_spend
# Read in GDP data.
reader = DictReader(open("gdp.csv"))
for row in reader:
country = row["Country"]
gdp = row["GDP (millions of Int$)"].replace(",", "")
gdp = float(gdp)
if country in country_data:
country_data[country]["gdp"] = gdp
# Read in poverty data.
reader = DictReader(open("poverty_rates.csv"))
data = []
for row in reader:
country = row["Country"]
poverty_rate = re.search(r"\d+\.?\d*", row["CIA"])
if poverty_rate is not None:
poverty_rate = float(poverty_rate.group())
if country not in country_data:
continue
row = country_data[country]
row["country"] = country
row["poverty_rate"] = poverty_rate
data.append(row)
# Put data in data frame.
df = pd.DataFrame(data)
# Take log of GDP.
df["log_gdp"] = np.log(df["gdp"])
def plot_scatter(col, label):
(fig, ax) = plt.subplots()
plt.scatter(df[col], df["poverty_rate"])
for (i, txt) in enumerate(df["country"]):
ax.annotate(txt, (df[col].iloc[i], df["poverty_rate"].iloc[i]))
plt.xlabel(label)
plt.ylabel("Poverty Rate")
plt.show()
# Plot data.
plot_scatter("individual_tax", "Individual Tax (max)")
plot_scatter("corporate_tax", "Corporate Tax")
plot_scatter("govt_spend", "Government Spend")
plot_scatter("log_gdp", "Log GDP")
# plot_scatter("gdp", "GDP")
# Put poverty on zero to one interval.
df["poverty_p"] = df["poverty_rate"] / 100
# Build logistic regression model.
logit = sm.Logit(df["poverty_p"], df[["individual_tax", "corporate_tax", "govt_spend", "log_gdp"]], missing = "drop")
result = logit.fit()
result.summary()
Country Corporate tax Individual (min) Individual (max) Payroll tax (usually reduces taxable income) VAT or GST or Sales tax For more detailed VAT rates see VAT rates
Afghanistan 20% 10% $3,500 to $27,000 20% above $27,000 N/A 2% to 5%
Albania 15% 0% 23% N/A 20%
Alderney 10% 20% N/A 12% (employer and employee combined) N/A
Algeria 19% for Goods production, activities of building, tourism and civil engineering and 25% for trade and services. 0% 35% N/A 17%[3] or 7%
Andorra 10% 0% 10% N/A 4.5% or 1%
Angola 35% 0% 17% N/A 10%
Argentina 35% 9% 35% 44% 21%
Armenia 20% 24.4% 36% 36% 20%
Aruba 28% 7% 58.95% N/A 1.5% tax on turnover
Australia 28.5%–30%[Note A] 0% 49%[Note B] 4.75%-6.85% (varies by state/territory) 10% GST (0% on essential items)
Austria 25% 0% 50% N/A 20% - 19% (Jungholz region) - 13% (agricultural supplies, entrance to cultural and sporting events, cinemas, domestic flights, domestic wine) - 10% (foodstuffs, books, hotels and tourism, passenger transport, pharmaceuticals)
Azerbaijan 20% 14% 25% N/A 18%
Bahamas 0% 0% 0% 9.8% 7.5%
Bangladesh 35% 0% 25% N/A 15%
Barbados 25% 25% 38% 21.35% (Employee 10.1% Employers 11.25%) on first BBD$4360/month of income 17.5%[3] (hotel accommodation 7.5%)
Bahrain 0% 0% 0% 0% N/A
Belarus 18% 13% 17% 35% 20%[3] or 10%
Belgium 33.99% 0% 64% (max of federal+local) 55%(federal)+ 0%-9% (local) 37.84% 21%[3] - 12% (restaurants) - 6% (essential and selected goods)
Benin[citation needed] 35% 10% 35% N/A 18%
Bhutan 30% 0% 25% N/A N/A
Bolivia 25% 0% 25% 13% (RC-IVA: Complementary Regime to the VAT – withholding tax - the employee can deduct it entirely using the bills from products or services acquired) 13%[3] (VAT) – multiple rates (ICE: Consumption of specific products)
Bosnia and Herzegovina 10% N/A 5% FBiH, 0–15% RS 33.76% FBiH, 42–57% RS 17% FBiH and RS
Botswana 22% 0% 25% N/A 12%
Brazil 34% 0% 27.5% 31% 17% to 25%
Brunei 20% 0% 0% 8.5% (between the 5% Employee Provident Fund (Tabung Amanah Pekerja TAP) and 3.5% Supplemental Contributory Pension (SCP) N/A
Bulgaria 10% 10% 10% 31% 20%
Burkina Faso 27.5% 2% 30% N/A 18%
Burundi 35% 0% 35% N/A 18%
Cambodia 20% 0% 20% N/A 10%
Cameroon 38.5% 10% 35% N/A 19.25%
Canada 15% - 26% federal + 11-16% provincial 0% (federal) + 0% (provincial) 58.75% + Surcharge taxes (Varies) (15%-33% federal + 5%-25.75% provincial + 0–C$900 Health Premium + Surcharge Taxes) 9.9%, split equally between the employee and the employer up to a maximum of $2,479.95 each (CPP)[38] + 1.88%[39] up to a maximum of $930.60, with the employer contributing 1.4 times that amount, 2.632%, up to a maximum of $1,302.84[40] (Employment Insurance EI) + varied % of Income Tax (CIP) 5% (federal GST) with exemptions for small-businesses[41] + 0%-10% (PST)
Cape Verde 25% 16.5 27.5 {N/A} 15%
Cayman Islands 0% 0% 0% 5-10% (A 5% pension minimum withholding is paid by the employee, with an additional 5% matched by the employer on the first 60,000.00 dollars) 7% Stamp Duty one time tax on property, 22-42% Import duty varies based on import types.
Central African Republic 30% N/A 50% N/A 19%
Chile 24%[47] (on distributed profits, deductible from personal income taxes[48][49]) 0% 40% 10% (AFP private retirement fund) + 2 to 3% (AFP administrative costs) + 7% (healthcare insurance) + 0.6% (unemployment insurance) = up to around 20% of income before taxes (each item has an upper payment limit or ceiling) 19%
China 25% 5% 3%-45% (3% for <= 1500 rmb monthly up to 45% for >=80,000 rmb) N/A 17% with many exceptions
Colombia 25% 0% 33% N/A 16%
Costa Rica 30% 0% 25% 9% social security charge. 13%
Croatia 20% 12% 40% 37.2% (nationwide)[53] 0–18% (local) 25%[54] (0% on books and some foods)
Cuba 30% 15% 50% N/A 2.5% to 20%
Cyprus 12.5% 0% 35% 6.8% 19%[3] (5% or 0% for certain goods)
Czech Republic 19% 15% 22% 45%, 31.5% (social security) + 13.5% (healthcare insurance)[citation needed] 21%[58] (15% or 10% for certain goods)
Denmark 22% 29.68% (2015)[60] (first USD $7,760 pro anno is deductible) 51.95% (2015) 8% (2015) 25%
Dominican Republic 27% 0% 25% 10% (AFP private retirement fund) + 10% (healthcare insurance) = up to around 20% of income before taxes, 14% pay by the employer and 6% pay by the employee (each item has an upper payment limit) 18%
Egypt 25% 10% 20% N/A 10% (standard), 25% (luxury goods), 0% (exports)
El Salvador 30% 0% 30% N/A 13%
Estonia 0% 20% 20% 33% 20% or 9%
Finland 20% 7.71% (7.71% social security,[64] no national[65] or municipal[66] taxes for income no more than 2 930 €) 61.96% (31.75% national[65] 16.5-22.5% municipal[67] 7.71% social security[64]) 20.64% (average) 24% 14% (food and fodder) 10% (e.g. accommodation and culture)
France 15% - 33.00% 0% up to €9700 45% 25% to 30% 20%, 7% (restaurants, transportation, tourism), 5.5% (utilities), 2.1% (press)
Gabon 35% 5% 35% 2.6% 18%
Gambia 31% 0% 30% N/A N/A
Germany 29.65% 14% (first €8,354 pro anno is deductible) 45% 41%, 15% for one of the many public health insurances (fixed rate by law), as well as a solidarity tax (depending on income) and a 26% social security tax (retirement + unemployment) 19% or 7% (e.g. food)
Georgia 15% 20% 20% N/A 18%
Gibraltar 10% 17% 40% N/A 0%
Greece 58%, Year 1 29%, Year 2+ 22% (€2,100 Tax Deducted if Income <€21,000) 42% 44% 24%,[3] 13% (Health,Tourism), and 6% (Theater tickets, books, medicine). For some islands away from the mainland the rates are 17%, 9% and 4%.
Guatemala 25% 5% 7% 17.5% (Social Security, Recreation and Technical Training Institutes) 12%
Guyana 30% N/A 33⅓% N/A 16% or 0%
Guernsey 0% 20% N/A 12% (employer and employee combined) N/A
Hong Kong 16.5% 0% 15% Employees make 5% contribution on HKD 7100 to HKD 30000 of their monthly salary to the Mandatory Provident Fund, with 100% matching by the employers and immediate vesting and portability features. 0%. The idea to levy GST was proposed and dropped in 2006.
Hungary 19% 15% 15% 34.5% (2013) 27%, 18% (milk, dairy products, flour, cereals, bakery products etc.), 5% (medicines, books)
Iceland 20% 0% 46% 6% 24% or 12%
India 30% 0% 34.6% 2-12.5% 5.5%-15%
Indonesia 25% 5% 30% N/A 10%
Iran 25% 0% 35% 35%-15% 0%-9% - depending on item
Ireland 12.5% 20% (first €1,650 pro anno is deductible) 40% 0%-11% USC (A levy on gross income that does not affect Income Tax) 0 - 4% Pay Related Social Insurance (PRSI) 23% Goods 9%-13.5% Services 0% certain items of food
Isle of Man 0% 10% 20% 23.8% (combined) 20%, 5% on Home Renovations
Israel 25% 11.5% 50% 10%-52% 17% on all the products and services (except for vegetables and fruits).
Italy 27.5% 23%- 0% on the first 8.500 euro income 43% +4% (special added tax) 39%[76] page 19 22% or 10% or 4% (food, books)
Jamaica 33.3% Large companies 25% Small Private companies 0% 25% on income over J$592,800 25% on income over J$592,800 Plus Ed. Tax 2.25% on Statutory Income, NHT 2% on gross Income & NIS (social security) 2.5% on Income up to J$1.5M GCT 16.5%, SCT varies up to 20%
Japan 32.11% 5% 50% (40% national + 10% local) 25.63% 8% (consumption)
Jersey 0% 0% 20% up to £625,000, 1% above £625,000 6% 5%
Jordan 20% 0% 14% N/A 16% (GST)
Kazakhstan 20% 10% 10% (for residents), 15% (for non-residents) 11% 12%
Kenya 30% 10% 30% citizens, 35% foreigners N/A 16%/12% (electricity & fuel) VAT, 0%/exempt FOOD + 12.5% Withholding tax, 5% contractor Withholding tax
Kuwait 15% 0% 0% N/A 16%
South Korea 24.2% 6% + 1.8% 38%[81] + 11.4% N/A 10%
North Korea 25% 0% 20% N/A 2% to 4%
Latvia 15% 24% (flat tax rate) 24% 35.09% 21%
Lebanon 15% 2% 20% N/A 10%
Liechtenstein 12.5% 1.2% 17.82% 11.6% 3.6%-7.6%, (lodging services additional 2.4%)
Lithuania[citation needed] 15% 0% 15% 39.98% 21%
Luxembourg 29.22% 6% 52.45% total: 40%[88] + 12.45% social security charges N/A 17%
Macau 12% 0% 12% N/A N/A
Macedonia 10% 10% (flat tax rate) 10% N/A 18% or 5%
Malaysia 25% 0% 26% 2.25%, 21% to Provident Fund http://www.mohr.gov.my/pdf/sohchee.pdf 6%
Maldives 8%-15% 0% 15% N/A 6% Since January 1, 2012 (Increased from 3.5% set on October 2, 2011)
Malta 0-10% (35%[22] pre rebate) 0% 35% N/A 18%
Marshall Islands N/A 0%, 8% on employees of resident companies 12% on employees of resident companies N/A 2-4%
Mauritius 15% 15% (flat tax rate) 15% N/A 15%
Mexico 30% 1.92% 35% 35% 16%
Moldova 12% 7% 18% N/A 20%
Monaco 33.33% 0% N/A 38%-54% 19.6%-5.5%
Mongolia 10% 10% 10% N/A 10%
Montenegro 9% 9% (first EUR 720) 15% N/A 19%
Morocco 30% 0% 38%[citation needed] N/A 20%[citation needed]
Nepal 20% 15%, 1% Social Security Tax Mandatory 25% N/A 13%
Netherlands 20% on first €200.000 profit. 25% on €200.001+ profit 36.25% (first €2,103 pro anno is deductible) 52%[103] + reduction of deductions (arbeidskorting and general korting) N/A 21% (6% for essential and selected goods)
New Zealand 28% 10.5% 33% N/A 15% GST
New Caledonia 30% 0% 25% on local income of non-residents 40%[107] N/A
Nigeria 30% 7% 24% N/A 5%
Norway 25% 0% 46.9%[110] (includes 8.2% pension contribution) 0%-14.1% 25% or 15% (food and drink in shops) or 10% (transportation, cinema, hotel rooms)
Oman 12% 0% 0% 21% 0%
Pakistan 35% 7.5% 35% N/A 0% or 17% (basic food items)
Palestine 15% 5% 15% N/A 14.5% (VAT)
Panama 25% 0% 27% N/A 7% (except for: essential goods 0%, alcohol and hotels 10%, tobacco 15%)
Paraguay 10% 8% 10% N/A 10%
Peru 30% 0% 30% 9% Essalud (Social Security) 8.33% CTS Compensación por tiempo de servicios (like an insurance in case the employee loses his job) 1 complete additional salary in July and 1 complete additional salary in December for Christmas. 0.75% SENATI (Only Industry Jobs) 0.2% SENCICO (Only Construction Workers) 18% (16% VAT + 2% Municipal Promotional Tax) 0–118% ISC Impuesto Selectivo al Consumo (To some products like liquor, cigarettes, etc.)
Philippines 30% 5% 32% N/A 12% or 7% or 0% (in some cases, foreign investors are zero-rated)
Poland 19% (15% for SME) 0% 32% (or optional 19% flat rate for self-employed) 41.11% 23% or 8% or 5%
Portugal 23% 14.5% 48% 34.75% 23%, 13%, 6% Madeira, Açores: 15%, 9%, 4%
Puerto Rico 20% 0% (16% Proposed from March 2015) 33.34% Participates in US Federal Social Security system, payroll taxes are at same US rates 11.5%
Qatar 10% 0% 0% 0% 0%
Romania 16% (3% revenue for micro-entities[114]) 16% (flat tax rate) 16% (+ 6.5% CASS + 10.5% CAS for self-employed ) 22.75-23.45%(+5-10% for special works) 20% or 9% (food, medicines, books, newspapers, hotel ...), or 4%
Russia 20% 13% (flat) 13% (35% for non-residents) 30% (10% for SME, 14% for IT industry) before annual salary exceeds 568000 RUB, 10% thereafter 18% or 10% (books, certain items of food, children goods)
San Marino 17% 12% 50% 29% 17% on imported goods. There is no VAT registration inside San Marino.
Sark 0% 0% - There are taxes on property and personal capital (max £5,760). 0% 0% 0% - There is no VAT on Sark. Import duty is levied on some goods brought onto the island.
Saudi Arabia 20% 0% (foreigners) Zakat 2.5% on capital assets (natives) 0% (foreigners) Zakat 2.5% on capital assets (natives) 22% Social security (Saudi nationals), 0% required for foreigners (although all employers are required to buy healthcare that costs $1300–1750 per employee). 0%
Senegal 25% 0% 50% N/A 20%
Serbia 15% 10% 25% (additional contributions for state health, pension and unemployment funds) 35.8% 20%[121] or 8% or 0% (reduced rates are for certain goods)
Singapore 17% 0% 22% 11.5 to 36% (To Central Provident Fund, rates are for monthly wages greater or equal to S$750) 7% (GST)
Slovakia 22% 19% 25% 30% tax including mandatory social security tax and health care tax 20%[citation needed] 10% on medication and books
Slovenia 17% 16% 50% 0% (abolished) 22% or 9.5%
South Africa 28% 0% 41% 18 - 40% 14%
Spain 25% 20% (first €5,151 pro anno is deductible) 49% 36.25% 21%, 10% & 4%
Sri Lanka 15% - 30% 0% 15% (If annual income is more than 2.5m LKR) N/A 0% or 8% or 12%
Swaziland 27.5% 33% 33% N/A 14%
Sweden 22% 31% (first USD $2,690 pro anno is deductible) 59.7% 31.42% 25% or 12% or 6%
Switzerland 17.92% 0% 13.2% (federal) N/A 8.0% or 3.8% or 2.5%
Syria 22% 5% 15% N/A N/A
Taiwan 17% 6% 45% N/A 5% VAT Various rates of Gross receipts tax on a few industries, such as financial services.
Tanzania 30% 15% 30% N/A N/A
Thailand 20% 0% 35% 5%-35% 7%
Trinidad and Tobago 25% 0% 25% N/A 12.5%
Tunisia 30% 0% 35% N/A 18% or 12% or 6%
Turkey 20% 15% 35% 40%-35% 18% or 8%(e.g. clothing) or 1%(certain food)
Ukraine 18% 0% (base tax rate 20%) 30% (base tax rate 20%) 20%; also possible 2%-49.7% (mandatory contribution to the State Pension Fund paid by employer called United social contribution) 20% or 7% or 0%
United Arab Emirates 0% 0% 0% N/A N/A
United Kingdom 20% 0%, 20% (personal allowance of £11,000 for most people)[137] 45%[138] (on income over £150,000) 0%-25.8% (National Insurance) 20% Standard Rate; 5% Reduced Rate for home energy and renovations; 0% Zero Rate for life necessities - groceries, water, prescription medications, medical equipment and supplies, public transport, children clothing, books and periodicals.
United States 35% + 0-12% State/Local 0% (federal) + 0% (state) + 0%-3% (local) 52.9% = 39.6% (federal)[140] + 13.3% (state)[141] 20.2% 12.4% (federal social security) + 3.8% (federal medicare) + 2% (state) + 2% (local) + 0%-11.725% (state and local)
Uruguay 25% 0% 30% N/A 22% (basic) or 11% (minimum) or 0% (extent)
Uzbekistan 8% 7.5% 22% N/A 0–20%
Venezuela 34% 6% 34% N/A 8%–10%/12%
Vietnam 20% 5% 35% N/A 10%
British Virgin Islands 0% 0% 0% 10%-14% N/A
Yemen 20% 10% 15% N/A 2%
Zambia 35% 10% 30% N/A 17.5%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment