
I think the question of nature versus nurture in complicated traits like temperament is almost always much more complicated than a black/white answer.
I’ve always been told that the dam influences the temperaments of the pups far more than the sire does because she brings them up (nurture). I also believe from studying videos of my own boy before I got him that some aspects of personality are shaped by the relationships with siblings - his brother and sister were far more bonded to each other than to him and almost teamed up together to push him out where food or mum’s milk or attention were concerned, and I’m convinced this is the root of why he can display resource guarding behaviours at times.
Certainly pups are going to learn from each other and mum and any other animals or people they have contact with.
On the other hand the experiments they did with silver foxes showed that if you just breed from the friendliest (or most aggressive) individuals each generation it doesn’t take long for the temperament to change completely from the original generation with no training or habituation taking place at all. There has to be a large genetic component there. (Interestingly some physical characteristics consistently popped up in the “friendly” group, such as white patches and floppy ears.)
It’s likely that whatever the genetic components of temperament are, there isn’t a gene that says “this pup will be anxious about loud noises”. It will be more like the pup has a tendency to physically respond more by producing hormones like adrenalin which makes it more prone to react in a fearful or anxious way, but other things will have influence as well (such as recovery time, curiosity, how secure the attachment to mum or owner is, if the environment is new or familiar, etc).
Back to my boy, he was attacked by a dog three weeks ago, badly enough to need staples to close a wound on his chest. He was absolutely terrified at the time, but hasn’t shown anything but enthusiasm and friendliness towards other dogs since, just as he was before. No fear of dogs at all. But I tried to teach him to go round a cone the other night for foundation agility and once the cone moved a bit and his lead made a tiny sound touching it, he was done. No way did he want to go too close to that cone after that! And he’s convinced that brushes are going to eat him after I very slightly pulled his ear fur while grooming the other day - and I definitely didn’t cause anything him other than slight discomfort.
Doesn’t turn a hair at fireworks, or thunder, or loud motorbikes. Neighbours children playing loudly in the garden? Barking fit. I don’t understand why some things set some dogs off but not others, or why one dog can be brave about big scary things but freak out at small ones.
I’m not convinced that a confident dog will become anxious because it starts living with an anxious dog. But for a dog that’s more prone to nervousness, having an anxious role model might push it over the edge. But it might not. It’s complicated.