XENON1T dark matter data analysis: Signal and background models and statistical inference