
XGBoost is a library for gradient boosted trees: it fits many small decision trees one after another, each one correcting the errors of the trees before it. This skill follows one running example, a panel of 56 US stocks with a few features known at each month-end and the return of the following month as the target. You fit your first model, write the boosting loop yourself and check that it matches the library, then learn what tree depth, the learning rate and regularisation do. You handle missing and categorical features, change the objective from a regression to a ranking, add monotone constraints that encode what an analyst already knows, read a model with feature importance and SHAP values, and validate it in time without leaking the future. The skill ends with a ranker of next-month returns judged the way a research team would judge it.
Comfort with Python and pandas is enough. Having met scikit-learn's fit and predict helps, but it is not required.