Overview

1 Why you should care about statistics

Statistics is presented as a timeless, practical toolkit for turning data into insight by describing populations from samples and quantifying uncertainty. The chapter motivates learning statistics for anyone who touches data—emphasizing employability, decision-making under uncertainty, better data utilization, more effective sampling, and stronger work in machine learning and AI. Rather than rote, table-driven calculations, the book prioritizes intuition and real-world problem solving, using simple Python to keep attention on concepts and the big picture.

After a brief tour of data’s growth—from early record keeping to today’s internet-scale streams—the chapter shows how statistical thinking drives analytical proficiency. It illustrates moving from raw numbers to actionable inferences (for example, forecasting inventory with time series, testing whether promotions work, or modeling relationships with regression). It also arms readers to interrogate studies and organizational claims by examining sampling bias, confounders, incentives, and p-value misuse, highlighting how misaligned rewards can fuel cherry-picking and data torturing, and why a skeptical, methodical approach is essential.

The chapter outlines who benefits—analysts, researchers, engineers, software and data professionals, consultants, and ML/AI practitioners—and contrasts statistical explainability with machine learning’s predictive focus, noting where each excels and how they overlap. It introduces a practical mental model—hypothesize, gather data, fit a model, and test—to keep work grounded in evidence and generalization. Finally, it previews hands-on skills readers will build, from descriptive statistics and confidence intervals to hypothesis tests and linear/logistic regression, all supported by approachable Python workflows that favor clarity and real-world applicability.

Instead of the classroom approach using lookup tables, we will use Python to simplify our statistics calculations.
Digital databases, the Internet, and portable electronic devices have enabled data gathering at a global scale.
An example of the four steps in statistics, studying whether temperature has an impact on sports drinks sales.

Summary

  • Statistics is describing and inferring truths from data, which takes the form of analyzing a sample representing a larger population or domain.
  • Statistics is relevant to any profession that involves data, from analysts to machine learning practitioners and software engineers.
  • Statistics and machine learning have a lot in common, sharing the same techniques but with different mindsets and approaches.
  • Python is a practical and employable platform for practicing statistical concepts, and it can use readily available, stable libraries for tasks such as plotting (matplotlib), data wrangling (pandas), and numerical computing (NumPy).
  • This book will cover a mix of theory, practical hands-on, and “real-world” advice, so you never miss the big picture but still be actionable in the implementation details.
  1. “Statistics.” Merriam-Webster.com Dictionary, Merriam-Webster, https://www.merriam-webster.com/dictionary/statistics. Accessed 28 Apr. 2025.
  2. https://www.youtube.com/watch?v=tm3lZJdEvCc
  3. https://hbr.org/2012/10/data-scientist-the-sexiest-job-of-the-21st-century
  4. https://www.thestreet.com/automotive/car-insurance-companies-quietly-use-these-apps-to-hike-your-rates
  5. https://www.statlearning.com/

FAQ

What is statistics and why does it matter?

Statistics is the discipline of describing and inferring truths from data. It treats the data you have as a sample from a larger population and helps you measure uncertainty, test ideas, and make better decisions. Because data is everywhere, statistical literacy is a timeless, cross-industry advantage.

What are the top reasons to learn statistics?
  • Employability: Combine domain knowledge with inference to uncover valuable signals.
  • Data utility: Turn raw data into actionable insights instead of leaving it unused.
  • Decision-making: Quantify uncertainty to guide choices under risk.
  • Machine learning/AI: Build and evaluate models with a stronger statistical mindset.
  • Effective sampling: Design better experiments and interpret samples vs. populations.
How does this book’s approach differ from traditional Stats 101?

Instead of memorizing lookup tables and mechanics first, the book emphasizes intuition and real-world examples, then uses simple Python functions to do the heavy lifting. You focus on the big picture, not arcane calculations.

What skills will I have by the end of the book?
  • Relate samples to populations and apply this to modern applications like ML.
  • Compute descriptive stats: mean, median, mode, variance, standard deviation, interquartile range, proportions.
  • Infer with confidence intervals and hypothesis tests for means, proportions, and variances.
  • Run linear and logistic regression and understand how statistical and ML approaches differ.
What Python background and tools do I need?
  • Basics: syntax, variables, functions/parameters, if/elif, for loops, importing packages.
  • Helpful libraries: numpy, pandas, matplotlib.
  • Environment: any Python 3 setup works (e.g., VS Code, PyCharm, Jupyter/Colab, Anaconda). The code footprint is small and tooling is kept minimal.
What is the mental model for doing statistics in this book?
  • Hypothesize: Form a question or claim to investigate.
  • Gather data: Obtain a sample relevant to the hypothesis.
  • Fit a model: Choose an appropriate model (e.g., linear regression) to quantify relationships.
  • Test/evaluate: Check performance on new data and measure errors/uncertainty.

Example: Hypothesize that temperature affects sports drink sales, fit a linear model, then test on unseen data to validate or refine the idea.

How does statistics improve real-world decision-making?

Statistics turns noisy history into actionable guidance. For example, when planning inventory you can:

  • Use time series to detect seasonality (e.g., holiday spikes).
  • Run hypothesis tests to assess whether discounts or ads worked.
  • Apply regression to link ad spend or design changes to conversion.

The goal is not perfect prediction, but measured uncertainty that supports better decisions.

How can I critically evaluate studies and headlines?
  • Check sampling: Who was measured, and is it representative?
  • Inspect methods: Assumptions, p-values, multiple comparisons, outlier handling.
  • Look for confounders: Alternative explanations for the observed effect.
  • Follow incentives: Who funded the work, and what outcomes are rewarded?

A skeptical, statistics-literate eye helps you reverse-engineer claims and get closer to the truth.

What ethical problems commonly arise in statistics?

Misaligned incentives can drive cherry-picking, “data torturing,” and burying unfavorable results. Academic “publish or perish,” sponsored research, and organizational pressures can bias analyses. Knowing proper methods—and being diplomatic—helps you navigate and advocate for integrity.

How do statistics and machine learning relate?
  • Overlap: Both learn from data to explain or predict.
  • Emphasis: Statistics prioritizes explainability and uncertainty; ML emphasizes predictive performance and optimization, often via black-box models.
  • Pragmatics: For high-dimensional problems (images, language), black-box ML may be necessary; still, use statistics to validate outputs and assess bias.
  • Rule of thumb: Prefer statistical approaches when interpretability and inference matter; use ML when large-scale prediction is the primary goal.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Grokking Statistics ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Grokking Statistics ebook for free