# Advanced Predictive Analytics: The Code Book

*Last updated on 15 februari, 2021*

# 1 Introduction

This book contains example code of most of the items discussed in the slides of predictive analytics. The student is advised to first go over the slides and the online videos, such that he/she has a profound understanding of the underlying concepts. The theory will only be revised briefly in this book. The goal of this book is to give you an example of most of the concepts seen in class in the statistical programming language R. The code book will closely follow the content and order of the slides. Hence, it is a good idea to open the slides while going through these code examples.

The examples will be done on real-life data sets. Since the students are already familiar with the concepts of analytical CRM, the case studies will be mainly about customer churn and acquisition.

Special thanks to Bram Janssens for his assistance in the creation of this book.