Both men and women become more averse to risks in the run-up to having their first child, with the effect disappearing when the child becomes older.