Skip to Content
Statistics Every Programmer Needs
book

Statistics Every Programmer Needs

by Gary Sutton
July 2025
Beginner to intermediate
448 pages
15h 1m
English
Manning Publications

Overview

Put statistics into practice with Python!

Data-driven decisions rely on statistics. Statistics Every Programmer Needs introduces the statistical and quantitative methods that will help you go beyond “gut feeling” for tasks like predicting stock prices or assessing quality control, with examples using the rich tools of the Python ecosystem.

Statistics Every Programmer Needs will teach you how to:

  • Apply foundational and advanced statistical techniques
  • Build predictive models and simulations
  • Optimize decisions under constraints
  • Interpret and validate results with statistical rigor
  • Implement quantitative methods using Python

In this hands-on guide, stats expert Gary Sutton blends the theory behind these statistical techniques with practical Python-based applications, offering structured, reproducible, and defensible methods for tackling complex decisions. Well-annotated and reusable Python code listings illustrate each method, with examples you can follow to practice your new skills.

About the Technology
Whether you’re analyzing application performance metrics, creating relevant dashboards and reports, or immersing yourself in a numbers-heavy coding project, every programmer needs to know how to turn raw data into actionable insight. Statistics and quantitative analysis are the essential tools every programmer needs to clarify uncertainty, optimize outcomes, and make informed choices.

About the Book
Statistics Every Programmer Needs teaches you how to apply statistics to the everyday problems you’ll face as a software developer. Each chapter is a new tutorial. You’ll predict ultramarathon times using linear regression, forecast stock prices with time series models, analyze system reliability using Markov chains, and much more. The book emphasizes a balance between theory and hands-on Python implementation, with annotated code and real-world examples to ensure practical understanding and adaptability across industries.

What's Inside
  • Probability basics and distributions
  • Random variables
  • Regression
  • Decision trees and random forests
  • Time series analysis
  • Linear programming
  • Monte Carlo and Markov methods and much more


About the Reader
Examples are in Python.

About the Author
Gary Sutton is a business intelligence and analytics leader and the author of Statistics Slam Dunk: Statistical analysis with R on real NBA data.

Quotes
A well-organized tour of the statistical, machine learning and optimization tools every data science programmer needs.
- Peter Bruce, Author of Statistics for Data Science and Analytics

Turns statistics from a stumbling block into a superpower. Clear, relevant, and written with a coder’s mindset!
- Mahima Bansod, LogicMonitor

Essential! Stats and modeling with an emphasis on real-world system design.
- Anupam Samanta, Google

A great blend of theory and practice.
- Ariel Andres, Scotia Global Asset Management

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Bayesian Statistics the Fun Way

Bayesian Statistics the Fun Way

Will Kurt
Math for Programming

Math for Programming

Ronald T. Kneusel

Publisher Resources

ISBN: 9781633436053Publisher SupportPublisher WebsiteErrata Page