Skip to content

Commit e5ee1ac

Browse files
committed
Features:
- Risk Index Momentum Factor CRSP (1, 2) - Investing Factors Factor Model Shell (4, 5) - Investing Factors Factor Model - Code (6, 7) - Investing Factors Factor Model - Description (8, 9) - Investing Factors Factor Model - Set (10, 11) - Investing Factors Factor Model - Constructor (12, 13, 14) - Investing Factors Factor Model - Map (15, 16) - Investing Factors Factor Model - Add (17, 18, 19) - Investing Factors Factor Model - Contains (20, 21) - Investing Factors Factor Model - Set (22, 23) - Investing Factors Factor Model - Code Set (24, 25) - Investing Risk Index Market Factor (26, 27) - Investing Risk Index Market Factor - Constructor (28, 29, 30) - Investing Factor Component Loading Category (31, 32) Bug Fixes/Re-organization: - Eliminate Factor Index Category #1 (33, 34) - Eliminate Factor Index Category #2 (35, 36) - Special Function Lanczos Estimator (37, 38, 39) - Special Function Lanczos Estimator - A Series (40, 41) - Special Function Lanczos Estimator - Constructor (42, 43) - Special Function Lanczos Estimator - Evaluate (44, 45, 46) - Special Function Lanczos Estimator - Series Estimate Native (47) - Special Function Log Gamma Binet Integral First Kind Estimator (48, 49, 50) - Special Function Log Gamma Binet Integral First Kind Estimator - Constructor (51) - Special Function Log Gamma Binet Integral First Kind Estimator - Evaluate (52, 53, 54) - Special Function Log Gamma Binet Integral Second Kind Estimator (55, 56) - Special Function Log Gamma Binet Integral Second Kind Estimator - Constructor (57) - Special Function Log Gamma Binet Integral Second Kind Estimator - Evaluate (58, 59, 60) Samples: IdeaDRIP: - Factor Investing SKU v0.04 - 08:47 28 Feb 2024 (3)
1 parent 4955b3f commit e5ee1ac

15 files changed

+672
-123
lines changed

IdeaDRIP/FactorInvesting/FI_v0.03

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
Factor Investing
3+
----------------
4+
1) Security Characteristics - aka Factors: Size, Low-volatility, Value, Momentum, Asset growth, Profitability, Leverage, Liquidity, Term, Carry - DONE
5+
2) Beta Tilt Direction - Towards (+ve), Away (-ve)
6+
3) Risk Premia Category - Corporates, Govvies, Equity, Commodities - DONE
7+
4) Value Factor - Difference between Intrinsic/Fundamental Value and Market Value - DONE
8+
5) Value Factor Metrics - P/E Ratio, P/B Ratio, P/S Ratio, Dividend Yield - DONE
9+
6) Low-volatility Factor - Portfolio acquires only low-volatility assets - DONE
10+
7) Momentum Factor - High returns over past 3-12 months minus Low returns over past 3-12 months, Returns Horizon, Momentum Lag - DONE
11+
8) Momentum Factor caused by seasonality (e.g., January effect) - DONE
12+
13+
Fama-French Three-Factor Model
14+
------------------------------
15+
1) Three Factors - Market Excess Return, Outperformance of Small versus Big Cap, Outperformance of High/low book-to-market (value)
16+
2) Market Factor - PRESENT/ABSENT
17+
3) Accounting Manipulation Proxy Factor - Replacement for the Value Factor
18+
4) CAPM - Single Factor, i.e., Market Factor
19+
5) Factor Component Loading - Weight, Returns, Score, Category - DONE
20+
6) Portfolio Type - Zero Investment or Zero Cost (Self Financing) - DONE
21+
7) Factor Portfolio - Asset Map of Factor Component Loading, Country, Is Global, Portfolio Type - DONE
22+
8) Factor Portfolio Ranker - Factor Component Loading vs Score Ordered Map, Component Ranking Scheme, Re-ranked Components, Top List, Bottom List, Weight Sign - DONE
23+
9) Factor - Code, Description, Metric Type, Factor Portfolio - DONE
24+
10) Factor Model - Model Code, Model Description, Collection of Factors
25+
11) Asset Factor Loading - Factor Returns, Factor, Asset Factor Beta, Beta Tilt Direction
26+
12) Factor Regressor - Asset Specification - DONE
27+
13) Risk Free Setting - Instrument (Treasury/LIBOR/OIS/SOFR), Tenor (e.g., 3M), Rate
28+
14) Factor Regressor Output - Collection of Asset Factor Loading, Factor Risk Free Premia, Alpha, Asset Returns, Asset Risk Premia
29+
15) Factor Regressor Function - Apply Risk Free Setting to Factor Regressor to generate Factor Regressor Output
30+
16) CAPM One-Factor Model - Market Factor
31+
17) Fama-French Three-Factor Model - Market Factor, Size Factor, Value Factor
32+
18) Mramor-Pahor Three-Factor Model - Market Factor, Size Factor, Accounting Manipulation Proxy Factor
33+
19) Fama-French Five-Factor Model - Market Factor, Size Factor, Value Factor, Profitability Factor, Investing Factor
34+
35+
Carhart Four-Factor Model
36+
------------------------------
37+
1) Four Factors - Market Excess Return, Outperformance of Small versus Big Cap, Outperformance of High/low book-to-market (value), Momentum Factor
38+
2) Market Portfolio Name - CRSP - DONE
39+
3) MOM Portfolio Name - UMD 12M winners minus 12M losers - DONE

