IS Curve Charted
\r\n\r\n
\r\n ***script class=\"highcharts-linechart\" style=\"height:300px;\" type=\"application/json\">\r\n{\r\n \"chart\": {\r\n \"type\": \"line\"\r\n },\r\n \"xAxis\": {\r\n \"title\": {\r\n \"text\": \"Investment\"\r\n }\r\n },\r\n \"yAxis\": {\r\n \"title\": {\r\n \"text\": \"Interest Rate\"\r\n }\r\n },\r\n \"title\": {\r\n \"text\": \"\"\r\n },\r\n \"subtitle\": {\r\n \"text\": \"\"\r\n },\r\n \"tooltip\": {},\r\n \"legend\": {\r\n \"layout\": \"vertical\",\r\n \"align\": \"right\",\r\n \"verticalAlign\": \"top\",\r\n \"borderWidth\": 0\r\n },\r\n \"series\": [\r\n {\r\n \"properties\": [\r\n \"x\",\"y\"\r\n ],\r\n \"name\": \"IS Curve\",\r\n \"data\": \"investment_line\",\r\n \"type\": \"line\"\r\n },\r\n {\r\n \"properties\": [\r\n \"x\",\"y\"\r\n ],\r\n \"name\": \"Actual Output\",\r\n \"data\": \"inv-point\",\r\n \"type\": \"line\"\r\n }\r\n ] \r\n} \r\n\r\n
\r\n","config":{"type":"container"}},"children":[],"url":"/app/html/v1.0.0/ctrl.mjs"},{"name":"data","body":{"script":"\r\nfrom davinci.python import _from,val\r\n\r\n'''\r\nthis is just created to provide a visual display, we dont try to actually get all the numbers to foot.\r\n'''\r\n\r\nslider = 100-int(val('slider'))\r\n\r\nactual_expenditure = [\r\n {\"x\":p,\"y\":p}\r\n for p in range(100)\r\n]\r\n\r\nval.set('actual_expenditure', actual_expenditure)\r\n\r\n\r\nplanned_expenditure = [\r\n {\"x\":p,\"y\":20 + 0.3*p + slider/3}\r\n for p in range(100)\r\n]\r\n\r\nval.set('planned_expenditure', planned_expenditure)\r\n\r\ninvestment_line = [\r\n {'x':p, 'y':10-p/10}\r\n for p in range(100)\r\n]\r\n\r\nval.set('investment_line', investment_line)\r\nval.set('inv-point', [{'x':slider, 'y':10-slider/10}])\r\n\r\nis_curve = [\r\n {'x':p, 'y':10-p/10}\r\n for p in range(100)\r\n]\r\n\r\nval.set('is_curve', is_curve);\r\n\r\nx = round((10/7)*(20 + slider/3));\r\ny = 10 - x/10;\r\n\r\nval.set('inv-point2', [{'x':x, 'y':y}])\r\n","config":{},"style":"#ID{\n height:400px; \n }\n \n #ID .script-area{\n border:solid;\n border-width:1px;\n border-color:lightgray;\n margin: 0;\n }"},"url":"/app/python/v1.0.0/ctrl.mjs"}]
\r\n ***script class=\"highcharts-linechart\" style=\"height:300px;\" type=\"application/json\">\r\n{\r\n \"chart\": {\r\n \"type\": \"line\"\r\n },\r\n \"xAxis\": {\r\n \"title\": {\r\n \"text\": \"Income, Output\"\r\n }\r\n },\r\n \"yAxis\": {\r\n \"title\": {\r\n \"text\": \"Interest Rate\"\r\n }\r\n },\r\n \"title\": {\r\n \"text\": \"\"\r\n },\r\n \"subtitle\": {\r\n \"text\": \"\"\r\n },\r\n \"tooltip\": {},\r\n \"legend\": {\r\n \"layout\": \"vertical\",\r\n \"align\": \"right\",\r\n \"verticalAlign\": \"top\",\r\n \"borderWidth\": 0\r\n },\r\n \"series\": [\r\n {\r\n \"properties\": [\r\n \"x\",\"y\"\r\n ],\r\n \"name\": \"Investment Function\",\r\n \"data\": \"is_curve\",\r\n \"type\": \"line\"\r\n },\r\n {\r\n \"properties\": [\r\n \"x\",\"y\"\r\n ],\r\n \"name\": \"Actual Investment\",\r\n \"data\": \"inv-point2\",\r\n \"type\": \"line\"\r\n }\r\n ] \r\n} \r\n\r\n
\r\n\r\nInterest Rate\r\n","config":{"type":"container"}},"children":[],"url":"/app/html/v1.0.0/ctrl.mjs"},{"name":"data","body":{"script":"\r\nfrom davinci.python import _from,val\r\n\r\n'''\r\nthis is just created to provide a visual display, we dont try to actually get all the numbers to foot.\r\n'''\r\n\r\nslider = 100-int(val('slider'))\r\n\r\nactual_expenditure = [\r\n {\"x\":p,\"y\":p}\r\n for p in range(100)\r\n]\r\n\r\nval.set('actual_expenditure', actual_expenditure)\r\n\r\n\r\nplanned_expenditure = [\r\n {\"x\":p,\"y\":20 + 0.3*p + slider/3}\r\n for p in range(100)\r\n]\r\n\r\nval.set('planned_expenditure', planned_expenditure)\r\n\r\ninvestment_line = [\r\n {'x':p, 'y':10-p/10}\r\n for p in range(100)\r\n]\r\n\r\nval.set('investment_line', investment_line)\r\nval.set('inv-point', [{'x':slider, 'y':10-slider/10}])\r\n\r\nis_curve = [\r\n {'x':p, 'y':10-p/10}\r\n for p in range(100)\r\n]\r\n\r\nval.set('is_curve', is_curve);\r\n\r\nx = round((10/7)*(20 + slider/3));\r\ny = 10 - x/10;\r\n\r\nval.set('inv-point2', [{'x':x, 'y':y}])\r\n","config":{},"style":"#ID{\n height:400px; \n }\n \n #ID .script-area{\n border:solid;\n border-width:1px;\n border-color:lightgray;\n margin: 0;\n }"},"url":"/app/python/v1.0.0/ctrl.mjs"}]
The Rates slider lets you adjust the level of interest rates. As rates go up, planned investment goes down. This feeds into the
Keynesian cross, which lowers the equilibrium production/income. The level of output graphed against interest rates, shows that as rates
rise, output goes down.