Not sure on previous gens, but I've compared Serebii's calculations with a few I've confirmed in-game myself, and they have all been correct so far.
Edit: I just found Barbaracle in a friend safari, I'll catch a couple and check the stats myself to confirm.