13 ms·
Math Foundations from Scratch
- civilized 5y agoOnly a math graduate student could understand this very terse, Cliff's Notes presentation of basic math. And the math grad student wouldn't need it, because they would have already learned it at an appropriate pace from much better sources.
- deleted 5y ago[deleted]
- spekcular 5y agoThis site bills itself as follows: > This is a draft workshop to build from scratch the basic background needed to try introductory books and courses in AI and how to optimize their deployments. I'm not sure learning the things on that page – Peano axioms, basic real analysis, etc. – really helps with deploying AI. I know plenty of talented graduate students with papers at NeurIPS, ICML, and another top conferences who don't know a lick of set theory, so certainly it's not necessary, even for highly academic work. Based on my experience and what we know about the psychology of learning, I'd recommend finding a motivating ML project or application (e.g. point the phone at a sudoku and it overlays the solution), and then working backwards to figure out what you need to know to implement it. Probably it will not be the Peano axioms.
- amautertt 5y agoMaybe type theory is good to know! I would like to see cutting edge NN libraries for Coq or Lean or Optimization ecosystem like Scipy or Scikit for Agda. You develop your algorithm and you prove a bunch of theorems about it at the same time, incredibly difficult but totally wild! There's some scattered projects like this https://github.com/OUPL/MLCert https://github.com/OUPL/MLCert
- ipnon 5y agoThere are two schools of machine learning education: Math first like Andrew Ng and code first like Jeremy Howard. That both of these leaders have found academic and professional success shows you should approach machine learning in whatever way comes more naturally to you. Later on, you can approach it from the other angle to improve your understanding.
- spekcular 5y agoTo clarify, I'm not arguing that math isn't important. You need your linear algebra, your probability theory, and so on. That's non-negotiable. But set theory? Type theory (as someone below suggests)? I would avoid unless you're separately interested in mathematics for its own sake.
- exdsq 5y agoI’m fairly certain they’re not suggesting you need to know type theory for ML, but that theorem provers should have more ML libraries. My wife does some ML as a postdoc at Stanford and I doubt she’d even know what type theory is.
- yarky 5y agoI agree, however I'm not sure of how far you can get in probability theory without set theory. For instance, I recall my stats prof defining a lot of sets in class, e.g. sigma algebras.
- spekcular 5y agoAnother point of clarification: I'm all for telling people what sets are. I'm less warm toward discussing things like ZFC, esoteric cardinality issues, and certain paradoxes (and large cardinals, forcing, etc.), which is typically what mathematicians mean when they say "set theory."
- actually_a_dog 5y agoRight. What most people need to learn is "algebra of sets," essentially.
- chobytes 5y agoIts not immediately practical... but spending a lot time learning a science like math in depth makes learning various applications very easy later. I think sometimes educators have to let people be motivated by some particular application to teach them something more important. Perhaps that is what the author is up to?
- nonameiguess 5y agoWhile I would agree you don't really need to know or worry much about mathematical foundationalism to grok machine learning, anyone writing graduate level papers is going to understand some set theory since probability theory relies upon it. Even just the high school treatment tends to start out with intuitive visualizations of univariate discrete probability like defining a probability as the cardinality of an event space divided by the cardinality of a sample space, defining conjunction and disjunction as set intersection or set union of event spaces, defining mutual exclusivity as disjoint event spaces, and so on. That said, there is probably no reason for anyone to dig too deep into theory without understanding why it matters first. And I don't think it ever matters if you're just trying to solve a problem with ML. Even if you want to overlay a solution on an image of a Sudoku puzzle, you don't need to understand why a particular algorithm works in order to be able to use it. Theory only matters if you're either trying to formally prove something works or possibly to guide you down more productive research paths in developing new algorithms, though honestly I'm not even sure that's really true any more. Just gaining a ton of experience with various possible techniques might generate intuition that is as useful or even more useful than actually understanding anything. I almost hate saying that, as I have a deep personal love of math theory and think it is worth studying to me at least for its own sake, but this is sort of in the vein of whoever invented the curveball almost certainly didn't know much about aerodynamics and didn't need to. Discovering something does work may happen decades or even centuries before anyone figures out why it works.
- YeGoblynQueenne 5y agoThesee are mathematics necessary for AI, as in "Artificial intelligence", not as in "machine learning". From a cursory look the linked page covers a broad range of subjects necessary to understand the last 65 years of AI research, not just the 9 years since the deep learning boom that most people are familiar with. That you know many graduate students with published papers in major conferences in machine learning who don't have a background in AI is ...unfortunate? I guess?
- pedrosorio 5y agoWhich topics in AI require knowing the Peano axioms?
- foxes 5y agoMaybe if you are just experimentally gluing black boxes together and trying to make observations about them >ah these parameters/network layout did this, here's a guess as to why Or just mindlessly gluing stuff to solve a particular problem >we took x model and trained it to recognise cats then yes, you probably do not need much mathematical knowledge. However if you are researching fundamentals, neural tangent kernel, neural odes etc, then you will probably be pretty decent at mathematics. You will also probably have been exposed to Peano at some stage in your life, even if you don't remember it. Its just good background mathematical character development. I would say even if you are more of an applied person, being exposed to the fundamentals probably helps shape your thinking. Yes you can still be a good productive programmer, but maybe you will have something missing. The person with a broader background may be quicker at solving a new problem, they have a bit more to draw on.
- pedrosorio 5y agoI meant to but was not explicit enough. My question to the parent was focusing specifically on their statement "These are mathematics necessary for AI, as in "Artificial intelligence", not as in "machine learning"."
- asdf_snar 5y ago
- ipnon 5y agoThere is another approach[0] centered on a few key textbooks. The goal is to prepare you for fully grokking Deep Learning[1] and Elements of Statistical Learning.[2] [0] https://www.dropbox.com/s/mffzmuo9fvs5j6m/Study_Guide.pdf https://www.dropbox.com/s/mffzmuo9fvs5j6m/Study_Guide.pdf [1] https://www.deeplearningbook.org/ https://www.deeplearningbook.org/ [2] https://web.stanford.edu/~hastie/ElemStatLearn/ https://web.stanford.edu/~hastie/ElemStatLearn/
- tubby12345 5y agoGoodfellow's is not good. Hodgepodge of material with scattered theorems and way too much attention paid to GANs (surprise surprise). ESL is very good but at this point it's the TAOCP of ML book recommendations (besides have steep prereqs). This is a way more approachable and yet still through book on DL.
- nmfisher 5y agoDisagree on Goodfellow, personally I found it the most approachable introduction to neural networks & backprop. To be fair, I think this must have been the pre-GAN edition so maybe it's changed a bit since then. ESL is a fantastic reference but I wouldn't recommend it as a textbook, it's just too terse.
- disgruntledphd2 5y ago> ESL is a fantastic reference but I wouldn't recommend it as a textbook, it's just too terse. I dunno, it's really well written (at least chapters 1-9 are, because they were re-written) and the graphs are to die for. It definitely has a bunch of theorems and proofs that may not be necessary, but the overall flow isn't lost by skipping the ones above your mathematical maturity level. To be fair though, I also love TAOCP, and have worked through 1.5 chapters at this point.
- lisper 5y agoThe title of this sounded very promising. Something that actually describes math from scratch needs to exist, but this ain't it. It runs off the rails from the very first sentence, where it asks "What is math?" but doesn't actually answer the question except to tell you that it's easy. I stopped reading when I got to "Numbers are objects you build to act like the concept of a number." No no no no no. No! Math is the act of inventing sets of rules for manipulating symbols that produce interesting or useful results, or exploring the behavior of sets of rules invented by others. One of the earliest example of such interesting or useful results is rules for manipulating symbols so that the results correspond to the behavior of physical objects (like sheep, or baskets of grain, or plots of land), and in particular, to their quantity so that by manipulating the right symbols according to the right rules allowed you to make reliable predictions about the behavior of and interactions between quantities of sheep and grain and land. The symbols that are manipulated according to these rules are called "numerals" and the quantities that they correspond to are called "numbers". But you can invent other rules for other symbols that produce other useful and interesting behavior, like "sets" and "vectors" and "manifolds" and "fields" and "elliptic curves." But it all boils down to inventing sets of rules for manipulating symbols.
- _448 5y ago> One of the earliest example of such interesting or useful results is rules for manipulating symbols so that the results correspond to the behavior of physical objects (like sheep, or baskets of grain, or plots of land)... Or was it the other way round? First came the objects and then people saw patterns in the transactions and then abstracted it away with symbols? One of the reasons children find maths difficult is because we tend to describe maths in this reverse order i.e. from symbols to physical objects(the way you described above). But explaining it in the actual order i.e. from physical objects to symbols will make maths accessible to many more kids.
- lisper 5y agoThe evolution of math came by way of things like tally marks on sticks and pebbles in pots. The line between symbol and physical system is fuzzy. I think one of the reasons that people find math difficult is that the emphasis is on the symbol-manipulation rules and not on the reasons that certain sets of symbol-manipulation rules are useful. Kids are taught to count "1 2 3 4..." as if these symbols were handed down by God rather than being totally arbitrary. They should be taught to count "*, **, ***, ****, ..." and then, when they get to "***********" or so, they should be encouraged to invent shorter ways of writing these unwieldly strings. (Note, BTW, that when you use the "*, **, ***, ****, ..." numeral system, addition and multiplication become a whole lot easier!)
- jstx1 5y agoThis is will be inaccessible for anyone who actually starts from scratch, it spends too much time on topics that are largely irrelevant and it isn't the best resource for anyone who has the time to spend on the irrelevant parts. I don't think there's a good target audience for it.
- sghiassy 5y agoKnow of any resources that do accomplish the goal of starting from scratch? I’d be interested
- DrPhish 5y agoMathematics: From the birth of numbers by Jan gullberg A worthwhile investment
- deleted 5y ago[deleted]
- codesuki 5y agoI recently started working through Basic Mathematics by Lang. It has exercises with solutions to about half of them. It starts basic but introduces simple proofs early. Although what counts as 'from scratch' depends on the reader I guess. The book doesn't define numbers via sets, maybe check the table of contents.
- k__ 5y agoI'm currently searching for good math resources. My girlfriend started studying CS and didn't have math for 15 years now. It's quite hard to fill the gaps. Here some trigonometry is missing, there some logarithms, etc. Also, finding a good amount of exercise tasks to work through isn't so easy.
- ivansavz 5y agoDisclaimer: I'm the author of these books. I have a book that might be of interest to you and/or your girlfriend as a review of math fundamentals like high school math (with exercises): https://nobsmath.com/ https://nobsmath.com/ see also free concept maps https://minireference.com/static/conceptmaps/math_concepts.pdf https://minireference.com/static/conceptmaps/math_concepts.p... and book preview https://minireference.com/static/excerpts/noBSmath_v5_preview.pdf https://minireference.com/static/excerpts/noBSmath_v5_previe... For university level stuff, I have a Linear Algebra book: https://minireference.com/static/excerpts/noBSLA_v2_preview.pdf https://minireference.com/static/excerpts/noBSLA_v2_preview.... and a MECH+CALC book too https://minireference.com/static/excerpts/noBSmathphys_v5_preview.pdf https://minireference.com/static/excerpts/noBSmathphys_v5_pr... Check out the reviews on the amazons https://www.amazon.de/dp/0992001005/ https://www.amazon.de/dp/0992001005/ and https://www.amazon.de/dp/0992001021/ https://www.amazon.de/dp/0992001021/ Good luck with re-learning math topics... it's very cool stuff. A good source of knowledge buzz ;)
- ai_ia 5y agoThe problem with these online resources are that you end up bookmarking them, but you are most likely never going to come back read them. Apologies, if I am generalising. Learning something is not only reading the course content, that is one part of it (of course). But developing a robust and simple system where you can CRUD your mental model. If you got your note-taking thing figured out, technically you can learn and should be able to learn large amounts of material with sustained and relatively lesser effort. Once again, apologies for going on a tangent. If anyone is looking to teach themselves CS along with CS Math, then we[1] are creating self-paced computer science courses. Our course content will be available as free online e-books [2] as well as their corresponding (paid) interactive versions and will be started getting released mid-November. We have two free courses as of now. Although it doesn't start from scratch and we assume that you have got atleast highschool mathematics part covered. [1]: https://primerlabs.io https://primerlabs.io [2]: https://primerlabs.io/books https://primerlabs.io/books
- bawolff 5y agoI actually find i'm the opposite (everyone is different of course - to each their own). I can learn from written resources fairly well once i get in the flow. Interactive content or content where i have to do exercises a lot break my flow, because i am constantly switching gears.
- nextos 5y agoSame here. For me the best flow comes from a simple information dense book, like any famous tome from Springer Graduate Texts in Mathematics. In relation to this, IMHO the best way to learn the foundations of mathematics is to teach yourself either: * Linear algebra and real analysis (if your end goal is ML or statistics) * Logic and type theory (if your end goal is formal methods or PLT) For the first option, a typical sequence (like the one taught at Harvard Math 55) is Halmos (or Axler) plus Rudin (and a good companion like Gelbaum & Olmsted). A more practical bottom-up approach is to use a good matrix analysis book such as Meyer, plus a more practical calculus (vs analysis) textbook like Hubbard & Hubbard. For the second option, a good theoretical logic book (Ben Ari and Schoening are my favorites) paired along with Girard. A more practical option would use Huth & Ryan as a logic volume along with Pierce's TAPL.
- deleted 5y ago[deleted]
- lincpa 5y agoMy "Warehouse/Workshop Model" is a IT architecture based on mathematical prototype that the simple, classic, and widely used in social production practice, elementary school mathematics "water input/output of the pool". Software and hardware are factories that manufacture data, so they have the same "warehouse/workshop model" and management methods as the manufacturing industry. the "Warehouse/Workshop Model" will surely replace the "von Neumann architecture" and become the first architecture in the computer field, and it is the first architecture to achieve a unified software and hardware. Because "von Neumann architecture" lacks mathematical model support, it is impossible to prove its scientificity. It is an epoch-making theoretical achievement in the IT field, it surpasses the "von Neumann architecture", unifies the IT software and hardware theory, and raises it from the manual workshop production theory level to the modern manufacturing industry production theory Level. Although the Apple M1 chip has not yet fully realized its theory, Apple M1 chip has become the fastest chip in the world. It has a wide range of applications, from SOC to supercomputer, from software to hardware, from stand-alone to network, from application layer to system layer, from single thread to distributed, from general programming to explainable AI, from manufacturing industry to IT industry, from energy to finance, from the missile's "Fire-and-Forget" technology to Boeing aircraft pulse production line technology . The Grand Unified Programming Theory: The Pure Function Pipeline Data Flow with Principle-based Warehouse/Workshop Model: https://github.com/linpengcheng/PurefunctionPipelineDataflow https://github.com/linpengcheng/PurefunctionPipelineDataflow Why my "warehouse/workshop model" can achieve high performance and low power consumption (take Apple M1 chip, Intel AVX-512, Qualcomm as examples) https://github.com/linpengcheng/PurefunctionPipelineDataflow/blob/master/doc/why_wwmodel_fast_en.md https://github.com/linpengcheng/PurefunctionPipelineDataflow...
- wly_cdgr 5y agoI don't see a single inline exercise? This is like being taught to bike by being told to watch videos about wheels
- mrobot 5y agoI am kinda disappointed the "math foundations" (first part) does not have the word "logarithm" anywhere on the page, as this is for cs / AI. The CS part of this thing (different page) does talk briefly about logarithms, but just a little. In one part it says "A (base-10) logarithm of a number is essentially how many digits a number has." The final (AI) part then ends up needing exponential functions and logarithmic functions. It references a book "Obtain the book Mathematical Modeling and Applied Calculus listed in the beginning of this page via library genesis or other means, and skip to chapter 1.4 Exponential Functions. There is a short demonstration here that assumes you have a basic idea what a derivative is from the other above videos. Read chapter 1.5 on inverses, then 1.6 Logarithmic Functions. By read I mean leisurely skim through the material knowing when to go practice or read more in depth later if needed." I skimmed the three chapters of the book to see how they teach it, and i really kinda didn't like the way they approached it and what they leave out. I think even if you understood everything there, you wouldn't really have a good understanding of log and exponent, what e actually is, how logs relate to each other, how they relate to polynomials, how exponential funcs relate to doubly exponential ones and so on... just like good roots to be able to understand complexity really well. I dunno. It's a draft right? Maybe they will fix that up and make it more self-contained. I don't think i would really want to do it like this from scratch. Math is too often taught in such a mechanical way without really explaining how everything relates. I want people to actually really have good intuition about the things i teach them before i use them as requisite to teach them something that requires them. Is AI really a good place to start? Why even do it this way?
- dwheeler 5y agoIf you truly want to look at Math Foundations "from scratch", you might check out the Metamath Proof Explorer: http://us.metamath.org/mpeuni/mmset.html http://us.metamath.org/mpeuni/mmset.html This starts from axioms of logic & set theory, & proves everything else. Real and complex numbers info here: http://us.metamath.org/mpeuni/mmcomplex.html http://us.metamath.org/mpeuni/mmcomplex.html