1: \begin{abstract}
2: We prove that the convex least squares estimator (LSE) attains a $n^{-1/2}$ pointwise rate of convergence
3: in any region where the truth is linear. In addition, the asymptotic distribution can be characterized
4: by a modified invelope process. Analogous results hold when one uses the derivative of the convex LSE
5: to perform derivative estimation. These asymptotic results facilitate a new consistent testing procedure
6: on the linearity against a convex alternative.
7: Moreover, we show that the convex LSE adapts to the optimal rate
8: at the boundary points of the region where the truth is linear, up to a log-log factor.
9: These conclusions are valid in the context of both density estimation
10: and regression function estimation.
11: \end{abstract}
12: