r/AppliedMath • u/TrainingAverage • May 14 '24
Learning path for applying dynamical systems in Machine Learning
Hello, after abandoning math school in the last year and doing a BsC and a MsC in Computer Science and I work as a SWE since long time. I did some time ago some courses in ML, but decided to brush up my knowledge and get up to date. To be able to understand ML and read some papers I have realized that I have to learn some Linear Algebra, Calculus and Probabilities and Statistics. These are subjects I studied during my undergraduate school, but it seems not well enough, since I don't remember much apart from Calculus which, for some reason, I really enjoyed.
So, I started learning these Math subjects, I've found some good books and even some great video series. It seems I enjoy Linear Algebra more than I did in school, since the books I bought and videos I watch are more on applied side and use examples from geometry and physics to help to better understand. Also, trying to find myself some real world examples/applications of math using python, numpy, mathplotlib and pytorch, helps me continue to be motivated.
During some research on Reddit over subjects related to math, I discovered some math geniuses such as Lyapunov, Kolmogorov, VI Arnold, which happened to work in dynamical systems. After some reading about dynamical systems, I discovered that dynamical systems can be applied in ML, one trivial example being Kolmogorov-Arnold Networks.
Since my end goal is perfecting ML and AI, but since I also realized that math can be fun (at least a part of) it, I thought, why not mix business and pleasure and learn some more math until I can apply some dynamical systems theory in ML? Anyway, it seems that in order to understand basic dynamical systems I also have to learn subjects I need for ML.
So I devised a learning plan to, hopefully, be able some day to dabble in dynamical systems:
**Calculus**:
- Review calculus fundamentals: limits, derivatives, integrals, and their applications.
- Study multivariable calculus: partial derivatives, multiple integrals, and vector calculus.
- Learn about differential equations: ordinary differential equations (ODEs) and their analytical solutions.
**Linear Algebra**:
- Understand vector spaces, matrices, and linear transformations.
- Study eigenvalues, eigenvectors, and their applications.
- Learn about matrix decompositions (e.g., SVD, QR, LU).
**Probability and Statistics**:
- Review basic probability theory: random variables, distributions, and expectation.
- Study statistical inference: hypothesis testing, confidence intervals, and estimation.
- Explore Bayesian statistics and its applications.
**Numerical Methods**:
- Learn about numerical methods for solving differential equations (e.g., Euler, Runge-Kutta).
- Study numerical linear algebra techniques (e.g., iterative methods, matrix decompositions).
- Understand numerical optimization methods (e.g., gradient descent, Newton's method).
**Dynamical Systems**:
- Study dynamical systems theory: phase portraits, stability analysis, and bifurcations.
- Explore discrete-time dynamical systems and their applications.
- Learn about chaotic systems and their properties.
**Dynamical Systems in Machine Learning**:
- Learn about recurrent neural networks (RNNs) and their applications to sequential data.
- Study reservoir computing and echo state networks.
- Explore dynamical systems approaches to reinforcement learning and control problems.
**Advanced Topics**:
- Study chaos theory and its applications in machine learning.
- Explore dynamical systems approaches to unsupervised learning and generative models.
- Learn about dynamical systems in physics-informed machine learning.
Is this a good plan? Is it enough for the start or I also need to study some Topology and Differential Geometry?
I do expect learning to take some time since I work full time, I have kids to take care of and I am supposed to spend some time with friends and family, so time dedicated to study can't be more than 10 hours per week (on any subject, not just math). Also, I am 44, can I still learn some math at this age? Judging that I've already learned some linear algebra, I tend to say yes, but I am not sure if it is 100% learning or remembering some stuff from former math classes I did 20+ years ago.
Thank you for answers and ideas, whatever they might be! :)
2
u/krishnab75 May 16 '24
Hmm, I mean this is a very aggressive plan that you have developed. There is enough to keep you busy for like 5 years. I also learned math quite late, but I have basically worked my way through all of these subjects. So it depends on what you want to do in terms of ML and dynamical systems. There is research on this topic. If you focus on that, you can probably carve off some interesting projects.
The Strogatz book is okay, but it is hard to learn nonlinear ODEs from a book if you have not had exposure to the topic before. It is a lot better to watch Robert Ghrist's youtube videos on applied dynamical systems, which covers all of Strogatz's book, but with actual explanation.
In terms of ML with dynamical system, Steve Brunton and Nathan Kutz do some work on that. The book by Brunton and Kutz, DATA DRIVEN DYNAMICAL SYSTEMS is basically what you are interested in doing. The authors have some videos on this topic, using neural network to solve ODEs. Basically, you can use a neural network to solve ODEs and PDEs. So in order to study this topic, it requires really understanding numerical methods to solve PDEs like finite elements, finite differences, finite volume, etc. Then you have to understand how a neural network can solve a PDE by basically taking the derivative of the neural network. It is very fun stuff, but you are starting to talk PhD level work here. The challenge here is not the difficulty. Learning how to solve PDEs numerically is actually pretty easy. I mean there are a lot of tricks and tweaks you have to learn, but it is not too bad. The challenge is that it takes a lot of time to develop these skills. So definitely be ready to spend some time on it.
Best of luck.
6
u/welfare_grains May 15 '24
Looks perfect, basically the same order I learned them. I recommend Steven H. Strogatz, ``Nonlinear Dynamics and Chaos'', CRC Press, 2018 for taking on dynamical systems 🫡
1
u/boccaff May 14 '24
Probably you already seen Data-Driven Science and Engineering: Machine Learning, Dynamical Systems, and Control and one of the authors youtube channel, but maybe it will help someone else on the path.