ABSTRACT

Based on the author’s experience in teaching data science for more than 10 years, Mathematics and Programming for Machine Learning with R: From the Ground Up reveals how machine learning algorithms do their magic and explains how these algorithms can be implemented in code. It is designed to provide readers with an understanding of the reasoning behind machine learning algorithms as well as how to program them. Written for novice programmers, the book progresses step-by-step, providing the coding skills needed to implement machine learning algorithms in R.

The book begins with simple implementations and fundamental concepts of logic, sets, and probability before moving to the coverage of powerful deep learning algorithms. The first eight chapters deal with probability-based machine learning algorithms, and the last eight chapters deal with machine learning based on artificial neural networks. The first half of the book does not require mathematical sophistication, although familiarity with probability and statistics would be helpful. The second half assumes the reader is familiar with at least one semester of calculus. The text guides novice R programmers through algorithms and their application and along the way; the reader gains programming confidence in tackling advanced R programming challenges.

Highlights of the book include:

  • More than 400 exercises
  • A strong emphasis on improving programming skills and guiding beginners to the implementation of full-fledged algorithms
  • Coverage of fundamental computer and mathematical concepts including logic, sets, and probability
  • In-depth explanations of machine learning algorithms

chapter Chapter 1|13 pages

Functions Tutorial

chapter 2|19 pages

Logic and R

chapter 3|24 pages

Sets with R: Building the Tools

chapter 4|43 pages

Probability

chapter 5|10 pages

Naïve Rule

chapter 6|27 pages

Complete Bayes

chapter 7|20 pages

Naïve Bayes Classifier

chapter 8|19 pages

Stored Model for Naïve Bayes Classifier

chapter 9|16 pages

Review of Mathematics for Neural Networks

chapter 10|25 pages

Calculus

chapter 12|18 pages

Programming a Neural Network Using OOP in R

chapter 13|18 pages

Adding in a Bias Term