Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    J

    Jonas Lindeløv

    lindeloev.github.io · Personal blog · on HN since 2019

    Jonas Lindeløv is a researcher who wrote a widely shared guide showing common statistical tests as special cases of linear models.

    Visit blogHN submissions
    MathScienceData & Visualization
    What HN says

    HN commenters praise the linear-models view of tests, though some argue stats should be taught via probability and regression, or Bayesian methods, instead of recipes.

    Stats for nerds
    16HN people shared it
    10linked in comments
    366story points
    Mar 2025last shared
    2023people per year2025

    Top posts on HN

    1. 1
      Common statistical tests are linear models
      16 people · 366 points · first shared 2019 · 44 comments on HN

    What HN people wrote when they linked it

    • maltelauDec 2023

      Maybe you would find it useful to read a textbook on bayesian stats for inspiration. I can recommend Richard McElreath's "Statistical Rethinking" which makes it very clear how inflexible it is to just know recipes like t-tests or anovas.

      The canonical approach is to build a generative model with a parameter (or multiple for ~anova) that codes for the difference between groups and do inference on that parameter of interest. Most of the recipes taught in statistics classes can be modelled as a regression of some kind (this counts for frequentist stats too, see https://lindeloev.github.io/tests-as-linear/ ). Some advocate to do that inference with bayes factors. Others, like discussed elsewhere in this thread, advocate combining the resulting posterior with a cost/value function, but either way the lesson is that there is less focus on "t-test-vs-anova" because they're the same thing anyways.

    • ImaCakeOct 2023

      I think those short courses would be more effective if they didn't bother with ANOVA and instead taught intro probability and distributions and then jumped straight to regression. ANOVA is just a really specific way of doing a regression.

      In R, and python::statsmodels you get the answer to (essentially) an ANOVA any time you run an LM or GLM; its the Z-statistic for your whole model.

      I know there is more nuance to this, but teaching students that they can use regression for most of the problems they would have used seemingly arcane tests for is going to be much more useful for the students.

      Here is a lovely page demonstrating how to do this in R: https://lindeloev.github.io/tests-as-linear/

    • treszkaiOct 2023

      I understand where you're coming from, and I like the idea for a certain kind of people: those who are very good at handling abstractions. Software engineers do have this skill, but the majority of statistics users do not. Trying to explain the similarities between these linear methods and how all is one [1] to a social scientist who doesn't like numbers nor formulas to begin with would only lead to more confusion.

      But if you ever do a randomized test with a suitable linear model to estimate the efficacy of these two methods, do let us know, that would be 10/10 :)

      [1]: https://lindeloev.github.io/tests-as-linear/#41_one_sample_t-test_and_wilcoxon_signed-rank

    • epguiOct 2023

      As much as I appreciate and love all pedagogical endeavours in the field, especially in the form of open texts, I really, really, really dislike this overall approach to teaching introductory statistics.

      I'm hoping to see, over time, a shift away from ad-hoc null hypothesis testing in favour of linear models (yes, in introductory courses, from the start-- see link below) and Bayesian-by-default approaches.

      https://lindeloev.github.io/tests-as-linear/#:~:text=Most%20of%20the%20common%20statistical,most%20students%20know%20from%20highschool.

    • aquafoxJul 2024

      Most people don't appreciate linear regression. 1) All common statistical tests are linear models: https://lindeloev.github.io/tests-as-linear/ 2) Linear models are linear in the parameters, not the response! E.g. y = a*sin(x)+bx^2 is a linear model. 3) By choosing an appropriate spline basis, many non-linear relationships between the predictors and the response can be modelled by linear models. 4) And if that flexibility isn't enough, by virtue of the Taylor Theorem, linear relations are often a good approximation of non-linear ones.

    • simuloFeb 2024

      I knew the linked-in-the-article https://lindeloev.github.io/tests-as-linear/ which is also great. A bit meta on the widespread use of linear models: "Transcending General Linear Reality" by Andrew Abbott, DOI:10.2307/202114

    Related

    Statistical Modeling, Causal Inference, and Social Sciencestatmodeling.stat.columbia.edu350 people

    Suspicious data pattern in recent Venezuelan election

    Statistical Modeling, Causal Inference, and Social Science
    Publication · last shared 2026
    Andrew Gelmanstat.columbia.edu/~gelman127 people

    What are the most important statistical ideas of the past 50 years? [pdf]

    Andrew Gelman
    Personal · last shared 2025
    Jeremy Kunjeremykun.com194 people

    A Programmer's Introduction to Mathematics

    Jeremy Kun
    Personal · last shared 2026
    Sebastian Raschkasebastianraschka.com102 people

    Building LLMs from the Ground Up: A 3-Hour Coding Workshop

    Sebastian Raschka
    Personal · last shared 2026
    Machine Learning Masterymachinelearningmastery.com99 people

    A Gentle Introduction to Bayes’ Theorem for Machine Learning

    Machine Learning Mastery
    Personal · last shared 2026
    Simply Statisticssimplystatistics.org85 people

    The future of education is plain text

    Simply Statistics
    Publication · last shared 2026
    Jakub Marianjakubmarian.com55 people

    The “432 Hz vs. 440 Hz” conspiracy theory

    Jakub Marian
    Personal · last shared 2026
    Eugene Yaneugeneyan.com69 people

    Stop Taking Regular Notes; Use a Zettelkasten Instead

    Eugene Yan
    Personal · last shared 2026