
The power of R for trading (part 2)
The R environment makes statistical estimation and learning accessible to portfolio management beyond the traditional quant space. Overcoming technicalities and jargon, managers can operate powerful statistical tools by learning a few lines of code and gaining some basic intuition of statistical models. Thus, for example, R offers convenient functions for time series analysis (characterizing trading signals and returns), seasonal adjustment (detecting inefficiencies and cleaning calendar-dependent data), principal component analysis (condensing the information content of large data sets), standard OLS regression (simplest method to check quantitative relations), panel regression (estimating one type of relation across many countries or companies), logistic regression (estimating the probability of categorical events), Bayesian estimation (characterizing uncertainty of trading strategies comprehensively), and supervised machine learning (delegating the exact form of forecasts and signals to a statistical method).