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: Nearly Half Of Nursing Home Workers In Pennsylvania Have Declined COVID-19 Vaccine, State Data Shows

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: CBS3 Pet Project: Tips For Getting Your Dog To Walk On A Leash

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: Seven People Hospitalized After Crash In North Philadelphia: Police

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