My mate is pretty high up in Aviva, lives down south now on £80k a year and a 30% bonus (maybe why insurance is so high!), left school with only 5 GCSEs - why did I go to uni to earn a pittance?

Anyway, he's tried to tell me about the logic but the algorithms are ridiculously complex - layers upon layers of inter meshing data, some complement each other and some are at odds with each other. Factors like if you've been involved in an accident that wasn't your fault, you are far more likely to cause an accident yourself in the following 6 weeks, then the risk falls off. If your renewal falls in that 6 weeks, expect a hike for a non fault claim that the other side fully paid up for.
Postcode lottery is a part of it. Live at a posh self contained address considered within the bounds of a city, you're more likely to have a higher premium than someone who lives on a rough council estate in a village/new town.
For me, quote me happy has been cheapest for 3 years runnin, overall, for both my car and the wifes'. She's s lot cheaper through them (driving 4 years, 4 years NCD) as part of a multicar policy. I'm marginally dearer than next cheapest through them, but overall, my loss and her gain keep us with them.
Incidentally, me with 15 years NCD and driving for 25 years, but having had 2 people hit my parked car in the last 5 years makes me just a tenner cheaper than her?!?