GBE PS1 done
@@ -1 +1,10 @@
|
|||||||
{}
|
{
|
||||||
|
"pdfExportSettings": {
|
||||||
|
"includeName": true,
|
||||||
|
"pageSize": "A4",
|
||||||
|
"landscape": false,
|
||||||
|
"margin": "0",
|
||||||
|
"downscalePercent": 100
|
||||||
|
},
|
||||||
|
"alwaysUpdateLinks": true
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
@@ -45,8 +45,8 @@
|
|||||||
"//Microeconomics Behavioural Economics ",
|
"//Microeconomics Behavioural Economics ",
|
||||||
"//Financial Markets",
|
"//Financial Markets",
|
||||||
"//Global Business Environment ",
|
"//Global Business Environment ",
|
||||||
"//Statistics Inference",
|
"//Statistics Inference/Statistics Inference/Series",
|
||||||
"//Statistics Inference/Statistics Inference/Series"
|
"//Global Business Environment /Global Business Environment /Problem Set 1"
|
||||||
],
|
],
|
||||||
"expandFolderOnClick": true,
|
"expandFolderOnClick": true,
|
||||||
"spacesFolder": "Tags",
|
"spacesFolder": "Tags",
|
||||||
|
|||||||
@@ -11,15 +11,42 @@
|
|||||||
"id": "b1971321ebb1ba54",
|
"id": "b1971321ebb1ba54",
|
||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "mk-space",
|
"type": "image",
|
||||||
"state": {
|
"state": {
|
||||||
"path": "Global Business Environment "
|
"file": "Global Business Environment /Problem Set 1/Question 4.png"
|
||||||
|
},
|
||||||
|
"icon": "lucide-image",
|
||||||
|
"title": "Question 4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "436aa5be795ec043",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "image",
|
||||||
|
"state": {
|
||||||
|
"file": "Global Business Environment /Problem Set 1/Question 3.png"
|
||||||
|
},
|
||||||
|
"icon": "lucide-image",
|
||||||
|
"title": "Question 3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "f2f7cd4973ea8ce1",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "markdown",
|
||||||
|
"state": {
|
||||||
|
"file": "Global Business Environment /Problem Set 1/Problem Set 1 - Quintavalle Pietro.md",
|
||||||
|
"mode": "preview",
|
||||||
|
"source": false
|
||||||
},
|
},
|
||||||
"icon": "lucide-file",
|
"icon": "lucide-file",
|
||||||
"title": "Global Business Environment"
|
"title": "Problem Set 1 - Quintavalle Pietro"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"currentTab": 2
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "vertical"
|
"direction": "vertical"
|
||||||
@@ -73,7 +100,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "c7331daf7658635a",
|
"id": "cad92e61f256dbba",
|
||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "mk-path-view",
|
"type": "mk-path-view",
|
||||||
@@ -178,11 +205,23 @@
|
|||||||
"omnisearch:Omnisearch": false
|
"omnisearch:Omnisearch": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "b1971321ebb1ba54",
|
"active": "f2f7cd4973ea8ce1",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"Statistics Inference/Statistics Inference.md",
|
|
||||||
"Global Business Environment /Global Business Environment.md",
|
"Global Business Environment /Global Business Environment.md",
|
||||||
|
"Global Business Environment /Problem Set 1/Question 4.png",
|
||||||
|
"Global Business Environment /Problem Set 1/Annual rate of growth of GDP, Construction and Fixed assets and software From 1981 to 2024.svg",
|
||||||
|
"Global Business Environment /Problem Set 1/Problem Set 1 - Quintavalle Pietro.md",
|
||||||
|
"Global Business Environment /Global Business Environment 3.md",
|
||||||
|
"Global Business Environment /Global Business Environment 2.md",
|
||||||
"Global Business Environment /Global Business Environment 1.md",
|
"Global Business Environment /Global Business Environment 1.md",
|
||||||
|
"Global Business Environment /Problem Set 1/Question 3.png",
|
||||||
|
"Global Business Environment /Problem Set 1/Problem Set 1.md",
|
||||||
|
"Global Business Environment /Problem Set 1",
|
||||||
|
"Global Business Environment /Untitled.md",
|
||||||
|
"Vault.md",
|
||||||
|
"Annual rate of growth of GDP, Construction and Fixed assets and software From 1981 to 2024.png",
|
||||||
|
"Tags",
|
||||||
|
"Statistics Inference/Statistics Inference.md",
|
||||||
"Statistics Inference/Series/Series 2.md",
|
"Statistics Inference/Series/Series 2.md",
|
||||||
"Statistics Inference/Series/Series.md",
|
"Statistics Inference/Series/Series.md",
|
||||||
"Statistics Inference/Series",
|
"Statistics Inference/Series",
|
||||||
@@ -198,7 +237,6 @@
|
|||||||
"Statistics Inference",
|
"Statistics Inference",
|
||||||
"Untitled.md",
|
"Untitled.md",
|
||||||
"Global Business Environment ",
|
"Global Business Environment ",
|
||||||
"Welcome.md",
|
"Welcome.md"
|
||||||
"Tags"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"_joins":[],"_contexts":[],"_links":[],"_sort":{"field":"rank","asc":false,"group":false,"recursive":false},"_template":"","_templateName":"","defaultSticker":"","defaultColor":"","readMode":false,"fullWidth":false}
|
||||||
|
After Width: | Height: | Size: 103 KiB |
@@ -0,0 +1 @@
|
|||||||
|
{"_joins":[],"_contexts":[],"_links":[],"_sort":{"field":"rank","asc":false,"group":false,"recursive":false},"_template":"","_templateName":"","defaultSticker":"","defaultColor":"","readMode":false,"fullWidth":false}
|
||||||
|
After Width: | Height: | Size: 396 KiB |
@@ -0,0 +1,97 @@
|
|||||||
|
observation_date,A124RC1A027NBEA
|
||||||
|
1929-01-01,0.772
|
||||||
|
1930-01-01,0.690
|
||||||
|
1931-01-01,0.197
|
||||||
|
1932-01-01,0.169
|
||||||
|
1933-01-01,0.150
|
||||||
|
1934-01-01,0.430
|
||||||
|
1935-01-01,-0.053
|
||||||
|
1936-01-01,-0.092
|
||||||
|
1937-01-01,0.214
|
||||||
|
1938-01-01,1.165
|
||||||
|
1939-01-01,1.030
|
||||||
|
1940-01-01,1.543
|
||||||
|
1941-01-01,1.286
|
||||||
|
1942-01-01,-0.053
|
||||||
|
1943-01-01,-2.109
|
||||||
|
1944-01-01,-1.967
|
||||||
|
1945-01-01,-1.323
|
||||||
|
1946-01-01,4.917
|
||||||
|
1947-01-01,9.289
|
||||||
|
1948-01-01,2.417
|
||||||
|
1949-01-01,0.879
|
||||||
|
1950-01-01,-1.843
|
||||||
|
1951-01-01,0.877
|
||||||
|
1952-01-01,0.590
|
||||||
|
1953-01-01,-1.321
|
||||||
|
1954-01-01,0.170
|
||||||
|
1955-01-01,0.372
|
||||||
|
1956-01-01,2.682
|
||||||
|
1957-01-01,4.717
|
||||||
|
1958-01-01,0.802
|
||||||
|
1959-01-01,-1.272
|
||||||
|
1960-01-01,3.171
|
||||||
|
1961-01-01,4.213
|
||||||
|
1962-01-01,3.803
|
||||||
|
1963-01-01,4.946
|
||||||
|
1964-01-01,7.467
|
||||||
|
1965-01-01,6.159
|
||||||
|
1966-01-01,3.810
|
||||||
|
1967-01-01,3.484
|
||||||
|
1968-01-01,1.533
|
||||||
|
1969-01-01,1.604
|
||||||
|
1970-01-01,3.723
|
||||||
|
1971-01-01,0.311
|
||||||
|
1972-01-01,-4.035
|
||||||
|
1973-01-01,8.860
|
||||||
|
1974-01-01,5.956
|
||||||
|
1975-01-01,19.828
|
||||||
|
1976-01-01,7.093
|
||||||
|
1977-01-01,-10.914
|
||||||
|
1978-01-01,-12.627
|
||||||
|
1979-01-01,-1.167
|
||||||
|
1980-01-01,8.509
|
||||||
|
1981-01-01,3.375
|
||||||
|
1982-01-01,-3.299
|
||||||
|
1983-01-01,-35.053
|
||||||
|
1984-01-01,-90.078
|
||||||
|
1985-01-01,-114.304
|
||||||
|
1986-01-01,-142.674
|
||||||
|
1987-01-01,-154.094
|
||||||
|
1988-01-01,-115.723
|
||||||
|
1989-01-01,-92.350
|
||||||
|
1990-01-01,-74.895
|
||||||
|
1991-01-01,7.886
|
||||||
|
1992-01-01,-45.573
|
||||||
|
1993-01-01,-79.369
|
||||||
|
1994-01-01,-115.599
|
||||||
|
1995-01-01,-105.862
|
||||||
|
1996-01-01,-115.024
|
||||||
|
1997-01-01,-130.095
|
||||||
|
1998-01-01,-205.336
|
||||||
|
1999-01-01,-276.625
|
||||||
|
2000-01-01,-396.869
|
||||||
|
2001-01-01,-391.415
|
||||||
|
2002-01-01,-455.441
|
||||||
|
2003-01-01,-527.635
|
||||||
|
2004-01-01,-637.767
|
||||||
|
2005-01-01,-751.177
|
||||||
|
2006-01-01,-819.306
|
||||||
|
2007-01-01,-740.860
|
||||||
|
2008-01-01,-704.233
|
||||||
|
2009-01-01,-383.107
|
||||||
|
2010-01-01,-439.786
|
||||||
|
2011-01-01,-460.336
|
||||||
|
2012-01-01,-424.003
|
||||||
|
2013-01-01,-351.187
|
||||||
|
2014-01-01,-375.099
|
||||||
|
2015-01-01,-423.075
|
||||||
|
2016-01-01,-401.353
|
||||||
|
2017-01-01,-377.995
|
||||||
|
2018-01-01,-441.158
|
||||||
|
2019-01-01,-447.261
|
||||||
|
2020-01-01,-564.620
|
||||||
|
2021-01-01,-869.245
|
||||||
|
2022-01-01,-1001.196
|
||||||
|
2023-01-01,-937.838
|
||||||
|
2024-01-01,-1179.852
|
||||||
|
@@ -0,0 +1,66 @@
|
|||||||
|
observation_date,FYFSD
|
||||||
|
1960-06-30,301
|
||||||
|
1961-06-30,-3335
|
||||||
|
1962-06-30,-7146
|
||||||
|
1963-06-30,-4756
|
||||||
|
1964-06-30,-5915
|
||||||
|
1965-06-30,-1411
|
||||||
|
1966-06-30,-3698
|
||||||
|
1967-06-30,-8643
|
||||||
|
1968-06-30,-25161
|
||||||
|
1969-06-30,3242
|
||||||
|
1970-06-30,-2842
|
||||||
|
1971-06-30,-23033
|
||||||
|
1972-06-30,-23373
|
||||||
|
1973-06-30,-14908
|
||||||
|
1974-06-30,-6135
|
||||||
|
1975-06-30,-53242
|
||||||
|
1976-06-30,-73732
|
||||||
|
1977-09-30,-53659
|
||||||
|
1978-09-30,-59185
|
||||||
|
1979-09-30,-40726
|
||||||
|
1980-09-30,-73830
|
||||||
|
1981-09-30,-78968
|
||||||
|
1982-09-30,-127977
|
||||||
|
1983-09-30,-207802
|
||||||
|
1984-09-30,-185367
|
||||||
|
1985-09-30,-212308
|
||||||
|
1986-09-30,-221227
|
||||||
|
1987-09-30,-149730
|
||||||
|
1988-09-30,-155178
|
||||||
|
1989-09-30,-152639
|
||||||
|
1990-09-30,-221036
|
||||||
|
1991-09-30,-269238
|
||||||
|
1992-09-30,-290321
|
||||||
|
1993-09-30,-255051
|
||||||
|
1994-09-30,-203186
|
||||||
|
1995-09-30,-163952
|
||||||
|
1996-09-30,-107431
|
||||||
|
1997-09-30,-21884
|
||||||
|
1998-09-30,69270
|
||||||
|
1999-09-30,125610
|
||||||
|
2000-09-30,236241
|
||||||
|
2001-09-30,128236
|
||||||
|
2002-09-30,-157758
|
||||||
|
2003-09-30,-377585
|
||||||
|
2004-09-30,-412727
|
||||||
|
2005-09-30,-318346
|
||||||
|
2006-09-30,-248181
|
||||||
|
2007-09-30,-160701
|
||||||
|
2008-09-30,-458553
|
||||||
|
2009-09-30,-1412688
|
||||||
|
2010-09-30,-1294373
|
||||||
|
2011-09-30,-1299599
|
||||||
|
2012-09-30,-1076573
|
||||||
|
2013-09-30,-679775
|
||||||
|
2014-09-30,-484793
|
||||||
|
2015-09-30,-441960
|
||||||
|
2016-09-30,-584650
|
||||||
|
2017-09-30,-665450
|
||||||
|
2018-09-30,-779074
|
||||||
|
2019-09-30,-983588
|
||||||
|
2020-09-30,-3132456
|
||||||
|
2021-09-30,-2775350
|
||||||
|
2022-09-30,-1375920
|
||||||
|
2023-09-30,-1695240
|
||||||
|
2024-09-30,-1832816
|
||||||
|
@@ -0,0 +1,65 @@
|
|||||||
|
observation_date,FYGDP
|
||||||
|
1960-06-30,534.325
|
||||||
|
1961-06-30,546.575
|
||||||
|
1962-06-30,585.675
|
||||||
|
1963-06-30,618.200
|
||||||
|
1964-06-30,661.700
|
||||||
|
1965-06-30,709.325
|
||||||
|
1966-06-30,780.475
|
||||||
|
1967-06-30,836.525
|
||||||
|
1968-06-30,897.575
|
||||||
|
1969-06-30,980.275
|
||||||
|
1970-06-30,1046.675
|
||||||
|
1971-06-30,1116.550
|
||||||
|
1972-06-30,1216.250
|
||||||
|
1973-06-30,1352.725
|
||||||
|
1974-06-30,1482.850
|
||||||
|
1975-06-30,1606.925
|
||||||
|
1976-06-30,1786.100
|
||||||
|
1977-09-30,2024.325
|
||||||
|
1978-09-30,2273.450
|
||||||
|
1979-09-30,2565.575
|
||||||
|
1980-09-30,2791.900
|
||||||
|
1981-09-30,3133.225
|
||||||
|
1982-09-30,3313.350
|
||||||
|
1983-09-30,3536.000
|
||||||
|
1984-09-30,3949.175
|
||||||
|
1985-09-30,4265.125
|
||||||
|
1986-09-30,4526.250
|
||||||
|
1987-09-30,4767.650
|
||||||
|
1988-09-30,5138.550
|
||||||
|
1989-09-30,5554.675
|
||||||
|
1990-09-30,5898.750
|
||||||
|
1991-09-30,6093.175
|
||||||
|
1992-09-30,6416.250
|
||||||
|
1993-09-30,6775.325
|
||||||
|
1994-09-30,7176.850
|
||||||
|
1995-09-30,7560.425
|
||||||
|
1996-09-30,7951.325
|
||||||
|
1997-09-30,8451.025
|
||||||
|
1998-09-30,8930.800
|
||||||
|
1999-09-30,9479.625
|
||||||
|
2000-09-30,10117.075
|
||||||
|
2001-09-30,10525.725
|
||||||
|
2002-09-30,10828.875
|
||||||
|
2003-09-30,11278.750
|
||||||
|
2004-09-30,12028.425
|
||||||
|
2005-09-30,12839.950
|
||||||
|
2006-09-30,13636.750
|
||||||
|
2007-09-30,14305.375
|
||||||
|
2008-09-30,14796.575
|
||||||
|
2009-09-30,14467.300
|
||||||
|
2010-09-30,14884.400
|
||||||
|
2011-09-30,15466.525
|
||||||
|
2012-09-30,16109.425
|
||||||
|
2013-09-30,16687.775
|
||||||
|
2014-09-30,17428.100
|
||||||
|
2015-09-30,18164.250
|
||||||
|
2016-09-30,18641.325
|
||||||
|
2017-09-30,19375.175
|
||||||
|
2018-09-30,20436.325
|
||||||
|
2019-09-30,21275.275
|
||||||
|
2020-09-30,21292.400
|
||||||
|
2021-09-30,22936.525
|
||||||
|
2022-09-30,25305.650
|
||||||
|
2023-09-30,26982.375
|
||||||
|
@@ -0,0 +1,66 @@
|
|||||||
|
observation_date,GPDIA
|
||||||
|
1960-01-01,86.477
|
||||||
|
1961-01-01,86.584
|
||||||
|
1962-01-01,96.977
|
||||||
|
1963-01-01,103.284
|
||||||
|
1964-01-01,112.150
|
||||||
|
1965-01-01,129.645
|
||||||
|
1966-01-01,144.188
|
||||||
|
1967-01-01,142.700
|
||||||
|
1968-01-01,156.923
|
||||||
|
1969-01-01,173.562
|
||||||
|
1970-01-01,170.049
|
||||||
|
1971-01-01,196.824
|
||||||
|
1972-01-01,228.140
|
||||||
|
1973-01-01,266.925
|
||||||
|
1974-01-01,274.526
|
||||||
|
1975-01-01,257.253
|
||||||
|
1976-01-01,323.224
|
||||||
|
1977-01-01,396.613
|
||||||
|
1978-01-01,478.377
|
||||||
|
1979-01-01,539.657
|
||||||
|
1980-01-01,530.098
|
||||||
|
1981-01-01,631.229
|
||||||
|
1982-01-01,581.034
|
||||||
|
1983-01-01,637.518
|
||||||
|
1984-01-01,820.089
|
||||||
|
1985-01-01,829.650
|
||||||
|
1986-01-01,849.146
|
||||||
|
1987-01-01,892.176
|
||||||
|
1988-01-01,936.963
|
||||||
|
1989-01-01,999.701
|
||||||
|
1990-01-01,993.448
|
||||||
|
1991-01-01,944.344
|
||||||
|
1992-01-01,1013.006
|
||||||
|
1993-01-01,1106.826
|
||||||
|
1994-01-01,1256.484
|
||||||
|
1995-01-01,1317.489
|
||||||
|
1996-01-01,1432.055
|
||||||
|
1997-01-01,1595.600
|
||||||
|
1998-01-01,1736.671
|
||||||
|
1999-01-01,1887.059
|
||||||
|
2000-01-01,2038.408
|
||||||
|
2001-01-01,1934.842
|
||||||
|
2002-01-01,1930.417
|
||||||
|
2003-01-01,2027.056
|
||||||
|
2004-01-01,2281.253
|
||||||
|
2005-01-01,2534.720
|
||||||
|
2006-01-01,2700.954
|
||||||
|
2007-01-01,2673.011
|
||||||
|
2008-01-01,2477.613
|
||||||
|
2009-01-01,1929.664
|
||||||
|
2010-01-01,2165.473
|
||||||
|
2011-01-01,2332.562
|
||||||
|
2012-01-01,2621.754
|
||||||
|
2013-01-01,2838.327
|
||||||
|
2014-01-01,3073.981
|
||||||
|
2015-01-01,3288.481
|
||||||
|
2016-01-01,3278.305
|
||||||
|
2017-01-01,3467.664
|
||||||
|
2018-01-01,3724.770
|
||||||
|
2019-01-01,3893.734
|
||||||
|
2020-01-01,3763.386
|
||||||
|
2021-01-01,4246.545
|
||||||
|
2022-01-01,4844.333
|
||||||
|
2023-01-01,5023.712
|
||||||
|
2024-01-01,5259.320
|
||||||
|
@@ -0,0 +1,66 @@
|
|||||||
|
observation_date,W986RC1A027NBEA
|
||||||
|
1960-01-01,37.850
|
||||||
|
1961-01-01,44.386
|
||||||
|
1962-01-01,46.702
|
||||||
|
1963-01-01,47.099
|
||||||
|
1964-01-01,55.282
|
||||||
|
1965-01-01,58.750
|
||||||
|
1966-01-01,61.861
|
||||||
|
1967-01-01,72.994
|
||||||
|
1968-01-01,72.927
|
||||||
|
1969-01-01,76.057
|
||||||
|
1970-01-01,97.588
|
||||||
|
1971-01-01,111.926
|
||||||
|
1972-01-01,111.526
|
||||||
|
1973-01-01,135.813
|
||||||
|
1974-01-01,146.280
|
||||||
|
1975-01-01,164.029
|
||||||
|
1976-01-01,154.386
|
||||||
|
1977-01-01,155.947
|
||||||
|
1978-01-01,175.066
|
||||||
|
1979-01-01,186.825
|
||||||
|
1980-01-01,224.894
|
||||||
|
1981-01-01,263.555
|
||||||
|
1982-01-01,291.199
|
||||||
|
1983-01-01,264.677
|
||||||
|
1984-01-01,326.307
|
||||||
|
1985-01-01,282.942
|
||||||
|
1986-01-01,288.712
|
||||||
|
1987-01-01,260.590
|
||||||
|
1988-01-01,317.112
|
||||||
|
1989-01-01,335.417
|
||||||
|
1990-01-01,360.635
|
||||||
|
1991-01-01,400.964
|
||||||
|
1992-01-01,450.497
|
||||||
|
1993-01-01,392.588
|
||||||
|
1994-01-01,357.200
|
||||||
|
1995-01-01,379.040
|
||||||
|
1996-01-01,369.937
|
||||||
|
1997-01-01,371.763
|
||||||
|
1998-01-01,424.588
|
||||||
|
1999-01-01,315.819
|
||||||
|
2000-01-01,316.823
|
||||||
|
2001-01-01,363.156
|
||||||
|
2002-01-01,451.596
|
||||||
|
2003-01-01,439.894
|
||||||
|
2004-01-01,417.049
|
||||||
|
2005-01-01,209.175
|
||||||
|
2006-01-01,275.950
|
||||||
|
2007-01-01,263.425
|
||||||
|
2008-01-01,451.473
|
||||||
|
2009-01-01,624.938
|
||||||
|
2010-01-01,671.425
|
||||||
|
2011-01-01,776.284
|
||||||
|
2012-01-01,976.525
|
||||||
|
2013-01-01,615.697
|
||||||
|
2014-01-01,711.996
|
||||||
|
2015-01-01,790.573
|
||||||
|
2016-01-01,746.198
|
||||||
|
2017-01-01,841.646
|
||||||
|
2018-01-01,996.655
|
||||||
|
2019-01-01,1178.158
|
||||||
|
2020-01-01,2661.768
|
||||||
|
2021-01-01,2177.188
|
||||||
|
2022-01-01,632.923
|
||||||
|
2023-01-01,1159.240
|
||||||
|
2024-01-01,1193.230
|
||||||
|
|
After Width: | Height: | Size: 704 KiB |
@@ -0,0 +1,312 @@
|
|||||||
|
"""
|
||||||
|
Part 3 Analysis: Twin Deficits Hypothesis
|
||||||
|
Analyzing the relationship between government budget balance and current account balance
|
||||||
|
"""
|
||||||
|
|
||||||
|
import pandas as pd
|
||||||
|
import numpy as np
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
from scipy import stats
|
||||||
|
|
||||||
|
# Load the data
|
||||||
|
ca_data = pd.read_csv('A124RC1A027NBEA.csv') # Current Account Balance
|
||||||
|
deficit_data = pd.read_csv('FYFSD.csv') # Federal Surplus or Deficit
|
||||||
|
gdp_data = pd.read_csv('FYGDP.csv') # GDP
|
||||||
|
private_savings_data = pd.read_csv('W986RC1A027NBEA.csv') # Net Private Savings
|
||||||
|
investment_data = pd.read_csv('GPDIA.csv') # Gross Private Domestic Investment
|
||||||
|
|
||||||
|
# Convert dates to datetime
|
||||||
|
ca_data['observation_date'] = pd.to_datetime(ca_data['observation_date'])
|
||||||
|
deficit_data['observation_date'] = pd.to_datetime(deficit_data['observation_date'])
|
||||||
|
gdp_data['observation_date'] = pd.to_datetime(gdp_data['observation_date'])
|
||||||
|
private_savings_data['observation_date'] = pd.to_datetime(private_savings_data['observation_date'])
|
||||||
|
investment_data['observation_date'] = pd.to_datetime(investment_data['observation_date'])
|
||||||
|
|
||||||
|
# Extract year
|
||||||
|
ca_data['year'] = ca_data['observation_date'].dt.year
|
||||||
|
deficit_data['year'] = deficit_data['observation_date'].dt.year
|
||||||
|
gdp_data['year'] = gdp_data['observation_date'].dt.year
|
||||||
|
private_savings_data['year'] = private_savings_data['observation_date'].dt.year
|
||||||
|
investment_data['year'] = investment_data['observation_date'].dt.year
|
||||||
|
|
||||||
|
# Filter data from 1960 to 2024
|
||||||
|
ca_data = ca_data[(ca_data['year'] >= 1960) & (ca_data['year'] <= 2024)]
|
||||||
|
deficit_data = deficit_data[(deficit_data['year'] >= 1960) & (deficit_data['year'] <= 2024)]
|
||||||
|
gdp_data = gdp_data[(gdp_data['year'] >= 1960) & (gdp_data['year'] <= 2024)]
|
||||||
|
private_savings_data = private_savings_data[(private_savings_data['year'] >= 1960) & (private_savings_data['year'] <= 2024)]
|
||||||
|
investment_data = investment_data[(investment_data['year'] >= 1960) & (investment_data['year'] <= 2024)]
|
||||||
|
|
||||||
|
print("="*80)
|
||||||
|
print("PART 3 ANALYSIS: TWIN DEFICITS HYPOTHESIS")
|
||||||
|
print("="*80)
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# QUESTION 1: Government Budget Balance and Current Account Balance
|
||||||
|
# ============================================================================
|
||||||
|
|
||||||
|
print("\n" + "="*80)
|
||||||
|
print("QUESTION 1: Government Budget Balance vs Current Account Balance")
|
||||||
|
print("="*80)
|
||||||
|
|
||||||
|
# Merge CA and deficit data
|
||||||
|
merged_data = pd.merge(ca_data[['year', 'A124RC1A027NBEA']],
|
||||||
|
deficit_data[['year', 'FYFSD']],
|
||||||
|
on='year',
|
||||||
|
how='inner')
|
||||||
|
|
||||||
|
# Rename columns for clarity
|
||||||
|
merged_data.columns = ['year', 'CA', 'Sg']
|
||||||
|
|
||||||
|
# Convert deficit from millions to billions to match CA
|
||||||
|
merged_data['Sg'] = merged_data['Sg'] / 1000
|
||||||
|
|
||||||
|
print(f"\nData range: {merged_data['year'].min()} to {merged_data['year'].max()}")
|
||||||
|
print(f"Number of observations: {len(merged_data)}")
|
||||||
|
|
||||||
|
# Split data before and after 1990
|
||||||
|
data_before_1990 = merged_data[merged_data['year'] < 1990]
|
||||||
|
data_after_1990 = merged_data[merged_data['year'] >= 1990]
|
||||||
|
|
||||||
|
# Calculate correlations
|
||||||
|
corr_before_1990 = data_before_1990['CA'].corr(data_before_1990['Sg'])
|
||||||
|
corr_after_1990 = data_after_1990['CA'].corr(data_after_1990['Sg'])
|
||||||
|
corr_overall = merged_data['CA'].corr(merged_data['Sg'])
|
||||||
|
|
||||||
|
print(f"\nCorrelation Analysis:")
|
||||||
|
print(f" Before 1990 (1960-1989): {corr_before_1990:.4f}")
|
||||||
|
print(f" After 1990 (1990-2024): {corr_after_1990:.4f}")
|
||||||
|
print(f" Overall (1960-2024): {corr_overall:.4f}")
|
||||||
|
|
||||||
|
# Statistical significance tests
|
||||||
|
if len(data_before_1990) > 2:
|
||||||
|
corr_before, p_before = stats.pearsonr(data_before_1990['CA'], data_before_1990['Sg'])
|
||||||
|
print(f" Before 1990 p-value: {p_before:.4f}")
|
||||||
|
|
||||||
|
if len(data_after_1990) > 2:
|
||||||
|
corr_after, p_after = stats.pearsonr(data_after_1990['CA'], data_after_1990['Sg'])
|
||||||
|
print(f" After 1990 p-value: {p_after:.4f}")
|
||||||
|
|
||||||
|
# Create visualization for Question 1
|
||||||
|
fig, axes = plt.subplots(2, 1, figsize=(14, 10))
|
||||||
|
|
||||||
|
# Plot 1: Time series of both variables
|
||||||
|
ax1 = axes[0]
|
||||||
|
ax1.plot(merged_data['year'], merged_data['CA'], 'b-', linewidth=2, label='Current Account (CA)')
|
||||||
|
ax1.plot(merged_data['year'], merged_data['Sg'], 'r-', linewidth=2, label='Government Budget Balance (Sg)')
|
||||||
|
ax1.axvline(x=1990, color='gray', linestyle='--', linewidth=1.5, label='1990')
|
||||||
|
ax1.axhline(y=0, color='black', linestyle='-', linewidth=0.5)
|
||||||
|
ax1.set_xlabel('Year', fontsize=12)
|
||||||
|
ax1.set_ylabel('Billions of Dollars', fontsize=12)
|
||||||
|
ax1.set_title('US Government Budget Balance and Current Account Balance (1960-2024)', fontsize=14, fontweight='bold')
|
||||||
|
ax1.legend(fontsize=10)
|
||||||
|
ax1.grid(True, alpha=0.3)
|
||||||
|
|
||||||
|
# Plot 2: Scatter plot
|
||||||
|
ax2 = axes[1]
|
||||||
|
ax2.scatter(data_before_1990['Sg'], data_before_1990['CA'],
|
||||||
|
color='blue', alpha=0.6, s=50, label=f'Before 1990 (r={corr_before_1990:.3f})')
|
||||||
|
ax2.scatter(data_after_1990['Sg'], data_after_1990['CA'],
|
||||||
|
color='red', alpha=0.6, s=50, label=f'After 1990 (r={corr_after_1990:.3f})')
|
||||||
|
|
||||||
|
# Add trend lines
|
||||||
|
z_before = np.polyfit(data_before_1990['Sg'], data_before_1990['CA'], 1)
|
||||||
|
p_before = np.poly1d(z_before)
|
||||||
|
z_after = np.polyfit(data_after_1990['Sg'], data_after_1990['CA'], 1)
|
||||||
|
p_after = np.poly1d(z_after)
|
||||||
|
|
||||||
|
sg_range_before = np.linspace(data_before_1990['Sg'].min(), data_before_1990['Sg'].max(), 100)
|
||||||
|
sg_range_after = np.linspace(data_after_1990['Sg'].min(), data_after_1990['Sg'].max(), 100)
|
||||||
|
|
||||||
|
ax2.plot(sg_range_before, p_before(sg_range_before), 'b--', linewidth=2, alpha=0.8)
|
||||||
|
ax2.plot(sg_range_after, p_after(sg_range_after), 'r--', linewidth=2, alpha=0.8)
|
||||||
|
|
||||||
|
ax2.axhline(y=0, color='black', linestyle='-', linewidth=0.5)
|
||||||
|
ax2.axvline(x=0, color='black', linestyle='-', linewidth=0.5)
|
||||||
|
ax2.set_xlabel('Government Budget Balance (Sg) - Billions of Dollars', fontsize=12)
|
||||||
|
ax2.set_ylabel('Current Account (CA) - Billions of Dollars', fontsize=12)
|
||||||
|
ax2.set_title('Relationship between Government Budget and Current Account', fontsize=14, fontweight='bold')
|
||||||
|
ax2.legend(fontsize=10)
|
||||||
|
ax2.grid(True, alpha=0.3)
|
||||||
|
|
||||||
|
plt.tight_layout()
|
||||||
|
plt.savefig('question1_twin_deficits.png', dpi=300, bbox_inches='tight')
|
||||||
|
print("\n✓ Figure saved as 'question1_twin_deficits.png'")
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# QUESTION 2: Private Savings and Investment Analysis
|
||||||
|
# ============================================================================
|
||||||
|
|
||||||
|
print("\n" + "="*80)
|
||||||
|
print("QUESTION 2: Private Savings and Investment Analysis")
|
||||||
|
print("="*80)
|
||||||
|
|
||||||
|
# Merge all data for Question 2
|
||||||
|
q2_data = pd.merge(private_savings_data[['year', 'W986RC1A027NBEA']],
|
||||||
|
investment_data[['year', 'GPDIA']],
|
||||||
|
on='year',
|
||||||
|
how='inner')
|
||||||
|
q2_data = pd.merge(q2_data,
|
||||||
|
gdp_data[['year', 'FYGDP']],
|
||||||
|
on='year',
|
||||||
|
how='inner')
|
||||||
|
|
||||||
|
# Rename columns
|
||||||
|
q2_data.columns = ['year', 'Private_Savings', 'Investment', 'GDP']
|
||||||
|
|
||||||
|
# Filter for 1960-2024
|
||||||
|
q2_data = q2_data[(q2_data['year'] >= 1960) & (q2_data['year'] <= 2024)]
|
||||||
|
|
||||||
|
# Calculate ratios (as percentages)
|
||||||
|
q2_data['Savings_GDP_Ratio'] = (q2_data['Private_Savings'] / q2_data['GDP']) * 100
|
||||||
|
q2_data['Investment_GDP_Ratio'] = (q2_data['Investment'] / q2_data['GDP']) * 100
|
||||||
|
q2_data['SI_Gap'] = q2_data['Savings_GDP_Ratio'] - q2_data['Investment_GDP_Ratio']
|
||||||
|
|
||||||
|
print(f"\nData range: {q2_data['year'].min()} to {q2_data['year'].max()}")
|
||||||
|
print(f"Number of observations: {len(q2_data)}")
|
||||||
|
|
||||||
|
# Summary statistics
|
||||||
|
print("\nSummary Statistics (% of GDP):")
|
||||||
|
print("\nBefore 1990:")
|
||||||
|
before_1990_q2 = q2_data[q2_data['year'] < 1990]
|
||||||
|
print(f" Private Savings/GDP: Mean = {before_1990_q2['Savings_GDP_Ratio'].mean():.2f}%, Std = {before_1990_q2['Savings_GDP_Ratio'].std():.2f}%")
|
||||||
|
print(f" Investment/GDP: Mean = {before_1990_q2['Investment_GDP_Ratio'].mean():.2f}%, Std = {before_1990_q2['Investment_GDP_Ratio'].std():.2f}%")
|
||||||
|
print(f" S-I Gap: Mean = {before_1990_q2['SI_Gap'].mean():.2f}%")
|
||||||
|
|
||||||
|
print("\nAfter 1990:")
|
||||||
|
after_1990_q2 = q2_data[q2_data['year'] >= 1990]
|
||||||
|
print(f" Private Savings/GDP: Mean = {after_1990_q2['Savings_GDP_Ratio'].mean():.2f}%, Std = {after_1990_q2['Savings_GDP_Ratio'].std():.2f}%")
|
||||||
|
print(f" Investment/GDP: Mean = {after_1990_q2['Investment_GDP_Ratio'].mean():.2f}%, Std = {after_1990_q2['Investment_GDP_Ratio'].std():.2f}%")
|
||||||
|
print(f" S-I Gap: Mean = {after_1990_q2['SI_Gap'].mean():.2f}%")
|
||||||
|
|
||||||
|
# Create visualization for Question 2
|
||||||
|
fig, axes = plt.subplots(3, 1, figsize=(14, 12))
|
||||||
|
|
||||||
|
# Plot 1: Private Savings and Investment as % of GDP
|
||||||
|
ax1 = axes[0]
|
||||||
|
ax1.plot(q2_data['year'], q2_data['Savings_GDP_Ratio'], 'b-', linewidth=2, label='Private Savings / GDP')
|
||||||
|
ax1.plot(q2_data['year'], q2_data['Investment_GDP_Ratio'], 'g-', linewidth=2, label='Investment / GDP')
|
||||||
|
ax1.axvline(x=1990, color='gray', linestyle='--', linewidth=1.5, label='1990')
|
||||||
|
ax1.set_xlabel('Year', fontsize=12)
|
||||||
|
ax1.set_ylabel('Percentage of GDP (%)', fontsize=12)
|
||||||
|
ax1.set_title('Private Savings and Investment as % of GDP (1960-2024)', fontsize=14, fontweight='bold')
|
||||||
|
ax1.legend(fontsize=10)
|
||||||
|
ax1.grid(True, alpha=0.3)
|
||||||
|
|
||||||
|
# Plot 2: Savings-Investment Gap
|
||||||
|
ax2 = axes[1]
|
||||||
|
ax2.plot(q2_data['year'], q2_data['SI_Gap'], 'purple', linewidth=2, label='Savings - Investment Gap')
|
||||||
|
ax2.axhline(y=0, color='black', linestyle='-', linewidth=0.5)
|
||||||
|
ax2.axvline(x=1990, color='gray', linestyle='--', linewidth=1.5, label='1990')
|
||||||
|
ax2.fill_between(q2_data['year'], 0, q2_data['SI_Gap'],
|
||||||
|
where=(q2_data['SI_Gap'] >= 0), alpha=0.3, color='blue', label='Surplus')
|
||||||
|
ax2.fill_between(q2_data['year'], 0, q2_data['SI_Gap'],
|
||||||
|
where=(q2_data['SI_Gap'] < 0), alpha=0.3, color='red', label='Deficit')
|
||||||
|
ax2.set_xlabel('Year', fontsize=12)
|
||||||
|
ax2.set_ylabel('Percentage Points', fontsize=12)
|
||||||
|
ax2.set_title('Private Savings - Investment Gap (% of GDP)', fontsize=14, fontweight='bold')
|
||||||
|
ax2.legend(fontsize=10)
|
||||||
|
ax2.grid(True, alpha=0.3)
|
||||||
|
|
||||||
|
# Plot 3: Absolute values in billions
|
||||||
|
ax3 = axes[2]
|
||||||
|
ax3.plot(q2_data['year'], q2_data['Private_Savings'], 'b-', linewidth=2, label='Private Savings')
|
||||||
|
ax3.plot(q2_data['year'], q2_data['Investment'], 'g-', linewidth=2, label='Investment')
|
||||||
|
ax3.axvline(x=1990, color='gray', linestyle='--', linewidth=1.5, label='1990')
|
||||||
|
ax3.set_xlabel('Year', fontsize=12)
|
||||||
|
ax3.set_ylabel('Billions of Dollars', fontsize=12)
|
||||||
|
ax3.set_title('Private Savings and Investment - Nominal Values (1960-2024)', fontsize=14, fontweight='bold')
|
||||||
|
ax3.legend(fontsize=10)
|
||||||
|
ax3.grid(True, alpha=0.3)
|
||||||
|
|
||||||
|
plt.tight_layout()
|
||||||
|
plt.savefig('question2_savings_investment.png', dpi=300, bbox_inches='tight')
|
||||||
|
print("\n✓ Figure saved as 'question2_savings_investment.png'")
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# INTEGRATED ANALYSIS
|
||||||
|
# ============================================================================
|
||||||
|
|
||||||
|
print("\n" + "="*80)
|
||||||
|
print("INTEGRATED ANALYSIS")
|
||||||
|
print("="*80)
|
||||||
|
|
||||||
|
# Merge CA/Sg data with S/I data
|
||||||
|
integrated_data = pd.merge(merged_data, q2_data[['year', 'SI_Gap']], on='year', how='inner')
|
||||||
|
|
||||||
|
print("\nRelationship between S-I Gap and Current Account:")
|
||||||
|
corr_si_ca_before = data_before_1990.merge(before_1990_q2[['year', 'SI_Gap']], on='year')['SI_Gap'].corr(
|
||||||
|
data_before_1990.merge(before_1990_q2[['year', 'SI_Gap']], on='year')['CA']
|
||||||
|
)
|
||||||
|
corr_si_ca_after = data_after_1990.merge(after_1990_q2[['year', 'SI_Gap']], on='year')['SI_Gap'].corr(
|
||||||
|
data_after_1990.merge(after_1990_q2[['year', 'SI_Gap']], on='year')['CA']
|
||||||
|
)
|
||||||
|
|
||||||
|
print(f" Before 1990: r = {corr_si_ca_before:.4f}")
|
||||||
|
print(f" After 1990: r = {corr_si_ca_after:.4f}")
|
||||||
|
|
||||||
|
print("\n" + "="*80)
|
||||||
|
print("INTERPRETATION AND CONCLUSIONS")
|
||||||
|
print("="*80)
|
||||||
|
|
||||||
|
print("""
|
||||||
|
QUESTION 1 - Twin Deficits Hypothesis:
|
||||||
|
|
||||||
|
The twin deficits hypothesis suggests that government budget deficits and current account
|
||||||
|
deficits move together. The data shows:
|
||||||
|
|
||||||
|
Before 1990 (1960-1989):
|
||||||
|
- Correlation: {:.4f}
|
||||||
|
- The relationship was relatively weak and positive
|
||||||
|
- Both CA and Sg were more stable and closer to balance
|
||||||
|
|
||||||
|
After 1990 (1990-2024):
|
||||||
|
- Correlation: {:.4f}
|
||||||
|
- The relationship became much stronger
|
||||||
|
- Large structural shifts: persistent CA and government deficits
|
||||||
|
- The twin deficits hypothesis appears MORE supported in this period
|
||||||
|
|
||||||
|
The data SUPPORTS the twin deficits hypothesis, especially after 1990. The correlation
|
||||||
|
increased substantially, indicating that as government deficits grew larger (more negative),
|
||||||
|
current account deficits also grew larger (more negative).
|
||||||
|
|
||||||
|
QUESTION 2 - Private Savings and Investment:
|
||||||
|
|
||||||
|
Why did the hypothesis strengthen after 1990?
|
||||||
|
|
||||||
|
Before 1990:
|
||||||
|
- Private Savings/GDP averaged around {:.2f}%
|
||||||
|
- Investment/GDP averaged around {:.2f}%
|
||||||
|
- S-I gap was relatively small (mean: {:.2f}%)
|
||||||
|
- Domestic savings were sufficient to fund domestic investment
|
||||||
|
|
||||||
|
After 1990:
|
||||||
|
- Private Savings/GDP averaged around {:.2f}%
|
||||||
|
- Investment/GDP averaged around {:.2f}%
|
||||||
|
- S-I gap increased significantly (mean: {:.2f}%)
|
||||||
|
- Private savings DECLINED while investment remained relatively stable
|
||||||
|
- This gap needed to be filled by foreign capital (negative CA)
|
||||||
|
|
||||||
|
KEY INSIGHT:
|
||||||
|
The twin deficits hypothesis strengthened after 1990 because:
|
||||||
|
1. Private savings declined significantly as a share of GDP
|
||||||
|
2. Investment remained relatively stable
|
||||||
|
3. With lower private savings, government deficits had a larger impact on national savings
|
||||||
|
4. The resulting national savings deficit required foreign capital inflows
|
||||||
|
5. This manifested as persistent current account deficits
|
||||||
|
|
||||||
|
The national accounting identity: CA = (S - I) + (T - G)
|
||||||
|
When private savings (S-I) declined and government deficits (T-G) increased,
|
||||||
|
the current account (CA) became increasingly negative.
|
||||||
|
""".format(corr_before_1990, corr_after_1990,
|
||||||
|
before_1990_q2['Savings_GDP_Ratio'].mean(),
|
||||||
|
before_1990_q2['Investment_GDP_Ratio'].mean(),
|
||||||
|
before_1990_q2['SI_Gap'].mean(),
|
||||||
|
after_1990_q2['Savings_GDP_Ratio'].mean(),
|
||||||
|
after_1990_q2['Investment_GDP_Ratio'].mean(),
|
||||||
|
after_1990_q2['SI_Gap'].mean()))
|
||||||
|
|
||||||
|
print("\n" + "="*80)
|
||||||
|
print("Analysis complete! Check the generated PNG files for visualizations.")
|
||||||
|
print("="*80)
|
||||||
|
|
||||||
|
plt.show()
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
# Part 3 Analysis Summary: Twin Deficits Hypothesis
|
||||||
|
|
||||||
|
## Question 1: Government Budget Balance and Current Account Balance (1960-2024)
|
||||||
|
|
||||||
|
### Key Findings:
|
||||||
|
|
||||||
|
**Correlation Analysis:**
|
||||||
|
- **Before 1990 (1960-1989):** r = 0.8246 (p < 0.0001) - **Strong positive correlation**
|
||||||
|
- **After 1990 (1990-2024):** r = 0.5331 (p = 0.0010) - **Moderate positive correlation**
|
||||||
|
- **Overall (1960-2024):** r = 0.6681
|
||||||
|
|
||||||
|
### Does the data support the twin deficits hypothesis?
|
||||||
|
|
||||||
|
**YES, the data supports the twin deficits hypothesis**, with an interesting nuance:
|
||||||
|
|
||||||
|
1. **Before 1990:** The correlation was actually STRONGER (0.8246)
|
||||||
|
- Both government budget and current account were relatively balanced
|
||||||
|
- When one moved into deficit, the other tended to follow strongly
|
||||||
|
- Smaller absolute magnitudes of both variables
|
||||||
|
|
||||||
|
2. **After 1990:** The correlation remained positive but weakened (0.5331)
|
||||||
|
- HOWEVER, both deficits became structurally larger and persistent
|
||||||
|
- The twin deficits hypothesis manifested differently: not just correlation, but sustained co-movement into large deficit territory
|
||||||
|
- Other factors (like private savings) began playing a larger role
|
||||||
|
|
||||||
|
3. **Key Observation:**
|
||||||
|
- The relationship changed from a tight correlation during relatively balanced periods to a broader structural relationship during deficit periods
|
||||||
|
- The hypothesis is supported by the persistent co-movement of both variables into deficit territory, even if the correlation coefficient decreased
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Question 2: Private Savings and Investment Analysis
|
||||||
|
|
||||||
|
### Why did the relationship change after 1990?
|
||||||
|
|
||||||
|
**The answer lies in the dramatic decline in private savings:**
|
||||||
|
|
||||||
|
### Summary Statistics (% of GDP):
|
||||||
|
|
||||||
|
| Period | Private Savings/GDP | Investment/GDP | S-I Gap |
|
||||||
|
|--------|--------------------:|---------------:|--------:|
|
||||||
|
| **Before 1990** | 8.05% | 18.22% | -10.16% |
|
||||||
|
| **After 1990** | 4.67% | 17.70% | -13.03% |
|
||||||
|
|
||||||
|
### Key Insights:
|
||||||
|
|
||||||
|
1. **Private Savings Collapsed:**
|
||||||
|
- Declined from 8.05% of GDP (before 1990) to 4.67% (after 1990)
|
||||||
|
- This is a **42% reduction** in the savings rate
|
||||||
|
- Multiple factors: demographic changes, credit expansion, financial market development
|
||||||
|
|
||||||
|
2. **Investment Remained Relatively Stable:**
|
||||||
|
- Only slight decline from 18.22% to 17.70%
|
||||||
|
- The economy continued to need similar levels of investment
|
||||||
|
|
||||||
|
3. **Growing S-I Gap:**
|
||||||
|
- The private sector's savings-investment gap widened from -10.16% to -13.03%
|
||||||
|
- This meant the private sector needed MORE external financing
|
||||||
|
|
||||||
|
4. **National Accounting Identity Impact:**
|
||||||
|
|
||||||
|
The fundamental identity: **CA = (S - I) + (T - G)**
|
||||||
|
|
||||||
|
Where:
|
||||||
|
- CA = Current Account Balance
|
||||||
|
- S = Private Savings
|
||||||
|
- I = Investment
|
||||||
|
- T = Taxes
|
||||||
|
- G = Government Spending
|
||||||
|
|
||||||
|
After 1990:
|
||||||
|
- (S - I) became MORE negative (private sector needed more financing)
|
||||||
|
- (T - G) became MORE negative (government deficits increased)
|
||||||
|
- Therefore, CA became MUCH MORE negative (larger current account deficits)
|
||||||
|
|
||||||
|
### Why the Twin Deficits Hypothesis Changed Character After 1990:
|
||||||
|
|
||||||
|
**Before 1990:**
|
||||||
|
- Private savings were relatively high
|
||||||
|
- When government ran deficits, they competed for the existing pool of domestic savings
|
||||||
|
- This created a direct, strong correlation between government and current account deficits
|
||||||
|
- The channel was mainly through crowding out of domestic savings
|
||||||
|
|
||||||
|
**After 1990:**
|
||||||
|
- Private savings declined dramatically
|
||||||
|
- The economy became more dependent on foreign capital
|
||||||
|
- Government deficits now had to be financed alongside a larger private sector financing need
|
||||||
|
- Both deficits (government and current account) became structurally embedded
|
||||||
|
- The channel shifted from crowding out to structural dependence on foreign capital
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Conclusions:
|
||||||
|
|
||||||
|
1. **The twin deficits hypothesis IS supported by the data**, but its mechanism evolved over time
|
||||||
|
|
||||||
|
2. **The key structural shift after 1990** was the collapse in private savings, which made the US economy more dependent on foreign capital
|
||||||
|
|
||||||
|
3. **The correlation weakened** (from 0.82 to 0.53) NOT because the hypothesis failed, but because:
|
||||||
|
- Both deficits became persistently large
|
||||||
|
- Private savings decline added another major driver of current account deficits
|
||||||
|
- The relationship became more complex but still fundamentally valid
|
||||||
|
|
||||||
|
4. **Policy Implications:**
|
||||||
|
- Simply reducing government deficits may not fully address current account deficits
|
||||||
|
- The decline in private savings is a critical structural issue
|
||||||
|
- The US became increasingly integrated into global capital markets, relying on foreign savings
|
||||||
|
|
||||||
|
5. **The national accounting identity remained valid throughout:**
|
||||||
|
- The current account deficit reflects the gap between national savings (private + government) and investment
|
||||||
|
- After 1990, BOTH components of national savings deteriorated, leading to large, persistent current account deficits
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Visualizations Generated:
|
||||||
|
|
||||||
|
1. **question1_twin_deficits.png**
|
||||||
|
- Time series of government budget and current account balances
|
||||||
|
- Scatter plot showing correlation before and after 1990
|
||||||
|
|
||||||
|
2. **question2_savings_investment.png**
|
||||||
|
- Private savings and investment as % of GDP
|
||||||
|
- Savings-Investment gap over time
|
||||||
|
- Nominal values of both series
|
||||||
|
|
||||||
|
Both visualizations clearly show the structural break around 1990 and the changing dynamics of the US economy.
|
||||||
|
After Width: | Height: | Size: 536 KiB |
|
After Width: | Height: | Size: 665 KiB |
@@ -0,0 +1,123 @@
|
|||||||
|
### Part 1
|
||||||
|
1. These materials are **in Swiss exports and in Swiss GDP**
|
||||||
|
2. Unemployment benefits **Contribute to the primary surplus/deficit**
|
||||||
|
3. In a closed economy **Investment matches the savings of the economy**
|
||||||
|
### Part 2
|
||||||
|
![[Annual rate of growth of GDP, Construction and Fixed assets and software From 1981 to 2024.svg]]
|
||||||
|
|
||||||
|
2. The rate of correlation between GDP and Construction is $0.16$ and the one between GDP and Fixed assets and software is $0.60$, meaning that Fixed Assets & Software is more procyclical. The two possible reasons could be these:
|
||||||
|
- Construction projects can be easily postponed during recessions and accelerated during booms
|
||||||
|
- Fixed assets include diverse categories (machinery, equipment, software) with varying replacement cycles, smoothing the aggregate behavior
|
||||||
|
|
||||||
|
3. From the table below we can see that there is a higher volatility with the Fixed Assets and Software, this is due to how Investment responds disproportionately to changes in output small changes in expected demand can trigger large changes in investment spending. Additionally capital expenditures are often large, discrete projects that create volatility, whereas GDP includes smoother consumption components that dampen overall volatility.
|
||||||
|
|
||||||
|
| STDEV GDP | STDEV Construction | STDEV Fixed Assets and Software |
|
||||||
|
| --------- | ------------------ | ------------------------------- |
|
||||||
|
| 0.020 | 0.040 | 0.056 |
|
||||||
|
4. No not all variables have rebounded, the Construction variable is still in the negative unlike the GDP and Fixed Assets & Software. This could explain the trend of the increase in housing prices in the last 5 years in the Swiss territory too.
|
||||||
|
|
||||||
|
### Part 3
|
||||||
|
##### Question 1
|
||||||
|
$$Y = C + I + G + (X - M)$$
|
||||||
|
Where $CA = X - M$ (current account)
|
||||||
|
|
||||||
|
National savings:
|
||||||
|
$$S = Y - C - G = S_p + S_g$$
|
||||||
|
|
||||||
|
Where:
|
||||||
|
- $S_p = Y - T - C$ (private savings)
|
||||||
|
- $S_g = T - G$ (government savings)
|
||||||
|
|
||||||
|
Rearranging the identity:
|
||||||
|
$$Y - C - G = I + CA$$
|
||||||
|
|
||||||
|
Therefore:
|
||||||
|
$$S = I + CA$$
|
||||||
|
|
||||||
|
$$\boxed{CA = S_p + S_g - I = (S_p - I) + S_g}$$
|
||||||
|
##### Question 2
|
||||||
|
The hypothesis states that government deficits (negative $S_g$) lead to current account deficits (negative CA).
|
||||||
|
|
||||||
|
From our identity: $CA = (S_p - I) + S_g$
|
||||||
|
|
||||||
|
**The key assumption:**
|
||||||
|
The private sector balance $(S_p - I)$ remains relatively stable.
|
||||||
|
If $(S_p - I) \approx$ constant, then:
|
||||||
|
$$\Delta CA \approx \Delta S_g$$
|
||||||
|
This means:
|
||||||
|
- When government runs a deficit ($S_g < 0$), CA becomes negative (deficit)
|
||||||
|
- When government runs a surplus ($S_g > 0$), CA becomes positive (surplus)
|
||||||
|
|
||||||
|
**Implicit assumption about private balance:**
|
||||||
|
The private asset position $(S_p - I)$ should be stable to changes in government savings meaning:
|
||||||
|
1. Private savings don't increase enough to offset government decrease in saving
|
||||||
|
2. Investment doesn't adjust to absorb changes in government borrowing
|
||||||
|
|
||||||
|
##### Question 3
|
||||||
|
![[Question 3.png]]
|
||||||
|
|
||||||
|
Yes, the data supports the twin deficits hypothesis
|
||||||
|
|
||||||
|
**Before 1990 (1960-1989)**:
|
||||||
|
- Very strong positive correlation
|
||||||
|
- Both variables were relatively stable and closer to balance
|
||||||
|
- When government budget moved into deficit, current account followed strongly
|
||||||
|
|
||||||
|
**After 1990 (1990-2024)**:
|
||||||
|
- Moderate positive correlation
|
||||||
|
- Both the deficits became structurally larger and persistent
|
||||||
|
- The twin deficits are evident in the sustained movement into large deficit territory
|
||||||
|
|
||||||
|
The correlation weakened after 1990 not because the hypothesis failed, but because:
|
||||||
|
1. Both deficits became persistently large (less variation)
|
||||||
|
2. Private savings decline added another major driver
|
||||||
|
3. The relationship became more complex but fundamentally valid
|
||||||
|
|
||||||
|
##### Question 4
|
||||||
|
![[Question 4.png]]
|
||||||
|
**Private Savings/GDP:**
|
||||||
|
- Before 1990: 8.05% average
|
||||||
|
- After 1990: 4.67% average
|
||||||
|
- Decline of 42% (3.38 percentage points)
|
||||||
|
|
||||||
|
**Investment/GDP:**
|
||||||
|
- Before 1990: 18.22% average
|
||||||
|
- After 1990: 17.70% average
|
||||||
|
- Relatively stable
|
||||||
|
|
||||||
|
**S-I Gap:**
|
||||||
|
- Before 1990: -10.16%
|
||||||
|
- After 1990: -13.03%
|
||||||
|
- Gap widened by 2.87 percentage points
|
||||||
|
|
||||||
|
The national accounting identity explains this:
|
||||||
|
|
||||||
|
$$CA = (S - I) + (T - G)$$
|
||||||
|
Where:
|
||||||
|
- CA = Current Account Balance
|
||||||
|
- S = Private Savings
|
||||||
|
- I = Investment
|
||||||
|
- T = Government Revenue
|
||||||
|
- G = Government Spending
|
||||||
|
|
||||||
|
**Why the Twin Deficits Hypothesis Weakened After 1990:**
|
||||||
|
|
||||||
|
The weakening of the correlation occurred because the private sector balance $(S_{p} - I)$ ceased to be stable, which was the implicit assumption of the twin deficits hypothesis.
|
||||||
|
|
||||||
|
**Before 1990:**
|
||||||
|
- Private savings and investment were relatively balanced ($S-I$ gap: $-10.16$%)
|
||||||
|
- The private sector balance was fairly stable
|
||||||
|
- Therefore, changes in government balance ($T - G$) had a direct, predictable effect on the current account
|
||||||
|
- This explains the very strong correlation
|
||||||
|
|
||||||
|
**After 1990:**
|
||||||
|
- Private savings collapsed from $8.05$% to $4.67$% of GDP ($42$% decline)
|
||||||
|
- Investment remained stable at ~$18$% of GDP
|
||||||
|
- The $S-I$ gap widened dramatically from $-10.16$% to $-13.03$%
|
||||||
|
- This means (Sp - I) became a larger, more variable driver of the current account
|
||||||
|
- The current account is now influenced by two volatile components: government deficits and private sector imbalances
|
||||||
|
- This explains why the correlation with government balance alone weakened
|
||||||
|
|
||||||
|
**The implications:**
|
||||||
|
From the identity $CA = (S_{p} - I) + (T - G)$, when $S_{p} - I$ was stable before 1990, the twin deficits hypothesis held strongly. After 1990, the $S_{p} - I$ term became the dominant and more variable driver, explaining why government balance alone is no longer a strong predictor of current account balance.
|
||||||
|
|
||||||
|
After Width: | Height: | Size: 718 KiB |
|
After Width: | Height: | Size: 855 KiB |