Skip to main content

Advanced Quantitative Forecasting with SPDE, GARCH, and LLMs

Project description

SPDE Monte Carlo Simulator

A Python package for simulating various stochastic partial differential equations commonly used in financial modeling. https://huggingface.co/time-series-foundation-models/Lag-Llama

Features

  • Geometric Brownian Motion (GBM)
  • Heston Model
  • Cox-Ingersoll-Ross (CIR) Model
  • Ornstein-Uhlenbeck (OU) Process
  • Merton Jump Diffusion (MJD) Model

Installation

poetry install

Usage

from spde_mc_simulator import SPDEMCSimulator

# Initialize simulator
simulator = SPDEMCSimulator(
    symbol='AAPL',
    start_date='2022-01-01',
    end_date='2022-03-01',
    dt=1,
    num_paths=1000,
    eq='gbm'
)

# Run simulation
simulator.download_data()
simulator.set_parameters()
simulator.simulate()
simulator.plot_simulation()

Models

Geometric Brownian Motion (GBM)

Standard model for stock price movements assuming log-normal distribution.

Heston Model

Stochastic volatility model that captures volatility clustering.

Cox-Ingersoll-Ross (CIR)

Mean-reverting square-root process, commonly used for interest rates.

Ornstein-Uhlenbeck (OU)

Mean-reverting process useful for modeling mean-reverting financial quantities.

Merton Jump Diffusion (MJD)

Extends GBM with jump components to capture sudden price movements.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awt_quant-0.1.0.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

awt_quant-0.1.0-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

Details for the file awt_quant-0.1.0.tar.gz.

File metadata

  • Download URL: awt_quant-0.1.0.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for awt_quant-0.1.0.tar.gz
Algorithm Hash digest
SHA256 61a99ce365344326a0d89e29dd1d95083482a388eee255e77bc7f811d7cda5e0
MD5 7b5ebdb70a9e5d94f6d27529eab67b24
BLAKE2b-256 9c938331ba0822f2862d1976c088cac29326387605611c54f07348d7cb153027

See more details on using hashes here.

File details

Details for the file awt_quant-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: awt_quant-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 45.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for awt_quant-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 765004f280888a4d50158d5eab1e61a9b3a230a972bf2328259be466cc4b11f9
MD5 c11875df61f2dacc347967cd9649cba4
BLAKE2b-256 ed81840f7e3ce92de6dcd9854995ed62cf81583d3dced2c460def89419e04d7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page