Modern analysis of HEP data needs advanced statistical tools to separate signal from background. This is the first book which focuses on machine learning techniques. It will be of interest to almost every high energy physicist, and, due to its coverage, suitable for students. Modern analysis of HEP data needs advanced statistical tools to separate signal from background. This is the first book which focuses on machine learning techniques. It will be of interest to almost every high energy physicist, and, due to its coverage, suitable for students. Notation and vocabulary Why we wrote this book and how you should read it Parametric likelihood fits Goodness of fit Resampling techniques Density estimation Basic concepts and definitions of machine learning Data pre– processing Linear transformations and dimensionality reduction Introduction to classification Assessing classifier performance Linear and quadratic discriminant analysis. Logistic regression. Partial least squares regression Neural networks Local learning and kernel expansion Decision trees Ensemble learning Reducing multiclass to binary How to choose the right classifier for your analysis and apply it correctly Methods for variable ranking and selection Bump hunting in multivariate data Software packages for machine learning The authors are experts in the use of statistics in particle physics data analysis. Frank C. Porter is Professor at Physics at the California Institute of Technology and has lectured extensively at CalTech, the SLAC Laboratory at Stanford, and elsewhere. Ilya Narsky is Senior Matlab Developer at The MathWorks, a leading developer of technical computing software for engineers and scientists, and the initiator of the StatPatternRecognition, a C++ package for statistical analysis of HEP data. Together, they have taught courses for graduate students and postdocs.