Giter Site home page Giter Site logo

open-risk / solstice Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 631 KB

Solstice is an economic network simulation framework

Home Page: https://www.openriskmanagement.com/solstice/

License: GNU General Public License v3.0

C++ 76.57% CMake 2.26% C 0.13% Dockerfile 0.99% Python 19.64% Shell 0.22% HTML 0.19%
agent-based-simulation economics-models ecs-framework eigen poco-libraries portfolio-management risk-management risk-modelling simulation sustainable-finance

solstice's Introduction

Solstice

Solstice is an economic network simulation framework

Overview

A brief overall description of the economic network simulation engine Solstice (NB: much more in the manuals / docs).

Solstice is an economic network simulator. The primary outcomes are quantitative analyses of the behavior of economic systems under uncertainty. It can be used both as a production tool in a portfolio / risk management context or as a research tool.

The objective is to provide a performant, easily usable, extensible simulation framework to support economic network analysis.

What is included in the repository

  • Set of c++ library objects / methods implement the Solstice framework
  • Assorted auxiliary code / scripts
  • Documentation
  • Illustrative implementation of toy problems
  • Sample data sets

Dependencies / Requirements

  • c++17
  • cmake
  • conan
  • poco++
  • eigen
  • statslib (including gcem dependency)
  • catch2

Installing these dependencies is system dependent, please follow instructions as per your situation. (In the future we will have a Docker based installation that can simplify this process)

Computational Design

  • Solstice is written in C++17
  • The framework is "network ready". I/O can be file based or over http.
  • It uses Poco++ for many of the common app functionalities
  • It uses Eigen as the core container of numerical data (vectors / tensors) and linear algebra algorithms

ECS inspired Design

Solstice adopts in its implementation a number of features of recent entity-component-system C++ frameworks. This favors composition over inheritance in certain critical objects. Runtime polymorphism allows the flexible construction and extension of Solstice to enable the analysis of a variety new models and network structures

Documentation

Econometric Models

An indicative list of econometric models and associated financial concepts implemented

  • Multiperiod - Macro Scenario Generator (VAR type)
    • Single factor
    • Equity type multi-factor
    • Macro-economic multi-factor
  • Single Period - Markov Scenario Generator (Graph type)
    • Conditional independence
    • Contagion / network models
  • Collateral Value Simulation
  • Regulatory Capital Calculation

Calculation Methodologies

  • monte carlo - simple
  • monte carlo - with importance sampling
  • asymptotic limit (large N)
  • analytic functions
    • moments / analytic approximations
    • regulatory capital (ASFR)

Risk Metrics / Outputs

  • rating distributions at different timepoints
  • quantile loss result at [99.XX] / other distribution statistics
  • results statistical errors / confidence levels
  • expectations at future timepoints
  • risk capital allocation

solstice's People

Contributors

open-risk avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.