A difference equation with a cubic nonlinearity is examined. Using a phase plane analysis, both quasi-periodic and chaotically behaving solutions are found. The chaotic behavior is investigated in relation to heteroclinic and homoclinic oscillations of stable and unstable solution manifolds emanating from unstable periodic points. Certain criteria are developed which govern the existence of the stochastic behavior. An approximate solution technique is developed giving expressions for the quasi-periodic solutions close to a stable periodic point and the accuracy of these expressions are investigated. The stability of the solutions is examined and approximate local stability criteria are obtained. Stochastic excitation of a nonlinear difference equation is also considered and an approximate value of the second moment of the solution is obtained.