The Elements of Statistical Learning [pdf]
web.stanford.edu
web.stanford.edu
For example, here's a screenshot from the introductory chapter (pg. 26): [1]. The authors expect you to already be familiar with matrix analysis applied to statistics.
An Introduction to Statistical Learning (ISL) [2] is aimed at those with a high school level of math.
[1] https://imgur.com/q0NeqdR [2] https://statlearning.com/book.html
https://github.com/melling/ISLR
Would Elements of Statistical Learning be my next book?
I’ve seen the Bishop book highly recommended too, and it has been mentioned in this post.
https://www.amazon.com/Pattern-Recognition-Learning-Informat...
Honestly no I don't think so. ESL is likely too advanced.
I would use that screenshot I posted above as a litmus test. Do you understand that notation? The `E` with the subscript? And why they're using `trace[]`? If you do, then you can likely follow ESL. If not -- which would be understandable because even early undergrads likely can't -- then I say you shouldn't try and follow ISL up directly with ESL. It really is a graduate text.
> I’ve seen the Bishop book highly recommended too, and it has been mentioned in this post.
Bishop has a similar problem: [1]. I had to scroll to chapter 2 for this screenshot (pg. 83), but it really is par for the course.
So, and this is totally my opinion here so YMMV, recommendations for foundational ML info tend to be wildly too advanced for the people seeking them out. I'm a math-y person. I really like learning about the math foundations of ML. But ML builds on a lot of other concepts and you can't just jump into the deep end. In my opinion, ML foundations should come at the end of a lengthy sequence of math and statistics courses. Students will just be too lost without them.
I don't mean to be discouraging here. I think nearly anyone who's willing to put in the time can learn this stuff! But here's a more reasonable sequence I found on reddit a while back that would set someone up nicely for being able to follow ESL: [2]. Without the proper foundation, it's just too difficult to follow ESL or Bishop IMO.
Last, I'll note that you don't need to understand the nitty-gritty of ML math to be an ML practitioner. In fact, I'd argue that taking the effort would be distracting because 1) a basic understanding (like you'd get from working through ISL) is probably good enough to start messing with libraries and 2) practitioners need a whole bunch of other knowledge (like general software skills and how to maintain ML datasets) that they also have to take the time to learn.
[2] https://www.reddit.com/r/learnmachinelearning/comments/ggpzk...
However, like you mentioned, you don't need to work through the proofs to understand logistic regression, lasso, ridge regression, and bootstrapping, for example.
I think the only hard pre-req would be a solid understanding of non-axiomatic probability up through the Law of large numbers. For the rest, I'm of the, perhaps naive, school of thought that one ought to jump in the deep end, and consult a variety of sources as need be. iirc, most of Munkres, and Hoffman & Kunze are not needed for these books. Granted, you might find yourself picking these books up as your focus narrows, but for these books, you don't need them.
With that out of the way, I'd highly, highly recommend Bishop as reading, after ISLR.
Edit: In response to your other comment, I also disagree: proofs, especially for regression problems, are important for understanding why we use them.
Not a problem! These are all just my opinions.
> Analysis, Topology, and proof-based Linear Algebra are certainly not needed for them
Although this is explained in the prose of the document, I should have highlighted it myself: only the nodes in blue are required. The orange nodes (Analysis, Topology, Functional Analysis, etc.) are extra. They aren't required for ESL.
Honestly, as long as you get up to the level of the Casella & Berger text, you'll probably be fine. And a lot of C&B can be skipped (like the focus on ANOVA or experiment design). But I also like that roadmap because after C&B, there's additional emphasis on Linear models which is helpful for ESL.
> For the rest, I'm of the, perhaps naive, school of thought that one ought to jump in the deep end, and consult a variety of sources as need be.
And I suppose this is where you and I differ. I find it discouraging to need to stop partway though a text and go learn a whole new subject area before continuing. Instead, I find that building up the foundation and then working through a text to be a more enjoyable experience because it's just building on what I know.
But to each their own!
This is somewhat long and there is a disclaimer towards the end, but hopefully some of this is helpful.
Working through a book can mean reading what’s on the pages and being able to recall names of techniques or methods. Or using pen and paper to work through the examples and be able to solve problems. This could even be deriving what’s in the book from first principles.
This will depend on what you want to do with the material. If you want to apply it using pre-made R packages, you probably don’t need to recreate everything from scratch and you can probably get away with ISL. If you want to be creating new methods or going beyond pre-made R packages, then you probably need to work up to ESL and solve things from first principles.
ISL is used in an undergrad elective course at my uni. The prerequisite stat material covers Devore probability and stats for engineers and intro to linear regression by Douglas Montgomery. ISL would be a third course in stats (see the bottom for the math background 4 courses). There are entire courses dedicated to the topics in ISL, so I really think ISL is most useful to bring previously studied topics together.
ESL is used in a second year MSc course. This assumes knowledge of mathematical statistics (Casella and Berger Statistical Inference + Wasserman All of Statistics), computational statistics (topics: bootstrap, MCMC, EM algorithm, numerical analysis methods, optimization, and matrix decomposition) and courses on linear regression and the general linear model. So it’s a “capstone” of sorts that ties all of the material together. I haven’t taken any of these courses, so I can’t comment on what’s really necessary.
Disclaimers follow: As others have mentioned someone’s background and preparation may be different and more advanced than what is outlined. Above I outlined the course sequences for ISL and ESL at my uni. We do not require a course on real analysis and we do not do measure theoretic probability (PhDs do but ESL is covered in the MSc that is required for PhD admissions). Of course not every chapter in a textbook is covered in each course and I’m sure there is some sort of minimal coverage of topics that will allow you to get to ISL or ESL in a more efficient way. What that is, I am unable to comment on.
Yes there are people admitted to the MSc program without a stats BSc degree. Examples are physics, math, and computer science majors from what I have seen. Usually they have to make up missing BSc math stats courses.
Undergrad level math background assumes calculus to include multi variable calculus (Stewart Calculus omitting the chapters on vector calculus). Partial derivatives, Lagrange multipliers, multiple integrals. Also linear algebra, matrix multiplications, determinants, eigenvalues, trace (linear algebra and its applications by Lay).
If you have had vector calc, basic probability and stats, and linear algebra, the book is accessible. Especially if you had a numerical methods course somewhere along the way.
I agree. I've come across countless math textbooks claiming to be aimed at "beginning grad students and advanced undergrads." There's a lot of variability in that cross section of readers. Thinking back to my own senior year as an undergrad, some of my peers were extremely bright and were bound for top grad school programs, and some were just barely scraping by managing to graduate by the skin of their teeth.
By graduate course work, I mean "builds on an undergraduate-level understanding of the material". And yes I'm being a little hand-wavy about what demarcates grad from undergrad (which probably isn't well defined anyway), but I hope the gist of my meaning is clear.
It would be a much bigger problem if they assumed not only that you can do these things, but also which things to do!
[1] http://joshua.smcvt.edu/linearalgebra/
[2] http://vmls-book.stanford.edu/
Not at all surprising. From the preface:
> One of the reasons for ESL's popularity is its relatively accessible style. But ESL is intended for individuals with advanced training in the mathematical sciences.
> ... [ISL] is appropriate for advanced undergraduates or master's students in statistics or related quantitative fields or for individuals in other disciplines who wish to use statistical learning tools to analyze their data.
So by that reading, the authors simplified ESL's material from "advanced training in the mathematical sciences" down to "advanced undergraduates or master's students in statistics or related quantitative fields". I think that tells you all you need to know about how difficult ISL ESL should be expected to be.
Given that even ISL expects you to be partway through a university education in math and stats, if it's been a while or if you never studied linear algebra, statistics, or probability at that level in the first place, you won't be ready. That's probably why it irks me so much that ESL gets brought up so much as the starting point for a lot of folks. It's a good starting point for a Ph.D. from another field, but not for, like, a random software developer who's got an interest in ML. It's just setting them up for failure when the SIMPLIFIED version expects them to be partway through a relevant degree.
> I'm planning to focus on statistics next with Blitzstein and Hwang's Introduction to Probability [4] before returning to ISLR.
I think your references form a really solid sequence of prerequisites. I'll again plug what I've been plugging in a few other comments: [1]. In that one, you could probably get through ISL after the Hogg text. But yours is totally fine as well.
One other thing I'll add: I found stat110 and its companion book to focus a little too much on the "challenging" problems. It's like Blitzstein reveled in tricking you with the unintuitive parts of probability. Maybe because of his background in competition math? IDK. I like the novelty of the challenging problems, but I wish they weren't so front and center in his presentation. (I also found the whole story-proof concept a little strange.) Still, the fact that so much is online for free -- including video lectures -- makes it a great resource.
[1] https://www.reddit.com/r/learnmachinelearning/comments/ggpzk...
https://web.stanford.edu/~hastie/CASI_files/PDF/casi.pdf
It's really well motivated and, unlike ESL, discusses many different schools---including classical inference, empirical and Bayes deep learning. Without these different perspectives, newcomers often find statistics very obscure as it just looks like a bag of tricks.
A strong point in the "Introduction to Statistical Learning" by the authors is that each chapter ends with example programs in R (albeit with a fair number of typos).
[0] http://faculty.marshall.usc.edu/gareth-james/ISL/ [1] https://www.youtube.com/watch?v=5N9V07EIfIg&list=PLOg0ngHtcq...
[1] https://twitter.com/daniela_witten/status/126169362443927961...
A lot of these topics where somehow mentioned in some of my ml courses at university but my professors never really bothered to put them in a bigger picture.
Once you’re comfortable with neural networks (and the notation), the “Attention is all you need” paper is fairly accessible.
I think I am actually. And I read attention is all you need. (Well half of it) and it didn’t seem to delve into how they work.
https://d2l.ai/chapter_attention-mechanisms/transformer.html
To me, Goodfellow et al. spent the first hundred and fifty pages on stuff which is important, but covered better elsewhere (e.g., probability theory, numerical methods) and didn't belong in their book at all. Simultaneously, I didn't get that much out of the "core" chapters on RNNs, CNNs, etc, relative to what I got out of other books. I think the book is somewhat overrated, frankly, but YMMV!
https://online.stanford.edu/courses/sohs-ystatslearning-stat...