Both factors were associated with higher levels optimism and lower levels of anxiety and depression.