No BSD License  

Highlights from
calcRealWorldFactorScores

5.0

5.0 | 1 rating Rate this file 4 Downloads (last 30 days) File Size: 3.61 KB File ID: #7052

calcRealWorldFactorScores

by Martyn Dorey

 

04 Mar 2005 (Updated 07 Mar 2005)

Takes output from factoran and turns into real world explained returns and residuals.

| Watch this File

File Information
Description

This function extends the factor analysis tool box function factoran.

Once you have produced a factor analysis you then may want work out what the explained, and unexplained parts of the data were- in real world space, rather than some transformed space. It would be nice if this was included in the factoran function but hey ho.

Written Martyn Dorey 20 Aug 2004

Takes output from the factor analysis function factoran and translates it into realworld obervations:

Lets say you've got a matrix or returns in mxAssets, 1)Produce some factor analysis using the MATLAB function:

[mxLoadings,vecIdio,T,stats,mxFactorScores] = factoran(mxAssets);

2)Now split the returns into two parts, that which is explained and the residual.

[mxScoresRealWorld,mxDiv,mxExpX,mxResid,Stats] = calcFactorScores(mxLoadings,mxAssets,vecIdio,T)

I've also included a function that takes simulations of factor distributions and pumps it into real world asset expectations.

Any comments or bugs please send me a message.
Regards
M.

Required Products Statistics Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
11 Mar 2005 Marc Curle

why wasn't this done before?

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Martyn Dorey 22 Oct 2008 07:42:38
probability Martyn Dorey 22 Oct 2008 07:42:38
factor Martyn Dorey 22 Oct 2008 07:42:38
analysis Martyn Dorey 22 Oct 2008 07:42:38
factoran Martyn Dorey 22 Oct 2008 07:42:38
residuals Martyn Dorey 22 Oct 2008 07:42:38
simulation Martyn Dorey 22 Oct 2008 07:42:38
real world Martyn Dorey 22 Oct 2008 07:42:38
score Martyn Dorey 22 Oct 2008 07:42:38

Contact us at files@mathworks.com