Skip to main content

fullmonte

PyPi

Monte Carlo simulations for extrapolated returns.

Dependencies 🌐

Python 3.11.6:

Raison D'être 💭

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

Installation 📥

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

pip install fullmonte

Usage example 👀

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 📝

The project is available under the MIT License.

Metadata

Release files for fullmonte 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fullmonte 0.0.4
File Size Uploaded Provenance
fullmonte-0.0.4.tar.gz 3.8 kB Without provenance Details

Release files / fullmonte-0.0.4.tar.gz

Download URL fullmonte-0.0.4.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
273dd5e9268c3ff413a2b4dc691514c9bd3dd0844f1f06e9ea8cf22b923c0da9
BLAKE2b-256 checksum
How to use checksums
ccfb3a74eb5cd8cfda094d2463d6a46276e40c6c39ee3b44b9d17add6f2b255c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.6

Security for fullmonte 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page