Skip to main content

Quantify uncertainty and sensitivities in your computer models with an industry-grade Monte-Carlo framework.

Project description

Release Builds Tests Docs PyPI - Python Version

Quantify uncertainty and sensitivities in your computer models with an industry-grade Monte-Carlo framework.

Overview

At the heart of all serious forecasting, whether that be of elections, the spread of pandemics, weather, or the path of a rocket on its way to Mars, is a statistical tool known as the Monte-Carlo method. The Monte-Carlo method, named for the rolling of the dice at the famous Monte Carlo casino located in Monaco, allows you to quantify uncertainty by introducing randomness to otherwise deterministic processes, and seeing what the range of results is.

monaco is a python library for analyzing uncertainties and sensitivities in your computational models by setting up, running, and analyzing a Monte-Carlo simulation wrapped around that model. Users can define random input variables drawn using chosen sampling methods from any of SciPy's continuous or discrete distributions (including custom distributions), preprocess and structure that data as needed to feed to their main simulation, run that simulation in parallel anywhere from 1 to millions of times, and postprocess the simulation outputs to obtain meaningful, statistically significant conclusions. Plotting and statistical functions specific to use cases that might be encountered are provided, and repeatability of results is ensured through careful management of random seeds.

Quick Start

First, install monaco:

pip install monaco

Then, copy the two files from the template directory, which contains a simple, well commented Monte Carlo simulation of flipping coins. That link also contains some exercises for you to do, to help you familiarize yourself with how monaco is structured.

After working through the template exercises, check out the other examples for inspiration and more in-depth usage of monaco's features.

Documentation / API Reference

Documentation is being built up - read them here.

Currently there is a complete API reference, more detailed installation, test, and publishing instructions, an overview of the basic architecture and basic workflow, and some details on statistical distributions and sampling methods.

License / Citation

Copyright 2020-2021 Scott Shambaugh, distributed under the GPLv3.0 (or later) license.

If you use monaco to do research that gets published, please cite the monaco github page.

Recommended Reading

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

monaco-0.2.0.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

monaco-0.2.0-py3-none-any.whl (54.2 kB view details)

Uploaded Python 3

File details

Details for the file monaco-0.2.0.tar.gz.

File metadata

  • Download URL: monaco-0.2.0.tar.gz
  • Upload date:
  • Size: 50.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.5 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for monaco-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d8ade2f21c7fbb497504869dc25ccdad8a16790efe0470e0e1dbd14d54f3a76e
MD5 72d1a0f2429976068059212f4552abab
BLAKE2b-256 48b8f23acc85ebd542a529212351e1ae9cf16aabc66af478c7da4ecc96bc417e

See more details on using hashes here.

File details

Details for the file monaco-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: monaco-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 54.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.5 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for monaco-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d10bf1f7d99df8ed9bf5706de01694c879556b9e74082c9cf458cb8159889be7
MD5 edda8147c581de10accb99e884903512
BLAKE2b-256 e0878d96a9f1e38a8831c7a6d15fd394d59b3cd8e16f2e50d3fde7c369dd91cb

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