Statistical ray optics