IdeaDRIP/FactorInvesting/FI_v0.04

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
Factor Investing - DONE
3+
-----------------------
4+
-----------------------
5+
1) Security Characteristics - aka Factors: Size, Low-volatility, Value, Momentum, Asset growth, Profitability, Leverage, Liquidity, Term, Carry - DONE
6+
2) Risk Premia Category - Corporates, Govvies, Equity, Commodities - DONE
7+
3) Value Factor - Difference between Intrinsic/Fundamental Value and Market Value - DONE
8+
4) Value Factor Metrics - P/E Ratio, P/B Ratio, P/S Ratio, Dividend Yield - DONE
9+
5) Low-volatility Factor - Portfolio acquires only low-volatility assets - DONE
10+
6) Momentum Factor - High returns over past 3-12 months minus Low returns over past 3-12 months, Returns Horizon, Momentum Lag - DONE
11+
7) Momentum Factor caused by seasonality (e.g., January effect) - DONE
12+
13+
Fama-French Three-Factor Model
14+
------------------------------
15+
1) Three Factors - Market Excess Return, Outperformance of Small versus Big Cap, Outperformance of High/low book-to-market (value)
16+
2) Market Factor - PRESENT/ABSENT - DONE
17+
3) Accounting Manipulation Proxy Factor - Replacement for the Value Factor
18+
4) CAPM - Single Factor, i.e., Market Factor
19+
5) Factor Component Loading - Weight, Returns, Score, Category - DONE
20+
6) Portfolio Type - Zero Investment or Zero Cost (Self Financing) - DONE
21+
7) Factor Portfolio - Asset Map of Factor Component Loading, Country, Is Global, Portfolio Type - DONE
22+
8) Factor Portfolio Ranker - Factor Component Loading vs Score Ordered Map, Component Ranking Scheme, Re-ranked Components, Top List, Bottom List, Weight Sign - DONE
23+
9) Factor - Code, Description, Metric Type, Factor Portfolio - DONE
24+
10) Factor Model - Model Code, Model Description, Collection of Factors - DONE
25+
11) Asset Factor Loading - Factor Returns, Factor, Asset Factor Beta, Beta Tilt Direction
26+
12) Factor Regressor - Asset Specification - DONE
27+
13) Risk Free Setting - Instrument (Treasury/LIBOR/OIS/SOFR), Tenor (e.g., 3M), Rate
28+
14) Factor Regressor Output - Collection of Asset Factor Loading, Factor Risk Free Premia, Alpha, Asset Returns, Asset Risk Premia
29+
15) Factor Regressor Function - Apply Risk Free Setting to Factor Regressor to generate Factor Regressor Output
30+
16) CAPM One-Factor Model - Market Factor
31+
17) Fama-French Three-Factor Model - Market Factor, Size Factor, Value Factor
32+
18) Mramor-Pahor Three-Factor Model - Market Factor, Size Factor, Accounting Manipulation Proxy Factor
33+
19) Fama-French Five-Factor Model - Market Factor, Size Factor, Value Factor, Profitability Factor, Investing Factor
34+
35+
Carhart Four-Factor Model
36+
------------------------------
37+
1) Four Factors - Market Excess Return, Outperformance of Small versus Big Cap, Outperformance of High/low book-to-market (value), Momentum Factor
38+
2) Market Portfolio Name - CRSP - DONE
39+
3) MOM Portfolio Name - UMD 12M winners minus 12M losers - DONE

