Preserving correlations: A statistical method for generating synthetic data