Quoted By:
IVs are determined at catch or hatching. You can't change them without cheating. Hatch 20 eggs and then talk to the guy to the right of the PC at Battle Tree. He'll upgrade your PC to be able to Judge your mons and see their IVs. Hyper Training adds a flag to your mon and makes the game think it has 31/31 points ("Best") in a certain stat. But this is only a flag and will not transfer to child eggs. When people are talking about 5 IVs or perfect (6 IVs) pokemon, this is what they mean. Destiny Knots and Power training items can influence what IVs your child will have, but in the end you're gonna have to hatch a lot because, at best, you can only influence 5 random IVs and the computer gives you a random 0-31 roll for the sixth stat.
EVs can be trained. Go to your mon and choose Summary to read their EVs. You can train up to 252 in a single stat and 510 overall, with 4 EV equaling +1 in a stat. You'll know if you're maxed out one stat if the stat name has sparkly stars around it. You'll know you're fully trained when your polygon shape is blue instead of yellow. Certain berries can drop your EV training by 10 points in one stat so you can reallocate it. You train by beating up certain mons. Beating Pikipeks will give you 1 Attack EV per win, double that if the battle has been changed to SOS, double that if you have Pokerus, etc... It's up to you to keep track of your EV values if you don't plan on going until you max out a stat. The game doesn't tell you if you're at 40/252.