Ms. Doran had long been drawn to “funny dramas and comedies that make you cry,” she said. Now she knew why.

In a July presentation before the Second World Congress of the International Positive Psychology Association in Philadelphia Ms. Doran recalled her first “aha!” moment, when she recognized that the perma elements of well-being that Dr. Seligman, a University of Pennsylvania professor, had identified were the basis of the movies that made her, and others, happy. She showed how these five factors were embedded in films as far-flung as “Ferris Bueller” (characters who displayed positive emotions throughout), “The Godfather” (characters fully engaged in what they’re doing throughout) and “The Karate Kid” (a character completely focused on accomplishment).

“It’s no surprise to say that American movies specialize in stories of accomplishment,” she told her audience, adding later, “When Jennifer Grey finally dares to make the scary leap at the end of ‘Dirty Dancing,’ when the Karate Kid performs the impossible kick that wipes out his opponent, or when King George VI gets through his wartime speech without stammering — those accomplishments are among the great pleasures of cinema.”

Ms. Doran’s second “aha!” moment came when she consulted a veteran market researcher who oversees hundreds of previews annually. “I listed the five elements of well-being, and he said, ‘I can already tell you one thing: Audiences don’t care about accomplishments.’ ” She was thunderstruck. Wasn’t the Hollywood ending about accomplishment?

No, he said, adding: “Audiences don’t care about an accomplishment unless it’s shared with someone else. What makes an audience happy is not the moment of victory but the moment afterwards when the winners shares that victory with someone they love.” So she mentally rewound the concluding scenes of these “accomplishment” films. Ms. Grey leaps into the arms of Patrick Swayze at the end of “Dirty Dancing,” and after that she reconciles with her father. Jaden Smith performs that impossible kick at the end of “The Karate Kid,” but afterward makes peace with his opponent and shares the moment with his mother and trainer. Colin Firth conquers his stammer at the end of “The King’s Speech,” and then shares his victory with his wife, daughters and the crowds cheering outside the palace. The film closes with a title card that reads that the king and his speech therapist remained friends for the rest of their lives.