I have one twist to add to that. I think the way we act and think may actually go much deeper than who we where raised around. Let me explain...
Those of us who have children should be able to relate to this. I noticed my kids doing things that I know they never witnessed me or anyone else doing.
My boy was the one who I noticed most often doing things that I had done when I was about the same age as he. For instance the way he would cast a fishing pole. It did not matter that I was teaching him how I do it now, he did it his way... my old way, exactly like I used to do it.
There where other things too. Like the way he acted in certain situations and such. Some of his actions looked as if he was a carbon copy of me back 25 years younger.
But there is more
My oldest child was born blind. I know for a fact she never saw anyone do anything. She had eating habits that used to exhibit. I don't mean I ate taters to she ate taters either.
I used to eat sandwiches by holding them on my fingertips and rotating them so I could eat the crust first. I know this sounds odd but It was very methodical.
She started doing the very same thing about the same age that I had done it. Why? How could she have known to do that?
I think that it is possible that a little bit of us actually is transferred to our kids, not just the physical attributes but also a little bit of who we are. Our memories is some strange way.
There are many more example I could give but heck that would take a book and this is only an answer.