GBE PS1 done
This commit is contained in:
1 parent
2653afd097
commit
3010ff9ddc
35 files changed
+2069
-12
No files matched your search
Binary file not shown.
@@ -0,0 +1 @@
|
||||
{"_joins":[],"_contexts":[],"_links":[],"_sort":{"field":"rank","asc":false,"group":false,"recursive":false},"_template":"","_templateName":"","defaultSticker":"","defaultColor":"","readMode":false,"fullWidth":false}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<svg version="1.1" viewBox="0.0 0.0 1158.0 645.0" fill="none" stroke="none" stroke-linecap="square" stroke-miterlimit="10" width="1158" height="645" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="M0 0L1158.0 0L1158.0 645.0L0 645.0L0 0Z" fill-rule="nonzero"/><path stroke="#cccccc" stroke-width="1.0" stroke-linecap="butt" d="M74.5 545.5L1125.5 545.5" fill-rule="nonzero"/><path stroke="#cccccc" stroke-width="1.0" stroke-linecap="butt" d="M74.5 469.5L1125.5 469.5" fill-rule="nonzero"/><path stroke="#cccccc" stroke-width="1.0" stroke-linecap="butt" d="M74.5 393.5L1125.5 393.5" fill-rule="nonzero"/><path stroke="#333333" stroke-width="1.0" stroke-linecap="butt" d="M74.5 317.5L1125.5 317.5" fill-rule="nonzero"/><path stroke="#cccccc" stroke-width="1.0" stroke-linecap="butt" d="M74.5 241.5L1125.5 241.5" fill-rule="nonzero"/><path stroke="#cccccc" stroke-width="1.0" stroke-linecap="butt" d="M74.5 166.5L1125.5 166.5" fill-rule="nonzero"/><path stroke="#cccccc" stroke-width="1.0" stroke-linecap="butt" d="M74.5 90.5L1125.5 90.5" fill-rule="nonzero"/><clipPath id="id_0"><path d="M74.25 90.25L1125.75 90.25L1125.75 545.1477L74.25 545.1477L74.25 90.25Z" clip-rule="nonzero"/></clipPath><path stroke="#4f81bd" stroke-width="2.0" stroke-linecap="butt" clip-path="url(#id_0)" d="M85.933334 293.39682C85.933334 293.39682 101.51111 334.73895 109.3 337.19537C117.08889 339.65182 124.87778 318.96548 132.66667 308.13544C140.45555 297.3054 148.24445 279.90524 156.03334 272.21515C163.82222 264.5251 171.61111 259.15167 179.4 261.99503C187.18889 264.83838 194.97778 283.96622 202.76666 289.2753C210.55556 294.58438 218.34445 297.3994 226.13333 293.84952C233.92223 290.29962 241.7111 274.96585 249.5 267.97595C257.28888 260.98605 265.0778 253.01149 272.86667 251.91008C280.65555 250.80869 288.44446 248.09367 296.23334 261.36755C304.02222 274.64142 311.8111 322.0645 319.6 331.55334C327.3889 341.04218 335.17776 320.27335 342.96667 318.30048C350.75555 316.32764 358.54443 323.0518 366.33334 319.71622C374.12222 316.38068 381.9111 299.84225 389.7 298.2872C397.4889 296.73215 405.27777 308.57397 413.06668 310.3859C420.85556 312.19785 428.64444 313.20505 436.43332 309.15878C444.22223 305.1125 452.0111 291.7694 459.8 286.10822C467.5889 280.44702 475.37778 274.11804 483.16666 275.19156C490.95557 276.2651 498.74445 294.7033 506.53333 292.54938C514.3222 290.39548 522.1111 262.15283 529.9 262.26813C537.6889 262.38342 545.4778 284.9736 553.26666 293.24115C561.05554 301.50867 568.8444 307.0565 576.63336 311.87332C584.42224 316.6902 592.2111 327.73727 600.0 322.14224C607.7889 316.5472 615.57776 286.47568 623.36664 278.3032C631.1556 270.1307 638.94446 277.00015 646.73334 273.10736C654.5222 269.21454 662.3111 257.58835 670.1 254.94627C677.8889 252.30423 685.6778 253.25462 693.4667 257.25504C701.25555 261.25543 709.04443 263.97958 716.8333 278.9487C724.6222 293.91782 732.41113 348.8525 740.2 347.06964C747.9889 345.28677 755.7778 276.7376 763.56665 268.25143C771.3555 259.7653 779.1445 290.74637 786.93335 296.15265C794.7222 301.55896 802.5111 301.72778 810.3 300.68924C818.08887 299.6507 825.8778 293.50558 833.6667 289.92145C841.45557 286.3373 849.24445 278.23718 857.0333 279.18445C864.8222 280.1317 872.6111 294.0466 880.4 295.60504C888.1889 297.1635 895.9778 288.424 903.76666 288.53522C911.55554 288.64642 919.3444 299.84778 927.13336 296.27234C934.92224 292.6969 942.7111 266.3319 950.5 267.08258C958.2889 267.83325 966.07776 286.63794 973.86664 300.77637C981.6556 314.9148 989.44446 364.86823 997.23334 351.91318C1005.0222 338.9581 1012.8111 237.81711 1020.6 223.04604C1028.3889 208.27498 1036.1777 249.6121 1043.9667 263.2868C1051.7556 276.9615 1059.5444 299.53394 1067.3334 305.0942C1075.1222 310.6545 1082.9111 296.96518 1090.7 296.6485C1098.4889 296.33185 1114.0667 303.19424 1114.0667 303.19424" fill-rule="nonzero"/><path stroke="#c0504d" stroke-width="2.0" stroke-linecap="butt" clip-path="url(#id_0)" d="M85.933334 253.40627C85.933334 253.40627 101.51111 358.35364 109.3 354.59195C117.08889 350.83026 124.87778 251.19505 132.66667 230.83609C140.45555 210.47711 148.24445 220.72595 156.03334 232.43813C163.82222 244.1503 171.61111 290.76126 179.4 301.10913C187.18889 311.457 194.97778 300.8914 202.76666 294.52533C210.55556 288.15927 218.34445 277.9773 226.13333 262.9128C233.92223 247.84836 241.7111 213.62239 249.5 204.13855C257.28888 194.65472 265.0778 190.47269 272.86667 206.0098C280.65555 221.54692 288.44446 270.5626 296.23334 297.36124C304.02222 324.1599 311.8111 361.87375 319.6 366.8018C327.3889 371.7298 335.17776 332.81308 342.96667 326.92938C350.75555 321.0457 358.54443 350.38113 366.33334 331.49957C374.12222 312.618 381.9111 206.90044 389.7 213.64003C397.4889 220.37962 405.27777 338.6937 413.06668 371.93713C420.85556 405.18057 428.64444 418.2058 436.43332 413.10068C444.22223 407.9955 452.0111 359.7176 459.8 341.30624C467.5889 322.89493 475.37778 297.93378 483.16666 302.63266C490.95557 307.3315 498.74445 374.27744 Line truncated
|
||||
|
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
|
||||
|
Binary file not shown.
BIN
Binary file not shown.
@@ -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
|
||||
|
Binary file not shown.
|
After Width: | Height: | Size: 703 KiB |
File diff suppressed because it is too large.
Load diff
@@ -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.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 536 KiB |
Binary file not shown.
|
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.
|
||||
|
||||
Whitespace-only changes.
Binary file not shown.
|
After Width: | Height: | Size: 718 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 855 KiB |
Reference in new issue
Block a user