I'm investigating users accounts statistics for Vkontakte social network. There are $N\approx2 \cdot 10^8$ accounts that have different metrics along them – boolean, discrete and continuous. I found that statistics for those metrics can approximately be found from much smaller random subsets of accounts.
For example vast majority of accounts ($\approx 90\%$) are deleted (blocked bots or self-deleted accounts). So there is probability of deletion that can be found by $$P_{deletion}=\frac{N_{deleted}}{N}$$ this can be also done with much smaller subset of $n\ (n\ll N)$ accounts $$P_{deletion}\approx\frac{n_{deleted}}{n}$$ This approximation become closer with increasing $n$. I'm seeing this on graph of $P_{deletion}(n)$ function.
For discrete and continious metrics this approximation can be done for their distributions parameters as I believe. I checked it on the mean number of user posts for the last month.
What are precise math conceptions behind this? How can I calculate the accuracy of such approximations?


First the sample of size $n$ chosen at random from the population of size $N.$
Then the estimate of the fraction of deleted accounts is $\hat p_{del} = X/n,$ where $X \sim Binom(n, p_{del})$ is the number of deleted accounts among $n$. For $n$ as large as I suppose you would use, $X$ is approximately normally distributed.
This leads to a 95% confidence interval that expresses how far the true $p_{del}$ might be from the estimated $\hat p_{del},$ as follows: $$ \hat p_{del} \pm 1.96 \sqrt{\hat p_{del}(1-\hat p_{del})/n}.$$ Notice that the margin of error (after the $\pm$-sign) shrinks proportionately as $\sqrt{n}$ increases. Also the largest margins of error occur when $\hat p_{del} \approx 1/2.$
When $\hat p_{del}$ is between .3 and .7 a rough rule of thumb is that the margin of error is $1/\sqrt{n}$; a public opinion poll based on randomly sampling $n = 2500$ subjects should be accurate to within about $\pm 2\%$.
For discrete and continuous measures, I guess you are interested in how close the sample mean $\bar X$ of a sample of size $n$ is from the population mean $\mu$ of the $N$ values in the population. Here the Central Limit Theorem takes effect to give $\bar X$ an approximately normal distribution. A 95% confidence interval for $\mu$ is $$\bar X \pm 1.96S/\sqrt{n},$$ where $S$ is the sample standard deviation. Again here the margin of error decreases proportionately as $\sqrt{n}$ increases.