Live data from Hacker News

Ask HN: What are your favorite statistics and probability textbooks?

news.ycombinator.com

41–50 of 87 posts

Re: Ask HN: What are your favorite statistics and probability textbooks?

#41
post #25
post #8

I think you will enjoy Efron & Hastie's Computer Age Statistical Inference: Algorithms, Evidence and Data Science. https://web.stanford.edu/~hastie/CASI/ MIT 6.008 Introduction to Inference also goes over many of the classic problems such as Cookie Jar, Monte Hall, Fair Dice, One-Armed Bandits, etc. with tons of labs. I find this stuff easier to grok by just writing code and running a simulation. To that end, I'd set…

I think Efron & Hastie may be a bit too advanced and terse for the OP. They cover many things in not so many pages and "our intention was to maintain a technical level of discussion appropriate to Masters’-level statisticians or first-year PhD students." But given that they distribute the PDF for free it's worth checking out. Hastie, Tibshirani & Friedman's The Elements of Statistical Learning and the watered-down an…

Elements of Statistical Learning is the other text I came in here to recommend.

One of my most valuable activities in grad school was printing and studying each chapter of EoSL.

It's a comprehensive text on the fundamentals of statistics and machine learning, a solid foundation for the cutting-edge techniques relying on deep learning and reinforcement learning.

Re: Ask HN: What are your favorite statistics and probability textbooks?

#42

Feller Vol. 1 is considered the classic text for discrete probability: https://epubs.siam.org/doi/10.1137/1011021 Volume 2 is easily found as a pdf on google, but it's much harder.

Both Feller volumes have some good stuff. E.g., volume 2 has the renewal theorem -- roughly, arrivals from many independent sources look like a Poisson process, i.e., times between arrivals are independent identically distributed random variables with exponential distribution where the parameter in the distribution is the arrival rate. E.g., expect that between 1 PM and 2 PM, arrivals at a popular Web site will be Poisson, and might use that for capacity planning or anomaly detection.

But as my main probability prof summarized, an unguided tour of Feller is not promising. I believe he was correct. Look elsewhere for the first intuition, common applications, or the high quality math, e.g., based on sigma algebras and the Radon-Nikodym theorem, the limit theorems -- laws (weak and strong) of large numbers, central limit theorem (the strong Lindeberg-Feller version, irony here), the ergodic theorem, martingales, Skorohod representation, Kolomogorov extension theorem, Lebesgue decomposition, etc.

Re: Ask HN: What are your favorite statistics and probability textbooks?

#43
How I learned: Early in my career, I was around DC doing mostly work in applied math and computing for US national security. No joke -- constantly the work was heavily probability, statistics, and stochastic processes. I had a good ugrad math major but no courses in any of those three subjects. So I was thrown into the deep end of the pool and was constantly struggling to understand. I did pick up a good overview and a lot of intuition. But the sources varied widely, in both the topics and the quality, over stacks of books and papers, documentation of software, etc.

Lesson: At least at first, one way to learn is just to jump in at the deep end and struggle using lots of texts, references, etc.

Sad Lesson: While nearly all the famous books were good, some of the books that, e.g., from the publisher, might have seemed good were not. The guy who wrote the stuff, I hope he got tenure -- can't be any other reason.

Later I got an applied math Ph.D. and had a terrific course in analysis and probability. So, the analysis part was, right, basically Royden, Real Analysis and the first half of Rudin, Real and Complex Analysis. There was also some material from Oxtoby, Measure and Category (ice cream and cake dessert -- super fun stuff).

The probability was right from the beginning sigma algebras, etc. So, a central topic was the Radon-Nikodym theorem and conditional expectation -- gorgeous once see it. So, there was beautiful coverage of the classic limit theorems, especially martingales.

Best course of any kind I ever took in school. The prof was a star student of E. Cinlar, long at Princeton.

For the course, the main texts in probability were from J. Neveu, L. Breiman, K. Chung, M. Loeve.

For statistics, for the applied stuff, I just remember the stacks of books I worked with early on, especially multivariate statistics. For the math, I just regard that as applied probability and sometimes just do my own derivations, sometimes at least a little new. I never found a statistics book I like or can recommend as the single, main book, e.g., like Rudin in analysis or Neveu in probability. All I can suggest is just to dig into the stacks of the most famous books and also glance at some of the software documentation.

I suspect that there is a really good statistics book to be written, and maybe someone has written it, or is writing it, but I haven't seen it.

Here is a simple derivation I typed in yesterday with an intuitive result in statistics that maybe people should keep in mind. In a sense this little derivation shows the strongest possible result in statistical estimation is, and may I have the envelope please [drum roll], and the discrete data version of the winner is just cross tabulation, assuming that have enough data.

The context is a person applying for credit. Might proceed similarly for, say, ad targeting, etc.

