Documentation for the project “Evolutionary Minority Game (EMG)”

Table of contents. Installation The core file Case studies 1. Installation Download the folder "projects/EMG", go to that folder, and then run in the terminal: pip install -r requirements.txt 2. The core file The core file is "EMG.py", in which the model is defined. The parameter "R" is the maximum step size (step range) for … Continue reading Documentation for the project “Evolutionary Minority Game (EMG)”

Documentation for the project “Grand canonical minority game”

The Grand Canonical Minority Game could be regarded as a simple extension of the basic version of Minority Game, by allowing the users to not play the game when they feel it is too risky. Here is the documentation for the codes used in the project. The focus of this documentation will be on introducing … Continue reading Documentation for the project “Grand canonical minority game”

Documentation for the project “Predicting stock prices using I Ching”

This is the documentation for a python package for predicting the stock prices using I Ching. Table of contents: Installation and setup Drawing the 8x8-Gua rotating plane Drawing the 64 c-Guas Drawing the 64 c-Guas and their corresponding Xiangs Predicting the stock prices 5.1 Obtaining the basic mode of velocities 5.2 Generating the dataset for … Continue reading Documentation for the project “Predicting stock prices using I Ching”

A python code for the basic minority game (MG)

The minority game (MG) is probably the simplest mathematical model of a market, and has become a hot topic of research due to its simplicity and rich phenomena. Here I'm going to present a Python code for the basic MG. This code is simple and easily extensible. The readers of this article are assumed to … Continue reading A python code for the basic minority game (MG)