Giter Club home page Giter Club logo

Comments (3)

jameschristopher avatar jameschristopher commented on September 7, 2024

This idea makes complete sense to me. The way we are currently doing it is with a pandas timerule, I'm kind of debating whether we want to eschew pandas timerules all together in the package, and just focus on a number of periods analysis. Right now there is kind of a mix, not sure how i feel about that

from alphalens.

luca-s avatar luca-s commented on September 7, 2024

The current rule used by the tear sheet is time_rule='D'. That means it works fine If we pass daily factors/data to the tear sheet (because it won't do any resampling at all) but it will result in surprising graph if we pass minutely/weekly (anything that is not daily) data.

It seems to me it would make sense to make the resampling an option (used only by aware users) and let the code that follows the resampling decides the autocorrelation period:

In factor_rank_autocorrelation function:

autocorr = asset_factor_rank.corrwith(asset_factor_rank.shift(1), axis=1)

shift(1) should be changed to shift(period) where period becomes a function argument. In this way the feature is available when calling the function directly (at least). Later it can be decided how to enable this option via tear sheet (probably via tear sheet function argument or simply calling factor_rank_autocorrelation for each day/period)

from alphalens.

jameschristopher avatar jameschristopher commented on September 7, 2024

That sounds good I'd go ahead and submit a PR.

from alphalens.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.