We assume that Y is a real valued random variable where E[Y^2], that is, the expectation, of Y^2 is finite -- meager assumption, especially for practice.

The Y is something about credit worthiness, e.g., loss on a loan, we are interested in.

We assume that X is a random variable taking possibly very general values, e.g., a credit history at uncountably infinitely many points in time in the past. We assume that we have the value of X -- that's our credit data on the person.

Let's do a little preliminary derivation: What value of real number a minimizes

E[(Y - a)^2]

Well, we have

E[(Y - a)^2]

= E[Y^2 - 2 Ya + a^2]

= E[Y^2] - 2aE[Y] + a^2

= E[Y^2] + E[Y]^2 - 2aE[Y] + a^2 - E[Y]^2

= E[Y^2] + (E[Y] - a)^2 - E[Y]^2

which we minimize with a = E[Y].

Or, for one interpretation, the minimum rotational moment of inertia is for rotation about the center of mass.

So, for our main concern, suppose we want to use the data we have X to approximate Y. So, we want real valued function f with domain the possible values of X so that f(X) approximates Y.

For the most accurate approximation, we want to minimize

E[(Y - f(X))]^2

Claim: For f(X) we want

f(X) = E[Y|X]

So, f(X), using X, is the best non-linear least squares approximation to Y.

Proof:

We start by using one of the properties of conditional expectation and then continue with just simple algebra:

E[(Y - f(X))^2]

= E[ E[Y^2 - 2Yf(X) + f(X)^2|X] ]

= E[ E[Y^2|X] - 2f(X)E[Y|X]

+ f(X)^2 ]

= E[ E[Y^2|X] E[Y|X]^2 - 2f(X)E[Y|X]

+ f(X)^2 - E[Y|X]^2 ]

= E[ E[Y^2|X]

+ (E[Y|X] - f(X))^2

- E[Y|X]^2 ]

which is minimized with

f(X) = E[Y|X]

Done.

Re: Ask HN: What are your favorite statistics and probability textbooks?

#44

I've been enjoying the struggle through Statistical Inference by George Casella as a foundational text. This was the introductory text for stats graduate students at Arizona State University a few years back. The Mathematical Methods of Statistics by Harald Cramér is also excellent.

Is that the same as Casella & Berger? Nice Sherlock Holmes quotes at the beginning of each chapter.

Re: Ask HN: What are your favorite statistics and probability textbooks?

#45
post #24

Anyone has anything to say about The Lady Tasting Tea[0]? I'd like to hear/read your thoughts about this book. (I came across it on the comment section of John D Cook's blog post[1] years ago but haven't had a chance to read it yet). [0] https://en.wikipedia.org/wiki/The_Lady_Tasting_Tea [1] https://www.johndcook.com/blog/2013/01/12/elementary-statist...

Nice pop science/history of stats book. entertaining read. You need to have quite a deep understanding of statistics to really understand it though.

Re: Ask HN: What are your favorite statistics and probability textbooks?

#46
I GREATLY enjoyed Intuitive Biostatistics by Motulsky.

It assumes that you're not going to calculate any test statistic on your own, you're going to use Excel, R, or his own software. Therefore the book contains little to no formulas. Instead, it's plain English going over (biology's) most common tests and attributes, and explains what the test assumes about your data, what you can and cannot infer from the output, and what the pitfalls are. VERY useful if you like me come from a 'push X button no clue why' background.

Re: Ask HN: What are your favorite statistics and probability textbooks?

#47
post #18

Earlier quoted context omitted.

Came here to post this and “Advanced Data Analysis from an Elementary Point of View“ by Cosmos Shalizi

I just wish this would come out in paper book. It’s excellent but I have difficulty reading math books online.

Supposedly in process. From the book's website: "The book is under contract to Cambridge University Press; it should be turned over to the press [...] before the end of 2015." But it sounds like that was after a few delays already, so maybe there have been more.

Re: Ask HN: What are your favorite statistics and probability textbooks?

#49
I personally like Kruschke's Bayesian Data Analysis very much. It does a wonderful job in introducing readers to Bayesian statistics -- a good first text book for Bayesian statistics.

For a more classic approach to statistics, I also liked Builder's Analysis of categorical data. It's focused on categorical data but does a good job in explaining what's going on. A good introductory book.

Both books are well written and really try to explain stuff. IMHO they are two examples of good didactics in statistics.

If you're into ML you might want to choose something else though.

Re: Ask HN: What are your favorite statistics and probability textbooks?

#50
The Probabilistic Method by Noga Alon and Joel H. Spencer.

I took a seminar on the probabilistic method and my advisor recommended me to read this book. This book is for scientists. It lays out the foundation of the probabilistic method and a theoretic background.

Post reply on HN