Statistical analysis of scientific machine learning