Skip to content

Commit

Permalink
fix: Fixed error in GARCH tutorial that corresponds to issue #629 (#650)
Browse files Browse the repository at this point in the history
* fix: Fixed error in GARCH tutorial that corresponds to issue #629

* fix: Removed metadata
  • Loading branch information
MMenchero authored Oct 2, 2023
1 parent cbcfe25 commit 4829b99
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions nbs/docs/tutorials/GARCH_tutorial.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "05332e29-553e-48d8-b15d-b7874495b672",
"metadata": {},
Expand All @@ -11,6 +12,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "7ea60300-7d0f-472f-af16-a2522f0ba22c",
"metadata": {},
Expand All @@ -24,6 +26,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "3f7bee12-6d75-4cfe-be02-90d3f6acc027",
"metadata": {},
Expand All @@ -32,6 +35,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "85f9f55b-f95c-4b7e-9e8b-ad3d7ffb5558",
"metadata": {},
Expand Down Expand Up @@ -59,6 +63,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "c4c69cb3-ffbe-44e1-9d4f-8527f690ccfd",
"metadata": {},
Expand All @@ -74,6 +79,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "25559855-e8f9-4b91-8797-f0a1a94b60eb",
"metadata": {},
Expand All @@ -84,6 +90,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "041759eb-847f-49a6-93fb-3b22a86a2c25",
"metadata": {},
Expand All @@ -92,6 +99,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "b4a96763-f02b-401a-8bbd-3a8c2f9d41f0",
"metadata": {},
Expand All @@ -100,6 +108,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "cc9e255a-f2bc-4fd9-aae9-690b7c803001",
"metadata": {},
Expand All @@ -119,6 +128,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "e086500a-89ab-49fc-a168-f0fa77ad6caf",
"metadata": {},
Expand All @@ -128,6 +138,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d7bddff1-d31b-4782-b73b-ca8c43609b10",
"metadata": {},
Expand All @@ -147,6 +158,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "ad3c3169-edb0-40df-a2d6-215ab0bddd3d",
"metadata": {},
Expand Down Expand Up @@ -426,6 +438,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "8b1741a7-0d1f-4c22-9133-e76085745ac2",
"metadata": {},
Expand Down Expand Up @@ -579,6 +592,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "32585676-2207-4088-9e9d-dbc5ca055c17",
"metadata": {},
Expand Down Expand Up @@ -726,6 +740,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "5c70be4a-ec1b-477b-adaf-1bcbef01d1ed",
"metadata": {},
Expand Down Expand Up @@ -3174,6 +3189,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "1bf476da-fe85-4c18-8ee9-1561114e0802",
"metadata": {},
Expand Down Expand Up @@ -3322,13 +3338,14 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a4db7e67-922a-4746-9ed4-f5fd08a19373",
"metadata": {},
"source": [
"::: {.callout-warning}\n",
"\n",
"If the order of the data is very small (say $<1e-5$), `scipy.optimize.minimize` might not terminate successfully. In this case, transform the data to a higher order, generate the GARCH or ARCH model, and then transform the data back. \n",
"If the order of the data is very small (say $<1e-5$), `scipy.optimize.minimize` might not terminate successfully. In this case, rescale the data and then generate the GARCH or ARCH model. \n",
"\n",
":::\n"
]
Expand Down Expand Up @@ -5669,6 +5686,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "ebf88371-83bd-4c55-a65c-ce70c01f23db",
"metadata": {},
Expand All @@ -5677,6 +5695,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "32ceb930-3b2b-4636-ad14-7c9593f9601d",
"metadata": {},
Expand All @@ -5685,6 +5704,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "72d87aa8-906a-47ae-8565-d8a80df4a3d1",
"metadata": {},
Expand Down Expand Up @@ -5716,6 +5736,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "bea18be0-619d-4c70-9b5f-badf141f3fd0",
"metadata": {},
Expand Down Expand Up @@ -5744,6 +5765,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "07ac6899-a451-4bce-9459-eb63c948a089",
"metadata": {},
Expand All @@ -5752,6 +5774,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "1c4054b3-d433-4156-b1ba-3f10d5ee7609",
"metadata": {},
Expand Down Expand Up @@ -5784,6 +5807,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "03270241-e962-44aa-b1bc-32b1cbfb5715",
"metadata": {},
Expand Down Expand Up @@ -10571,6 +10595,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "480aeccc-3395-45cf-bd96-927f144a0074",
"metadata": {},
Expand All @@ -10579,6 +10604,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "5e297167-0abe-4c78-9b7a-45ef08da8971",
"metadata": {},
Expand All @@ -10587,6 +10613,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "47674e91-0532-4b9a-b934-f5304cc1c73b",
"metadata": {},
Expand Down Expand Up @@ -10616,6 +10643,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "b32138f4-5f2b-40d0-8fec-a432494731e1",
"metadata": {},
Expand Down Expand Up @@ -10796,14 +10824,16 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "481d21b2-a71e-4836-8ed5-b8091ca24f04",
"metadata": {},
"source": [
"Hence, the most accurate model to describe the logarithmic returns of Apple's stock is a GARCH(2,1), and so on. "
"Hence, the most accurate model to describe the logarithmic returns of Apple's stock is an ARCH(1), for Amazon's stock is a GARCH(2,1), and so on. "
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "9b3fb49f-cccc-4e9c-9acd-2a63bb162b56",
"metadata": {},
Expand All @@ -10812,6 +10842,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "75adaec0-6660-4d9a-8772-aebb1fba86d8",
"metadata": {},
Expand Down Expand Up @@ -11045,6 +11076,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d3961240-086d-4f26-a44a-171654883e7e",
"metadata": {},
Expand Down Expand Up @@ -14585,6 +14617,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "db3ccfbb-22e0-4f23-a243-b586fb4aadbb",
"metadata": {},
Expand All @@ -14593,6 +14626,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "57ada7cc-e365-4cc2-a5d8-65db6888f538",
"metadata": {},
Expand Down

0 comments on commit 4829b99

Please sign in to comment.