Mathematical modeling suggests that the tale of Little Red Riding Hood has its origins far back in history.

We all know one fact about Little Red Riding Hood’s family tree: She has—or had—a grandmother. But newly published research suggests her ancestral linage in fact goes way, way back.

Writing in the online journal PLOS One, Durham University anthropologist Jamie Tehrani presents evidence that the popular folk tale appears to share ancient roots with another story still popular in Europe and the Middle East, The Wolf and the Kids.

“This is rather like a biologist showing that humans and other apes share a common ancestor but have evolved into distinct species,” Tehrani told the university’s public affairs office. “The fact that Little Red Riding Hood 'evolved twice' from the same starting point suggests it holds a powerful appeal that attracts our imaginations.”

The oldest known version of Little Red Riding Hood is an 11th-century poem "written in Latin by a priest in Liege."

In an attempt to show that one really can trace stories from various cultures to common roots, Tehrani analyzed a series of seemingly related stories to phylogenetic analysis. Developed to trace the relationship between various species, it is used to create a “tree” that traces how, in the course of evolution, certain plants or animals arose from a common progenitor.

“Folk tales represent an excellent target for phylogenetic analysis because they are, almost by definition, products of descent with modification,” Tehrani writes. “Rather than being composed by a single author, a folk tale typically evolves gradually over time, with new parts of the story added and others lost as it get passed down from generation to generation.”

For his analysis, Tehrani focused on 72 plot variables, such as the character of the protagonist and the villain; the tricks used by the villain to deceive the victim; and whether the victim ultimately escapes or is eaten. This allowed him to chart how, over centuries of re-tellings, the stories took shape in their present forms.

The Wolf and The Kids, he notes, concerns a nanny goat who “warns her kids not to open the door while she is left out in the fields, but is overheard by a wolf. When she leaves, the wolf impersonates her and tricks the kids into letting him in, whereupon he devours them.” That tale “evolved from an Aesopic fable which as first recorded around 400 A.D.,” he writes.

In contrast, the oldest known version of Little Red Riding Hood is an 11th-century poem “written in Latin by a priest in Liege.” But Tehrani’s analysis suggests they emerged from a common source deep in history, with various versions branching out and establishing themselves in different cultures.

“The Chinese blended together Little Red Riding Hood, The Wolf and the Kid, and local folktales to create a new, hybrid story,” he said. “Interestingly, this tale was first written down by the Chinese poet Huang Zhing, who was a contemporary of (Frenchman Charles) Perrault, who wrote down the first (published) European version of Little Red Riding Hood in the 17th century.”

So what does it tell us that certain stories—albeit with significant variants—are found in a wide range of cultures, and stay popular over the centuries? Tehrani finds them to be “a rich source of evidence about the kinds of information that we find memorable and motivated to pass on to others."

He notes that Little Red Riding Hood and its related tales share certain key features: “minimally counterintuitive concepts” such as talking animals; “survival-relevant information” such as “the danger presented by predators, both literal and metaphorical;” and “the importance of following a parent’s instructions.”

In other words, these stories are survival guides for kids, presented in language kids can understand.