In context to supervised learning, I have been told that the training dataset and testing data set must be obtained from same distribution whichever it is. That is, for a given supervised learning algorithm, if training data is obtained from say, a normal distribution, then test dataset must also be obtained from normal distribution.
Why is this restriction?
How will the learning performance change when this restriction, if it really exists, is uplifted?