The Speed stat did not exist prior to Pokémon Super Mystery Dungeon. The Speed stat varies in effect from the core series as it affects accuracy, along with affecting moves like Electro Ball.
Not to be confused with the Travel Speed stat
It is mostly for whether you hit or not, like an evasive stat. More speed = more Accuracy. :P
Hope I helped!