Chaos Theory is a 2008 comedydrama film starring Ryan Reynolds, Emily Mortimer, and Stuart Townsend. The film was directed by Marcos Siega, written by Daniel Taplitz and Kathy Gori, and was shot in Vancouver, Canada.
The following morning, before Frank arrives home, a nurse from the hospital calls attempting to reach him and his wife answers the phone. The nurse, in trying to contact who she thought was the father, leads Susan to believe it is Franks baby and she presupposes he is cheating on her and leading a double life. When Frank arrives home, he is unable to clear up the misunderstanding and Susan throws him out of the house. Susan even refuses to speak to him, and only allows him to see their daughter after school. In an attempt to prove his fidelity to his wife by demonstrating that it is not his baby, Frank sees a doctor for a paternity test, but receives the diagnosis that he was never able to reproduce to begin with, since he has Klinefelters syndrome.A few days later, the stranger brings her baby to the Allens house in hopes of thanking Frank for his kindness, only to find his wife at home. After the stranger introduces herself and her baby to Susan, she clears up the misunderstanding, but the damage is done since Frank now knows that their daughter is not really his. The tides change dramatically as Frank realizes that he was the one in the relationship who was faithful, and goes through a withdrawal as he tries to comprehend how his daughter could not be his and how wrong his life turned out when he believed that he has always stayed straight and narrow. ........
Source: Wikipedia