From f3fccf3192c8498c2a58b997cb00a56a33bc87e1 Mon Sep 17 00:00:00 2001 From: Jeroen Bouma Date: Wed, 15 Feb 2023 10:43:01 +0100 Subject: [PATCH] Update economy.md --- .../content/terminal/guides/intros/economy.md | 63 +++++++------------ 1 file changed, 22 insertions(+), 41 deletions(-) diff --git a/website/content/terminal/guides/intros/economy.md b/website/content/terminal/guides/intros/economy.md index b1b3c3a3e7a..bd29dcd16ec 100644 --- a/website/content/terminal/guides/intros/economy.md +++ b/website/content/terminal/guides/intros/economy.md @@ -6,20 +6,20 @@ description: The Economy menu enables you to obtain market overviews, see yield The Economy menu enables you to obtain market overviews (overview and futures), see yield curves of any country (ycrv) and discover sector, industry and country performance (performance). Next to that, the databases of EconDB, FRED and Yahoo Finance can be accessed via macro, fred and index respectively. All of this can also be further analysed with Forecasting menu (`forecast`) and Quantitative Techniques (`qa`). -### How to use +## How to use The Economy menu is called upon by typing `economy` which opens the following menu: -![Economy Menu](https://user-images.githubusercontent.com/46355364/176679746-21b28263-96be-4701-9fd1-8657602e0214.png) +image Within the Economy menu you have a variety of options ranging from treasury rates to population growth to country financial performance. As this is quite extensive, the guide has two sections. The first section will discuss valuations and performance and the second section discusses the databases. -#### Performance and valuations +### Performance and valuations By using overview we can look into market overviews from the perspective of indices (`indices`), bonds (`usbonds` and `glbonds`), currencies (`currencies`) and in general. E.g. let's look at global bond performance by adding the `-t` argument: ``` -2022 Jun 29, 09:56 (🦋) /economy/ $ overview -t glbonds +(🦋) /economy/ $ overview -t glbonds Global Bonds ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━┓ @@ -42,7 +42,7 @@ By using futures of a variety of commodities. For example, let's look at a general overview: ``` -2022 Jun 29, 09:58 (🦋) /economy/ $ futures +(🦋) /economy/ $ futures Futures/Commodities [Source: Wall St. Journal] ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━┳━━━━━━━┓ @@ -70,18 +70,10 @@ Next to that, to better understand the current commodity market we can look into └───────────────────────────┴─────────┴─────────┴───────┘ ``` -Furthermore, we can look into yield curves of any country, by default this is set to the United States, but it can be any: - -![Yield Curves Options Menu](https://user-images.githubusercontent.com/46355364/176679828-bd90df8c-bff3-42a7-8e03-897c0be99443.png) - -Which then returns the following plot: - -![Yield Curve](https://user-images.githubusercontent.com/46355364/176679949-dd8b5b47-1125-4b1c-9558-25f1d2d70ffc.png) - -Lastly, we can also show industry, sector and country performance with performance. For example, looking at the `sectors` returns the following: +We can also show industry, sector and country performance with performance. For example, looking at the `sectors` returns the following: ``` -2022 Jun 29, 10:03 (🦋) /economy/ $ performance -g sector +(🦋) /economy/ $ performance -g sector Group Performance Data ┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━┓ @@ -111,12 +103,12 @@ Lastly, we can also show industry, sector and country performance with macro) a large selection of Economic data can be obtained. What can be obtained is easily found by typing `macro --show parameters` which returns the following: ``` -2022 Jun 29, 10:16 (🦋) /economy/ $ macro --show parameters +(🦋) /economy/ $ macro --show parameters ┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Parameter ┃ Name ┃ Period ┃ Description ┃ @@ -140,7 +132,7 @@ Starting with the EconDB database (via plot command where you can combine the datasets from the above commands into one graph. For example, it seems there is a relationship between the inflation rates and the unemployment rate (source) which we can graphically show with: ``` -2022 Jun 29, 10:38 (🦋) /economy/ $ macro -p URATE -s 2010-01-01 +(🦋) /economy/ $ macro -p URATE -s 2010-01-01 -2022 Jun 29, 10:39 (🦋) /economy/ $ fred T5YIEM -s 2010-01-01 +(🦋) /economy/ $ fred T5YIEM -s 2010-01-01 -2022 Jun 29, 10:39 (🦋) /economy/ $ plot --y1 United_States_URATE --y2 T5YIEM +🦋) /economy/ $ plot --y1 United_States_URATE --y2 T5YIEM ``` Resulting in the following graph: ![Combine plots of Unemployment Rate and Break Even Inflation](https://user-images.githubusercontent.com/46355364/176680454-b878604e-08a2-474e-ad9f-3b695ee958d1.png) -### Sub-menus available - -The Economy menu has a few sub-menus available to delve further into a specific macroeconomic indicator. To find more information about each menu, click on oneof the following: - -- Introduction to Forecasting menu: apply advanced AI and Machine Learning models to form prediction of future macroeconomic indicators including Recurrent Neural Network (RNN), Autoregressive Integrated Moving Average (ARIMA) and Monte Carlo forecasting. -- Introduction to Quantitative Analysis: analyse the macroeconomic indicators extensively for seasonality, rolling windows and statistical techniques. - -### Examples +## Examples Starting off, let's looking at current performance of energy futures with `futures`. ``` -2022 Jun 30, 05:39 (🦋) /economy/ $ futures energy +(🦋) /economy/ $ futures energy Future Table [Source: FinViz] ┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━┓ @@ -325,7 +306,7 @@ Starting off, let's looking at current performance of energy futures with `futur This gives insights in the current future contracts and their (relative) performance. Here, we take a closer look at `Crude Oil Brent` by querying the FRED database, with `fred`, for a dataset that is relevant: ``` -2022 Jun 30, 05:43 (🦋) /economy/ $ fred -q oil index +(🦋) /economy/ $ fred -q oil index Search results for oil index ┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Series ID ┃ Title ┃ Description ┃ @@ -354,7 +335,7 @@ This gives insights in the current future contracts and their (relative) perform Here, we take the `CBOE Crude OIL ETF Volatility Index` to get some understanding of how volatile oil is. Here, a period is defined from 2008 to 2015, showing the influence of the Financial Crisis of 2008. ``` -2022 Jun 30, 06:22 (🦋) /economy/ $ fred OVXCLS -s 2008-01-01 -e 2015-01-01 +(🦋) /economy/ $ fred OVXCLS -s 2008-01-01 -e 2015-01-01 ``` This plots the following graph: @@ -364,7 +345,7 @@ This plots the following graph: A hypothesis could be that the more volatile the price of oil is, the lower the confidence of the consumers is. It is possible to visually depict this. First, let's plot the consumer confidence of Germany. ``` -2022 Jun 30, 07:59 (🦋) /economy/ $ macro -p CONF -c Germany -s 2008-01-01 -e 2015-01-01 +(🦋) /economy/ $ macro -p CONF -c Germany -s 2008-01-01 -e 2015-01-01 ``` ![Consumer Confidence Germany](https://user-images.githubusercontent.com/46355364/176680603-1ace9534-f18a-4362-a1c0-d28c675d9415.png)