Best Data Science Books: Free and Paid Reading List for 2027
The best data science books for beginners and working analysts: statistics, Python and R, machine learning, visualization, causal inference, SQL and experimentation, with free legal PDFs marked and a reading order by level.
Most “best data science books” lists mix a few classics with whatever is new, and leave you to guess where to start. This list is organized the way data science is actually learned: programming and data wrangling, then statistics, then modeling, then the specialized skills (forecasting, causal inference, experiments, communication) that separate a notebook user from a trusted data scientist. A surprising number of the best data science books are free, legally, from their authors. Those are marked (free).
Last reviewed: December 2026. Editions and links were checked at that time. (paid) means you have to buy it; (free) means the author or publisher hosts the full text.
Table of contents
- Quick picks
- Reading roadmap by level
- Python for data science books
- R for data science books
- Statistics and probability books
- Bayesian statistics books
- Machine learning books for data scientists
- Math for data science
- Time series and forecasting
- Causal inference books
- Experimentation and A/B testing
- Data visualization and storytelling
- SQL and analytics engineering
- Business, thinking and ethics
- Interview preparation
- All free books in one table
- Free courses that pair with the books
- Study plans
- Projects and exercises
- FAQ
- Where to go next
- Contributing
- License
Quick picks
| Goal | Best pick | Price | Why |
|---|---|---|---|
| Learn data science with Python | Python for Data Analysis, 3rd ed. | free online / paid print | Written by the creator of pandas; the definitive pandas book. |
| Learn data science with R | R for Data Science, 2nd ed. | free online | The tidyverse way, clearly taught. |
| First statistics book for programmers | Think Stats, 3rd ed. | free online | Statistics through Python code, almost no formulas. |
| Statistics for practising data scientists | Practical Statistics for Data Scientists, 2nd ed. | paid | 50+ concepts in R and Python, focused on what you will use. |
| Statistical learning (ML with theory) | An Introduction to Statistical Learning (ISLR / ISLP) | free PDF | The best bridge between statistics and machine learning. |
| Hands-on machine learning | Hands-On Machine Learning with Scikit-Learn and PyTorch (2025) | paid | End-to-end projects, from linear models to transformers. |
| Causal inference | The Effect or Causal Inference: The Mixtape | free online | Clear, modern, example-driven. |
| Forecasting | Forecasting: Principles and Practice | free online (R and Python editions) | The standard applied forecasting text. |
| Visualization | Fundamentals of Data Visualization | free online | Principles of good charts, tool-agnostic. |
| A/B testing | Trustworthy Online Controlled Experiments | paid | Written by people who ran experimentation at Microsoft, Google and LinkedIn. |
If you read only three: Python for Data Analysis (or R for Data Science), An Introduction to Statistical Learning, and Practical Statistics for Data Scientists.
Reading roadmap by level
Time estimates assume about 6-8 hours a week.
Level 1: Tools and data wrangling (6-10 weeks)
- One language book: Python for Data Analysis or R for Data Science.
- SQL: SQLBolt and Mode’s SQL tutorial (both free).
- Optional gentle start: Python Data Science Handbook for NumPy, pandas, Matplotlib and scikit-learn in one place.
Checkpoint: given a messy CSV, you can clean it, join it with another table, aggregate it, and chart the result in under an hour.
Level 2: Statistics (8-12 weeks)
- Think Stats, 3rd ed. (free) for intuition through code.
- OpenIntro Statistics (free) or Practical Statistics for Data Scientists for the standard toolkit: sampling, confidence intervals, hypothesis tests, regression.
- Optional: Introduction to Probability (Blitzstein & Hwang, free PDF) if you want real probability foundations.
Checkpoint: you can explain what a p-value is not, compute a confidence interval by bootstrap, and fit and interpret a linear regression with categorical variables.
Level 3: Modeling (10-16 weeks)
- An Introduction to Statistical Learning (free; Python edition ISLP or R edition ISLR2).
- Hands-On Machine Learning for practical scikit-learn and PyTorch.
- Feature Engineering and Selection and Interpretable Machine Learning (both free) as references.
Checkpoint: you can build a cross-validated model, compare it against a sensible baseline, explain its errors, and say why you would or would not ship it.
Level 4: Specialize (ongoing)
Pick by job: forecasting (FPP), causal inference (The Effect, Mixtape, What If), experimentation (Trustworthy Online Controlled Experiments), Bayesian modeling (Statistical Rethinking, Bayes Rules!), or communication (Storytelling with Data, Fundamentals of Data Visualization).
Python for data science books
| Book | Author(s) | Price | Best for |
|---|---|---|---|
| Python for Data Analysis, 3rd ed. | Wes McKinney | free online (Open Access HTML) / paid print | pandas, NumPy and data wrangling, by the creator of pandas. |
| Python Data Science Handbook | Jake VanderPlas | free online (1st ed. text and notebooks) | One-stop tour of IPython, NumPy, pandas, Matplotlib, scikit-learn. Some APIs have moved on; ideas have not. |
| Think Stats, 3rd ed. | Allen B. Downey | free online / paid print | Exploratory data analysis and statistics in Python notebooks. Book page. |
| Data Science from Scratch, 2nd ed. | Joel Grus | paid | Implement the algorithms yourself in plain Python to understand them. |
| Data Science: A First Introduction with Python | Timbers, Campbell, Lee, Ostblom, Heagy | free online | University intro course text; great for complete beginners. |
| Computational and Inferential Thinking | Adhikari, DeNero, Wagner | free online | Textbook of Berkeley’s Data 8; statistics by simulation. |
Best pick: Python for Data Analysis if you already know basic Python. If you do not, start with Data Science: A First Introduction with Python or Computational and Inferential Thinking.
Docs worth treating as books: pandas user guide, Polars user guide, scikit-learn user guide.
R for data science books
| Book | Price | Best for |
|---|---|---|
| R for Data Science, 2nd ed. (Wickham, Çetinkaya-Rundel, Grolemund) | free online | The modern starting point: import, tidy, transform, visualize, communicate. |
| Data Science: A First Introduction (Timbers, Campbell, Lee) | free online | Gentler, course-shaped R introduction. |
| Statistical Inference via Data Science (ModernDive) | free online | Regression and inference with the tidyverse. |
| R Programming for Data Science (Roger Peng) | free online | The language itself, for people who want to program R, not just use it. |
| Tidy Modeling with R (Kuhn & Silge) | free online | Modeling with tidymodels: resampling, tuning, evaluation. |
Statistics and probability books
| Book | Price | Level | Notes |
|---|---|---|---|
| OpenIntro Statistics | free PDF (pay-what-you-want) / cheap print | beginner | Solid, standard intro course text with exercises. |
| Practical Statistics for Data Scientists, 2nd ed. (Bruce, Bruce, Gedeck) | paid | beginner-intermediate | Concise, practical, R and Python. |
| Think Stats, 3rd ed. | free online | beginner | Code-first statistics. |
| Introduction to Probability (Blitzstein & Hwang) | free PDF from the authors / paid print | intermediate | Harvard Stat 110’s text; the best probability foundation for data science. |
| Introduction to Probability, Statistics and Random Processes (Pishro-Nik) | free online | intermediate | Thorough, with solved problems. |
| Seeing Theory | free | beginner | Interactive visual introduction to probability and statistics. |
| Naked Statistics (Charles Wheelan) | paid | non-technical | Intuition and motivation, no math background needed. |
| How to Lie with Statistics (Darrell Huff) | paid | non-technical | Short 1954 classic on misleading numbers and charts. |
Bayesian statistics books
| Book | Price | Notes |
|---|---|---|
| Statistical Rethinking, 2nd ed. (Richard McElreath) | paid book; free lecture videos linked from the site | The most loved modern Bayesian course; causal thinking throughout. Amazon. |
| Think Bayes, 2nd ed. (Allen B. Downey) | free online | Bayesian methods with Python, computation first. |
| Bayes Rules! (Johnson, Ott, Dogucu) | free online | Friendly undergraduate Bayesian text in R. |
| Bayesian Data Analysis, 3rd ed. (Gelman et al.) | free PDF for non-commercial use from the authors’ page | The comprehensive reference. Advanced. |
| Regression and Other Stories (Gelman, Hill, Vehtari) | paid (examples and code free on the site) | Applied regression done thoughtfully. |
Machine learning books for data scientists
| Book | Price | Notes |
|---|---|---|
| An Introduction to Statistical Learning (James, Witten, Hastie, Tibshirani, Taylor) | free PDF (R and Python editions) | The best first ML book for data scientists. Free videos accompany it. |
| The Elements of Statistical Learning (Hastie, Tibshirani, Friedman) | free PDF | ISL’s rigorous older sibling. |
| Hands-On Machine Learning with Scikit-Learn and PyTorch (Aurélien Géron, 2025) | paid | The PyTorch-based successor to the popular TensorFlow edition. Author site. |
| Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd ed. | paid | Still excellent if you work in the Keras/TensorFlow stack. |
| Feature Engineering and Selection (Kuhn & Johnson) | free online | How to build predictors that actually help. |
| Interpretable Machine Learning (Christoph Molnar) | free online | SHAP, partial dependence, LIME and when to trust them. |
| Dive into Deep Learning | free online | Runnable deep learning textbook. |
| Deep Learning (Goodfellow, Bengio, Courville) | free online | Theory reference for neural networks. |
Best pick: ISL first, then Hands-On Machine Learning. ISL makes you understand; Géron makes you productive.
Math for data science
- Mathematics for Machine Learning (Deisenroth, Faisal, Ong) (free PDF) - linear algebra, calculus, probability and optimization, aimed at ML.
- Introduction to Probability (free PDF) - see above.
- If you need a refresher before these, Khan Academy’s linear algebra and statistics units are a fine free on-ramp.
Time series and forecasting
| Book | Price | Notes |
|---|---|---|
| Forecasting: Principles and Practice, 3rd ed. (Hyndman & Athanasopoulos) | free online | The applied standard, in R (fable/tsibble). |
| Forecasting: Principles and Practice, the Pythonic Way (Hyndman, Athanasopoulos, Garza, Challu, Mergenthaler, Olivares) | free online / print 2026 | Python port using Nixtla libraries, with added chapters on neural and foundation forecasting models. |
Causal inference books
| Book | Price | Notes |
|---|---|---|
| The Effect (Nick Huntington-Klein) | free online / paid print | The clearest introduction to research design and causal identification. |
| Causal Inference: The Mixtape (Scott Cunningham) | free online / paid print | Econometrics-flavored: DAGs, matching, regression discontinuity, IV, diff-in-diff, synthetic control. |
| Causal Inference: What If (Hernán & Robins) | free PDF from the authors | Epidemiology-flavored, rigorous counterfactual framework. |
| Causal Inference for the Brave and True (Matheus Facure) | free online | Python notebooks; very popular with industry data scientists. |
| The Book of Why (Pearl & Mackenzie) | paid | Popular-science introduction to causal graphs. |
Experimentation and A/B testing
- Trustworthy Online Controlled Experiments (Kohavi, Tang, Xu) (paid) - the industry handbook: metrics, guardrails, sample ratio mismatch, pitfalls. Amazon.
- The Effect chapters on randomized experiments (free) for the underlying logic.
Data visualization and storytelling
| Book | Price | Notes |
|---|---|---|
| Fundamentals of Data Visualization (Claus O. Wilke) | free online | Which chart to use and why; color, proportions, uncertainty. |
| Storytelling with Data (Cole Nussbaumer Knaflic) | paid | Decluttering and presenting to decision makers. Author’s books page. |
SQL and analytics engineering
- SQL for Data Analysis (Cathy Tanimura) (paid) - window functions, cohorts, time series, text and anomaly analysis in SQL.
- SQLBolt and Mode SQL tutorial (free).
- LeetCode Top SQL 50 (free account) - practice problems.
- Data Science at the Command Line, 2nd ed. (Jeroen Janssens) (free online).
Business, thinking and ethics
- Data Science for Business (Provost & Fawcett) (paid) - data-analytic thinking for real decisions.
- The Signal and the Noise (Nate Silver) (paid) - prediction, uncertainty and overconfidence.
- Weapons of Math Destruction (Cathy O’Neil) (paid) - how models cause harm at scale.
Interview preparation
- Ace the Data Science Interview (Singh & Huo) (paid) - probability, statistics, SQL, ML and product-sense practice questions.
- Introduction to Machine Learning Interviews (Chip Huyen) (free online).
- Practise product-sense out loud: pick an app, define a north-star metric, two guardrails, and how you would test a change.
All free books in one table
Free courses that pair with the books
| Course | Pairs with |
|---|---|
| Kaggle Learn - short pandas, SQL, ML, visualization micro-courses | Python for Data Analysis |
| Data 8 (Berkeley) | Computational and Inferential Thinking |
| StatQuest on YouTube | Any statistics or ML book |
| Stat 110 lectures via the book site | Introduction to Probability |
| Statistical Rethinking lectures | Statistical Rethinking |
| Practical Deep Learning (fast.ai) | Hands-On ML |
| DataTalksClub ML Zoomcamp and Data Engineering Zoomcamp | Project-based practice |
| Machine Learning Specialization (Coursera, audit options vary) | ISL |
| Google Data Analytics Certificate (paid) | Entry-level analyst roles |
Study plans
12-week analyst plan (about 8 hours a week)
| Weeks | Read | Do |
|---|---|---|
| 1-3 | Python for Data Analysis ch. 1-8 | Clean and analyze one public dataset per week |
| 4-5 | SQLBolt, Mode tutorial, SQL for Data Analysis selected chapters | 30 SQL problems |
| 6-8 | Think Stats or OpenIntro Statistics | Bootstrap and regression notebook |
| 9-10 | Fundamentals of Data Visualization | Redesign three bad charts |
| 11-12 | Trustworthy Online Controlled Experiments, first part | Analyze a simulated A/B test end to end |
6-month data scientist plan
- Months 1-2: the analyst plan, faster.
- Month 3: ISL chapters 2-8 with labs.
- Month 4: Hands-On ML Part I; one Kaggle competition, aiming to beat a baseline honestly.
- Month 5: The Effect or Mixtape; one causal analysis on observational data.
- Month 6: Portfolio: three polished projects with write-ups.
Projects and exercises
| Project | Skills | Book to keep open |
|---|---|---|
| Analyze your city’s open data (311 calls, transit) and publish a short report | wrangling, visualization | Python for Data Analysis; Fundamentals of Data Visualization |
| Simulate a coin, a die and a queue, and verify theory by simulation | probability | Think Stats; Introduction to Probability |
| Bootstrap confidence intervals vs textbook formulas on skewed data | inference | Think Stats |
| Predict house prices; compare linear, regularized and tree models with cross-validation | modeling | ISL |
| Forecast a public time series and report prediction intervals, not just point forecasts | forecasting | FPP |
| Estimate the effect of a policy with difference-in-differences | causal inference | The Effect; Mixtape |
| Design an A/B test: metric, power analysis, guardrails, analysis plan | experimentation | Trustworthy Online Controlled Experiments |
| Explain a model to a non-technical stakeholder in five slides | communication | Storytelling with Data |
FAQ
What is the best book to learn data science? For Python users, Python for Data Analysis (free online); for R users, R for Data Science (free online). Follow it with An Introduction to Statistical Learning.
What is the best data science book for beginners with no coding? Start with Data Science: A First Introduction (R or Python edition) or Computational and Inferential Thinking; both assume no prior programming. Naked Statistics is a good non-technical companion.
Are there free data science books? Many of the best are free from their authors: ISL, ESL, R for Data Science, Python for Data Analysis, Think Stats, FPP, The Effect, the Mixtape and more. See the full table. Avoid unofficial PDF sites; they are often pirated and sometimes malicious.
Do I need to learn statistics for data science? Yes. Modeling tools are easy to run and easy to misuse. Statistics is what lets you say how sure you are.
Python or R? Python is more common in industry job postings and ML engineering. R remains excellent for statistics, research and visualization. Either is fine to start; the books above exist in both.
Is ISLR or ESL better? ISL for nearly everyone. ESL if you are comfortable with linear algebra and want the theory.
How long does it take to learn data science from books? About 6-12 months of consistent study to be job-ready for entry-level analyst or junior data scientist roles, assuming you build projects alongside the reading.
Is Hands-On Machine Learning still good in 2026? Yes. The 2025 edition switched to PyTorch for deep learning; the Keras/TensorFlow 3rd edition is still fine if your stack uses it.
Where to go next
- Machine learning engineering and MLOps: Designing Machine Learning Systems by Chip Huyen.
- Data engineering: Fundamentals of Data Engineering (Reis & Housley).
- Deep learning: Dive into Deep Learning (free) and fast.ai.
- More curated lists: Top 100 Open Source.
Contributing
Pull requests and issues are welcome for broken links, new editions, or books that clearly belong here. Please include who the book is for, whether it is free or paid, and a description in your own words. Free entries must be hosted by the author, publisher or an open-license source.
License
Content licensed under CC BY 4.0.
If this helped you, a star helps others find it.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.