Open nictra23 opened 11 months ago
Energy Sector Analysis:
Here, the data is still based on the initial data from 2021 to 2023, with monthly backtesting conducted. The selected interval is the top 10%, as this approach can better showcase the significance of the strategy.
Let's begin the analysis with a focus on the energy sector:
In the generated graph, the x-axis represents the lag, while the y-axis represents the autocorrelation at that specific lag. The blue shaded area represents the confidence interval. If the autocorrelation at a given lag falls within this area, it is not statistically significant.
In your description, you mentioned that at lag 1, the autocorrelation is relatively high and then gradually decreases. This is a typical pattern for a random walk time series. Towards the end, the autocorrelation has approached 0, indicating that its autocorrelation is effectively negligible.
Industrial Sector Analysis:
Similar to the energy sector analysis, the data for the industrial sector is based on the initial data from 2021 to 2023, with monthly backtesting conducted. The selected interval is the top 10%, as this approach helps to highlight the significance of the strategy.
Cyclical Analysis: If bars appear significantly at fixed intervals, it shows the presence of seasonality in the data.
Real Estate Sector Analysis:
Similar to the previous sectors, the data for the real estate sector is based on the initial data from 2021 to 2023, with monthly backtesting conducted. The selected interval is the top 10%, as this approach helps to effectively demonstrate the significance of the strategy.
Optional Consumption Sector Analysis:
Just like the previous sectors, the data for the optional consumption sector is based on the initial data from 2021 to 2023, with monthly backtesting conducted. The selected interval is the top 10%, as this approach helps emphasize the significance of the strategy.
Based on our analysis by industry, let's further analyze the trend of returns. Autocorrelation is typically used in signal processing to identify repeating patterns or in finance to identify trends in stock prices or economic cycles.
For example, if there is a high autocorrelation at lag 1 in a time series, it suggests that the value of a variable in a certain period heavily depends on the value of the same variable in the previous period.
Positive autocorrelation implies that an upward trend in the time series might be followed by another upward trend, while a downward trend might be followed by another downward trend. On the other hand, negative autocorrelation indicates that an increase might be followed by a decrease and vice versa.
I download all the data from the web and get the profit for each month. Make those data for ACF.
CODE: import pandas as pd import numpy as np import matplotlib.pyplot as plt from statsmodels.graphics.tsaplots import plot_acf import matplotlib.pyplot as plt import matplotlib.font_manager as fm