“Statistical purposes” generally refers to the use of data for surveys, analysis, scientific research, etc. Under the GDPR, if you collect any personal data for a survey, the regulation still applies to that data.