Inflection Points, Kinks, and Jumps: A Statistical Approach to Detecting Nonlinearities