Statistical Modelling › Summary

Michael BrenndoerferMay 28, 20252 min read
Machine Learning from ScratchAll chapters
Part 1 of 9Statistics 101
Chapter 11Statistical Modelling › Summary
Reading section 7 of 8 · Summary · 2 minSection 7 of 8 · 2 min

Book contents

Section 7 of 8 · 2 min read

Statistical Modelling › SummaryOne section · Sections in this chapter7 / 8 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Statistical modeling requires careful attention to three interconnected concepts that together determine whether our models will succeed in practice. First, we should quantify model fit using appropriate metrics that capture prediction accuracy in meaningful ways. R-squared provides an intuitive proportional measure of variance explained, while RMSE offers an absolute error metric in the original units of the target variable. These metrics give us concrete numbers to compare models and track improvement, but they should be interpreted carefully in context.

Second, we need to manage the fundamental tradeoff between underfitting and overfitting by finding the right level of model complexity. Underfit models are too simple to capture real patterns and perform poorly on both training and test data. Overfit models are so complex they memorize noise rather than learning generalizable relationships, achieving excellent training performance but failing on new data. The goal is to find the sweet spot where the model captures true patterns without learning spurious noise, balancing bias against variance.

Finally, cross-validation provides the methodological rigor necessary to evaluate model performance and make sound decisions about model selection and hyperparameters. By systematically rotating through different train-validation splits, cross-validation produces stable performance estimates that are less dependent on any particular division of the data. This approach maximizes the information we extract from limited data while protecting against overfitting to a single test set.

Together, these concepts form the basis of principled model development. They apply whether we're fitting simple linear regressions or training complex deep learning systems. Mastering these fundamentals allows data scientists to move beyond simply fitting models to systematically developing solutions that perform well in production environments.