An introduction to ensemble theory. Systems of independent particles. Systems of interacting particles.