Statistical physics of fractal dynamical systems