thanks for your reply, Devon Ryan. I think you mean that those 100 genes randomly selected can represent the whole ~20000genes. that is reasonable. but it is not always the case. I have try the code in this post for other independent data sets, there are cases that it show no correlation at all.
Actually this is a question raised by a interesting hypothesis in my research: we observed that the oxidative phsorylation function was disturbed in our case samples, so we hypothesized that oxidative phosphorylation genes' expression profile must be different from the 'overall expression profile'(we use randomly selected gene to represent this overall expression profile, this is in accordance with your reply~_~), but to my surprise we find that there is always a high correlation between OXPHS genes expression and randomly selected genes' expression profile in my data. So I check this hypothesis in other independent data sets, it turns out that in some data sets the phenomenon holds while in others it didn't.