ibnummuhammad
commited on
Commit
•
5818f5c
1
Parent(s):
5505dba
Add kpss_test()
Browse files- granger_causality_testing.ipynb +2214 -2
granger_causality_testing.ipynb
CHANGED
@@ -2,13 +2,15 @@
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
-
"execution_count":
|
6 |
"metadata": {},
|
7 |
"outputs": [],
|
8 |
"source": [
|
9 |
"import pandas as pd\n",
|
10 |
"import plotly.express as px\n",
|
11 |
-
"from statsmodels.tsa.
|
|
|
|
|
12 |
]
|
13 |
},
|
14 |
{
|
@@ -4722,6 +4724,2216 @@
|
|
4722 |
"adf_test(df_train['tesla'])"
|
4723 |
]
|
4724 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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type": "code",
|
4727 |
"execution_count": null,
|
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
+
"execution_count": 23,
|
6 |
"metadata": {},
|
7 |
"outputs": [],
|
8 |
"source": [
|
9 |
"import pandas as pd\n",
|
10 |
"import plotly.express as px\n",
|
11 |
+
"from statsmodels.tsa.api import VAR\n",
|
12 |
+
"from statsmodels.tsa.stattools import adfuller\n",
|
13 |
+
"from statsmodels.tsa.stattools import kpss"
|
14 |
]
|
15 |
},
|
16 |
{
|
|
|
4724 |
"adf_test(df_train['tesla'])"
|
4725 |
]
|
4726 |
},
|
4727 |
+
{
|
4728 |
+
"cell_type": "code",
|
4729 |
+
"execution_count": 17,
|
4730 |
+
"metadata": {},
|
4731 |
+
"outputs": [],
|
4732 |
+
"source": [
|
4733 |
+
"def kpss_test(df): \n",
|
4734 |
+
" statistic, p_value, n_lags, critical_values = kpss(df.values)\n",
|
4735 |
+
" \n",
|
4736 |
+
" print(f'KPSS Statistic: {statistic}')\n",
|
4737 |
+
" print(f'p-value: {p_value}')\n",
|
4738 |
+
" print(f'num lags: {n_lags}')\n",
|
4739 |
+
" print('Critial Values:')\n",
|
4740 |
+
" for key, value in critical_values.items():\n",
|
4741 |
+
" print(f' {key} : {value}')"
|
4742 |
+
]
|
4743 |
+
},
|
4744 |
+
{
|
4745 |
+
"cell_type": "code",
|
4746 |
+
"execution_count": 18,
|
4747 |
+
"metadata": {},
|
4748 |
+
"outputs": [
|
4749 |
+
{
|
4750 |
+
"name": "stdout",
|
4751 |
+
"output_type": "stream",
|
4752 |
+
"text": [
|
4753 |
+
"KPSS Test: Apple time series\n",
|
4754 |
+
"KPSS Statistic: 1.4799049926667052\n",
|
4755 |
+
"p-value: 0.01\n",
|
4756 |
+
"num lags: 8\n",
|
4757 |
+
"Critial Values:\n",
|
4758 |
+
" 10% : 0.347\n",
|
4759 |
+
" 5% : 0.463\n",
|
4760 |
+
" 2.5% : 0.574\n",
|
4761 |
+
" 1% : 0.739\n",
|
4762 |
+
"KPSS Test: Walmart time series\n",
|
4763 |
+
"KPSS Statistic: 1.5504555338108945\n",
|
4764 |
+
"p-value: 0.01\n",
|
4765 |
+
"num lags: 8\n",
|
4766 |
+
"Critial Values:\n",
|
4767 |
+
" 10% : 0.347\n",
|
4768 |
+
" 5% : 0.463\n",
|
4769 |
+
" 2.5% : 0.574\n",
|
4770 |
+
" 1% : 0.739\n",
|
4771 |
+
"KPSS Test: Tesla time series\n",
|
4772 |
+
"KPSS Statistic: 1.2070673514705184\n",
|
4773 |
+
"p-value: 0.01\n",
|
4774 |
+
"num lags: 8\n",
|
4775 |
+
"Critial Values:\n",
|
4776 |
+
" 10% : 0.347\n",
|
4777 |
+
" 5% : 0.463\n",
|
4778 |
+
" 2.5% : 0.574\n",
|
4779 |
+
" 1% : 0.739\n"
|
4780 |
+
]
|
4781 |
+
},
|
4782 |
+
{
|
4783 |
+
"name": "stderr",
|
4784 |
+
"output_type": "stream",
|
4785 |
+
"text": [
|
4786 |
+
"/tmp/ipykernel_347985/249017143.py:2: InterpolationWarning:\n",
|
4787 |
+
"\n",
|
4788 |
+
"The test statistic is outside of the range of p-values available in the\n",
|
4789 |
+
"look-up table. The actual p-value is smaller than the p-value returned.\n",
|
4790 |
+
"\n",
|
4791 |
+
"\n",
|
4792 |
+
"/tmp/ipykernel_347985/249017143.py:2: InterpolationWarning:\n",
|
4793 |
+
"\n",
|
4794 |
+
"The test statistic is outside of the range of p-values available in the\n",
|
4795 |
+
"look-up table. The actual p-value is smaller than the p-value returned.\n",
|
4796 |
+
"\n",
|
4797 |
+
"\n",
|
4798 |
+
"/tmp/ipykernel_347985/249017143.py:2: InterpolationWarning:\n",
|
4799 |
+
"\n",
|
4800 |
+
"The test statistic is outside of the range of p-values available in the\n",
|
4801 |
+
"look-up table. The actual p-value is smaller than the p-value returned.\n",
|
4802 |
+
"\n",
|
4803 |
+
"\n"
|
4804 |
+
]
|
4805 |
+
}
|
4806 |
+
],
|
4807 |
+
"source": [
|
4808 |
+
"print('KPSS Test: Apple time series')\n",
|
4809 |
+
"kpss_test(df_train['apple'])\n",
|
4810 |
+
"print('KPSS Test: Walmart time series')\n",
|
4811 |
+
"kpss_test(df_train['walmart'])\n",
|
4812 |
+
"print('KPSS Test: Tesla time series')\n",
|
4813 |
+
"kpss_test(df_train['tesla'])"
|
4814 |
+
]
|
4815 |
+
},
|
4816 |
+
{
|
4817 |
+
"cell_type": "code",
|
4818 |
+
"execution_count": 19,
|
4819 |
+
"metadata": {},
|
4820 |
+
"outputs": [
|
4821 |
+
{
|
4822 |
+
"data": {
|
4823 |
+
"application/vnd.plotly.v1+json": {
|
4824 |
+
"config": {
|
4825 |
+
"plotlyServerURL": "https://plot.ly"
|
4826 |
+
},
|
4827 |
+
"data": [
|
4828 |
+
{
|
4829 |
+
"hovertemplate": "company=apple<br>Date=%{x}<br>value=%{y}<extra></extra>",
|
4830 |
+
"legendgroup": "apple",
|
4831 |
+
"line": {
|
4832 |
+
"color": "#636efa",
|
4833 |
+
"dash": "solid"
|
4834 |
+
},
|
4835 |
+
"marker": {
|
4836 |
+
"symbol": "circle"
|
4837 |
+
},
|
4838 |
+
"mode": "lines",
|
4839 |
+
"name": "apple",
|
4840 |
+
"orientation": "v",
|
4841 |
+
"showlegend": true,
|
4842 |
+
"type": "scatter",
|
4843 |
+
"x": [
|
4844 |
+
"2024-01-01T00:00:00",
|
4845 |
+
"2023-12-01T00:00:00",
|
4846 |
+
"2023-11-01T00:00:00",
|
4847 |
+
"2023-10-01T00:00:00",
|
4848 |
+
"2023-09-01T00:00:00",
|
4849 |
+
"2023-08-01T00:00:00",
|
4850 |
+
"2023-07-01T00:00:00",
|
4851 |
+
"2023-06-01T00:00:00",
|
4852 |
+
"2023-05-01T00:00:00",
|
4853 |
+
"2023-04-01T00:00:00",
|
4854 |
+
"2023-03-01T00:00:00",
|
4855 |
+
"2023-02-01T00:00:00",
|
4856 |
+
"2023-01-01T00:00:00",
|
4857 |
+
"2022-12-01T00:00:00",
|
4858 |
+
"2022-11-01T00:00:00",
|
4859 |
+
"2022-10-01T00:00:00",
|
4860 |
+
"2022-09-01T00:00:00",
|
4861 |
+
"2022-08-01T00:00:00",
|
4862 |
+
"2022-07-01T00:00:00",
|
4863 |
+
"2022-06-01T00:00:00",
|
4864 |
+
"2022-05-01T00:00:00",
|
4865 |
+
"2022-04-01T00:00:00",
|
4866 |
+
"2022-03-01T00:00:00",
|
4867 |
+
"2022-02-01T00:00:00",
|
4868 |
+
"2022-01-01T00:00:00",
|
4869 |
+
"2021-12-01T00:00:00",
|
4870 |
+
"2021-11-01T00:00:00",
|
4871 |
+
"2021-10-01T00:00:00",
|
4872 |
+
"2021-09-01T00:00:00",
|
4873 |
+
"2021-08-01T00:00:00",
|
4874 |
+
"2021-07-01T00:00:00",
|
4875 |
+
"2021-06-01T00:00:00",
|
4876 |
+
"2021-05-01T00:00:00",
|
4877 |
+
"2021-04-01T00:00:00",
|
4878 |
+
"2021-03-01T00:00:00",
|
4879 |
+
"2021-02-01T00:00:00",
|
4880 |
+
"2021-01-01T00:00:00",
|
4881 |
+
"2020-12-01T00:00:00",
|
4882 |
+
"2020-11-01T00:00:00",
|
4883 |
+
"2020-10-01T00:00:00",
|
4884 |
+
"2020-09-01T00:00:00",
|
4885 |
+
"2020-08-01T00:00:00",
|
4886 |
+
"2020-07-01T00:00:00",
|
4887 |
+
"2020-06-01T00:00:00",
|
4888 |
+
"2020-05-01T00:00:00",
|
4889 |
+
"2020-04-01T00:00:00",
|
4890 |
+
"2020-03-01T00:00:00",
|
4891 |
+
"2020-02-01T00:00:00",
|
4892 |
+
"2020-01-01T00:00:00",
|
4893 |
+
"2019-12-01T00:00:00",
|
4894 |
+
"2019-11-01T00:00:00",
|
4895 |
+
"2019-10-01T00:00:00",
|
4896 |
+
"2019-09-01T00:00:00",
|
4897 |
+
"2019-08-01T00:00:00",
|
4898 |
+
"2019-07-01T00:00:00",
|
4899 |
+
"2019-06-01T00:00:00",
|
4900 |
+
"2019-05-01T00:00:00",
|
4901 |
+
"2019-04-01T00:00:00",
|
4902 |
+
"2019-03-01T00:00:00",
|
4903 |
+
"2019-02-01T00:00:00",
|
4904 |
+
"2019-01-01T00:00:00",
|
4905 |
+
"2018-12-01T00:00:00",
|
4906 |
+
"2018-11-01T00:00:00",
|
4907 |
+
"2018-10-01T00:00:00",
|
4908 |
+
"2018-09-01T00:00:00",
|
4909 |
+
"2018-08-01T00:00:00",
|
4910 |
+
"2018-07-01T00:00:00",
|
4911 |
+
"2018-06-01T00:00:00",
|
4912 |
+
"2018-05-01T00:00:00",
|
4913 |
+
"2018-04-01T00:00:00",
|
4914 |
+
"2018-03-01T00:00:00",
|
4915 |
+
"2018-02-01T00:00:00",
|
4916 |
+
"2018-01-01T00:00:00",
|
4917 |
+
"2017-12-01T00:00:00",
|
4918 |
+
"2017-11-01T00:00:00",
|
4919 |
+
"2017-10-01T00:00:00",
|
4920 |
+
"2017-09-01T00:00:00",
|
4921 |
+
"2017-08-01T00:00:00",
|
4922 |
+
"2017-07-01T00:00:00",
|
4923 |
+
"2017-06-01T00:00:00",
|
4924 |
+
"2017-05-01T00:00:00",
|
4925 |
+
"2017-04-01T00:00:00",
|
4926 |
+
"2017-03-01T00:00:00",
|
4927 |
+
"2017-02-01T00:00:00",
|
4928 |
+
"2017-01-01T00:00:00",
|
4929 |
+
"2016-12-01T00:00:00",
|
4930 |
+
"2016-11-01T00:00:00",
|
4931 |
+
"2016-10-01T00:00:00",
|
4932 |
+
"2016-09-01T00:00:00",
|
4933 |
+
"2016-08-01T00:00:00",
|
4934 |
+
"2016-07-01T00:00:00",
|
4935 |
+
"2016-06-01T00:00:00",
|
4936 |
+
"2016-05-01T00:00:00",
|
4937 |
+
"2016-04-01T00:00:00",
|
4938 |
+
"2016-03-01T00:00:00",
|
4939 |
+
"2016-02-01T00:00:00",
|
4940 |
+
"2016-01-01T00:00:00",
|
4941 |
+
"2015-12-01T00:00:00",
|
4942 |
+
"2015-11-01T00:00:00",
|
4943 |
+
"2015-10-01T00:00:00",
|
4944 |
+
"2015-09-01T00:00:00",
|
4945 |
+
"2015-08-01T00:00:00",
|
4946 |
+
"2015-07-01T00:00:00",
|
4947 |
+
"2015-06-01T00:00:00",
|
4948 |
+
"2015-05-01T00:00:00",
|
4949 |
+
"2015-04-01T00:00:00",
|
4950 |
+
"2015-03-01T00:00:00",
|
4951 |
+
"2015-02-01T00:00:00",
|
4952 |
+
"2015-01-01T00:00:00",
|
4953 |
+
"2014-12-01T00:00:00",
|
4954 |
+
"2014-11-01T00:00:00",
|
4955 |
+
"2014-10-01T00:00:00",
|
4956 |
+
"2014-09-01T00:00:00",
|
4957 |
+
"2014-08-01T00:00:00",
|
4958 |
+
"2014-07-01T00:00:00",
|
4959 |
+
"2014-06-01T00:00:00",
|
4960 |
+
"2014-05-01T00:00:00",
|
4961 |
+
"2014-04-01T00:00:00",
|
4962 |
+
"2014-03-01T00:00:00",
|
4963 |
+
"2014-02-01T00:00:00",
|
4964 |
+
"2014-01-01T00:00:00",
|
4965 |
+
"2013-12-01T00:00:00",
|
4966 |
+
"2013-11-01T00:00:00",
|
4967 |
+
"2013-10-01T00:00:00",
|
4968 |
+
"2013-09-01T00:00:00",
|
4969 |
+
"2013-08-01T00:00:00",
|
4970 |
+
"2013-07-01T00:00:00",
|
4971 |
+
"2013-06-01T00:00:00",
|
4972 |
+
"2013-05-01T00:00:00",
|
4973 |
+
"2013-04-01T00:00:00",
|
4974 |
+
"2013-03-01T00:00:00",
|
4975 |
+
"2013-02-01T00:00:00",
|
4976 |
+
"2013-01-01T00:00:00",
|
4977 |
+
"2012-12-01T00:00:00",
|
4978 |
+
"2012-11-01T00:00:00",
|
4979 |
+
"2012-10-01T00:00:00",
|
4980 |
+
"2012-09-01T00:00:00",
|
4981 |
+
"2012-08-01T00:00:00",
|
4982 |
+
"2012-07-01T00:00:00",
|
4983 |
+
"2012-06-01T00:00:00",
|
4984 |
+
"2012-05-01T00:00:00",
|
4985 |
+
"2012-04-01T00:00:00",
|
4986 |
+
"2012-03-01T00:00:00"
|
4987 |
+
],
|
4988 |
+
"xaxis": "x3",
|
4989 |
+
"y": [
|
4990 |
+
1.8799999999999955,
|
4991 |
+
8.129999999999995,
|
4992 |
+
-2.5800000000000125,
|
4993 |
+
-19.17999999999998,
|
4994 |
+
0.4399999999999977,
|
4995 |
+
16.659999999999997,
|
4996 |
+
8.579999999999984,
|
4997 |
+
-2.4799999999999898,
|
4998 |
+
-16.72,
|
4999 |
+
-7.569999999999993,
|
5000 |
+
-4.780000000000001,
|
5001 |
+
-17.49000000000001,
|
5002 |
+
-3.1200000000000045,
|
5003 |
+
-14.359999999999985,
|
5004 |
+
18.099999999999994,
|
5005 |
+
5.310000000000002,
|
5006 |
+
-15.140000000000015,
|
5007 |
+
19.02000000000001,
|
5008 |
+
5.289999999999992,
|
5009 |
+
-25.789999999999992,
|
5010 |
+
12.120000000000005,
|
5011 |
+
8.810000000000002,
|
5012 |
+
16.960000000000008,
|
5013 |
+
-9.490000000000009,
|
5014 |
+
9.659999999999997,
|
5015 |
+
2.789999999999992,
|
5016 |
+
-12.269999999999982,
|
5017 |
+
-15.5,
|
5018 |
+
-8.300000000000011,
|
5019 |
+
10.330000000000013,
|
5020 |
+
-5.969999999999999,
|
5021 |
+
-8.900000000000006,
|
5022 |
+
-12.350000000000009,
|
5023 |
+
6.8500000000000085,
|
5024 |
+
-9.310000000000002,
|
5025 |
+
-0.8900000000000006,
|
5026 |
+
10.700000000000003,
|
5027 |
+
0.7299999999999898,
|
5028 |
+
-13.64,
|
5029 |
+
-10.189999999999998,
|
5030 |
+
6.950000000000003,
|
5031 |
+
13.22999999999999,
|
5032 |
+
-22.779999999999987,
|
5033 |
+
-15.060000000000002,
|
5034 |
+
-11.710000000000008,
|
5035 |
+
-6.039999999999992,
|
5036 |
+
-9.880000000000003,
|
5037 |
+
4.770000000000003,
|
5038 |
+
9.039999999999992,
|
5039 |
+
-3.969999999999999,
|
5040 |
+
-6.599999999999994,
|
5041 |
+
-4.6200000000000045,
|
5042 |
+
-6.199999999999996,
|
5043 |
+
-3.8000000000000043,
|
5044 |
+
1.0700000000000003,
|
5045 |
+
-3.780000000000001,
|
5046 |
+
-5.709999999999994,
|
5047 |
+
6.399999999999999,
|
5048 |
+
-2.6799999999999997,
|
5049 |
+
-4.200000000000003,
|
5050 |
+
-1.6799999999999997,
|
5051 |
+
-2.1700000000000017,
|
5052 |
+
5.210000000000001,
|
5053 |
+
10.07,
|
5054 |
+
1.7199999999999989,
|
5055 |
+
0.46999999999999886,
|
5056 |
+
-9.339999999999996,
|
5057 |
+
-1.2899999999999991,
|
5058 |
+
0.4399999999999977,
|
5059 |
+
-5.409999999999997,
|
5060 |
+
0.6299999999999955,
|
5061 |
+
2.5900000000000034,
|
5062 |
+
-2.6700000000000017,
|
5063 |
+
0.45000000000000284,
|
5064 |
+
0.6499999999999986,
|
5065 |
+
-0.7000000000000028,
|
5066 |
+
-3.729999999999997,
|
5067 |
+
2.469999999999999,
|
5068 |
+
-3.8200000000000003,
|
5069 |
+
-1.1700000000000017,
|
5070 |
+
2.1799999999999997,
|
5071 |
+
-2.280000000000001,
|
5072 |
+
0.010000000000005116,
|
5073 |
+
-1.6700000000000017,
|
5074 |
+
-3.91,
|
5075 |
+
-1.3900000000000006,
|
5076 |
+
-1.3200000000000003,
|
5077 |
+
0.7600000000000016,
|
5078 |
+
-0.129999999999999,
|
5079 |
+
-1.740000000000002,
|
5080 |
+
-0.46999999999999886,
|
5081 |
+
-2.150000000000002,
|
5082 |
+
1.0700000000000003,
|
5083 |
+
-1.5399999999999991,
|
5084 |
+
3.8200000000000003,
|
5085 |
+
-3.0799999999999983,
|
5086 |
+
0.1599999999999966,
|
5087 |
+
1.990000000000002,
|
5088 |
+
3.259999999999998,
|
5089 |
+
0.3000000000000007,
|
5090 |
+
-2.3000000000000007,
|
5091 |
+
0.610000000000003,
|
5092 |
+
2.139999999999997,
|
5093 |
+
1.0300000000000011,
|
5094 |
+
1.2100000000000009,
|
5095 |
+
-1.2800000000000011,
|
5096 |
+
-0.17999999999999972,
|
5097 |
+
1.009999999999998,
|
5098 |
+
-2.8299999999999983,
|
5099 |
+
-1.6999999999999993,
|
5100 |
+
2.1400000000000006,
|
5101 |
+
-2.7300000000000004,
|
5102 |
+
-1.8099999999999987,
|
5103 |
+
0.4399999999999977,
|
5104 |
+
-1.7300000000000004,
|
5105 |
+
-0.6699999999999982,
|
5106 |
+
-0.620000000000001,
|
5107 |
+
-1.5399999999999991,
|
5108 |
+
-1.8999999999999986,
|
5109 |
+
-0.38000000000000256,
|
5110 |
+
-0.9100000000000001,
|
5111 |
+
2.16,
|
5112 |
+
-0.17999999999999972,
|
5113 |
+
-1.1899999999999977,
|
5114 |
+
-1.6400000000000006,
|
5115 |
+
0.36999999999999744,
|
5116 |
+
-1.2399999999999984,
|
5117 |
+
-2,
|
5118 |
+
1.8999999999999986,
|
5119 |
+
-0.24999999999999822,
|
5120 |
+
0,
|
5121 |
+
-0.05000000000000071,
|
5122 |
+
0.5099999999999998,
|
5123 |
+
2.740000000000002,
|
5124 |
+
1.889999999999997,
|
5125 |
+
0.360000000000003,
|
5126 |
+
2.5699999999999967,
|
5127 |
+
-0.06999999999999673,
|
5128 |
+
-1.9500000000000028,
|
5129 |
+
-0.9499999999999993,
|
5130 |
+
-0.23000000000000043,
|
5131 |
+
0.23000000000000043,
|
5132 |
+
0.5500000000000007
|
5133 |
+
],
|
5134 |
+
"yaxis": "y3"
|
5135 |
+
},
|
5136 |
+
{
|
5137 |
+
"hovertemplate": "company=walmart<br>Date=%{x}<br>value=%{y}<extra></extra>",
|
5138 |
+
"legendgroup": "walmart",
|
5139 |
+
"line": {
|
5140 |
+
"color": "#EF553B",
|
5141 |
+
"dash": "solid"
|
5142 |
+
},
|
5143 |
+
"marker": {
|
5144 |
+
"symbol": "circle"
|
5145 |
+
},
|
5146 |
+
"mode": "lines",
|
5147 |
+
"name": "walmart",
|
5148 |
+
"orientation": "v",
|
5149 |
+
"showlegend": true,
|
5150 |
+
"type": "scatter",
|
5151 |
+
"x": [
|
5152 |
+
"2024-01-01T00:00:00",
|
5153 |
+
"2023-12-01T00:00:00",
|
5154 |
+
"2023-11-01T00:00:00",
|
5155 |
+
"2023-10-01T00:00:00",
|
5156 |
+
"2023-09-01T00:00:00",
|
5157 |
+
"2023-08-01T00:00:00",
|
5158 |
+
"2023-07-01T00:00:00",
|
5159 |
+
"2023-06-01T00:00:00",
|
5160 |
+
"2023-05-01T00:00:00",
|
5161 |
+
"2023-04-01T00:00:00",
|
5162 |
+
"2023-03-01T00:00:00",
|
5163 |
+
"2023-02-01T00:00:00",
|
5164 |
+
"2023-01-01T00:00:00",
|
5165 |
+
"2022-12-01T00:00:00",
|
5166 |
+
"2022-11-01T00:00:00",
|
5167 |
+
"2022-10-01T00:00:00",
|
5168 |
+
"2022-09-01T00:00:00",
|
5169 |
+
"2022-08-01T00:00:00",
|
5170 |
+
"2022-07-01T00:00:00",
|
5171 |
+
"2022-06-01T00:00:00",
|
5172 |
+
"2022-05-01T00:00:00",
|
5173 |
+
"2022-04-01T00:00:00",
|
5174 |
+
"2022-03-01T00:00:00",
|
5175 |
+
"2022-02-01T00:00:00",
|
5176 |
+
"2022-01-01T00:00:00",
|
5177 |
+
"2021-12-01T00:00:00",
|
5178 |
+
"2021-11-01T00:00:00",
|
5179 |
+
"2021-10-01T00:00:00",
|
5180 |
+
"2021-09-01T00:00:00",
|
5181 |
+
"2021-08-01T00:00:00",
|
5182 |
+
"2021-07-01T00:00:00",
|
5183 |
+
"2021-06-01T00:00:00",
|
5184 |
+
"2021-05-01T00:00:00",
|
5185 |
+
"2021-04-01T00:00:00",
|
5186 |
+
"2021-03-01T00:00:00",
|
5187 |
+
"2021-02-01T00:00:00",
|
5188 |
+
"2021-01-01T00:00:00",
|
5189 |
+
"2020-12-01T00:00:00",
|
5190 |
+
"2020-11-01T00:00:00",
|
5191 |
+
"2020-10-01T00:00:00",
|
5192 |
+
"2020-09-01T00:00:00",
|
5193 |
+
"2020-08-01T00:00:00",
|
5194 |
+
"2020-07-01T00:00:00",
|
5195 |
+
"2020-06-01T00:00:00",
|
5196 |
+
"2020-05-01T00:00:00",
|
5197 |
+
"2020-04-01T00:00:00",
|
5198 |
+
"2020-03-01T00:00:00",
|
5199 |
+
"2020-02-01T00:00:00",
|
5200 |
+
"2020-01-01T00:00:00",
|
5201 |
+
"2019-12-01T00:00:00",
|
5202 |
+
"2019-11-01T00:00:00",
|
5203 |
+
"2019-10-01T00:00:00",
|
5204 |
+
"2019-09-01T00:00:00",
|
5205 |
+
"2019-08-01T00:00:00",
|
5206 |
+
"2019-07-01T00:00:00",
|
5207 |
+
"2019-06-01T00:00:00",
|
5208 |
+
"2019-05-01T00:00:00",
|
5209 |
+
"2019-04-01T00:00:00",
|
5210 |
+
"2019-03-01T00:00:00",
|
5211 |
+
"2019-02-01T00:00:00",
|
5212 |
+
"2019-01-01T00:00:00",
|
5213 |
+
"2018-12-01T00:00:00",
|
5214 |
+
"2018-11-01T00:00:00",
|
5215 |
+
"2018-10-01T00:00:00",
|
5216 |
+
"2018-09-01T00:00:00",
|
5217 |
+
"2018-08-01T00:00:00",
|
5218 |
+
"2018-07-01T00:00:00",
|
5219 |
+
"2018-06-01T00:00:00",
|
5220 |
+
"2018-05-01T00:00:00",
|
5221 |
+
"2018-04-01T00:00:00",
|
5222 |
+
"2018-03-01T00:00:00",
|
5223 |
+
"2018-02-01T00:00:00",
|
5224 |
+
"2018-01-01T00:00:00",
|
5225 |
+
"2017-12-01T00:00:00",
|
5226 |
+
"2017-11-01T00:00:00",
|
5227 |
+
"2017-10-01T00:00:00",
|
5228 |
+
"2017-09-01T00:00:00",
|
5229 |
+
"2017-08-01T00:00:00",
|
5230 |
+
"2017-07-01T00:00:00",
|
5231 |
+
"2017-06-01T00:00:00",
|
5232 |
+
"2017-05-01T00:00:00",
|
5233 |
+
"2017-04-01T00:00:00",
|
5234 |
+
"2017-03-01T00:00:00",
|
5235 |
+
"2017-02-01T00:00:00",
|
5236 |
+
"2017-01-01T00:00:00",
|
5237 |
+
"2016-12-01T00:00:00",
|
5238 |
+
"2016-11-01T00:00:00",
|
5239 |
+
"2016-10-01T00:00:00",
|
5240 |
+
"2016-09-01T00:00:00",
|
5241 |
+
"2016-08-01T00:00:00",
|
5242 |
+
"2016-07-01T00:00:00",
|
5243 |
+
"2016-06-01T00:00:00",
|
5244 |
+
"2016-05-01T00:00:00",
|
5245 |
+
"2016-04-01T00:00:00",
|
5246 |
+
"2016-03-01T00:00:00",
|
5247 |
+
"2016-02-01T00:00:00",
|
5248 |
+
"2016-01-01T00:00:00",
|
5249 |
+
"2015-12-01T00:00:00",
|
5250 |
+
"2015-11-01T00:00:00",
|
5251 |
+
"2015-10-01T00:00:00",
|
5252 |
+
"2015-09-01T00:00:00",
|
5253 |
+
"2015-08-01T00:00:00",
|
5254 |
+
"2015-07-01T00:00:00",
|
5255 |
+
"2015-06-01T00:00:00",
|
5256 |
+
"2015-05-01T00:00:00",
|
5257 |
+
"2015-04-01T00:00:00",
|
5258 |
+
"2015-03-01T00:00:00",
|
5259 |
+
"2015-02-01T00:00:00",
|
5260 |
+
"2015-01-01T00:00:00",
|
5261 |
+
"2014-12-01T00:00:00",
|
5262 |
+
"2014-11-01T00:00:00",
|
5263 |
+
"2014-10-01T00:00:00",
|
5264 |
+
"2014-09-01T00:00:00",
|
5265 |
+
"2014-08-01T00:00:00",
|
5266 |
+
"2014-07-01T00:00:00",
|
5267 |
+
"2014-06-01T00:00:00",
|
5268 |
+
"2014-05-01T00:00:00",
|
5269 |
+
"2014-04-01T00:00:00",
|
5270 |
+
"2014-03-01T00:00:00",
|
5271 |
+
"2014-02-01T00:00:00",
|
5272 |
+
"2014-01-01T00:00:00",
|
5273 |
+
"2013-12-01T00:00:00",
|
5274 |
+
"2013-11-01T00:00:00",
|
5275 |
+
"2013-10-01T00:00:00",
|
5276 |
+
"2013-09-01T00:00:00",
|
5277 |
+
"2013-08-01T00:00:00",
|
5278 |
+
"2013-07-01T00:00:00",
|
5279 |
+
"2013-06-01T00:00:00",
|
5280 |
+
"2013-05-01T00:00:00",
|
5281 |
+
"2013-04-01T00:00:00",
|
5282 |
+
"2013-03-01T00:00:00",
|
5283 |
+
"2013-02-01T00:00:00",
|
5284 |
+
"2013-01-01T00:00:00",
|
5285 |
+
"2012-12-01T00:00:00",
|
5286 |
+
"2012-11-01T00:00:00",
|
5287 |
+
"2012-10-01T00:00:00",
|
5288 |
+
"2012-09-01T00:00:00",
|
5289 |
+
"2012-08-01T00:00:00",
|
5290 |
+
"2012-07-01T00:00:00",
|
5291 |
+
"2012-06-01T00:00:00",
|
5292 |
+
"2012-05-01T00:00:00",
|
5293 |
+
"2012-04-01T00:00:00",
|
5294 |
+
"2012-03-01T00:00:00"
|
5295 |
+
],
|
5296 |
+
"xaxis": "x2",
|
5297 |
+
"y": [
|
5298 |
+
-10.310000000000002,
|
5299 |
+
-7.599999999999994,
|
5300 |
+
-1.960000000000008,
|
5301 |
+
7.719999999999999,
|
5302 |
+
-3.4799999999999898,
|
5303 |
+
2.680000000000007,
|
5304 |
+
-2.75,
|
5305 |
+
-2.680000000000007,
|
5306 |
+
-10.310000000000002,
|
5307 |
+
4.099999999999994,
|
5308 |
+
-3.5200000000000102,
|
5309 |
+
-5.319999999999993,
|
5310 |
+
1.740000000000009,
|
5311 |
+
-2.0800000000000125,
|
5312 |
+
10.629999999999995,
|
5313 |
+
-10.089999999999975,
|
5314 |
+
-12.630000000000024,
|
5315 |
+
2.8500000000000227,
|
5316 |
+
-0.5,
|
5317 |
+
-10.470000000000013,
|
5318 |
+
7.049999999999997,
|
5319 |
+
24.360000000000014,
|
5320 |
+
-4.070000000000022,
|
5321 |
+
-13.759999999999991,
|
5322 |
+
4.650000000000006,
|
5323 |
+
4.8799999999999955,
|
5324 |
+
-4.060000000000002,
|
5325 |
+
8.789999999999992,
|
5326 |
+
-10.039999999999992,
|
5327 |
+
8.719999999999999,
|
5328 |
+
-5.549999999999983,
|
5329 |
+
-1.5300000000000011,
|
5330 |
+
1.009999999999991,
|
5331 |
+
-2.1200000000000045,
|
5332 |
+
-4.079999999999984,
|
5333 |
+
-5.910000000000025,
|
5334 |
+
10.570000000000022,
|
5335 |
+
3.6599999999999966,
|
5336 |
+
8.639999999999986,
|
5337 |
+
-14.039999999999992,
|
5338 |
+
1.1599999999999966,
|
5339 |
+
-1.0600000000000023,
|
5340 |
+
-9.449999999999989,
|
5341 |
+
-9.620000000000005,
|
5342 |
+
4.280000000000001,
|
5343 |
+
-2.510000000000005,
|
5344 |
+
-7.929999999999993,
|
5345 |
+
-5.939999999999998,
|
5346 |
+
6.809999999999988,
|
5347 |
+
4.3500000000000085,
|
5348 |
+
0.25,
|
5349 |
+
-1.8299999999999983,
|
5350 |
+
1.4200000000000017,
|
5351 |
+
-4.420000000000002,
|
5352 |
+
-3.8800000000000097,
|
5353 |
+
0.10999999999999943,
|
5354 |
+
-9.049999999999997,
|
5355 |
+
1.4000000000000057,
|
5356 |
+
-5.310000000000002,
|
5357 |
+
1.4599999999999937,
|
5358 |
+
-3.1599999999999966,
|
5359 |
+
-2.6799999999999926,
|
5360 |
+
4.5,
|
5361 |
+
2.6299999999999955,
|
5362 |
+
-6.3700000000000045,
|
5363 |
+
1.9500000000000028,
|
5364 |
+
-6.6299999999999955,
|
5365 |
+
-3.5799999999999983,
|
5366 |
+
-3.1099999999999994,
|
5367 |
+
5.9199999999999875,
|
5368 |
+
0.5100000000000051,
|
5369 |
+
1.0400000000000063,
|
5370 |
+
16.58999999999999,
|
5371 |
+
-7.849999999999994,
|
5372 |
+
-1.519999999999996,
|
5373 |
+
-9.920000000000002,
|
5374 |
+
-9.170000000000002,
|
5375 |
+
-0.07000000000000739,
|
5376 |
+
1.9200000000000017,
|
5377 |
+
-4.309999999999988,
|
5378 |
+
2.9199999999999875,
|
5379 |
+
-3.4199999999999875,
|
5380 |
+
-3.1000000000000085,
|
5381 |
+
-1.1499999999999915,
|
5382 |
+
-4.190000000000012,
|
5383 |
+
2.3800000000000097,
|
5384 |
+
1.3100000000000023,
|
5385 |
+
-0.4100000000000108,
|
5386 |
+
2.1000000000000085,
|
5387 |
+
-0.6800000000000068,
|
5388 |
+
1.5300000000000011,
|
5389 |
+
0.04999999999999716,
|
5390 |
+
-2.239999999999995,
|
5391 |
+
-3.9099999999999966,
|
5392 |
+
1.6199999999999903,
|
5393 |
+
-2.1499999999999915,
|
5394 |
+
0.01999999999999602,
|
5395 |
+
-5.060000000000002,
|
5396 |
+
-2.4599999999999937,
|
5397 |
+
-1.6000000000000014,
|
5398 |
+
7.600000000000001,
|
5399 |
+
-0.10999999999999943,
|
5400 |
+
7.25,
|
5401 |
+
-1.0499999999999972,
|
5402 |
+
3.339999999999989,
|
5403 |
+
3.780000000000001,
|
5404 |
+
4.200000000000003,
|
5405 |
+
1.6800000000000068,
|
5406 |
+
1.0499999999999972,
|
5407 |
+
0.8999999999999915,
|
5408 |
+
1.6600000000000108,
|
5409 |
+
-11.27000000000001,
|
5410 |
+
0.20000000000000284,
|
5411 |
+
-0.9699999999999989,
|
5412 |
+
-1.9200000000000017,
|
5413 |
+
1.4899999999999949,
|
5414 |
+
1.7000000000000028,
|
5415 |
+
2.9399999999999977,
|
5416 |
+
-3.279999999999987,
|
5417 |
+
-1.730000000000004,
|
5418 |
+
-0.01999999999999602,
|
5419 |
+
4.009999999999991,
|
5420 |
+
2.3200000000000074,
|
5421 |
+
-4.260000000000005,
|
5422 |
+
-2.7900000000000063,
|
5423 |
+
-0.9799999999999898,
|
5424 |
+
4.959999999999994,
|
5425 |
+
-3.450000000000003,
|
5426 |
+
0.3500000000000085,
|
5427 |
+
2.8799999999999955,
|
5428 |
+
-2.8900000000000006,
|
5429 |
+
-4.049999999999997,
|
5430 |
+
-0.8299999999999983,
|
5431 |
+
-1.7199999999999989,
|
5432 |
+
3.789999999999992,
|
5433 |
+
3,
|
5434 |
+
-1.2199999999999989,
|
5435 |
+
-1.2000000000000028,
|
5436 |
+
1.8300000000000125,
|
5437 |
+
-4.710000000000008,
|
5438 |
+
-3.9000000000000057,
|
5439 |
+
-6.909999999999997,
|
5440 |
+
2.2900000000000063
|
5441 |
+
],
|
5442 |
+
"yaxis": "y2"
|
5443 |
+
},
|
5444 |
+
{
|
5445 |
+
"hovertemplate": "company=tesla<br>Date=%{x}<br>value=%{y}<extra></extra>",
|
5446 |
+
"legendgroup": "tesla",
|
5447 |
+
"line": {
|
5448 |
+
"color": "#00cc96",
|
5449 |
+
"dash": "solid"
|
5450 |
+
},
|
5451 |
+
"marker": {
|
5452 |
+
"symbol": "circle"
|
5453 |
+
},
|
5454 |
+
"mode": "lines",
|
5455 |
+
"name": "tesla",
|
5456 |
+
"orientation": "v",
|
5457 |
+
"showlegend": true,
|
5458 |
+
"type": "scatter",
|
5459 |
+
"x": [
|
5460 |
+
"2024-01-01T00:00:00",
|
5461 |
+
"2023-12-01T00:00:00",
|
5462 |
+
"2023-11-01T00:00:00",
|
5463 |
+
"2023-10-01T00:00:00",
|
5464 |
+
"2023-09-01T00:00:00",
|
5465 |
+
"2023-08-01T00:00:00",
|
5466 |
+
"2023-07-01T00:00:00",
|
5467 |
+
"2023-06-01T00:00:00",
|
5468 |
+
"2023-05-01T00:00:00",
|
5469 |
+
"2023-04-01T00:00:00",
|
5470 |
+
"2023-03-01T00:00:00",
|
5471 |
+
"2023-02-01T00:00:00",
|
5472 |
+
"2023-01-01T00:00:00",
|
5473 |
+
"2022-12-01T00:00:00",
|
5474 |
+
"2022-11-01T00:00:00",
|
5475 |
+
"2022-10-01T00:00:00",
|
5476 |
+
"2022-09-01T00:00:00",
|
5477 |
+
"2022-08-01T00:00:00",
|
5478 |
+
"2022-07-01T00:00:00",
|
5479 |
+
"2022-06-01T00:00:00",
|
5480 |
+
"2022-05-01T00:00:00",
|
5481 |
+
"2022-04-01T00:00:00",
|
5482 |
+
"2022-03-01T00:00:00",
|
5483 |
+
"2022-02-01T00:00:00",
|
5484 |
+
"2022-01-01T00:00:00",
|
5485 |
+
"2021-12-01T00:00:00",
|
5486 |
+
"2021-11-01T00:00:00",
|
5487 |
+
"2021-10-01T00:00:00",
|
5488 |
+
"2021-09-01T00:00:00",
|
5489 |
+
"2021-08-01T00:00:00",
|
5490 |
+
"2021-07-01T00:00:00",
|
5491 |
+
"2021-06-01T00:00:00",
|
5492 |
+
"2021-05-01T00:00:00",
|
5493 |
+
"2021-04-01T00:00:00",
|
5494 |
+
"2021-03-01T00:00:00",
|
5495 |
+
"2021-02-01T00:00:00",
|
5496 |
+
"2021-01-01T00:00:00",
|
5497 |
+
"2020-12-01T00:00:00",
|
5498 |
+
"2020-11-01T00:00:00",
|
5499 |
+
"2020-10-01T00:00:00",
|
5500 |
+
"2020-09-01T00:00:00",
|
5501 |
+
"2020-08-01T00:00:00",
|
5502 |
+
"2020-07-01T00:00:00",
|
5503 |
+
"2020-06-01T00:00:00",
|
5504 |
+
"2020-05-01T00:00:00",
|
5505 |
+
"2020-04-01T00:00:00",
|
5506 |
+
"2020-03-01T00:00:00",
|
5507 |
+
"2020-02-01T00:00:00",
|
5508 |
+
"2020-01-01T00:00:00",
|
5509 |
+
"2019-12-01T00:00:00",
|
5510 |
+
"2019-11-01T00:00:00",
|
5511 |
+
"2019-10-01T00:00:00",
|
5512 |
+
"2019-09-01T00:00:00",
|
5513 |
+
"2019-08-01T00:00:00",
|
5514 |
+
"2019-07-01T00:00:00",
|
5515 |
+
"2019-06-01T00:00:00",
|
5516 |
+
"2019-05-01T00:00:00",
|
5517 |
+
"2019-04-01T00:00:00",
|
5518 |
+
"2019-03-01T00:00:00",
|
5519 |
+
"2019-02-01T00:00:00",
|
5520 |
+
"2019-01-01T00:00:00",
|
5521 |
+
"2018-12-01T00:00:00",
|
5522 |
+
"2018-11-01T00:00:00",
|
5523 |
+
"2018-10-01T00:00:00",
|
5524 |
+
"2018-09-01T00:00:00",
|
5525 |
+
"2018-08-01T00:00:00",
|
5526 |
+
"2018-07-01T00:00:00",
|
5527 |
+
"2018-06-01T00:00:00",
|
5528 |
+
"2018-05-01T00:00:00",
|
5529 |
+
"2018-04-01T00:00:00",
|
5530 |
+
"2018-03-01T00:00:00",
|
5531 |
+
"2018-02-01T00:00:00",
|
5532 |
+
"2018-01-01T00:00:00",
|
5533 |
+
"2017-12-01T00:00:00",
|
5534 |
+
"2017-11-01T00:00:00",
|
5535 |
+
"2017-10-01T00:00:00",
|
5536 |
+
"2017-09-01T00:00:00",
|
5537 |
+
"2017-08-01T00:00:00",
|
5538 |
+
"2017-07-01T00:00:00",
|
5539 |
+
"2017-06-01T00:00:00",
|
5540 |
+
"2017-05-01T00:00:00",
|
5541 |
+
"2017-04-01T00:00:00",
|
5542 |
+
"2017-03-01T00:00:00",
|
5543 |
+
"2017-02-01T00:00:00",
|
5544 |
+
"2017-01-01T00:00:00",
|
5545 |
+
"2016-12-01T00:00:00",
|
5546 |
+
"2016-11-01T00:00:00",
|
5547 |
+
"2016-10-01T00:00:00",
|
5548 |
+
"2016-09-01T00:00:00",
|
5549 |
+
"2016-08-01T00:00:00",
|
5550 |
+
"2016-07-01T00:00:00",
|
5551 |
+
"2016-06-01T00:00:00",
|
5552 |
+
"2016-05-01T00:00:00",
|
5553 |
+
"2016-04-01T00:00:00",
|
5554 |
+
"2016-03-01T00:00:00",
|
5555 |
+
"2016-02-01T00:00:00",
|
5556 |
+
"2016-01-01T00:00:00",
|
5557 |
+
"2015-12-01T00:00:00",
|
5558 |
+
"2015-11-01T00:00:00",
|
5559 |
+
"2015-10-01T00:00:00",
|
5560 |
+
"2015-09-01T00:00:00",
|
5561 |
+
"2015-08-01T00:00:00",
|
5562 |
+
"2015-07-01T00:00:00",
|
5563 |
+
"2015-06-01T00:00:00",
|
5564 |
+
"2015-05-01T00:00:00",
|
5565 |
+
"2015-04-01T00:00:00",
|
5566 |
+
"2015-03-01T00:00:00",
|
5567 |
+
"2015-02-01T00:00:00",
|
5568 |
+
"2015-01-01T00:00:00",
|
5569 |
+
"2014-12-01T00:00:00",
|
5570 |
+
"2014-11-01T00:00:00",
|
5571 |
+
"2014-10-01T00:00:00",
|
5572 |
+
"2014-09-01T00:00:00",
|
5573 |
+
"2014-08-01T00:00:00",
|
5574 |
+
"2014-07-01T00:00:00",
|
5575 |
+
"2014-06-01T00:00:00",
|
5576 |
+
"2014-05-01T00:00:00",
|
5577 |
+
"2014-04-01T00:00:00",
|
5578 |
+
"2014-03-01T00:00:00",
|
5579 |
+
"2014-02-01T00:00:00",
|
5580 |
+
"2014-01-01T00:00:00",
|
5581 |
+
"2013-12-01T00:00:00",
|
5582 |
+
"2013-11-01T00:00:00",
|
5583 |
+
"2013-10-01T00:00:00",
|
5584 |
+
"2013-09-01T00:00:00",
|
5585 |
+
"2013-08-01T00:00:00",
|
5586 |
+
"2013-07-01T00:00:00",
|
5587 |
+
"2013-06-01T00:00:00",
|
5588 |
+
"2013-05-01T00:00:00",
|
5589 |
+
"2013-04-01T00:00:00",
|
5590 |
+
"2013-03-01T00:00:00",
|
5591 |
+
"2013-02-01T00:00:00",
|
5592 |
+
"2013-01-01T00:00:00",
|
5593 |
+
"2012-12-01T00:00:00",
|
5594 |
+
"2012-11-01T00:00:00",
|
5595 |
+
"2012-10-01T00:00:00",
|
5596 |
+
"2012-09-01T00:00:00",
|
5597 |
+
"2012-08-01T00:00:00",
|
5598 |
+
"2012-07-01T00:00:00",
|
5599 |
+
"2012-06-01T00:00:00",
|
5600 |
+
"2012-05-01T00:00:00",
|
5601 |
+
"2012-04-01T00:00:00",
|
5602 |
+
"2012-03-01T00:00:00"
|
5603 |
+
],
|
5604 |
+
"xaxis": "x",
|
5605 |
+
"y": [
|
5606 |
+
-4.680000000000007,
|
5607 |
+
61.19,
|
5608 |
+
-8.399999999999977,
|
5609 |
+
-39.24000000000001,
|
5610 |
+
49.379999999999995,
|
5611 |
+
7.859999999999985,
|
5612 |
+
9.350000000000023,
|
5613 |
+
-5.660000000000025,
|
5614 |
+
-57.839999999999975,
|
5615 |
+
-39.620000000000005,
|
5616 |
+
43.150000000000006,
|
5617 |
+
-1.75,
|
5618 |
+
-32.49000000000001,
|
5619 |
+
-50.03999999999999,
|
5620 |
+
71.51999999999998,
|
5621 |
+
32.84,
|
5622 |
+
37.71000000000001,
|
5623 |
+
10.360000000000014,
|
5624 |
+
21.539999999999964,
|
5625 |
+
-72.67999999999998,
|
5626 |
+
28.28,
|
5627 |
+
37.5,
|
5628 |
+
68.94999999999999,
|
5629 |
+
-69.06,
|
5630 |
+
22.100000000000023,
|
5631 |
+
40.01999999999998,
|
5632 |
+
29.329999999999984,
|
5633 |
+
-10.259999999999991,
|
5634 |
+
-112.83999999999997,
|
5635 |
+
-13.25,
|
5636 |
+
-16.170000000000016,
|
5637 |
+
-2.5,
|
5638 |
+
-18.159999999999997,
|
5639 |
+
28.069999999999993,
|
5640 |
+
-13.840000000000003,
|
5641 |
+
2.530000000000001,
|
5642 |
+
39.34,
|
5643 |
+
-29.289999999999992,
|
5644 |
+
-46.02000000000001,
|
5645 |
+
-59.849999999999994,
|
5646 |
+
13.650000000000006,
|
5647 |
+
23.110000000000014,
|
5648 |
+
-70.73000000000002,
|
5649 |
+
-23.39,
|
5650 |
+
-16.319999999999993,
|
5651 |
+
-3.539999999999999,
|
5652 |
+
-17.200000000000003,
|
5653 |
+
9.600000000000001,
|
5654 |
+
-1.1600000000000037,
|
5655 |
+
-15.479999999999997,
|
5656 |
+
-5.890000000000001,
|
5657 |
+
-1.0100000000000016,
|
5658 |
+
-4.93,
|
5659 |
+
-1.0199999999999996,
|
5660 |
+
1.0700000000000003,
|
5661 |
+
-1.209999999999999,
|
5662 |
+
-2.5600000000000005,
|
5663 |
+
3.5700000000000003,
|
5664 |
+
2.75,
|
5665 |
+
2.669999999999998,
|
5666 |
+
-0.8599999999999994,
|
5667 |
+
1.7200000000000024,
|
5668 |
+
1.1799999999999997,
|
5669 |
+
-0.8800000000000026,
|
5670 |
+
-4.84,
|
5671 |
+
2.460000000000001,
|
5672 |
+
-0.23000000000000043,
|
5673 |
+
2.9800000000000004,
|
5674 |
+
-3.879999999999999,
|
5675 |
+
0.6099999999999994,
|
5676 |
+
-1.8500000000000014,
|
5677 |
+
5.130000000000003,
|
5678 |
+
0.75,
|
5679 |
+
-2.8599999999999994,
|
5680 |
+
-0.1700000000000017,
|
5681 |
+
1.5100000000000016,
|
5682 |
+
0.639999999999997,
|
5683 |
+
0.990000000000002,
|
5684 |
+
-2.1700000000000017,
|
5685 |
+
2.5500000000000007,
|
5686 |
+
-1.379999999999999,
|
5687 |
+
-1.7899999999999991,
|
5688 |
+
-2.3900000000000006,
|
5689 |
+
-1.879999999999999,
|
5690 |
+
0.129999999999999,
|
5691 |
+
-2.5500000000000007,
|
5692 |
+
-1.6199999999999992,
|
5693 |
+
0.5499999999999989,
|
5694 |
+
0.41999999999999993,
|
5695 |
+
0.5300000000000011,
|
5696 |
+
1.5199999999999996,
|
5697 |
+
-1.5,
|
5698 |
+
0.7300000000000004,
|
5699 |
+
1.17,
|
5700 |
+
-0.7300000000000004,
|
5701 |
+
-2.5199999999999996,
|
5702 |
+
-0.05000000000000071,
|
5703 |
+
3.25,
|
5704 |
+
-0.6500000000000004,
|
5705 |
+
-1.549999999999999,
|
5706 |
+
2.759999999999998,
|
5707 |
+
0.0400000000000027,
|
5708 |
+
1.139999999999997,
|
5709 |
+
0.14000000000000057,
|
5710 |
+
-1.1600000000000001,
|
5711 |
+
-1.6499999999999986,
|
5712 |
+
-2.49,
|
5713 |
+
0.9800000000000004,
|
5714 |
+
0.009999999999999787,
|
5715 |
+
1.2599999999999998,
|
5716 |
+
1.4700000000000006,
|
5717 |
+
-0.19000000000000128,
|
5718 |
+
0.07000000000000028,
|
5719 |
+
1.8000000000000007,
|
5720 |
+
-3.09,
|
5721 |
+
1.1099999999999994,
|
5722 |
+
-2.1500000000000004,
|
5723 |
+
0.009999999999999787,
|
5724 |
+
0.040000000000000924,
|
5725 |
+
2.42,
|
5726 |
+
-4.23,
|
5727 |
+
-2.0600000000000005,
|
5728 |
+
-1.5399999999999991,
|
5729 |
+
2.17,
|
5730 |
+
2.2300000000000004,
|
5731 |
+
-1.620000000000001,
|
5732 |
+
-2.3200000000000003,
|
5733 |
+
-1.7899999999999991,
|
5734 |
+
-0.6400000000000006,
|
5735 |
+
-2.9199999999999995,
|
5736 |
+
-1.0700000000000003,
|
5737 |
+
-0.20999999999999996,
|
5738 |
+
0.18000000000000016,
|
5739 |
+
-0.2400000000000002,
|
5740 |
+
-0.009999999999999787,
|
5741 |
+
-0.3700000000000001,
|
5742 |
+
0.07000000000000006,
|
5743 |
+
-0.050000000000000044,
|
5744 |
+
-0.06999999999999984,
|
5745 |
+
0.2599999999999998,
|
5746 |
+
-0.11999999999999988,
|
5747 |
+
0.24,
|
5748 |
+
0.27
|
5749 |
+
],
|
5750 |
+
"yaxis": "y"
|
5751 |
+
}
|
5752 |
+
],
|
5753 |
+
"layout": {
|
5754 |
+
"annotations": [
|
5755 |
+
{
|
5756 |
+
"font": {},
|
5757 |
+
"showarrow": false,
|
5758 |
+
"text": "company=tesla",
|
5759 |
+
"x": 0.5,
|
5760 |
+
"xanchor": "center",
|
5761 |
+
"xref": "paper",
|
5762 |
+
"y": 0.2866666666666666,
|
5763 |
+
"yanchor": "bottom",
|
5764 |
+
"yref": "paper"
|
5765 |
+
},
|
5766 |
+
{
|
5767 |
+
"font": {},
|
5768 |
+
"showarrow": false,
|
5769 |
+
"text": "company=walmart",
|
5770 |
+
"x": 0.5,
|
5771 |
+
"xanchor": "center",
|
5772 |
+
"xref": "paper",
|
5773 |
+
"y": 0.6433333333333333,
|
5774 |
+
"yanchor": "bottom",
|
5775 |
+
"yref": "paper"
|
5776 |
+
},
|
5777 |
+
{
|
5778 |
+
"font": {},
|
5779 |
+
"showarrow": false,
|
5780 |
+
"text": "company=apple",
|
5781 |
+
"x": 0.5,
|
5782 |
+
"xanchor": "center",
|
5783 |
+
"xref": "paper",
|
5784 |
+
"y": 0.9999999999999999,
|
5785 |
+
"yanchor": "bottom",
|
5786 |
+
"yref": "paper"
|
5787 |
+
}
|
5788 |
+
],
|
5789 |
+
"legend": {
|
5790 |
+
"title": {
|
5791 |
+
"text": "company"
|
5792 |
+
},
|
5793 |
+
"tracegroupgap": 0
|
5794 |
+
},
|
5795 |
+
"margin": {
|
5796 |
+
"t": 60
|
5797 |
+
},
|
5798 |
+
"template": {
|
5799 |
+
"data": {
|
5800 |
+
"bar": [
|
5801 |
+
{
|
5802 |
+
"error_x": {
|
5803 |
+
"color": "#2a3f5f"
|
5804 |
+
},
|
5805 |
+
"error_y": {
|
5806 |
+
"color": "#2a3f5f"
|
5807 |
+
},
|
5808 |
+
"marker": {
|
5809 |
+
"line": {
|
5810 |
+
"color": "#E5ECF6",
|
5811 |
+
"width": 0.5
|
5812 |
+
},
|
5813 |
+
"pattern": {
|
5814 |
+
"fillmode": "overlay",
|
5815 |
+
"size": 10,
|
5816 |
+
"solidity": 0.2
|
5817 |
+
}
|
5818 |
+
},
|
5819 |
+
"type": "bar"
|
5820 |
+
}
|
5821 |
+
],
|
5822 |
+
"barpolar": [
|
5823 |
+
{
|
5824 |
+
"marker": {
|
5825 |
+
"line": {
|
5826 |
+
"color": "#E5ECF6",
|
5827 |
+
"width": 0.5
|
5828 |
+
},
|
5829 |
+
"pattern": {
|
5830 |
+
"fillmode": "overlay",
|
5831 |
+
"size": 10,
|
5832 |
+
"solidity": 0.2
|
5833 |
+
}
|
5834 |
+
},
|
5835 |
+
"type": "barpolar"
|
5836 |
+
}
|
5837 |
+
],
|
5838 |
+
"carpet": [
|
5839 |
+
{
|
5840 |
+
"aaxis": {
|
5841 |
+
"endlinecolor": "#2a3f5f",
|
5842 |
+
"gridcolor": "white",
|
5843 |
+
"linecolor": "white",
|
5844 |
+
"minorgridcolor": "white",
|
5845 |
+
"startlinecolor": "#2a3f5f"
|
5846 |
+
},
|
5847 |
+
"baxis": {
|
5848 |
+
"endlinecolor": "#2a3f5f",
|
5849 |
+
"gridcolor": "white",
|
5850 |
+
"linecolor": "white",
|
5851 |
+
"minorgridcolor": "white",
|
5852 |
+
"startlinecolor": "#2a3f5f"
|
5853 |
+
},
|
5854 |
+
"type": "carpet"
|
5855 |
+
}
|
5856 |
+
],
|
5857 |
+
"choropleth": [
|
5858 |
+
{
|
5859 |
+
"colorbar": {
|
5860 |
+
"outlinewidth": 0,
|
5861 |
+
"ticks": ""
|
5862 |
+
},
|
5863 |
+
"type": "choropleth"
|
5864 |
+
}
|
5865 |
+
],
|
5866 |
+
"contour": [
|
5867 |
+
{
|
5868 |
+
"colorbar": {
|
5869 |
+
"outlinewidth": 0,
|
5870 |
+
"ticks": ""
|
5871 |
+
},
|
5872 |
+
"colorscale": [
|
5873 |
+
[
|
5874 |
+
0,
|
5875 |
+
"#0d0887"
|
5876 |
+
],
|
5877 |
+
[
|
5878 |
+
0.1111111111111111,
|
5879 |
+
"#46039f"
|
5880 |
+
],
|
5881 |
+
[
|
5882 |
+
0.2222222222222222,
|
5883 |
+
"#7201a8"
|
5884 |
+
],
|
5885 |
+
[
|
5886 |
+
0.3333333333333333,
|
5887 |
+
"#9c179e"
|
5888 |
+
],
|
5889 |
+
[
|
5890 |
+
0.4444444444444444,
|
5891 |
+
"#bd3786"
|
5892 |
+
],
|
5893 |
+
[
|
5894 |
+
0.5555555555555556,
|
5895 |
+
"#d8576b"
|
5896 |
+
],
|
5897 |
+
[
|
5898 |
+
0.6666666666666666,
|
5899 |
+
"#ed7953"
|
5900 |
+
],
|
5901 |
+
[
|
5902 |
+
0.7777777777777778,
|
5903 |
+
"#fb9f3a"
|
5904 |
+
],
|
5905 |
+
[
|
5906 |
+
0.8888888888888888,
|
5907 |
+
"#fdca26"
|
5908 |
+
],
|
5909 |
+
[
|
5910 |
+
1,
|
5911 |
+
"#f0f921"
|
5912 |
+
]
|
5913 |
+
],
|
5914 |
+
"type": "contour"
|
5915 |
+
}
|
5916 |
+
],
|
5917 |
+
"contourcarpet": [
|
5918 |
+
{
|
5919 |
+
"colorbar": {
|
5920 |
+
"outlinewidth": 0,
|
5921 |
+
"ticks": ""
|
5922 |
+
},
|
5923 |
+
"type": "contourcarpet"
|
5924 |
+
}
|
5925 |
+
],
|
5926 |
+
"heatmap": [
|
5927 |
+
{
|
5928 |
+
"colorbar": {
|
5929 |
+
"outlinewidth": 0,
|
5930 |
+
"ticks": ""
|
5931 |
+
},
|
5932 |
+
"colorscale": [
|
5933 |
+
[
|
5934 |
+
0,
|
5935 |
+
"#0d0887"
|
5936 |
+
],
|
5937 |
+
[
|
5938 |
+
0.1111111111111111,
|
5939 |
+
"#46039f"
|
5940 |
+
],
|
5941 |
+
[
|
5942 |
+
0.2222222222222222,
|
5943 |
+
"#7201a8"
|
5944 |
+
],
|
5945 |
+
[
|
5946 |
+
0.3333333333333333,
|
5947 |
+
"#9c179e"
|
5948 |
+
],
|
5949 |
+
[
|
5950 |
+
0.4444444444444444,
|
5951 |
+
"#bd3786"
|
5952 |
+
],
|
5953 |
+
[
|
5954 |
+
0.5555555555555556,
|
5955 |
+
"#d8576b"
|
5956 |
+
],
|
5957 |
+
[
|
5958 |
+
0.6666666666666666,
|
5959 |
+
"#ed7953"
|
5960 |
+
],
|
5961 |
+
[
|
5962 |
+
0.7777777777777778,
|
5963 |
+
"#fb9f3a"
|
5964 |
+
],
|
5965 |
+
[
|
5966 |
+
0.8888888888888888,
|
5967 |
+
"#fdca26"
|
5968 |
+
],
|
5969 |
+
[
|
5970 |
+
1,
|
5971 |
+
"#f0f921"
|
5972 |
+
]
|
5973 |
+
],
|
5974 |
+
"type": "heatmap"
|
5975 |
+
}
|
5976 |
+
],
|
5977 |
+
"heatmapgl": [
|
5978 |
+
{
|
5979 |
+
"colorbar": {
|
5980 |
+
"outlinewidth": 0,
|
5981 |
+
"ticks": ""
|
5982 |
+
},
|
5983 |
+
"colorscale": [
|
5984 |
+
[
|
5985 |
+
0,
|
5986 |
+
"#0d0887"
|
5987 |
+
],
|
5988 |
+
[
|
5989 |
+
0.1111111111111111,
|
5990 |
+
"#46039f"
|
5991 |
+
],
|
5992 |
+
[
|
5993 |
+
0.2222222222222222,
|
5994 |
+
"#7201a8"
|
5995 |
+
],
|
5996 |
+
[
|
5997 |
+
0.3333333333333333,
|
5998 |
+
"#9c179e"
|
5999 |
+
],
|
6000 |
+
[
|
6001 |
+
0.4444444444444444,
|
6002 |
+
"#bd3786"
|
6003 |
+
],
|
6004 |
+
[
|
6005 |
+
0.5555555555555556,
|
6006 |
+
"#d8576b"
|
6007 |
+
],
|
6008 |
+
[
|
6009 |
+
0.6666666666666666,
|
6010 |
+
"#ed7953"
|
6011 |
+
],
|
6012 |
+
[
|
6013 |
+
0.7777777777777778,
|
6014 |
+
"#fb9f3a"
|
6015 |
+
],
|
6016 |
+
[
|
6017 |
+
0.8888888888888888,
|
6018 |
+
"#fdca26"
|
6019 |
+
],
|
6020 |
+
[
|
6021 |
+
1,
|
6022 |
+
"#f0f921"
|
6023 |
+
]
|
6024 |
+
],
|
6025 |
+
"type": "heatmapgl"
|
6026 |
+
}
|
6027 |
+
],
|
6028 |
+
"histogram": [
|
6029 |
+
{
|
6030 |
+
"marker": {
|
6031 |
+
"pattern": {
|
6032 |
+
"fillmode": "overlay",
|
6033 |
+
"size": 10,
|
6034 |
+
"solidity": 0.2
|
6035 |
+
}
|
6036 |
+
},
|
6037 |
+
"type": "histogram"
|
6038 |
+
}
|
6039 |
+
],
|
6040 |
+
"histogram2d": [
|
6041 |
+
{
|
6042 |
+
"colorbar": {
|
6043 |
+
"outlinewidth": 0,
|
6044 |
+
"ticks": ""
|
6045 |
+
},
|
6046 |
+
"colorscale": [
|
6047 |
+
[
|
6048 |
+
0,
|
6049 |
+
"#0d0887"
|
6050 |
+
],
|
6051 |
+
[
|
6052 |
+
0.1111111111111111,
|
6053 |
+
"#46039f"
|
6054 |
+
],
|
6055 |
+
[
|
6056 |
+
0.2222222222222222,
|
6057 |
+
"#7201a8"
|
6058 |
+
],
|
6059 |
+
[
|
6060 |
+
0.3333333333333333,
|
6061 |
+
"#9c179e"
|
6062 |
+
],
|
6063 |
+
[
|
6064 |
+
0.4444444444444444,
|
6065 |
+
"#bd3786"
|
6066 |
+
],
|
6067 |
+
[
|
6068 |
+
0.5555555555555556,
|
6069 |
+
"#d8576b"
|
6070 |
+
],
|
6071 |
+
[
|
6072 |
+
0.6666666666666666,
|
6073 |
+
"#ed7953"
|
6074 |
+
],
|
6075 |
+
[
|
6076 |
+
0.7777777777777778,
|
6077 |
+
"#fb9f3a"
|
6078 |
+
],
|
6079 |
+
[
|
6080 |
+
0.8888888888888888,
|
6081 |
+
"#fdca26"
|
6082 |
+
],
|
6083 |
+
[
|
6084 |
+
1,
|
6085 |
+
"#f0f921"
|
6086 |
+
]
|
6087 |
+
],
|
6088 |
+
"type": "histogram2d"
|
6089 |
+
}
|
6090 |
+
],
|
6091 |
+
"histogram2dcontour": [
|
6092 |
+
{
|
6093 |
+
"colorbar": {
|
6094 |
+
"outlinewidth": 0,
|
6095 |
+
"ticks": ""
|
6096 |
+
},
|
6097 |
+
"colorscale": [
|
6098 |
+
[
|
6099 |
+
0,
|
6100 |
+
"#0d0887"
|
6101 |
+
],
|
6102 |
+
[
|
6103 |
+
0.1111111111111111,
|
6104 |
+
"#46039f"
|
6105 |
+
],
|
6106 |
+
[
|
6107 |
+
0.2222222222222222,
|
6108 |
+
"#7201a8"
|
6109 |
+
],
|
6110 |
+
[
|
6111 |
+
0.3333333333333333,
|
6112 |
+
"#9c179e"
|
6113 |
+
],
|
6114 |
+
[
|
6115 |
+
0.4444444444444444,
|
6116 |
+
"#bd3786"
|
6117 |
+
],
|
6118 |
+
[
|
6119 |
+
0.5555555555555556,
|
6120 |
+
"#d8576b"
|
6121 |
+
],
|
6122 |
+
[
|
6123 |
+
0.6666666666666666,
|
6124 |
+
"#ed7953"
|
6125 |
+
],
|
6126 |
+
[
|
6127 |
+
0.7777777777777778,
|
6128 |
+
"#fb9f3a"
|
6129 |
+
],
|
6130 |
+
[
|
6131 |
+
0.8888888888888888,
|
6132 |
+
"#fdca26"
|
6133 |
+
],
|
6134 |
+
[
|
6135 |
+
1,
|
6136 |
+
"#f0f921"
|
6137 |
+
]
|
6138 |
+
],
|
6139 |
+
"type": "histogram2dcontour"
|
6140 |
+
}
|
6141 |
+
],
|
6142 |
+
"mesh3d": [
|
6143 |
+
{
|
6144 |
+
"colorbar": {
|
6145 |
+
"outlinewidth": 0,
|
6146 |
+
"ticks": ""
|
6147 |
+
},
|
6148 |
+
"type": "mesh3d"
|
6149 |
+
}
|
6150 |
+
],
|
6151 |
+
"parcoords": [
|
6152 |
+
{
|
6153 |
+
"line": {
|
6154 |
+
"colorbar": {
|
6155 |
+
"outlinewidth": 0,
|
6156 |
+
"ticks": ""
|
6157 |
+
}
|
6158 |
+
},
|
6159 |
+
"type": "parcoords"
|
6160 |
+
}
|
6161 |
+
],
|
6162 |
+
"pie": [
|
6163 |
+
{
|
6164 |
+
"automargin": true,
|
6165 |
+
"type": "pie"
|
6166 |
+
}
|
6167 |
+
],
|
6168 |
+
"scatter": [
|
6169 |
+
{
|
6170 |
+
"fillpattern": {
|
6171 |
+
"fillmode": "overlay",
|
6172 |
+
"size": 10,
|
6173 |
+
"solidity": 0.2
|
6174 |
+
},
|
6175 |
+
"type": "scatter"
|
6176 |
+
}
|
6177 |
+
],
|
6178 |
+
"scatter3d": [
|
6179 |
+
{
|
6180 |
+
"line": {
|
6181 |
+
"colorbar": {
|
6182 |
+
"outlinewidth": 0,
|
6183 |
+
"ticks": ""
|
6184 |
+
}
|
6185 |
+
},
|
6186 |
+
"marker": {
|
6187 |
+
"colorbar": {
|
6188 |
+
"outlinewidth": 0,
|
6189 |
+
"ticks": ""
|
6190 |
+
}
|
6191 |
+
},
|
6192 |
+
"type": "scatter3d"
|
6193 |
+
}
|
6194 |
+
],
|
6195 |
+
"scattercarpet": [
|
6196 |
+
{
|
6197 |
+
"marker": {
|
6198 |
+
"colorbar": {
|
6199 |
+
"outlinewidth": 0,
|
6200 |
+
"ticks": ""
|
6201 |
+
}
|
6202 |
+
},
|
6203 |
+
"type": "scattercarpet"
|
6204 |
+
}
|
6205 |
+
],
|
6206 |
+
"scattergeo": [
|
6207 |
+
{
|
6208 |
+
"marker": {
|
6209 |
+
"colorbar": {
|
6210 |
+
"outlinewidth": 0,
|
6211 |
+
"ticks": ""
|
6212 |
+
}
|
6213 |
+
},
|
6214 |
+
"type": "scattergeo"
|
6215 |
+
}
|
6216 |
+
],
|
6217 |
+
"scattergl": [
|
6218 |
+
{
|
6219 |
+
"marker": {
|
6220 |
+
"colorbar": {
|
6221 |
+
"outlinewidth": 0,
|
6222 |
+
"ticks": ""
|
6223 |
+
}
|
6224 |
+
},
|
6225 |
+
"type": "scattergl"
|
6226 |
+
}
|
6227 |
+
],
|
6228 |
+
"scattermapbox": [
|
6229 |
+
{
|
6230 |
+
"marker": {
|
6231 |
+
"colorbar": {
|
6232 |
+
"outlinewidth": 0,
|
6233 |
+
"ticks": ""
|
6234 |
+
}
|
6235 |
+
},
|
6236 |
+
"type": "scattermapbox"
|
6237 |
+
}
|
6238 |
+
],
|
6239 |
+
"scatterpolar": [
|
6240 |
+
{
|
6241 |
+
"marker": {
|
6242 |
+
"colorbar": {
|
6243 |
+
"outlinewidth": 0,
|
6244 |
+
"ticks": ""
|
6245 |
+
}
|
6246 |
+
},
|
6247 |
+
"type": "scatterpolar"
|
6248 |
+
}
|
6249 |
+
],
|
6250 |
+
"scatterpolargl": [
|
6251 |
+
{
|
6252 |
+
"marker": {
|
6253 |
+
"colorbar": {
|
6254 |
+
"outlinewidth": 0,
|
6255 |
+
"ticks": ""
|
6256 |
+
}
|
6257 |
+
},
|
6258 |
+
"type": "scatterpolargl"
|
6259 |
+
}
|
6260 |
+
],
|
6261 |
+
"scatterternary": [
|
6262 |
+
{
|
6263 |
+
"marker": {
|
6264 |
+
"colorbar": {
|
6265 |
+
"outlinewidth": 0,
|
6266 |
+
"ticks": ""
|
6267 |
+
}
|
6268 |
+
},
|
6269 |
+
"type": "scatterternary"
|
6270 |
+
}
|
6271 |
+
],
|
6272 |
+
"surface": [
|
6273 |
+
{
|
6274 |
+
"colorbar": {
|
6275 |
+
"outlinewidth": 0,
|
6276 |
+
"ticks": ""
|
6277 |
+
},
|
6278 |
+
"colorscale": [
|
6279 |
+
[
|
6280 |
+
0,
|
6281 |
+
"#0d0887"
|
6282 |
+
],
|
6283 |
+
[
|
6284 |
+
0.1111111111111111,
|
6285 |
+
"#46039f"
|
6286 |
+
],
|
6287 |
+
[
|
6288 |
+
0.2222222222222222,
|
6289 |
+
"#7201a8"
|
6290 |
+
],
|
6291 |
+
[
|
6292 |
+
0.3333333333333333,
|
6293 |
+
"#9c179e"
|
6294 |
+
],
|
6295 |
+
[
|
6296 |
+
0.4444444444444444,
|
6297 |
+
"#bd3786"
|
6298 |
+
],
|
6299 |
+
[
|
6300 |
+
0.5555555555555556,
|
6301 |
+
"#d8576b"
|
6302 |
+
],
|
6303 |
+
[
|
6304 |
+
0.6666666666666666,
|
6305 |
+
"#ed7953"
|
6306 |
+
],
|
6307 |
+
[
|
6308 |
+
0.7777777777777778,
|
6309 |
+
"#fb9f3a"
|
6310 |
+
],
|
6311 |
+
[
|
6312 |
+
0.8888888888888888,
|
6313 |
+
"#fdca26"
|
6314 |
+
],
|
6315 |
+
[
|
6316 |
+
1,
|
6317 |
+
"#f0f921"
|
6318 |
+
]
|
6319 |
+
],
|
6320 |
+
"type": "surface"
|
6321 |
+
}
|
6322 |
+
],
|
6323 |
+
"table": [
|
6324 |
+
{
|
6325 |
+
"cells": {
|
6326 |
+
"fill": {
|
6327 |
+
"color": "#EBF0F8"
|
6328 |
+
},
|
6329 |
+
"line": {
|
6330 |
+
"color": "white"
|
6331 |
+
}
|
6332 |
+
},
|
6333 |
+
"header": {
|
6334 |
+
"fill": {
|
6335 |
+
"color": "#C8D4E3"
|
6336 |
+
},
|
6337 |
+
"line": {
|
6338 |
+
"color": "white"
|
6339 |
+
}
|
6340 |
+
},
|
6341 |
+
"type": "table"
|
6342 |
+
}
|
6343 |
+
]
|
6344 |
+
},
|
6345 |
+
"layout": {
|
6346 |
+
"annotationdefaults": {
|
6347 |
+
"arrowcolor": "#2a3f5f",
|
6348 |
+
"arrowhead": 0,
|
6349 |
+
"arrowwidth": 1
|
6350 |
+
},
|
6351 |
+
"autotypenumbers": "strict",
|
6352 |
+
"coloraxis": {
|
6353 |
+
"colorbar": {
|
6354 |
+
"outlinewidth": 0,
|
6355 |
+
"ticks": ""
|
6356 |
+
}
|
6357 |
+
},
|
6358 |
+
"colorscale": {
|
6359 |
+
"diverging": [
|
6360 |
+
[
|
6361 |
+
0,
|
6362 |
+
"#8e0152"
|
6363 |
+
],
|
6364 |
+
[
|
6365 |
+
0.1,
|
6366 |
+
"#c51b7d"
|
6367 |
+
],
|
6368 |
+
[
|
6369 |
+
0.2,
|
6370 |
+
"#de77ae"
|
6371 |
+
],
|
6372 |
+
[
|
6373 |
+
0.3,
|
6374 |
+
"#f1b6da"
|
6375 |
+
],
|
6376 |
+
[
|
6377 |
+
0.4,
|
6378 |
+
"#fde0ef"
|
6379 |
+
],
|
6380 |
+
[
|
6381 |
+
0.5,
|
6382 |
+
"#f7f7f7"
|
6383 |
+
],
|
6384 |
+
[
|
6385 |
+
0.6,
|
6386 |
+
"#e6f5d0"
|
6387 |
+
],
|
6388 |
+
[
|
6389 |
+
0.7,
|
6390 |
+
"#b8e186"
|
6391 |
+
],
|
6392 |
+
[
|
6393 |
+
0.8,
|
6394 |
+
"#7fbc41"
|
6395 |
+
],
|
6396 |
+
[
|
6397 |
+
0.9,
|
6398 |
+
"#4d9221"
|
6399 |
+
],
|
6400 |
+
[
|
6401 |
+
1,
|
6402 |
+
"#276419"
|
6403 |
+
]
|
6404 |
+
],
|
6405 |
+
"sequential": [
|
6406 |
+
[
|
6407 |
+
0,
|
6408 |
+
"#0d0887"
|
6409 |
+
],
|
6410 |
+
[
|
6411 |
+
0.1111111111111111,
|
6412 |
+
"#46039f"
|
6413 |
+
],
|
6414 |
+
[
|
6415 |
+
0.2222222222222222,
|
6416 |
+
"#7201a8"
|
6417 |
+
],
|
6418 |
+
[
|
6419 |
+
0.3333333333333333,
|
6420 |
+
"#9c179e"
|
6421 |
+
],
|
6422 |
+
[
|
6423 |
+
0.4444444444444444,
|
6424 |
+
"#bd3786"
|
6425 |
+
],
|
6426 |
+
[
|
6427 |
+
0.5555555555555556,
|
6428 |
+
"#d8576b"
|
6429 |
+
],
|
6430 |
+
[
|
6431 |
+
0.6666666666666666,
|
6432 |
+
"#ed7953"
|
6433 |
+
],
|
6434 |
+
[
|
6435 |
+
0.7777777777777778,
|
6436 |
+
"#fb9f3a"
|
6437 |
+
],
|
6438 |
+
[
|
6439 |
+
0.8888888888888888,
|
6440 |
+
"#fdca26"
|
6441 |
+
],
|
6442 |
+
[
|
6443 |
+
1,
|
6444 |
+
"#f0f921"
|
6445 |
+
]
|
6446 |
+
],
|
6447 |
+
"sequentialminus": [
|
6448 |
+
[
|
6449 |
+
0,
|
6450 |
+
"#0d0887"
|
6451 |
+
],
|
6452 |
+
[
|
6453 |
+
0.1111111111111111,
|
6454 |
+
"#46039f"
|
6455 |
+
],
|
6456 |
+
[
|
6457 |
+
0.2222222222222222,
|
6458 |
+
"#7201a8"
|
6459 |
+
],
|
6460 |
+
[
|
6461 |
+
0.3333333333333333,
|
6462 |
+
"#9c179e"
|
6463 |
+
],
|
6464 |
+
[
|
6465 |
+
0.4444444444444444,
|
6466 |
+
"#bd3786"
|
6467 |
+
],
|
6468 |
+
[
|
6469 |
+
0.5555555555555556,
|
6470 |
+
"#d8576b"
|
6471 |
+
],
|
6472 |
+
[
|
6473 |
+
0.6666666666666666,
|
6474 |
+
"#ed7953"
|
6475 |
+
],
|
6476 |
+
[
|
6477 |
+
0.7777777777777778,
|
6478 |
+
"#fb9f3a"
|
6479 |
+
],
|
6480 |
+
[
|
6481 |
+
0.8888888888888888,
|
6482 |
+
"#fdca26"
|
6483 |
+
],
|
6484 |
+
[
|
6485 |
+
1,
|
6486 |
+
"#f0f921"
|
6487 |
+
]
|
6488 |
+
]
|
6489 |
+
},
|
6490 |
+
"colorway": [
|
6491 |
+
"#636efa",
|
6492 |
+
"#EF553B",
|
6493 |
+
"#00cc96",
|
6494 |
+
"#ab63fa",
|
6495 |
+
"#FFA15A",
|
6496 |
+
"#19d3f3",
|
6497 |
+
"#FF6692",
|
6498 |
+
"#B6E880",
|
6499 |
+
"#FF97FF",
|
6500 |
+
"#FECB52"
|
6501 |
+
],
|
6502 |
+
"font": {
|
6503 |
+
"color": "#2a3f5f"
|
6504 |
+
},
|
6505 |
+
"geo": {
|
6506 |
+
"bgcolor": "white",
|
6507 |
+
"lakecolor": "white",
|
6508 |
+
"landcolor": "#E5ECF6",
|
6509 |
+
"showlakes": true,
|
6510 |
+
"showland": true,
|
6511 |
+
"subunitcolor": "white"
|
6512 |
+
},
|
6513 |
+
"hoverlabel": {
|
6514 |
+
"align": "left"
|
6515 |
+
},
|
6516 |
+
"hovermode": "closest",
|
6517 |
+
"mapbox": {
|
6518 |
+
"style": "light"
|
6519 |
+
},
|
6520 |
+
"paper_bgcolor": "white",
|
6521 |
+
"plot_bgcolor": "#E5ECF6",
|
6522 |
+
"polar": {
|
6523 |
+
"angularaxis": {
|
6524 |
+
"gridcolor": "white",
|
6525 |
+
"linecolor": "white",
|
6526 |
+
"ticks": ""
|
6527 |
+
},
|
6528 |
+
"bgcolor": "#E5ECF6",
|
6529 |
+
"radialaxis": {
|
6530 |
+
"gridcolor": "white",
|
6531 |
+
"linecolor": "white",
|
6532 |
+
"ticks": ""
|
6533 |
+
}
|
6534 |
+
},
|
6535 |
+
"scene": {
|
6536 |
+
"xaxis": {
|
6537 |
+
"backgroundcolor": "#E5ECF6",
|
6538 |
+
"gridcolor": "white",
|
6539 |
+
"gridwidth": 2,
|
6540 |
+
"linecolor": "white",
|
6541 |
+
"showbackground": true,
|
6542 |
+
"ticks": "",
|
6543 |
+
"zerolinecolor": "white"
|
6544 |
+
},
|
6545 |
+
"yaxis": {
|
6546 |
+
"backgroundcolor": "#E5ECF6",
|
6547 |
+
"gridcolor": "white",
|
6548 |
+
"gridwidth": 2,
|
6549 |
+
"linecolor": "white",
|
6550 |
+
"showbackground": true,
|
6551 |
+
"ticks": "",
|
6552 |
+
"zerolinecolor": "white"
|
6553 |
+
},
|
6554 |
+
"zaxis": {
|
6555 |
+
"backgroundcolor": "#E5ECF6",
|
6556 |
+
"gridcolor": "white",
|
6557 |
+
"gridwidth": 2,
|
6558 |
+
"linecolor": "white",
|
6559 |
+
"showbackground": true,
|
6560 |
+
"ticks": "",
|
6561 |
+
"zerolinecolor": "white"
|
6562 |
+
}
|
6563 |
+
},
|
6564 |
+
"shapedefaults": {
|
6565 |
+
"line": {
|
6566 |
+
"color": "#2a3f5f"
|
6567 |
+
}
|
6568 |
+
},
|
6569 |
+
"ternary": {
|
6570 |
+
"aaxis": {
|
6571 |
+
"gridcolor": "white",
|
6572 |
+
"linecolor": "white",
|
6573 |
+
"ticks": ""
|
6574 |
+
},
|
6575 |
+
"baxis": {
|
6576 |
+
"gridcolor": "white",
|
6577 |
+
"linecolor": "white",
|
6578 |
+
"ticks": ""
|
6579 |
+
},
|
6580 |
+
"bgcolor": "#E5ECF6",
|
6581 |
+
"caxis": {
|
6582 |
+
"gridcolor": "white",
|
6583 |
+
"linecolor": "white",
|
6584 |
+
"ticks": ""
|
6585 |
+
}
|
6586 |
+
},
|
6587 |
+
"title": {
|
6588 |
+
"x": 0.05
|
6589 |
+
},
|
6590 |
+
"xaxis": {
|
6591 |
+
"automargin": true,
|
6592 |
+
"gridcolor": "white",
|
6593 |
+
"linecolor": "white",
|
6594 |
+
"ticks": "",
|
6595 |
+
"title": {
|
6596 |
+
"standoff": 15
|
6597 |
+
},
|
6598 |
+
"zerolinecolor": "white",
|
6599 |
+
"zerolinewidth": 2
|
6600 |
+
},
|
6601 |
+
"yaxis": {
|
6602 |
+
"automargin": true,
|
6603 |
+
"gridcolor": "white",
|
6604 |
+
"linecolor": "white",
|
6605 |
+
"ticks": "",
|
6606 |
+
"title": {
|
6607 |
+
"standoff": 15
|
6608 |
+
},
|
6609 |
+
"zerolinecolor": "white",
|
6610 |
+
"zerolinewidth": 2
|
6611 |
+
}
|
6612 |
+
}
|
6613 |
+
},
|
6614 |
+
"xaxis": {
|
6615 |
+
"anchor": "y",
|
6616 |
+
"domain": [
|
6617 |
+
0,
|
6618 |
+
1
|
6619 |
+
],
|
6620 |
+
"title": {
|
6621 |
+
"text": "Date"
|
6622 |
+
}
|
6623 |
+
},
|
6624 |
+
"xaxis2": {
|
6625 |
+
"anchor": "y2",
|
6626 |
+
"domain": [
|
6627 |
+
0,
|
6628 |
+
1
|
6629 |
+
],
|
6630 |
+
"matches": "x",
|
6631 |
+
"showticklabels": false
|
6632 |
+
},
|
6633 |
+
"xaxis3": {
|
6634 |
+
"anchor": "y3",
|
6635 |
+
"domain": [
|
6636 |
+
0,
|
6637 |
+
1
|
6638 |
+
],
|
6639 |
+
"matches": "x",
|
6640 |
+
"showticklabels": false
|
6641 |
+
},
|
6642 |
+
"yaxis": {
|
6643 |
+
"anchor": "x",
|
6644 |
+
"domain": [
|
6645 |
+
0,
|
6646 |
+
0.2866666666666666
|
6647 |
+
],
|
6648 |
+
"title": {
|
6649 |
+
"text": "value"
|
6650 |
+
}
|
6651 |
+
},
|
6652 |
+
"yaxis2": {
|
6653 |
+
"anchor": "x2",
|
6654 |
+
"domain": [
|
6655 |
+
0.35666666666666663,
|
6656 |
+
0.6433333333333333
|
6657 |
+
],
|
6658 |
+
"title": {
|
6659 |
+
"text": "value"
|
6660 |
+
}
|
6661 |
+
},
|
6662 |
+
"yaxis3": {
|
6663 |
+
"anchor": "x3",
|
6664 |
+
"domain": [
|
6665 |
+
0.7133333333333333,
|
6666 |
+
0.9999999999999999
|
6667 |
+
],
|
6668 |
+
"title": {
|
6669 |
+
"text": "value"
|
6670 |
+
}
|
6671 |
+
}
|
6672 |
+
}
|
6673 |
+
}
|
6674 |
+
},
|
6675 |
+
"metadata": {},
|
6676 |
+
"output_type": "display_data"
|
6677 |
+
}
|
6678 |
+
],
|
6679 |
+
"source": [
|
6680 |
+
"df_train_transformed = df_train.diff().dropna()\n",
|
6681 |
+
"\n",
|
6682 |
+
"fig = px.line(df_train_transformed, facet_col=\"company\", facet_col_wrap=1)\n",
|
6683 |
+
"fig.update_yaxes(matches=None)\n",
|
6684 |
+
"fig.show()"
|
6685 |
+
]
|
6686 |
+
},
|
6687 |
+
{
|
6688 |
+
"cell_type": "code",
|
6689 |
+
"execution_count": 20,
|
6690 |
+
"metadata": {},
|
6691 |
+
"outputs": [
|
6692 |
+
{
|
6693 |
+
"name": "stdout",
|
6694 |
+
"output_type": "stream",
|
6695 |
+
"text": [
|
6696 |
+
"ADF Test: Apple time series transformed\n",
|
6697 |
+
"ADF Statistics: -3.799168\n",
|
6698 |
+
"p-value: 0.002916\n",
|
6699 |
+
"Critical values:\n",
|
6700 |
+
"\t1%: -3.480\n",
|
6701 |
+
"\t5%: -2.883\n",
|
6702 |
+
"\t10%: -2.578\n",
|
6703 |
+
"ADF Test: Walmart time series transformed\n",
|
6704 |
+
"ADF Statistics: -10.306569\n",
|
6705 |
+
"p-value: 0.000000\n",
|
6706 |
+
"Critical values:\n",
|
6707 |
+
"\t1%: -3.478\n",
|
6708 |
+
"\t5%: -2.882\n",
|
6709 |
+
"\t10%: -2.578\n",
|
6710 |
+
"ADF Test: Tesla time series transformed\n",
|
6711 |
+
"ADF Statistics: -2.927547\n",
|
6712 |
+
"p-value: 0.042237\n",
|
6713 |
+
"Critical values:\n",
|
6714 |
+
"\t1%: -3.482\n",
|
6715 |
+
"\t5%: -2.884\n",
|
6716 |
+
"\t10%: -2.579\n"
|
6717 |
+
]
|
6718 |
+
}
|
6719 |
+
],
|
6720 |
+
"source": [
|
6721 |
+
"print('ADF Test: Apple time series transformed')\n",
|
6722 |
+
"adf_test(df_train_transformed['apple'])\n",
|
6723 |
+
"print('ADF Test: Walmart time series transformed')\n",
|
6724 |
+
"adf_test(df_train_transformed['walmart'])\n",
|
6725 |
+
"print('ADF Test: Tesla time series transformed')\n",
|
6726 |
+
"adf_test(df_train_transformed['tesla'])"
|
6727 |
+
]
|
6728 |
+
},
|
6729 |
+
{
|
6730 |
+
"cell_type": "code",
|
6731 |
+
"execution_count": 21,
|
6732 |
+
"metadata": {},
|
6733 |
+
"outputs": [
|
6734 |
+
{
|
6735 |
+
"name": "stdout",
|
6736 |
+
"output_type": "stream",
|
6737 |
+
"text": [
|
6738 |
+
"KPSS Test: Apple time series transformed\n",
|
6739 |
+
"KPSS Statistic: 0.30642603993334216\n",
|
6740 |
+
"p-value: 0.1\n",
|
6741 |
+
"num lags: 7\n",
|
6742 |
+
"Critial Values:\n",
|
6743 |
+
" 10% : 0.347\n",
|
6744 |
+
" 5% : 0.463\n",
|
6745 |
+
" 2.5% : 0.574\n",
|
6746 |
+
" 1% : 0.739\n",
|
6747 |
+
"KPSS Test: Walmart time series transformed\n",
|
6748 |
+
"KPSS Statistic: 0.19811078226585627\n",
|
6749 |
+
"p-value: 0.1\n",
|
6750 |
+
"num lags: 8\n",
|
6751 |
+
"Critial Values:\n",
|
6752 |
+
" 10% : 0.347\n",
|
6753 |
+
" 5% : 0.463\n",
|
6754 |
+
" 2.5% : 0.574\n",
|
6755 |
+
" 1% : 0.739\n",
|
6756 |
+
"KPSS Test: Tesla time series transformed\n",
|
6757 |
+
"KPSS Statistic: 0.09114707308088876\n",
|
6758 |
+
"p-value: 0.1\n",
|
6759 |
+
"num lags: 17\n",
|
6760 |
+
"Critial Values:\n",
|
6761 |
+
" 10% : 0.347\n",
|
6762 |
+
" 5% : 0.463\n",
|
6763 |
+
" 2.5% : 0.574\n",
|
6764 |
+
" 1% : 0.739\n"
|
6765 |
+
]
|
6766 |
+
},
|
6767 |
+
{
|
6768 |
+
"name": "stderr",
|
6769 |
+
"output_type": "stream",
|
6770 |
+
"text": [
|
6771 |
+
"/tmp/ipykernel_347985/249017143.py:2: InterpolationWarning:\n",
|
6772 |
+
"\n",
|
6773 |
+
"The test statistic is outside of the range of p-values available in the\n",
|
6774 |
+
"look-up table. The actual p-value is greater than the p-value returned.\n",
|
6775 |
+
"\n",
|
6776 |
+
"\n",
|
6777 |
+
"/tmp/ipykernel_347985/249017143.py:2: InterpolationWarning:\n",
|
6778 |
+
"\n",
|
6779 |
+
"The test statistic is outside of the range of p-values available in the\n",
|
6780 |
+
"look-up table. The actual p-value is greater than the p-value returned.\n",
|
6781 |
+
"\n",
|
6782 |
+
"\n",
|
6783 |
+
"/tmp/ipykernel_347985/249017143.py:2: InterpolationWarning:\n",
|
6784 |
+
"\n",
|
6785 |
+
"The test statistic is outside of the range of p-values available in the\n",
|
6786 |
+
"look-up table. The actual p-value is greater than the p-value returned.\n",
|
6787 |
+
"\n",
|
6788 |
+
"\n"
|
6789 |
+
]
|
6790 |
+
}
|
6791 |
+
],
|
6792 |
+
"source": [
|
6793 |
+
"print('KPSS Test: Apple time series transformed')\n",
|
6794 |
+
"kpss_test(df_train_transformed['apple'])\n",
|
6795 |
+
"print('KPSS Test: Walmart time series transformed')\n",
|
6796 |
+
"kpss_test(df_train_transformed['walmart'])\n",
|
6797 |
+
"print('KPSS Test: Tesla time series transformed')\n",
|
6798 |
+
"kpss_test(df_train_transformed['tesla'])"
|
6799 |
+
]
|
6800 |
+
},
|
6801 |
+
{
|
6802 |
+
"cell_type": "code",
|
6803 |
+
"execution_count": 25,
|
6804 |
+
"metadata": {},
|
6805 |
+
"outputs": [
|
6806 |
+
{
|
6807 |
+
"name": "stderr",
|
6808 |
+
"output_type": "stream",
|
6809 |
+
"text": [
|
6810 |
+
"/home/ibnu/miniconda3/envs/py312/lib/python3.12/site-packages/statsmodels/tsa/base/tsa_model.py:473: ValueWarning:\n",
|
6811 |
+
"\n",
|
6812 |
+
"No frequency information was provided, so inferred frequency -1MS will be used.\n",
|
6813 |
+
"\n",
|
6814 |
+
"/home/ibnu/miniconda3/envs/py312/lib/python3.12/site-packages/statsmodels/tsa/base/tsa_model.py:473: ValueWarning:\n",
|
6815 |
+
"\n",
|
6816 |
+
"A date index has been provided, but it is not monotonic and so will be ignored when e.g. forecasting.\n",
|
6817 |
+
"\n"
|
6818 |
+
]
|
6819 |
+
}
|
6820 |
+
],
|
6821 |
+
"source": [
|
6822 |
+
"model = VAR(df_train_transformed)"
|
6823 |
+
]
|
6824 |
+
},
|
6825 |
+
{
|
6826 |
+
"cell_type": "code",
|
6827 |
+
"execution_count": 27,
|
6828 |
+
"metadata": {},
|
6829 |
+
"outputs": [
|
6830 |
+
{
|
6831 |
+
"name": "stdout",
|
6832 |
+
"output_type": "stream",
|
6833 |
+
"text": [
|
6834 |
+
"Lag Order = 1\n",
|
6835 |
+
"AIC : 13.121845837129593\n",
|
6836 |
+
"BIC : 13.371634039180403\n",
|
6837 |
+
"FPE : 499763.6483155377\n",
|
6838 |
+
"HQIC: 13.223349623202385 \n",
|
6839 |
+
"\n",
|
6840 |
+
"Lag Order = 2\n",
|
6841 |
+
"AIC : 13.018387880139725\n",
|
6842 |
+
"BIC : 13.457564885089665\n",
|
6843 |
+
"FPE : 450734.1429337017\n",
|
6844 |
+
"HQIC: 13.196854225926092 \n",
|
6845 |
+
"\n",
|
6846 |
+
"Lag Order = 3\n",
|
6847 |
+
"AIC : 12.924920345350833\n",
|
6848 |
+
"BIC : 13.555272293052827\n",
|
6849 |
+
"FPE : 410713.6140093425\n",
|
6850 |
+
"HQIC: 13.181076523988663 \n",
|
6851 |
+
"\n",
|
6852 |
+
"Lag Order = 4\n",
|
6853 |
+
"AIC : 12.765344110806351\n",
|
6854 |
+
"BIC : 13.58868571794374\n",
|
6855 |
+
"FPE : 350455.45003947406\n",
|
6856 |
+
"HQIC: 13.099928235318213 \n",
|
6857 |
+
"\n",
|
6858 |
+
"Lag Order = 5\n",
|
6859 |
+
"AIC : 12.679059830627413\n",
|
6860 |
+
"BIC : 13.697235025464702\n",
|
6861 |
+
"FPE : 321966.3544416425\n",
|
6862 |
+
"HQIC: 13.092821062630037 \n",
|
6863 |
+
"\n",
|
6864 |
+
"Lag Order = 6\n",
|
6865 |
+
"AIC : 12.592854593217835\n",
|
6866 |
+
"BIC : 13.80773716819742\n",
|
6867 |
+
"FPE : 296040.6198897234\n",
|
6868 |
+
"HQIC: 13.086553356094514 \n",
|
6869 |
+
"\n",
|
6870 |
+
"Lag Order = 7\n",
|
6871 |
+
"AIC : 12.578950684208595\n",
|
6872 |
+
"BIC : 13.992444966992267\n",
|
6873 |
+
"FPE : 292889.94491444435\n",
|
6874 |
+
"HQIC: 13.153358880821687 \n",
|
6875 |
+
"\n",
|
6876 |
+
"Lag Order = 8\n",
|
6877 |
+
"AIC : 12.557421041800211\n",
|
6878 |
+
"BIC : 14.171462585377117\n",
|
6879 |
+
"FPE : 287906.2769831479\n",
|
6880 |
+
"HQIC: 13.213322276819387 \n",
|
6881 |
+
"\n",
|
6882 |
+
"Lag Order = 9\n",
|
6883 |
+
"AIC : 12.299921356873089\n",
|
6884 |
+
"BIC : 14.116477649379629\n",
|
6885 |
+
"FPE : 223834.39221817514\n",
|
6886 |
+
"HQIC: 13.03811116379309 \n",
|
6887 |
+
"\n",
|
6888 |
+
"Lag Order = 10\n",
|
6889 |
+
"AIC : 12.169635543959231\n",
|
6890 |
+
"BIC : 14.19070673888121\n",
|
6891 |
+
"FPE : 197959.9758313992\n",
|
6892 |
+
"HQIC: 12.990921616878586 \n",
|
6893 |
+
"\n",
|
6894 |
+
"Lag Order = 11\n",
|
6895 |
+
"AIC : 12.13748096072811\n",
|
6896 |
+
"BIC : 14.365100628181215\n",
|
6897 |
+
"FPE : 193510.55627011927\n",
|
6898 |
+
"HQIC: 13.042683390957396 \n",
|
6899 |
+
"\n",
|
6900 |
+
"Lag Order = 12\n",
|
6901 |
+
"AIC : 11.761102756127734\n",
|
6902 |
+
"BIC : 14.197338655939397\n",
|
6903 |
+
"FPE : 134383.62461393472\n",
|
6904 |
+
"HQIC: 12.751054273692711 \n",
|
6905 |
+
"\n",
|
6906 |
+
"Lag Order = 13\n",
|
6907 |
+
"AIC : 11.747271045494621\n",
|
6908 |
+
"BIC : 14.394225922838235\n",
|
6909 |
+
"FPE : 134468.2646332004\n",
|
6910 |
+
"HQIC: 12.822817265595509 \n",
|
6911 |
+
"\n",
|
6912 |
+
"Lag Order = 14\n",
|
6913 |
+
"AIC : 11.708962819408555\n",
|
6914 |
+
"BIC : 14.568775223770228\n",
|
6915 |
+
"FPE : 131716.1307288914\n",
|
6916 |
+
"HQIC: 12.870962493892204 \n",
|
6917 |
+
"\n",
|
6918 |
+
"Lag Order = 15\n",
|
6919 |
+
"AIC : 11.523062909058199\n",
|
6920 |
+
"BIC : 14.597908037346535\n",
|
6921 |
+
"FPE : 111727.82568470361\n",
|
6922 |
+
"HQIC: 12.772388182954504 \n",
|
6923 |
+
"\n"
|
6924 |
+
]
|
6925 |
+
}
|
6926 |
+
],
|
6927 |
+
"source": [
|
6928 |
+
"for i in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]:\n",
|
6929 |
+
" result = model.fit(i)\n",
|
6930 |
+
" print('Lag Order =', i)\n",
|
6931 |
+
" print('AIC : ', result.aic)\n",
|
6932 |
+
" print('BIC : ', result.bic)\n",
|
6933 |
+
" print('FPE : ', result.fpe)\n",
|
6934 |
+
" print('HQIC: ', result.hqic, '\\n')"
|
6935 |
+
]
|
6936 |
+
},
|
6937 |
{
|
6938 |
"cell_type": "code",
|
6939 |
"execution_count": null,
|