Package org.drip.investing.factors
Class FactorModel
java.lang.Object
org.drip.investing.factors.FactorModel
- Direct Known Subclasses:
CapitalAssetPricing1F
,Carhart4F
,FamaFrench3F
,FamaFrench5F
,MramorPahorFoye3F
public class FactorModel
extends java.lang.Object
FactorModel contains the Settings of a Scheme that calibrates Betas over the specified Collection
of Factors. The References are:
- Blitz, D., M. X. Hanauer, M. Vidojevic, and P. van Vliet (2018): Five-Factors with the Five-Factor Model Journal of Portfolio Management 44 (4) 71-78
- Fama, E. F., and K. R. French (1992): The Cross-section of Expected Stock Returns Journal of Finance 47 (2) 427-465
- Fama, E. F., and K. R. French (2015): A Five-Factor Asset Pricing Model Journal of Financial Economics 116 (1) 1-22
- Foye, J. (2018): Testing Alternative Versions of the Fama-French Five-Factor Model in the UK Risk Management 20 (2) 167-183
- Wikipedia (2024): Fama–French three-factor model https://en.wikipedia.org/wiki/Fama%E2%80%93French_three-factor_model
- Module = Portfolio Core Module
- Library = Asset Allocation Analytics
- Project = Factor/Style Based Quantitative Investing
- Package = Factor Types, Characteristics, and Constitution
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description FactorModel(java.lang.String code, java.lang.String description)
FactorModel Constructor -
Method Summary
Modifier and Type Method Description boolean
addFactor(Factor factor)
Add the Factor to the Modeljava.lang.String
code()
Retrieve the Factor Model Codeboolean
containsFactor(Factor factor)
Indicate if the Factor is Part of the Modeljava.lang.String
description()
Retrieve the Factor Model Descriptionjava.util.Set<java.lang.String>
factorCodeSet()
Retrieve the Set of Factor Codesjava.util.Map<java.lang.String,Factor>
factorMap()
Retrieve the Named Map of Factors underlying the Modeljava.util.Collection<Factor>
factorSet()
Retrieve the Collection of Factorsint
numberOfFactors()
Retrieve the Number of FactorsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FactorModel
public FactorModel(java.lang.String code, java.lang.String description) throws java.lang.ExceptionFactorModel Constructor- Parameters:
code
- Factor Model Codedescription
- Factor Model Description- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
code
public java.lang.String code()Retrieve the Factor Model Code- Returns:
- The Factor Model Code
-
description
public java.lang.String description()Retrieve the Factor Model Description- Returns:
- The Factor Model Description
-
factorMap
Retrieve the Named Map of Factors underlying the Model- Returns:
- The Named Map of Factors underlying the Model
-
addFactor
Add the Factor to the Model- Parameters:
factor
- The Factor- Returns:
- TRUE - The Factor successfully added to the Model
-
containsFactor
Indicate if the Factor is Part of the Model- Parameters:
factor
- The Factor- Returns:
- TRUE - Factor is Part of the Model
-
factorSet
Retrieve the Collection of Factors- Returns:
- Collection of Factors
-
factorCodeSet
public java.util.Set<java.lang.String> factorCodeSet()Retrieve the Set of Factor Codes- Returns:
- Set of Factor Codes
-
numberOfFactors
public int numberOfFactors()Retrieve the Number of Factors- Returns:
- The Number of Factors
-