IdeaDRIP/FactorInvesting/FI_v0.05

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
Factor Investing - DONE
3+
-----------------------
4+
-----------------------
5+
1) Security Characteristics - aka Factors: Size, Low-volatility, Value, Momentum, Asset growth, Profitability, Leverage, Liquidity, Term, Carry - DONE
6+
2) Risk Premia Category - Corporates, Govvies, Equity, Commodities - DONE
7+
3) Value Factor - Difference between Intrinsic/Fundamental Value and Market Value - DONE
8+
4) Value Factor Metrics - P/E Ratio, P/B Ratio, P/S Ratio, Dividend Yield - DONE
9+
5) Low-volatility Factor - Portfolio acquires only low-volatility assets - DONE
10+
6) Momentum Factor - High returns over past 3-12 months minus Low returns over past 3-12 months, Returns Horizon, Momentum Lag - DONE
11+
7) Momentum Factor caused by seasonality (e.g., January effect) - DONE
12+
13+
Fama-French Three-Factor Model
14+
------------------------------
15+
1) Three Factors - Market Excess Return, Outperformance of Small versus Big Cap, Outperformance of High/low book-to-market (value)
16+
2) Market Factor - PRESENT/ABSENT - DONE
17+
3) Accounting Manipulation Proxy Factor - Replacement for the Value Factor
18+
4) CAPM - Single Factor, i.e., Market Factor
19+
5) Factor Component Loading - Weight, Returns, Score, Category - DONE
20+
6) Portfolio Type - Zero Investment or Zero Cost (Self Financing) - DONE
21+
7) Factor Portfolio - Asset Map of Factor Component Loading, Country, Is Global, Portfolio Type - DONE
22+
8) Factor Portfolio Ranker - Factor Component Loading vs Score Ordered Map, Component Ranking Scheme, Re-ranked Components, Top List, Bottom List, Weight Sign - DONE
23+
9) Factor - Code, Description, Metric Type, Factor Portfolio - DONE
24+
10) Factor Model - Model Code, Model Description, Collection of Factors - DONE
25+
11) Asset Factor Loading - Factor Returns, Factor, Asset Factor Beta, Beta Tilt Direction
26+
12) Factor Regressor - Asset Specification - DONE
27+
13) Risk Free Setting - Instrument (Treasury/LIBOR/OIS/SOFR), Tenor (e.g., 3M), Rate
28+
14) Factor Regressor Output - Collection of Asset Factor Loading, Factor Risk Free Premia, Alpha, Asset Returns, Asset Risk Premia
29+
15) Factor Regressor Function - Apply Risk Free Setting to Factor Regressor to generate Factor Regressor Output
30+
16) CAPM One-Factor Model - Market Factor
31+
17) Fama-French Three-Factor Model - Market Factor, Size Factor, Value Factor
32+
18) Mramor-Pahor Three-Factor Model - Market Factor, Size Factor, Accounting Manipulation Proxy Factor
33+
19) Fama-French Five-Factor Model - Market Factor, Size Factor, Value Factor, Profitability Factor, Investing Factor
34+
35+
Carhart Four-Factor Model
36+
------------------------------
37+
1) Four Factors - Market Excess Return, Outperformance of Small versus Big Cap, Outperformance of High/low book-to-market (value), Momentum Factor
38+
2) Market Portfolio Name - CRSP - DONE
39+
3) MOM Portfolio Name - UMD 12M winners minus 12M losers - DONE

ReleaseNotes/08_10_2023.txt

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
Features:
3+
4+
- Risk Index Momentum Factor CRSP (1, 2)
5+
- Investing Factors Factor Model Shell (4, 5)
6+
- Investing Factors Factor Model - Code (6, 7)
7+
- Investing Factors Factor Model - Description (8, 9)
8+
- Investing Factors Factor Model - Set (10, 11)
9+
- Investing Factors Factor Model - Constructor (12, 13, 14)
10+
- Investing Factors Factor Model - Map (15, 16)
11+
- Investing Factors Factor Model - Add (17, 18, 19)
12+
- Investing Factors Factor Model - Contains (20, 21)
13+
- Investing Factors Factor Model - Set (22, 23)
14+
- Investing Factors Factor Model - Code Set (24, 25)
15+
- Investing Risk Index Market Factor (26, 27)
16+
- Investing Risk Index Market Factor - Constructor (28, 29, 30)
17+
- Investing Factor Component Loading Category (31, 32)
18+
19+
20+
Bug Fixes/Re-organization:
21+
22+
- Eliminate Factor Index Category #1 (33, 34)
23+
- Eliminate Factor Index Category #2 (35, 36)
24+
- Special Function Lanczos Estimator (37, 38, 39)
25+
- Special Function Lanczos Estimator - A Series (40, 41)
26+
- Special Function Lanczos Estimator - Constructor (42, 43)
27+
- Special Function Lanczos Estimator - Evaluate (44, 45, 46)
28+
- Special Function Lanczos Estimator - Series Estimate Native (47)
29+
- Special Function Log Gamma Binet Integral First Kind Estimator (48, 49, 50)
30+
- Special Function Log Gamma Binet Integral First Kind Estimator - Constructor (51)
31+
- Special Function Log Gamma Binet Integral First Kind Estimator - Evaluate (52, 53, 54)
32+
- Special Function Log Gamma Binet Integral Second Kind Estimator (55, 56)
33+
- Special Function Log Gamma Binet Integral Second Kind Estimator - Constructor (57)
34+
- Special Function Log Gamma Binet Integral Second Kind Estimator - Evaluate (58, 59, 60)
35+
36+
37+
Samples:
38+
39+
IdeaDRIP:
40+
41+
- Factor Investing SKU v0.04 - 08:47 28 Feb 2024 (3)

