However, more research is needed. The researchers note that the study did not specifically look at certain types or severities of depression, e.g., mild, moderate, or postpartum). What’s more, the effect of environmental factors on vitamin D levels—such as sunlight, latitude, and time outside—was not considered.