Analytic sets of reals and the density function in the Cantor space