ScheduleSheet.xlsx

-105 Bytes
Binary file not shown.

src/main/java/org/drip/investing/factors/Factor.java

-15
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ public abstract class Factor
118118
private String _description = "";
119119
private FactorPortfolio _portfolio = null;
120120
private int _metricType = Integer.MIN_VALUE;
121-
private int _factorCategory = Integer.MIN_VALUE;
122121
private FactorPortfolioRanker _portfolioRanker = null;
123122

124123
/**
@@ -127,7 +126,6 @@ public abstract class Factor
127126
* @param code Factor Code
128127
* @param description Factor Description
129128
* @param metricType Factor Metric Type
130-
* @param factorCategory Factor Category
131129
* @param portfolio Factor Portfolio
132130
* @param portfolioRanker Factor Portfolio Ranker
133131
*
@@ -138,7 +136,6 @@ protected Factor (
138136
final String code,
139137
final String description,
140138
final int metricType,
141-
final int factorCategory,
142139
final FactorPortfolio portfolio,
143140
final FactorPortfolioRanker portfolioRanker)
144141
throws Exception
@@ -152,7 +149,6 @@ protected Factor (
152149

153150
_metricType = metricType;
154151
_description = description;
155-
_factorCategory = factorCategory;
156152
}
157153

158154
/**
@@ -188,17 +184,6 @@ public int metricType()
188184
return _metricType;
189185
}
190186

191-
/**
192-
* Retrieve the Factor Category
193-
*
194-
* @return The Factor Category
195-
*/
196-
197-
public int factorCategory()
198-
{
199-
return _factorCategory;
200-
}
201-
202187
/**
203188
* Retrieve the Factor Portfolio
204189
*

src/main/java/org/drip/investing/factors/FactorComponentLoading.java

+15
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,15 @@ public class FactorComponentLoading
120120
private double _weight = Double.NaN;
121121
private double _returns = Double.NaN;
122122
private int _assetType = Integer.MIN_VALUE;
123+
private int _factorCategory = Integer.MIN_VALUE;
123124
private int _riskPremiumCategory = Integer.MIN_VALUE;
124125

125126
/**
126127
* FactorComponentLoading Constructor
127128
*
128129
* @param assetID Asset ID
129130
* @param assetType Asset Type
131+
* @param factorCategory Factor Category
130132
* @param riskPremiumCategory Risk Premium Category
131133
* @param weight Factor Weight
132134
* @param returns Factor Returns
@@ -138,6 +140,7 @@ public class FactorComponentLoading
138140
public FactorComponentLoading (
139141
final String assetID,
140142
final int assetType,
143+
final int factorCategory,
141144
final int riskPremiumCategory,
142145
final double weight,
143146
final double returns,
@@ -153,6 +156,7 @@ public FactorComponentLoading (
153156
}
154157

155158
_assetType = assetType;
159+
_factorCategory = factorCategory;
156160
_riskPremiumCategory = riskPremiumCategory;
157161
}
158162

@@ -178,6 +182,17 @@ public int assetType()
178182
return _assetType;
179183
}
180184

185+
/**
186+
* Retrieve the Factor Category
187+
*
188+
* @return The Factor Category
189+
*/
190+
191+
public int factorCategory()
192+
{
193+
return _factorCategory;
194+
}
195+
181196
/**
182197
* Retrieve the Risk Premium Category
183198
*

0 commit comments

Comments
 (0)