1: \begin{abstract}
2: We consider a nonparametric regression model with one-sided errors and regression function in a general H\"{o}lder class.
3: Our aim is inference on the error distribution. To this end we estimate the regression function via minimization of the local integral of a polynomial approximation.
4: We show uniform rates of convergence for the simple regression estimator as well as for a smooth version.
5: Those rates continue to hold in mean regression models with symmetric and bounded error distribution. Here one obtains faster rates of convergence compared to optimal rates in mean regression when the error distribution is irregular in the sense that sufficient mass is concentrated near the endpoints.
6: The results are applied to prove asymptotic $\sqrt{n}$-equivalence of a residual-based empirical distribution function to the empirical distribution function of unobserved errors in the case of irregular error distributions. This result is remarkably different from corresponding results in mean regression with regular errors.
7: It can readily be applied to develop goodness-of-fit tests for the error distribution. We present some examples and investigate the small sample performance in a simulation study.
8: \end{abstract}
9: