Estimation And Inference For Self-Exciting Point Processes With Applications To Social Networks And Earthquake Seismology