I've noticed that when capturing Pokemon, capture rates are all over the shop. Regardless of CP, sometimes Pokemon will simply refuse to be captured, though they'll stick around for you to try, try, try again, and waste all your balls and berries. Others will get in the ball the first time, on a terrible throw, even though they have a relatively high CP.
Other Pokemon will refuse to sit still; constantly attacking or jumping, and some will immediately flee after the first capture attempt.
I understand there are things at play in regards to badges that can affect capture rates, but my focus is on Pokemon behaviour, in regards to the 3 IV stats - Attack, Defense, and Stamina.
Is there any correlation here? If not, what does affect it?