On estimating correlations in the spatial distribution of galaxies