Hello, this is Dr. David. I am reviewing your question now and will be with you momentarily.
not all mental illness is hereditary.
there are many different types of mental ilness
my mother had bipolar illness and my sister and I don't have mental illness
some traits of anxiety or depression sometimes can be passed on from parent to child.
some trauma and stressful environmental factors can cause post traumatic stress disorder or depression or anxiety disorder in some patients.
so there is no right answer.
is a good article for you to read.