Vibrations of a beam and related statistical properties