Regression with R and Python Description, Prediction, and Causal Analysis in Social Science and Medicine
Reliable shipping
Flexible returns
Springer Texts in Statistics
Regression with R and Python
Description, Prediction, and Causal Analysis in Social Science and Medicine
Per Johansson | Jiajing Sun
Regression with R and Python is a modern applied textbook on regression analysis that integrates theory, interpretation, and hands-on implementation in both R and Python. The guiding principle is that the meaning of a regression coefficient depends on the goal of the analysis—descriptive, predictive, or causal—so the book emphasizes interpretation first and clarifies which assumptions are needed, for which conclusions.
The core chapters build from covariation and simple linear regression to multiple regression, functional form, and inference under clustered and panel-type dependence. The book then covers binary dependent variables and maximum likelihood estimation, modern prediction workflows (train/test splits, cross-validation, regularization, and tree-based methods), nonparametric regression, time-series regression and forecasting, and causal inference designs (experiments and key quasi-experiments such as difference-in-differences, instrumental variables, and regression discontinuity). A dedicated appendix develops robust inference for correlated error terms, including HAC/Newey-West, fixed-b, and self-normalization methods. Details on inference with nonparametric regression are developed in a separate appendix.
Two programming appendices provide a self-contained introduction to R and Python and mirror the workflow used in the chapters. Additional appendices collect mathematical tools and give matrix-based technical presentations of OLS, GLS, and IV/2SLS.
This book is intended for advanced undergraduate and early graduate students in statistics, econometrics, data science, and applied social sciences. Prerequisites are an introductory statistics course and basic calculus and algebra. Basic programming experience is helpful but not required.
Per Johansson is Chair Professor of Statistics at Uppsala University and Professor at the Yau Mathematical Sciences Center, Tsinghua University. Previous publications include articles in leading statistics and economics journals.
Jiajing Sun is an Associate Professor at the School of Economics and Management, University of Chinese Academy of Sciences. Research and teaching interests include econometrics, time series, and applied statistical modelling.
| Publication Date: | 26 December 2026 |
| Publisher: | Springer Nature Switzerland |
| Imprint: | Springer |
| ISBN-13: | 9783032400871 |
| Format: | Hardback |