Giter VIP home page Giter VIP logo

caviar's Introduction

Hi I am Jasper ๐Ÿ‘‹

I am a ...

Typing SVG

  • ๐Ÿ“• Interested in data science, quant and reinforcement learning
  • ๐Ÿ“ซ How to reach me: Linkedin
  • โšก Fun fact: I like math

Quant Project(s):

NLP / LLM Project(s):

Computer Vision Project(s):

Reinforcement Learning Project(s):

Machine Learning Project(s):

Business Intelligence Project(s):

Open Source Contribution(s):

caviar's People

Contributors

angusauyeung avatar carlossoble avatar yatshunlee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

caviar's Issues

Result of frequentist method

CaviarModel(0.05, model='adaptive', method='mle')

trial 1: beta = np.array([-0.64774347])
image
trial 2: beta = np.array([-84.26894253])
show error: D:\CAViaR-Project\test..\caviar_caviar_function.py:20: RuntimeWarning: overflow encountered in exp
1 / (1 + np.exp(G * (returns[t - 1] - sigmas[t - 1]))) - quantile)
image

CaviarModel(0.05, model='asymmetric', method='mle')

trial 1: np.array([-3.38156961, -0.76269892, -0.0212416 , 0.90496001])
image
trial 2: beta = np.array([-0.0308821 , 0.98321657, 0.10719172, 1. ])
image
trial 3: beta = np.array([-7.38144696e-01, 6.16001322e-01, 3.56295801e-09, 5.42463432e-01])
image
image

CaviarModel(0.05, model='symmetric', method='mle')

trial 1: beta = np.array([-0.04064223, 0.87657701, -0.23026562])
trial 2: beta = np.array([-0.04058351, 0.87658738, -0.23027769])
trial 4: beta = np.array([-0.04076704, 0.87653064, -0.23027652])
image
trial 3: beta = np.array([-0.80190414, 0.43086385, -0.30877964])
image

CaviarModel(0.05, model='igarch', method='mle')

trial 1: beta = np.array([1.65923914, 0.51150889, 0.70126179])
image
trial 2: beta = np.array([1.14950421, 0.47399757, 0.57122966])
image

They all showed inconsistence in the convergence.

Corner case: poor performance

Case:

adaptive numeric 0.01 JPM
when m = 1
Update 0: 0.10992994419739356
Update 1: 0.10992874001704382
Update 2: 0.10992873996116201
when m = 2
Update 0: 0.10993328508627404
Update 1: 0.10993022133909976
Update 2: 0.10993022133909976
when m = 3
Update 0: 0.10993364587662575
Update 1: 0.10995754038106954
Final loss: 0.10992873996116201

Training

image
image

Testing

image

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.