Coder Social home page Coder Social logo

l1qr's Introduction

Lasso Quantile Regression

This code provides a Python implementation of the the lasso quantile regression algorithm of Li and Zhu (2008). The paper is available at http://dx.doi.org/10.1198/106186008X289155 (here is the working paper version).

The major difference to alternatives such as hqreg (see below) is that this algorithm directly solves the constrained regression problem and not the Lagrangian formulation. This is for instance convenient in forecast combination problems due to the similarity of the lasso and convex quantile regression.

Example

In the repository, you can find the daily log returns of the IBM stock and the corresponding 1% VaR forecasts stemming from a variety of risk models.

The trace plot below is the result of a lasso quantile regression of the returns on the standalone forecasts.

Alt text

Alternatives

The quantreg package for R can estimate the lasso quantile regression for single penalization levels.

The hqreg package for R implements the algorithm of Yi and Huang, which estimates the whole path of elastic net penalized quantile regression.

l1qr's People

Contributors

bayerse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

l1qr's Issues

License

Hi Sebastian!
Thanks for sharing your code, it is really helpful.
Would it be possible for you to add a license to your project so that it is clear whether or not it can be further copied/modified?
Thanks!!

definition of **s_max** and **s** ?

hello,
what is the difference (or definition) between s_max (in the fit method) and s (in the predict method)?
I understand that s_max is the regularization parameter the should be greater than the l1-norm of the coefficients vector, but i do not see what s stands for.

thanks

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.