Correlation analysis deep galaxy samples – I. Techniques with applications to a two-colour sample