Good question about the critical values. There are many possible ways, if we know something about the population data set, ie, say in the rare case where we know the population follows a normal distribution, then clearly the critical values are just going to be from the standard normal. Obviously we have to pick a significance level, convention is to use either 1% or 5%. But in most cases we don't know anything about the distribution about the population, afterall, the whole purpose of statistical inference is to find out information about the population. So we can utilize the famous theorems, Law of Large Numbers
http://en.wikipedia.org/wiki/Law_of_large_numbers and Central Limit Theorem
http://en.wikipedia.org/wiki/Central_limit_theorem, these powerful theorems allows us to derive the distribution of the population under what we call the Guass-Markov Assumptions (or sometimes the Classical Linear Model Assumptions)
http://en.wikipedia.org/wiki/Gauss%E2%80%93Markov_theorem.
Depending on what we are testing, so in this case, the residuals, through some derivations based on the assumptions we come to the conclusion that the critical values come from the t-distribution (if we are testing for 1 restriction, eg DW statistic) or the F-distribution (for multiple restrictions, eg, BG test), we can also use the chi-squared distribution.
The data is what you have been provided with, you would hope that it is random, this is one of the Gauss-Markov assumptions, if the data is not random then it is biased, if it is biased then statistical inference will be incorrect, so the foundation of all statistical analysis is that you have good data to begin with!