Git Product home page Git Product logo

marksim's Introduction

marksim

This project is work in progress. It's purpose for me is to learn some new things in python, c++ and devops.

marksim is a package that helps to detect anomalies in unbalanced panel data using markov chain simulations. More about what is a panel data here.

The inspiration mainly comes from the following paper:

  • Henderson, A.D., Raynor, M.E. and Ahmed, M.: 2012, How long must a firm be great to rule out chance? benchmarking sustained superior performance without being fooled by randomness, Strategic Management Journal 33, 387-406 link

The first version of this code was used in this thesis. This repository contains a cleared and documented version of what I had initially.

About

Let's say you have an unbalanced panel containing the growth rates of 1 mln. firms in a country in the last N years (could be any discrete periodic variable). Let's also suppose that you observe 10 firms that grow that fast that they are in the top 1% of growers each year. In other words, these firms grow very persistently. Think of google or amazon or any other successful company being on news.

marksim helps to answer the following questions:

  • Is this number 10 random?
  • Given the dynamics of firm's growth rates in the data, how many companies on average can we expect being so persistent?

TODOs

here is my plan:

  • python implementation of the calculation of transition probability matrix
  • python implementation of the simulation module
  • python implementation of the analytics module
  • release package on PyPI
  • docker image
  • django app with basic user interface
  • c++ implementation of simulations

Usage

Package is a work in progress, so for now please install with

pip install .

For more detailed documentation, please see here

Development

Prerequisites

All dependencies are specified in requirements.txt file.

pip install -r requirements.txt

Installing

pip install -e.

Running tests

To run tests from the root folder do

python -m unittest discover -s src/tests

Versioning

I use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Vladimir Korzinov - Initial work - vvkorz

License

This project is licensed under the MIT License - see the LICENSE.md file for details

marksim's People

Contributors

vvkorz avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sandy4321

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.