By Hadas Kuznits

PHILADELPHIA (CBS) – A new study from the University of Pennsylvania indicates there’s a correlation between what you eat and how much you sleep.

READ MORE: 2 Off-Duty Philadelphia Police Officers Robbed At Gunpoint In Oxford Circle

Penn Professor Michael Grandner, the lead author of the study, says they studied diet and sleep:

“The main thing we learned from the study was that how much we sleep is associated with what we’re eating. So people who are sleeping longer and shorter amounts have different diets compared to people who are sleeping 7-8 hours.”

READ MORE: Delaware Division Of Public Health Announces Vaccine Providers Can Start Administering COVID-19 Booster Shots

And he says those with the most healthy sleep patterns, generally had better diets:

“So for example, you can look at a highly variable diet indicating a generally more healthy diet because you’re eating more different types of foods.”

But he says it’s unclear if a better diet leads to better sleep — or if better sleep leads to a better diet:

MORE NEWS: Resource Center Opens In Bucks County For Residents, Businesses Affected By Ida

“So disrupting sleep could lead you to crave more unhealthy foods at more unhealthy times.”