Code for books

The programs described in the book are downloadable here. The programs were written for Python 2.7 and Visual Python 6. I am now in the process of converting all the programs to Python 3.7 and Visual Python 7. I recommend installing the Anaconda Python distribution Anaconda Python distribution with Python version 3.7 or later and  Visual Python 7. Using Anaconda is convenient, since it includes modules needed to run the programs.

It is recommended to run the programs by typing IDLE in the terminal of Anaconda (CMD.exe Prompt), or using the IDE Spyder. From IDLE open the program (usually the main.py file) and run it.  When the zip file has the word “NEW”, it means the code has been updated to Python 3.7. Right click the blu buttons to download the Python programs. The computer code is updated and new modules are included.

 

For questions : marco.bittelli@unibo.it

 

The programs described in the book are downloadable here.  The programs were written for R 3.3.1, for 64-bit processors, available on the official R website (https://www.r-project.org/). Right click to download the .R files. Some programs
use User Defined Functions that are necessary to perform computations. The user should download the file UserDefinedFunctions.zip and data.zip, listed at the bottom of the list. Then it should create a directory within the main directory where the R programs are saved, called User Defined Functions and data, and unzip all the files there. Right click the green buttons to download the code. Additional exercises  and examples are included here, at the bottom of the program list, that are not included in the book. In the .zip file is included a PDF document with the theory about the exercises.

 

Random Processes Analysis with R

Marco Bittelli, Roberto Olmi and Rodolfo Rosa. Oxford University Press (in press).

The programs described in the book are downloadable here.  The programs were written for R 4.2.1, for 64-bit processors, available on the official R website (https://www.r-project.org/). Right click to download the .R files. Programs are organized by chapters. The user should download and install the R packages listed in the book’s introduction, necessary to run the programs. Several programs are associated to experimental data collected by the authors or taken from relevant literature. Each .zip file contains the R program and the data. The last button allows for downloading a PDF file with the solution of the exercises presented at the end of each chapter. Since R is an open source code, packages are constantly updated and sometime changes are introduced with respect to previous versions.