It isn’t feasible to calculate these reliably. Therefore a portfolio strategy based on a naive approximation of the covariance matrix won’t be reliable.
The last line follows only if the error terms are truly independent between stocks.
Assuming this is true, the covariance between two stocks is known.
How many terms do we need to approximate? Just bi and Var(ui) for all i and the estimate for (rm,t−rf).
biN+Var(ui)N+(rm,t−rf)1=2N+1
The goal is to construct a factor model that yields Cov(uj,t,ui.t)=0.
Approximation
Time series regressions assume constant loadings. We don’t like this assumption so we instead emphasize a cross sectional approach.
For the cross-sectional regression, let there be N stocks and K factors of interest. Gather N returns on the day. Additionally, collect K characteristics for each stock. These characteristics should be chosen in a way that they are good approximations for the loading on the factor of interest. These K characteristics from N stocks form an N×K matrix.
We now run a regression of the following form, solving for ft.
Day t Returnsr1r2⋮rnrt=Proxied loadingsb1,1b2,1⋮bn,1b1,2b2,2⋮bn,2……⋱…b1,kb2,k⋮bn,kFactor Sensitivitiesf1f2⋮fk+u1u2⋮un=Btft+ut
Interpreting ft
Normalize the columns of Bt (excluding the dummy variable columns) to be mean 0 and unit variance. Furthermore, append a column of 1s. Define this new matrix:
B~t=[1Normed(Bt)]
Let the normalized Bt with an appended column of 1s equal B~t.
If we run the regression:
rt=B~tft+ut
We can do some analysis to find that fk describes the returns to the portfolio where the weight on stock i in the portfolio is given by b~i,k/N. Succinctly:
fk=i=1∑Nrib~i,k/N
Technically the result is actually:
fk=i=1∑Nrib¨i,k/N
Where b¨k is the unique variation in b~.
The coefficient corresponding to the vector of ones, f1, has bi=1∀i∈N. Plugging this into the formula for fk we see the constant represents the return of the equal weighted portfolio. Thus, f1 is referred to as the country factor. Factors that aren’t composed of dummy variables are called style factors.
rt=Btft+ut
The return to asset ri is given by bi′ft+ui.
Forecasting ft
Collect T approximations for the vector ft.
Compute the factor covariance matrix using an exponential weighted average. The formula looks like this:
Σ^f,T=EMA[(ft−fˉt)(ft−fˉt)′]
Recall that that each index of the cross-sectional residual vector ut corresponds to a particular asset. Collect these residuals for a particular asset and approximate its variance using an exponentially weighted average. Gather the approximations to form the diagonal matrix Υ^T.
Let there be J industry factors and S style factors. Then the linear regression problem is:
ri=Country Factorf1+j∑Industry Dummy bj,iReturn to Industry Factorfj+s∑Style bs,iExposurefs+ui
The dummy variable trap leads to an unidentified solution to the least squares problem. Therefore, the problem is usually formed as constrained so that the market cap weighted industry factor returns sum to 0:
j∑mjfj=0
Where the market cap weighting is:
mj=Total(mcap)∑i∈jmcapi
Obviously, constrained optimization influences our interpretation of ft.
Problem Setup
Our goal is to solve a constrained weighted least squares problem where we weight the variances of returns appropriately.
Where ft∈RK×1, rt∈RN×1, Bt∈RN×K, C∈RP×K, d∈RP×1, and Ω∈RN×N. Note that P=1+J+S where J is the number of industries and S is the number of style factors.
Final point to emphasize is that the column of C describing the constraint must correspond to the columns of Bt. We’ve described the problem as imposing the constraint mj=Total(mcap)∑i∈jmcapi.
If this were the desired goal, given a B~ matrix that has this form:
B~=[11(ind1)…1(indJ)s1…sS]
Which would imply a C of this form:
C=[0m1…mJ0…0]
Solution
After solving the associated Lagrangian for ft we see
ft=Wtrt
Where the linear estimator Wt is:
Wt=(I−Q)(B~t′Ω−1B~t)−1B~t′Ω−1
and
Q=(B~t′Ω−1B~t)−1C′(C(B~t′Ω−1B~t)−1C′)−1C
Perhaps a slightly easier way to read these formula is to define A=B~t′Ω−1B~t.
Now:
WQ=(I−Q)A−1B~t′Ω−1=A−1C′(CA−1C′)−1C
Interpreting Wt
Hopefully giving the linear estimator that maps rt↦ft the name Wt and that it has N columns is suggestive that Wt has something to do with the weights of a portfolio. In fact, each row of Wt gives the weights of assets in the portfolio which generates the return to the corresponding row in ft. Recall that Wt∈RK×N: