Skip to main content

American Options Pricing ANN

Project description

American Options ANN

This is still a work in progress, all v0.1.* releases are testing releases.

This is a Python package for American Options Pricing using Artificial Neural Networks (ANN) that assumes the option follows a GARCH process. The package will contain 3 stages of datasets for 3 GARCH models:

  1. HN-GARCH
  2. Duan-NGARCH
  3. GJR GARCH

Project Structure

  • main.py: Contains the main entry point for the program, and is in charge of running the Training and Testing of the ANN model.
  • model.py: Contains the implementation of the ANN model used for pricing American Options.
  • dataset.py: Contains parsing the CSV files and preparing the data for training and testing.
  • utils.py: Contains utility functions for the package.

Installation

pip install ao_ann

Running Locally

This project uses the Python package manager uv, this can be installed using the following command:

$ git clone https://github.com/Mustafif/AO_ANN.git
$ cd AO_ANN
$ pip3 install uv # install uv
$ uv sync
$ uv run main.py # run the main.py file

Todo

  • Fix the moduleness by __init__.py
  • Move all ann functions to ann.py

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

ao_ann-0.1.4.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

ao_ann-0.1.4-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file ao_ann-0.1.4.tar.gz.

File metadata

  • Download URL: ao_ann-0.1.4.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.6

File hashes

Hashes for ao_ann-0.1.4.tar.gz
Algorithm Hash digest
SHA256 96b3751fe93dcbfc996a392e7452cdc6e98b40da38ce45f5455245bf931dc720
MD5 ae449bc5c32ae47dd74db839d92e18fe
BLAKE2b-256 f76db6e646acb1e0783052c80b2f114ef1df128de80d3f07bdc7cd1091c10c3d

See more details on using hashes here.

File details

Details for the file ao_ann-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ao_ann-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.6

File hashes

Hashes for ao_ann-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c6f68076d8a9c225d88a979cf0950c2114df25d9a1c1b41ef36b9748824b0e68
MD5 cf78d415a8874cfb9b0cced71bc01b16
BLAKE2b-256 a6ab72d09480ff0a4447796ebaec9e67e96b712dfe51bebcad4a2e75761f6cce

See more details on using hashes here.

Supported by

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