Clustering in real space and in redshift space