Live data from Hacker News

Ask HN: What maths are critical to pursuing ML/AI?

news.ycombinator.com

51–60 of 139 posts

Re: Ask HN: What maths are critical to pursuing ML/AI?

#51
post #37
post #29

Probability, and thus multivariate calculus and partial differential equations. Linear algebra. Convex Optimization, and thus multivariate and partial differential equations. Some principals of statistics is usually helpful

Why do you need partial differential equations? I don't think you necessarily need any knowledge of differential equations to do ML, though the top ML people certainly would know it because of their general math education.

I spent a lot of time messing with PDEs as a student but sadly that knowledge hasn't been very useful - I've only seen them come up in quite specialised areas like optical flow...

Re: Ask HN: What maths are critical to pursuing ML/AI?

#52
Surprising level of disagreement here on a few items for a sub field that has its own degree tracks.

Multiavariable calc you either "abolsutely" need or don't really need. Should be well versed in graph theory, or don't need it much.

Surely some of the contradiction is caused by different assumptions of what the goal is. But some of its hard to relate to as a reader. For example, I haven't been in the field but but have tried to read enough to understand the concepts, and having studied graph theory I don't see how it's a top 5 recommendation.

I don't doubt anyone's experience, would just be nice to know which assumption is behind a suggestion.

Re: Ask HN: What maths are critical to pursuing ML/AI?

#53
If you care about actually reading the nournals, as I do, and you had a very poor math education (as mine was abysmally opposed to both math and science as enemies of religion) then here are things I've determined I need to know to read journals:

- Core statistics. You need to be familiar with how statisticians treat data, because it comes up a lot.

- Calculus. You do not need to be a wizard at working the numbers but you do need to understand how to describe the process of differentiation and integration over multiple variables comfortably.

- Linear algebra. It's essentially the basis for everything, even more than statistics.

- Numerical nethods for computing. I constantly have to refer to references to understand why people make the choices they do.

- Theory of computation and the research clustered around it. Familiarity here helps a lot. Sometimes I even catch errors or am able to recognize improvements available. Also there is a lot of crossover, as one would expect. An example: everyone is remembering how good automatic differentiation is! And given that properly combined differentiable equations are also differentiable, AD let's you optimize over your optimization process. It's differentiable turtles all the way down.

My next big challenge is nonparametric statistics. Many researchers tell me that this is a very fruitful place to be and many methods there are increasingly making improvements in ML.

Re: Ask HN: What maths are critical to pursuing ML/AI?

#54

You absolutely need a solid grounding in multi-variable calculus, linear algebra, probability theory and information theory. It will also be helpful to be well versed in graph theory. In my opinion one of the best starting points is "Information Theory, Inference and Learning Algorithms" by David MacKaye. It's a bit long in the tooth now, but it is still one of the most approachable and well written books in the fiel…

> "Bayesian Data Analysis" by Andrew Gelman is another great read. If you want to read that book you need real analysis more specifically measure theory (unless that subject is in probability theory for you). You cannot get into the last few chapters without it. Dirichlet Process are described using measures. I don't believe you need multivar calc or info theory. Info theory stuff are used but not as often. I believe…

You don't really need measure theory. It's true that the last chapter in the book (in the 3rd edition) uses measure theory, but it's the only one.

http://andrewgelman.com/2017/08/02/seemingly-intuitive-low-m...

Re: Ask HN: What maths are critical to pursuing ML/AI?

#55
I previously attempted Andrew Ng's old course, but didn't complete the tutorials. Now I would start in this order:

Watch the course.fast.ai lectures quickly, just to see a lot of practical ML/AI applications. You'll see how effective you can be just by knowing the tools with very little math background.

Next I'd look at the NEW Andrew Ng introduction on Coursera. It is much more approachable than his first course. You might still feel a little overwhelmed by a few equations, but then you'll implement them yourself in numpy. (And the ipython/jupyter notebooks are really well written, walking you through every step.)

Re: Ask HN: What maths are critical to pursuing ML/AI?

#56

You absolutely need a solid grounding in multi-variable calculus, linear algebra, probability theory and information theory. It will also be helpful to be well versed in graph theory. In my opinion one of the best starting points is "Information Theory, Inference and Learning Algorithms" by David MacKaye. It's a bit long in the tooth now, but it is still one of the most approachable and well written books in the fiel…

Probability Theory: the Logic of Science is mindblowing, not a page turner, but if you can digest it is is very good.

Re: Ask HN: What maths are critical to pursuing ML/AI?

#57

It will depend on the level you plan to engage in the ML/AI space. If you just want a job in ML/AI , you are in luck. Due to the growing assortment of available, mostly to fully automated, solutions like Datarobot, H2O, sckit-learn, keras(w/ tensorflow) the only math you will absolutely 'need' is probably just Statistics. Regardless of what's going on behind the scenes with whatever automatically tuned and selected a…

Want to try using a completely automated black-box ML pipeline like TPOT? Go right ahead. Good luck selling it to your product manager.

Re: Ask HN: What maths are critical to pursuing ML/AI?

#58
post #49

It will depend on the level you plan to engage in the ML/AI space. If you just want a job in ML/AI , you are in luck. Due to the growing assortment of available, mostly to fully automated, solutions like Datarobot, H2O, sckit-learn, keras(w/ tensorflow) the only math you will absolutely 'need' is probably just Statistics. Regardless of what's going on behind the scenes with whatever automatically tuned and selected a…

What "maths" is keras? Or scikit-learn? For what it's worth, to understand scikit-learn doc/tutorial I'd say you'll need Probability, Linear Algebra, Multivariate Calculus and, yeah, Stats. Not necessarily at a PhD level but still. And more you understand maths farther you can get in AL/ML.

Those are ML and AI frameworks that use a tremendous amount of mathematics under the hood, but you can also reliably treat them as blackbox learning systems too. Understanding the model generation procedure and setup is often unneeded. And many tools will help direct you toward what algorithms makes the most sense for your data, and even have competitions to figure out which actually works best. I agree, it's a little disappointing, but admittedly it doesn't take a PhD to do this stuff anymore.

It is important to note that just because you can do all the stuff a PhD Scientist might regularly do, doesn't mean that someone will hire you for it. In that case you might need to have a PhD in mathematics, computer science or a related field. But that is more a consequence of competition and long term talent investment, than the practice of ML/AI itself.

Re: Ask HN: What maths are critical to pursuing ML/AI?

#59

It will depend on the level you plan to engage in the ML/AI space. If you just want a job in ML/AI , you are in luck. Due to the growing assortment of available, mostly to fully automated, solutions like Datarobot, H2O, sckit-learn, keras(w/ tensorflow) the only math you will absolutely 'need' is probably just Statistics. Regardless of what's going on behind the scenes with whatever automatically tuned and selected a…

Want to try using a completely automated black-box ML pipeline like TPOT? Go right ahead. Good luck selling it to your product manager.

Can you please expand on this comment for us ML/AI naive?

Re: Ask HN: What maths are critical to pursuing ML/AI?

#60

It will depend on the level you plan to engage in the ML/AI space. If you just want a job in ML/AI , you are in luck. Due to the growing assortment of available, mostly to fully automated, solutions like Datarobot, H2O, sckit-learn, keras(w/ tensorflow) the only math you will absolutely 'need' is probably just Statistics. Regardless of what's going on behind the scenes with whatever automatically tuned and selected a…

Can you recommend a Stats course that would be most relevant for people trying to be more practitioners (not researchers)?

Please just recommend the best online stats course you know of as a general toolbelt-notch.
Post reply on HN