Comparison of two orthogonal series methods of estimating a density and its derivatives on an interval

We compare the merits of two orthogonal series methods of estimating a density and its derivatives on a compact interval--those based on Legendre polynomials, and on trigonometric functions. By examining the rates of convergence of their mean square errors we show that the Legendre polynomial estimators are superior in many respects. However, Legendre polynomial series can be more difficult to construct than trigonometric series, and to overcome this difficulty we show how to modify trigonometric series estimators to make them more competitive.