Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Any Suggestions For Isolating A Specific Common Return?

Hello,

I know this is almost going to be a rehash of my other post (https://www.quantopian.com/posts/isolating-specific-returns), but I've tried what I did to isolate the specific returns and it hasn't worked.

As you can see the Volatility Common Returns are pretty spectacular. Do you have any suggestions for how I could isolate them?

7 responses

I've used the Risk Model as below

neutralize_risk_factors = opt.experimental.RiskModelExposure(  
        risk_model_loadings=risk_loadings,  
        version=opt.Newest,  
        min_momentum = -0.001,  
        max_momentum = 0.001,  
        min_size = -0.1,  
        max_size = 0.1,  
        max_volatility = 0.4,  
        min_volatility = -0.4,  
        max_short_term_reversal = 0.001,  
        min_short_term_reversal = -0.001,  
        min_value = -0.001,  
        max_value = 0.001,  
    )  

It's had very limited effect, it did however increase Volatility Based Common Returns.

What I am wondering is if there is a way to get the factor exposures of specific stocks inside your portfolio in order to attempt to hedge inside your algorithm?

i.e.

size_exposure = get_factor_exposure(sid(24)).size()  

Or something to that effect, is that possible?

You can add a column to the pipeline for any of the common factors. See the help, eg “class ShortTermReversal”

Thanks : D

Can you give a use example if possible? The API isn't very clear about how to use them.

Hi @Quant Trader,

Here's a simple example of a Pipeline that gets the Volatility factor exposure, along with close price.

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

Thanks @Abhijeet Kalyan