# Does the prediction/Scoring of model depends on the sequence of the variable?

Let's assume my dataset

D1 has the variables x1, x2, x3, x4, x5, x6, x7, x8, x9, x10


I have used Gradient boosting regression on this and want to score on a new data set having same set of variable(of-course) but the sequence are different.

D_scoring has the sequence like x1, x5, x8, x3, x4, x7, x9, x2, x6, x10


Does this difference in sequence will hamper my prediction(accuracy).

If yes, what is the reason behind that ?

P.S: The reason behind the question is i have done a GBM regression the socring was good with the Validation and CV but while scoring with new data the learning is very bad.

• Do you mean if the order of columns will play any part in the predictions? Nov 19, 2015 at 16:08
• If predicting new data is bad, it means your model isn't describing your phenomenon well enough. Nov 19, 2015 at 16:40
• @LyzandeR : Yes you got it, I want to ask if the order of the columns does play any part in prediction. Nov 19, 2015 at 18:21
• @RomanLuštrik : that might be the issue, but still want to explore any possibilities, as the model was working good in validation data and with cross validation too. Its the unseen data (at the time of scoring) where its showing very odd prediction. Nov 19, 2015 at 18:23

• Just consider a simple example where you're trying to predict a student's exam score, $S$, from the hours per day spent working, $W$, and playing computer games, $P$. Perhaps on the test data, you learn a model like $S = 50 + 2W - P$: the longer you work and less you play, the higher your score. Now think what happens if you apply that model to students whose $W$ and $P$ data have been switched ... you'll end up predicting that the lazy game-players will score highest. Nov 20, 2015 at 22:30