Python Code (Jupyter Notebook)


  • K-fold cross-validation  to choose parameters in Random Forest classification: an example with 3D plot. Click here
  • Fama-Macbeth regression with outputs of dates, coefficients estimations,  and adjusted R-squares. Click here 
  • Function of finding publication dates of web pages. Click here 
  • Function of printing web pages as PDFs. Click here 
  • Rolling window regressions and standard deviations. Click here