Game Market Simulation

Abstract

This document describes the mathematical foundation behind the price generation and market dynamics of the game. The model is inspired by financial markets, using random processes and market factors to simulate the fluctuation of asset prices. The primary mathematical concepts employed include geometric Brownian motion, random drift, and volatility, which together form a stochastic process for price generation. We present the formulas and their explanations, followed by a discussion of how these components are combined into a functioning market model.

1. Random Data Point Generation

The asset prices in the game follow the principles of geometric Brownian motion (GBM), which models stock price behavior using the following formula:

Where:

In discrete time, this becomes:

Where:

2. Initial Setup

At the beginning of the game, each asset is initialized with random drift and volatility:

  • Drift: A random drift is assigned to each asset, with a 60% probability of a positive trend.

  • Volatility: A random level of volatility is assigned to simulate market risk.

Formula for initial drift:

3. Updating Prices Over Time

As the game progresses, prices update based on pre-generated data points, which simulate time evolution.

The absolute gain and percentage gain are calculated as:

4. Market Influence and Weighted Average

The performance of individual assets influences the overall market performance. The market's value is a weighted sum of individual assets' performance, based on their allocation.

The percentage gain for the market is calculated as:

5. Summary

The game uses a simplified geometric Brownian motion model to simulate asset prices, where random drift and volatility generate price movements over time.

The combined performance of all assets influences the overall market, weighted by asset allocations. The result is a dynamic simulation where prices can rise and fall unpredictably, while still adhering to the underlying mathematical principles of financial markets.

Last updated