Skip to main content

A monte carlo simulation for extrapolated returns.

Project description

fullmonte

PyPi

Monte Carlo simulations for extrapolated returns.

Dependencies :globe_with_meridians:

Python 3.11.6:

Raison D'être :thought_balloon:

fullmonte is a python library that implements the simulation and plotting of a monte carlo run on a financial return assuming normal distributions.

Installation :inbox_tray:

This is a python package hosted on pypi, so to install simply run the following command:

pip install fullmonte

Usage example :eyes:

A quick example of how to use this library is the following:

from fullmonte import simulate, plot

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

# Create some test data with a $100,000 initial investment
pct_ret = np.random.uniform(-0.1, 0.1, 252 * 10)
ret = np.concatenate((np.array([100000.0]), pct_ret + 1.0)).cumprod()
# Simulate monte carlo
df = simulate(pd.Series(ret))
print(df)
# Plot the monte carlo simulations
plot(df)
plt.show()

This will produce the following:

Monte Carlo

License :memo:

The project is available under the MIT License.

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

fullmonte-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file fullmonte-0.0.2.tar.gz.

File metadata

  • Download URL: fullmonte-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for fullmonte-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3f3c83470e59718a0a0ed1cff98266707d3a24d77f9c1f4971cbd140eea59618
MD5 1149b724ebf483050a384738cc64b58c
BLAKE2b-256 dd144c16cb7aaaf4657bc911ed78556f876cde3b9e70619be3dda611a2863f86

See more details on using hashes here.

Supported by

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