## Factor analysis can be conducted in different ways. A common approach is linear regression using a simple model like Ordinary Least Squares (OLS). While we believe this is a good starting point, using solely OLS can have drawbacks.

## This case study demonstrates how a two-step approach, using a Lasso regression for initial factor selection followed by an OLS regression for factor exposures and significance among the selected factors, can enhance the interpretability and accuracy of factor analysis.

At its core, Venn is a factor-based tool, as many of its features are powered by analysis using the Two Sigma Factor Lens. Factor analysis can be conducted in different ways. One common method is linear regression, which is a technique that uses explanatory variables (factors, in our case) to model a dependent variable (portfolio or investment returns, in our case). The simple regression model that is typically covered in Statistics 101 courses is Ordinary Least Squares (OLS), which seeks to minimize the sum of the squares of the differences between the dependent variable and those predicted by the model of explanatory variables. OLS is a good starting point for factor analysis, however we believe using solely OLS can have drawbacks.

We believe a two-step approach can enhance the interpretability and accuracy of factor analysis:

**Lasso regression:**A factor selection technique that seeks to reduce the full set of factors in the Two Sigma Factor Lens to those the lasso regression determines to be most relevant to each portfolio’s or investment’s returns**OLS regression:**A standard regression that seeks to explain the portfolio’s or investment’s returns using the selected factors from step 1

Why is the first step necessary? While OLS regressions are computationally simple and typically well-behaved, a key drawback is that they attempt to fit every possible explanatory factor to the dependent variable, even if the relationship is rather weak. We’ll illustrate this through a simple case study. Here is the set up:

- We constructed 7 explanatory factors of 36 data points each. The factors are completely random values within a normal distribution with a mean of zero and a standard deviation of 2%.
- We constructed a “noise” data stream that also has 36 data points with random values pulled from a normal distribution with a mean of zero and a standard deviation of 0.5%.
- We constructed a dependent return stream using 100% of Factor 1 + 50% of Factor 2 + 30% of Factor 3 + “noise” data. The dependent return stream has no relationship to Factors 4 through 7.

Simply running an OLS regression to fit the dependent return stream to the 7 random factors yields the results in Exhibit 1:

*Exhibit 1: OLS Regression*

As expected, the betas to Factors 1 through 3 are close to the original values used to construct the dependent return stream. They are also statistically significant, as demonstrated by the t-statistic values. These values measure how confident we are in the beta estimates. T-statistics greater than an absolute value of approximately 2.00 tell us that we are 95% confident that the factor’s beta is statistically different from zero.

However, the regression also identified betas to all of the factors, and even found a 0.11 relationship to Factor 7 to be statistically significant, even though we know there is no ex-ante relationship.

Lasso regressions^{1} can be used to select a subset of factors that appear to provide the greatest explanatory power. Here are the results of a lasso regression using the dependent variable and the 7 random factors:

*Exhibit 2: Selected Factors from Lasso Regression*

The lasso regression filtered out those factors that had no ex-ante relationship with the dependent variable.

Finally, we will run an OLS regression using only those explanatory variables selected by the lasso regression. The results are displayed in Exhibit 3:

*Exhibit 3: OLS Regression with Lasso Regression Selected Factors*

Again, as expected, the betas to Factors 1 through 3 are very close to the original values used to construct the dependent return stream. While the t-statistics for the factors differ marginally from Exhibit 1, the important point is that they are still statistically significant.

We believe the results of this regression are simpler and easier to interpret. Additionally, the process of selecting more relevant and intuitive factors may help improve the interpretation of the inherent risk drivers as well as enhance the accuracy of the analysis by discarding the noise of irrelevant factors.

Try Venn for free to analyze your portfolio and investments today our two-step factor analysis methodology.