# How to create a subset that respect the same distribution of the original data set?

I have a presumably easy question for you, but I am a real newbie in statistics, so please be patient. I have a data set containing $$N$$ values that more or less follows a normal distribution. I need to select $$N/10$$ values among them, creating a subset with the same distribution. How can I do that? Do you have softwares to recommend? I usually use PSPP.

• Why do you need to choose N/10? – rolando2 Apr 23 '18 at 16:00
• Because I have a huge dataset and I cannot afford to continue my analysis and work with all of the values – Elisa Pieri Apr 24 '18 at 9:34

## 1 Answer

A sufficiently large random sample taken from your normally distributed population would give you a normal distribution. The larger the sample, the closer it will be to the original distribution. Choice of sample size will depend on how close you want to get to your population distribution.
I've never used PSPP, but it should have a random sampling feature.
You could use the sample() function in R.

• Thank you very much! How do I know if my random sample is large enough? Is there some test to check it? – Elisa Pieri Apr 24 '18 at 9:09
• There is a Kolmogorov-Smirnov test to see whether two samples come from the same population distribution. Probably under Nonparametric Tests...Independent Samples. Now, in your case you'll know that they do, but even so the result might reassure you that the features of the distribution are being preserved in the smaller sub-sample. – rolando2 Apr 24 '18 at 12:25