I think obviously there's something 'Genetic' influencing it if you boil it down to the way our brain acts and sends signals. Our brain signals and our hormones essentially make up everything we are, what we do, what we like, what we think. It's impossible for anything we do to not be connected to it in someway. So for the sake of argument, I'm ignoring brain signals and speaking strictly pre-existing genetic code you're born with. If I were to theorize I'd guess there are some ideologies you are more susceptible to, but which one you ultimately adopt is mostly based on individual experiences, and allowed you to adopt certain values, opinions and mindsets.