MFDFA
The Python package `MFDFA` provides the tools to perform a multifractal detrended fluctuation analysis that enables the investigation of stochastic processes where long-range memory and persistence are necessary to consider.
Description
Overview
Various stochastic processes in nature are non-stationary (i.e., they possess a long-term memory) and additionally exhibit multifractal features, i.e., where the scaling behavior cannot be described by a single exponent.
Multifractal detrended fluctuation analysis is a valuable tool for analyzing stochastic processes and quantifying their correlations, scaling behavior and persistence.
The Python package MFDFA provides methods to perform this analysis, enabling the investigation of, for example, the study of long-range correlations and persistence.
It was developed at the Institute of Energy and Climate Research at the Forschungszentrum Jülich GmbH and is available at github.com/LRydin/MFDFA.
Some basic examples of how to use the package are presented in the documentation found at mfdfa.readthedocs.io.
It can be installed via pip from PyPI (pypi.org/project/MFDFA).
A more detailed description of the package and the underlying theory can be found in the peer-reviewed paper published in Computer Physics Communications(DOI: 10.1016/j.cpc.2021.108254).
Citation
If you use MFDFA in your research, please cite it as:
Rydin Gorjão, L., Hassan, G., Kurths, J, and Witthaut, D. (2022). MFDFA: Efficient multifractal detrended fluctuation analysis in python. Computer Physics Communications, 273, 108254. DOI: 10.1016/j.cpc.2021.108254
Acknowledgements
L.R.G. kindly thanks Francisco Meirinhos for all the help with Python, and Fabian Harang, Marc Lagunas Merino, Anton Yurchenko-Tytarenko, Dennis Schroeder, Michele Giordano, Giulia di Nunno, and Fred Espen Benth for their support. L.R.G and D.W gratefully acknowledge support by the Helmholtz Association via the joint initiative Energy System 2050 - A Contribution of the Research Field Energy and the grant Uncertainty Quantification – From Data to Reliable Knowledge (UQ), with grant no. ZT-I-0029, the scholarship funding from E.ON Stipendienfonds, and the STORM - Stochastics for Time-Space Risk Models project of the Research Council of Norway (RCN) no. 274410. This work was performed as part of the Helmholtz School for Data Science in Life, Earth and Energy (HDS-LEE). J.K. was financed by the Ministry of Science and Higher Education of the Russian Federation within the framework of state support for the creation and development of World-Class Research Center “Digital biodesign and personalised healthcare”, no. 075-15-2020-926.
References
Peng, C.-K., Buldyrev, S. V., Havlin, S., Simons, M., Stanley, H. E., & Goldberger, A. L. (1994). Mosaic organization of DNA nucleotides. Physical Review E, 49(2), 1685–1689 DOI: 10.1103/PhysRevE.49.1685
Kantelhardt, J. W., Zschiegner, S. A., Koscielny-Bunde, E., Havlin, S., Bunde, A., & Stanley, H. E. (2002). Multifractal detrended fluctuation analysis of nonstationary time series. Physica A: Statistical Mechanics and Its Applications, 316(1-4), 87–114 DOI: 10.1016/S0378-4371(02)01383-3
- MIT
Participating organisations
Reference papers
Mentions
- 1.Author(s): Xinyi WangPublished in Proceedings of the 2025 International Conference on Big Data, Communication Technology and Computer Applications by ACM in 2025, page: 75-8010.1145/3727505.3727517
- 2.Author(s): Runjie Liu, Yi LiPublished in 2024 9th International Conference on Electronic Technology and Information Science (ICETIS) by IEEE in 2024, page: 447-45010.1109/icetis61828.2024.10593721
- 3.Author(s): Mengyunqiu Zhang, Sei-Ichiro Kamata, Pengfeng LuPublished in 2024 IEEE International Symposium on Biomedical Imaging (ISBI) by IEEE in 2024, page: 1-510.1109/isbi56570.2024.10635521
- 4.Author(s): Benjamin Cruz, Gonzalo Acuña, Francisco MuñozPublished in 2023 IEEE CHILEAN Conference on Electrical, Electronics Engineering, Information and Communication Technologies (CHILECON) by IEEE in 2023, page: 1-610.1109/chilecon60335.2023.10418665
- 5.Author(s): Mengyunqiu Zhang, Seiichiro KamataPublished in Proceedings of the 2023 8th International Conference on Biomedical Signal and Image Processing by ACM in 2023, page: 33-3810.1145/3613307.3613314
- 6.Author(s): Tomasz M. Rutkowski, Masato S. Abe, Seiki Tokunaga, Tomasz Komendzinski, Mihoko Otake-MatsuuraPublished in 2022 44th Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC) by IEEE in 2022, page: 4056-405910.1109/embc48229.2022.9871991
- 7.Author(s): Tomasz M. Rutkowski, Masato S. Abe, Mihoko Otake-MatsuuraPublished in 2021 43rd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC) by IEEE in 2021, page: 6675-667810.1109/embc46164.2021.9630736
- 1.Author(s): Vlad Ghizdovat, Diana Carmen Mirila, Florin Nedeff, Dragos Ioan Rusu, Oana Rusu, Maricel Agop, Decebal VasincuPublished in Entropy by MDPI AG in 2025, page: 64710.3390/e27060647
- 2.Author(s): Shamseena Vahab, Adarsh SankaranPublished in Fractal and Fractional by MDPI AG in 2025, page: 2710.3390/fractalfract9010027
- 3.Author(s): Markus Vogl, Milena Kojić, Abhishek Sharma, Nikola StanisicPublished in Physica A: Statistical Mechanics and its Applications by Elsevier BV in 2025, page: 13054210.1016/j.physa.2025.130542
- 4.Author(s): Cristian Bucur, Bogdan-George Tudorică, Adela Bâra, Simona-Vasilica OpreaPublished in Journal of Business Economics and Management by Vilnius Gediminas Technical University in 2025, page: 21-4810.3846/jbem.2025.23025
- 5.Author(s): Teresa Corzo, Karin Martin-Bujack, Jose Portela, Alejandro Rodríguez-GallegoPublished in Journal of International Financial Markets, Institutions and Money by Elsevier BV in 2025, page: 10213210.1016/j.intfin.2025.102132
- 6.Author(s): Eo-Jin Lee, Sung-Hong ParkPublished in Journal of the Korean Physical Society by Springer Science and Business Media LLC in 2025, page: 452-47210.1007/s40042-025-01293-x
- 7.Author(s): Jiaxin LuPublished in ITM Web of Conferences by EDP Sciences in 2025, page: 0300110.1051/itmconf/20257003001
- 8.Author(s): Teresa Corzo, Karin Martin-Bujack, Jose Portela, Alejandro Rodriguez-GallegoPublished in International Economics by Elsevier BV in 2025, page: 10059110.1016/j.inteco.2025.100591
- 9.Author(s): Yuancheng Si, Saralees NadarajahPublished in Finance Research Letters by Elsevier BV in 2025, page: 10796010.1016/j.frl.2025.107960
- 10.Author(s): Sabyasachi Mondal, Soham Bhattacharya, Somnath De, Sirshendu Mondal, Achintya Mukhopadhyay, Swarnendu SenPublished in Fuel by Elsevier BV in 2025, page: 13485410.1016/j.fuel.2025.134854
- 11.Author(s): F.M. Oliveira, I.R.A.C. Lucena, J.G.G.S. RamosPublished in Chaos, Solitons & Fractals by Elsevier BV in 2025, page: 11698010.1016/j.chaos.2025.116980
- 12.Author(s): D. Sierra-PortaPublished in Journal of Atmospheric and Solar-Terrestrial Physics by Elsevier BV in 2025, page: 10640710.1016/j.jastp.2024.106407
- 13.Author(s): D. Sierra-PortaPublished in Journal of Atmospheric and Solar-Terrestrial Physics by Elsevier BV in 2025, page: 10666110.1016/j.jastp.2025.106661
- 14.Author(s): Donglin Liu, Alexandros SopasakisPublished in IFAC-PapersOnLine by Elsevier BV in 2025, page: 379-38410.1016/j.ifacol.2025.07.175
- 15.Author(s): J.P. Correia, M.E.P.L. Dantas, J.M.G. Araújo, R. SilvaPublished in Computers in Biology and Medicine by Elsevier BV in 2025, page: 11084010.1016/j.compbiomed.2025.110840
- 16.Author(s): Miao Yu, Lida Zhu, Zhichao Yang, Lu Xu, Jinsheng Ning, Baoquan ChangPublished in Computers in Industry by Elsevier BV in 2024, page: 10415410.1016/j.compind.2024.104154
- 17.Author(s): Zeyuan Chen, Bo Xu, Linsong Sun, Xuan Wang, Dalai Song, Weigang Lu, Yangtao LiPublished in Water by MDPI AG in 2024, page: 275510.3390/w16192755
- 18.Author(s): J. P. CorreiaPublished in Scientific Reports by Springer Science and Business Media LLC in 202410.1038/s41598-024-60722-2
- 19.Author(s): Bappa Mukherjee, Suman Konar, Kalachand SainPublished in Carbonates and Evaporites by Springer Science and Business Media LLC in 202410.1007/s13146-024-00982-1
- 20.Author(s): Luca Di Persio, Tamirat Temesgen DuferaPublished in Mathematics by MDPI AG in 2024, page: 348310.3390/math12223483
- 21.Author(s): Christos Papanikolaou, Akriti Sharma, Pedro G. Lind, Pedro LencastrePublished in Entropy by MDPI AG in 2024, page: 39210.3390/e26050392
- 22.Author(s): Soledad Moreno-Pulido, Juan Carlos de la Torre, Patricia Ruiz, Pablo Pavón-DomínguezPublished in Nonlinear Dynamics by Springer Science and Business Media LLC in 2024, page: 7425-745710.1007/s11071-024-10478-1
- 23.Author(s): LEONARDO H. S. FERNANDES, JOSÉ P. V. FERNANDES, JOSÉ W. L. SILVA, RANILSON O. A. PAIVA, IBSEN M. B. S. PINTO, FERNANDO H. A. DE ARAÚJOPublished in Fractals by World Scientific Pub Co Pte Ltd in 202410.1142/s0218348x24500476
- 24.Author(s): Jacques Maritz, Leonardo Rydin Gorjão, P. Armand Bester, Nicolaas Esterhuysen, Stefaans Erasmus, Stephanus Riekert, Reuben Immelman, Tiaan Geldenhuys, Alexandra Viljoen, Charl BodensteinPublished in IEEE Access by Institute of Electrical and Electronics Engineers (IEEE) in 2024, page: 14466-1447310.1109/access.2024.3357945
- 25.Author(s): Bappa Mukherjee, V. Srivardhan, Kalachand Sain, Aditi GuptaPublished in Journal of Asian Earth Sciences by Elsevier BV in 2024, page: 10623310.1016/j.jseaes.2024.106233
- 26.Author(s): Muhammad Rehan, Jahanzaib Alvi, Umair LakhaniPublished in International Journal of Emerging Markets by Emerald in 2024, page: 4575-459610.1108/ijoem-07-2023-1195
- 27.Author(s): Suzielli M. Mendonça, Brenno C.T. Cabella, Alexandre S. MartinezPublished in Physica A: Statistical Mechanics and its Applications by Elsevier BV in 2024, page: 12957710.1016/j.physa.2024.129577
- 28.Author(s): Mei Wang, Mohsin Ishaq, Chaoyang Chen, Xiaoyan Xie, Jincai ZhangPublished in IEEE Internet of Things Journal by Institute of Electrical and Electronics Engineers (IEEE) in 2024, page: 6384-639510.1109/jiot.2023.3312407
- 29.Author(s): Felipe S. Abril-Bermúdez, Juan E. Trinidad-Segovia, Miguel A. Sánchez-Granero, Carlos J. Quimbay-HerreraPublished in PLOS ONE by Public Library of Science (PLoS) in 2024, page: e030325210.1371/journal.pone.0303252
- 30.Author(s): Juraj ČurpekPublished in Fluctuation and Noise Letters by World Scientific Pub Co Pte Ltd in 202310.1142/s021947752350030x
- 31.Author(s): Einar A. Agletdinov, Igor S. YasnikovPublished in Physical Review E by American Physical Society (APS) in 202310.1103/physreve.108.044217
- 32.Author(s): Janusz Miśkiewicz, Zbigniew Burdach, Zenon Trela, Agnieszka Siemieniuk, Waldemar KarczPublished in Membranes by MDPI AG in 2023, page: 40610.3390/membranes13040406
- 33.Author(s): Deniz Erer, Elif Erer, Selim GüngörPublished in Financial Innovation by Springer Science and Business Media LLC in 202310.1186/s40854-023-00484-4
- 34.Author(s): J.P. Correia, M.M.F. de Lima, R. Silva, D.H.A.L. Anselmo, M.S. Vasconcelos, G.M. ViswanathanPublished in Chaos, Solitons & Fractals by Elsevier BV in 2023, page: 11384310.1016/j.chaos.2023.113843
- 35.Author(s): Dzhema Melkonyan, Sherin SugathanPublished in Water by MDPI AG in 2023, page: 14710.3390/w16010147
- 36.Author(s): Onur ÖZDEMİRPublished in Sosyoekonomi by Sosyoekonomi in 2023, page: 27-4610.17233/sosyoekonomi.2023.02.02
- 37.Author(s): Benjamin Schäfer, Leonardo Rydin Gorjão, G. Cigdem Yalcin, Ellen Förstner, Richard Jumar, Heiko Maass, Uwe Kühnapfel, Veit HagenmeyerPublished in Complexity by Wiley in 2023, page: 1-1310.1155/2023/2657039
- 38.Author(s): Markus VoglPublished in Chaos, Solitons & Fractals by Elsevier BV in 2023, page: 11288410.1016/j.chaos.2022.112884
- 39.Author(s): Jing Feng, Xiaolong Wang, Qi Liu, Yongge Li, Yong XuPublished in Communications in Nonlinear Science and Numerical Simulation by Elsevier BV in 2023, page: 10758910.1016/j.cnsns.2023.107589
- 40.Author(s): Bilal Ahmed Memon, Faheem Aslam, Shakhnoza Asadova, Paulo FerreiraPublished in Heliyon by Elsevier BV in 2023, page: e2269410.1016/j.heliyon.2023.e22694
- 41.Author(s): Juan Carlos de la Torre, Pablo Pavón-Domínguez, Bernabé Dorronsoro, Pedro L. Galindo, Patricia RuizPublished in Fractal and Fractional by MDPI AG in 2023, page: 79410.3390/fractalfract7110794
- 42.Author(s): Yunfan Lu, Zhiyong Zheng, Kun Tian, Yi ZhangPublished in Physica A: Statistical Mechanics and its Applications by Elsevier BV in 2023, page: 12898110.1016/j.physa.2023.128981
- 43.Author(s): Yuki Sato, Kiyoshi KanazawaPublished in Physical Review Research by American Physical Society (APS) in 202310.1103/physrevresearch.5.043131
- 44.Author(s): Leonardo Rydin Gorjao, Luigi Vanfretti, Dirk Witthaut, Christian Beck, Benjamin SchaferPublished in IEEE Access by Institute of Electrical and Electronics Engineers (IEEE) in 2022, page: 18065-1807310.1109/access.2022.3150338
- 45.Author(s): JIAN WANG, WENJING JIANG, WEI SHAOPublished in Fractals by World Scientific Pub Co Pte Ltd in 202210.1142/s0218348x2250116x
- 46.Author(s): Jing Wang, Yi Liu, Haiyan Wu, Shan Lu, Meng ZhouPublished in Fractal and Fractional by MDPI AG in 2022, page: 27610.3390/fractalfract6050276
- 47.Author(s): Chengyuan Han, Hannes Hilger, Eva Mix, Philipp C. Böttcher, Mark Reyers, Christian Beck, Dirk Witthaut, Leonardo Rydin GorjãoPublished in PRX Energy by American Physical Society (APS) in 202210.1103/prxenergy.1.013002
- 48.Author(s): Bikramaditya Ghosh, Elie BouriPublished in Entropy by MDPI AG in 2022, page: 64710.3390/e24050647
- 49.Author(s): Eike Cramer, Leonardo Rydin Gorjao, Alexander Mitsos, Benjamin Schafer, Dirk Witthaut, Manuel DahmenPublished in IEEE Access by Institute of Electrical and Electronics Engineers (IEEE) in 2022, page: 8194-820710.1109/access.2022.3141875
- 50.Author(s): Alberto Partida, Saki Gerassis, Regino Criado, Miguel Romance, Eduardo Giráldez, Javier TaboadaPublished in Chaos, Solitons & Fractals by Elsevier BV in 2022, page: 11280610.1016/j.chaos.2022.112806
- 1.Author(s): Jiebin WenPublished in 202510.1109/access.2025.3560381
- 2.Author(s): Yanshan Wang, Runqiao Peng, Renkang Xu, Qin Liu, Yu Wang, Lin Wu, Keyong Chen, Jian WangPublished in 202510.1142/s0218348x25500793
- 3.Author(s): Charudatta G. Korde, K. G. Shreeharsha, R. K. Siddharth, M. H. Vasantha, Y. B. Nithin KumarPublished in 202510.1109/access.2025.3603332
- 4.Author(s): Bing Hui, Lei Hou, Yan Zhang, Qinghua Shi, Qian ZhangPublished in 202510.1007/s00704-025-05891-4
- 5.Author(s): Sandip PaudelPublished by Elsevier BV in 202510.2139/ssrn.5376127
- 6.Author(s): Basel Al Bishtawi, Francesco Gerini, Gianfranco Scribano, Elena VagnoniPublished in 202510.21203/rs.3.rs-7966941/v1
- 7.Author(s): Sakthi PugazhendhiPublished in 202510.1109/embc58623.2025.11252744
- 8.Author(s): Roman Lavrynenko, Lyudmyla Kirichenko, Nataliya Ryabova, Sophia LavrynenkoPublished in 202510.1088/1751-8121/ae17f9
- 9.Author(s): Leonardo H S Fernandes, José P V Fernandes, Jose W L Silva, Ranilson O A Paiva, Ibsen M B S Pinto, Fernando Henrique Antunes de AraujoPublished by Research Square Platform LLC in 202410.21203/rs.3.rs-3822682/v1
- 10.Author(s): Markus Vogl, Abhishek Sharma, Nikola StanisicPublished by Elsevier BV in 202410.2139/ssrn.5021873
- 11.Author(s): Leonardo H S Fernandes, José P V Fernandes, José W L Silva, Ranilson O A Paiva, Ibsen M B S Pinto, Fernando Henrique Antunes de AraujoPublished by Wiley in 202410.22541/au.170629232.29107954/v1
- 12.Author(s): Sneha Agarwal, Keshav Goel, Mitali Sinha, Sujay DebPublished in 202410.1109/tc.2024.3500373
- 13.Author(s): Yuki Sato, Kiyoshi KanazawaPublished by arXiv in 202310.48550/arxiv.2308.01112
- 14.Author(s): Chandrima Roy, Rahul Laha, Priyam Chaudhuri, Ayan Saha, Megha Roy, Dipak GhoshPublished by Elsevier BV in 202310.2139/ssrn.4568330
- 15.Author(s): Leonardo Rydin Gorjão, Luigi Vanfretti, Dirk Witthaut, Christian Beck, Benjamin SchäferPublished in 202110.48550/arxiv.2105.00228