Hodrick-Prescott Filter
This m-file finds the Hodrick-Prescott filtered series of any trendy time series; H-P is widely known in econometrics and can be used to analyse the trends and volatility of the series.
This version uses sparse matrices, this approach increases speed and performance and allows working with several time series simultaneously. The option 'makeplot' plots every time series introduced against its filtered counterpart and the output desvabs gives a "measure" of the volatility.
Download and type Help hpfilter for more details
Inspired in hpfilter by Ivailo Izvorski and Gauss code by Ken Matheny
Citation pour cette source
Wilmer Henao (2024). Hodrick-Prescott Filter (https://www.mathworks.com/matlabcentral/fileexchange/3972-hodrick-prescott-filter), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Signal Processing > Signal Processing Toolbox > Digital and Analog Filters > Digital Filter Analysis >
Tags
Remerciements
A inspiré : Analyze FEX download data
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |