Code Monkey home page Code Monkey logo

financial-herding-analysis's Introduction

FinancialHerdingAnalysis

Simple program to process and analyse financial data for herding.

Main formula - Herding Formula

Herding Formula

Secondary Formula - Adjustment Factor Formula

Adjustment Factor Formula

Process

Walkthrough of how data makes it way through the formula.

  1. B(i) and S(i) are computed for each security for each quarter, these numbers refer to where the stock increased or decreased in the relevant quarter, respectively. For each institution that increased their number of shares held for that security, B(i) is incremented, for each institution that decreased their number of shares held, S(i) is incremented. This is done on a per security basis, looking at the shares held for that security by each institution

  2. With these numbers N(i,t) and p(t) can be worked out.

Mathmatical Notation and Financial Lingo Reference

  • | TK | - absolute number (distance from 0, so always positive).
  • (i) - per security
  • (t) - per quarter
  • k - just the current increment in the formula, programming equivalent would typically be i - is the upper limit of k just the number of dates a security has.
  • Security Ticker - just the reference to a company on an exchange, e.g. GOOG for Google
  • Institution - Organisation holding the shares/investments, referred to in data by an alphanumeric code in first column.
  • Holdings - number of shares held
  • Active managers - Institutions that are active from one quarter to the next, active meaning that their holdings increase or decrease.

Installing and running the program

Windows/macOS/Linux?

Windows:

Install R, then RStudio, open RStudio and choose File > New Project and select Version Control, Git. Then just provide the repo URL from GitHub (https:// not git://) I think.

financial-herding-analysis's People

Contributors

joshdoug 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.