傅立叶变换

Search documents
小波分析“手术刀”:波动与趋势的量化剥离及策略应用
ZHONGTAI SECURITIES· 2025-09-04 12:53
Core Insights - The report focuses on utilizing wavelet analysis for precise prediction of component stock closing prices and optimizing investment portfolios, demonstrating a comprehensive strategy that integrates multiple models for effective stock selection and investment [4][7]. - The strategy has been validated through backtesting, showing significant outperformance against benchmark indices across various styles, including large-cap blue chips (CSI 300), mid-cap growth stocks (CSI 500), and composite indices (CSI 800) [4][7]. Summary by Sections 1. Main Trends in Time Series Applications - The report discusses the differences and advantages of mainstream trend models in time series analysis, highlighting the effectiveness of wavelet analysis compared to traditional methods like HP filter and Fourier transform [13][19]. 2. Detailed Wavelet Analysis - Wavelet analysis is presented as a powerful tool for multi-scale analysis, capable of localizing both time and frequency characteristics of financial time series, making it suitable for analyzing non-stationary data without prior transformation [30][31]. - The methodology includes a three-level decomposition process that separates long-term trends and short-term fluctuations, providing a robust framework for subsequent modeling [72]. 3. Core Predictive Models and Wavelet Decomposition - The strategy employs ARIMA for predicting the low-frequency trend component (cA3) and GARCH for capturing the high-frequency volatility component (cD1), effectively addressing the unique characteristics of financial time series [74][79]. - The combination of these models allows for a comprehensive understanding of both long-term trends and short-term market dynamics, enhancing predictive accuracy [72][79]. 4. Strategy Backtesting Results and Analysis - The backtesting period spans from January 4, 2019, to July 25, 2025, with a weekly rebalancing strategy based on predicted data, demonstrating the strategy's effectiveness across different indices [96]. - The constructed portfolios consistently outperformed their respective benchmarks, with significant improvements in key risk-return metrics such as annualized returns and Sharpe ratios [7][96].
基于浮动频率傅里叶变换视角解析技术分析的数学本质及趋势判断
ZHONGTAI SECURITIES· 2025-08-07 13:05
Quantitative Models and Construction Methods - **Model Name**: Floating Frequency Fourier Transform Model **Construction Idea**: The model aims to overcome the limitations of traditional Fourier analysis by introducing floating frequencies, which adapt to real-world market dynamics such as macroeconomic changes and capital structure shifts[64][65][66] **Construction Process**: 1. **Filtering**: Use Butterworth filter to remove high-frequency noise and retain trend data. The filter is applied to the logarithmic weekly closing prices of the Shanghai Composite Index, with cutoff frequency set at 0.1 and sampling frequency at 1.0[65][67] 2. **Frequency and Amplitude Selection**: Perform discrete fast Fourier transform on filtered data to extract amplitude and phase information. Key frequencies are identified based on amplitude peaks, e.g., 94.1 weeks, 80.5 weeks, and 62.6 weeks[75][78] 3. **Waveform Reconstruction**: Combine selected frequencies and amplitudes to reconstruct the market trend curve. The reconstructed curve includes direct current components and sinusoidal terms with specific frequencies and initial phases[68][78] **Evaluation**: The floating frequency approach improves prediction accuracy by preserving real-world frequency characteristics and reducing extrapolation errors[64][65][66] - **Model Name**: Dual Optimization Floating Frequency Fourier Transform Model **Construction Idea**: Enhance the floating frequency Fourier transform by optimizing both amplitude and frequency to better fit market trends and improve prediction accuracy[85][86][87] **Construction Process**: 1. **Inner Optimization**: Use non-linear least squares to optimize amplitude values (sin and cos terms) for given initial frequency values. Frequencies are combined with the top two amplitudes from Fourier transform results to form a fitting curve[87][88] 2. **Outer Optimization**: Apply particle swarm optimization to determine the best floating frequencies (e.g., 39.02 weeks, 19.17 weeks, and 8.13 weeks). Training data spans 10 years (2014-2024), and the model is validated using 2024-2025 data[87][88][100] **Evaluation**: The dual optimization method significantly improves trend accuracy compared to simple floating frequency models, especially in capturing major market movements[85][86][100] Model Backtesting Results - **Floating Frequency Fourier Transform Model**: - Key frequencies: 94.1 weeks, 80.5 weeks, 62.6 weeks[78][80][81] - Observed discrepancies in certain periods, e.g., 2014-2015 and 2017-2019, indicating limitations in amplitude selection methods[81] - **Dual Optimization Floating Frequency Fourier Transform Model**: - Optimized frequencies: 39.02 weeks, 19.17 weeks, 8.13 weeks[100] - Improved accuracy in major trend predictions, e.g., capturing relative highs in September 2021[100] - Future predictions: Long-term upward trend from 2024 to 2027, with key oscillations in August 2025 and August 2026[102][103] Quantitative Factors and Construction Methods - **Factor Name**: Harmonic Sine Wave Factor **Construction Idea**: Simulate price movements using harmonic sine waves to replicate Elliott Wave patterns[39][42] **Construction Process**: - Formula: $y(n) = 4*sin(0.00125n)+2*sin(0.01n)+1*sin(0.04n)+0.5*sin(0.16n)$ - Variables: $n$ represents time, $y(n)$ represents price index - Frequency structure: Base frequency 0.00125, harmonic frequencies follow $2^k$ relationship (k=-3,0,2,4) - Amplitude decay: Coefficients follow $2^{-m}$ rule (m=-1,0,1,2)[39][42] **Evaluation**: Successfully replicates 5-3 wave patterns described in Elliott Wave theory, providing a mathematical basis for wave analysis[39][42] - **Factor Name**: Pletcher Fibonacci Wave Factor **Construction Idea**: Introduce quasi-periodic characteristics by incorporating non-harmonic frequencies into wave simulation[50][51] **Construction Process**: - Formula: $y(n) = 4*sin(0.00125n)+sin(0.01n)+1/2*sin(0.04n)+1/4*sin(0.17n)+1/8*sin(0.72n)+1/16*sin(0.305n)$ - Frequency relationships: Some frequencies maintain harmonic relationships (e.g., 0.00125, 0.01, 0.04), while others exhibit non-harmonic relationships (e.g., 0.17, 0.72, 0.305)[50][51] **Evaluation**: Captures floating frequency characteristics and quasi-periodic behavior, aligning with real-world market dynamics[50][51] Factor Backtesting Results - **Harmonic Sine Wave Factor**: - Successfully replicates Elliott Wave patterns, including 5-3 wave structures[39][42] - **Pletcher Fibonacci Wave Factor**: - Demonstrates quasi-periodic behavior, reflecting floating frequency characteristics in market data[50][51]