Introduction to programming in applied statistics
Introduction to C++ and ROOT:
C++ is one of the most widely used programming languages in the World,
not the least so in the sciences. ROOT is a piece of (CERN developped)
software (libraries) based on C++, which enables fast reading of data,
advanced stastistical analysis and fitting, and graphical displaying
of the results. For a further description, please see
Wikipedia's description of
ROOT.
ROOT (and C++) is essential to the course, as we will be using it for
all data analysis. Much of the analyses involved is hard/impossible to
do using simpler programming languages (e.g. matlab).
Installing C++ and ROOT:
C++ is typically part of Linux/MAC installations. For Windows, the
following is a free
C++ compiler for Windows.
ROOT can be downloaded in the latest
ROOT
version 5.34. Instalation instructions can be found on the
page.
An example C++/ROOT macro (small piece of program not needing to be
compiled) to test the installation can be found at:
PrimeNumbers.c
Slides introducing ROOT:
The following slides are very general and possibly too advanced for
what is needed for this course, but nevertheless useful:
Overview of talk
Part 1
Part 2
Part 3
Part 4
Part 5
Useful links for new ROOT users:
ROOT User Guide
ROOT Tutorials (i.e. examples)
ROOT FAQ