Skip to main content

Real-time latin-hypercube-sampling-based Monte Carlo Error Propagation

Project description

Overview

mcerp3 is a stochastic calculator for Monte Carlo methods that uses latin-hypercube sampling to perform non-order specific error propagation (or uncertainty analysis).

With this package you can easily and transparently track the effects of uncertainty through mathematical calculations. Advanced mathematical functions, similar to those in the standard math module, and statistical functions like those in the scipy.stats module, can also be evaluated directly.

If you are familiar with Excel-based risk analysis programs like @Risk, Crystal Ball, ModelRisk, etc., this package will work wonders for you (and probably even be faster!) and give you more modelling flexibility with the powerful Python language. This package also doesn’t cost a penny, compared to those commercial packages which cost thousands of dollars for a single-seat license. Feel free to copy and redistribute this package as much as you desire!

What’s New In This Release

  • this is a Python 3 release of the mcerp package by Abraham Lee

  • available via conda or pip

  • officially adds the 3-clause BSD licesnse text to the software (this license has been specified in the mcerp PyPI package for years)

  • supports SciPy >= 1.0 by removing the scipy.stats.signaltonoise function

Main Features

  1. Transparent calculations. No or little modification to existing code required.

  2. Basic NumPy support without modification. (I haven’t done extensive testing, so please let me know if you encounter bugs.)

  3. Advanced mathematical functions supported through the mcerp.umath sub-module. If you think a function is in there, it probably is. If it isn’t, please request it!

  4. Easy statistical distribution constructors. The location, scale, and shape parameters follow the notation in the respective Wikipedia articles and other relevant web pages.

  5. Correlation enforcement and variable sample visualization capabilities.

  6. Probability calculations using conventional comparison operators.

  7. Advanced Scipy statistical function compatibility with package functions. Depending on your version of Scipy, some functions might not work.

  8. Python 3 support

Installation

How to install

Effort has been made to ensure mcerp3 is easy to install.

  1. From the command-line, do one of the following:

    1. Install the conda package:

      $ conda install mcerp3 -c freemapa
    2. Install the PyPI package:

      $ pip install mcerp3

The source code is also freely available, in case you would like to incorporate it directly into your project. However, when possible, it is usually easier to let your package manager handle things for you.

Required Packages

The following packages are required, but should be installed automatically (if using conda or pip). Otherwise, they may need to be installed manually:

See also

Contact

Bugs should be reported on the GitHub issues page. Python 3 related requests can be sent to Paul Freeman. Other issues should be referred to the original author, Abraham Lee.

Download files

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

Source Distribution

mcerp3-1.0.3.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

mcerp3-1.0.3-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file mcerp3-1.0.3.tar.gz.

File metadata

  • Download URL: mcerp3-1.0.3.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.4

File hashes

Hashes for mcerp3-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e714dcfd6cfd24d377ae491c31ab4794b2a29cba16c8bdd7805cf06fa25a21b0
MD5 4f724475616f3e8c3d75a925ce275021
BLAKE2b-256 b1686659ca0229429d107e2850f93d2837053f025dc016900a446738758b4f6d

See more details on using hashes here.

File details

Details for the file mcerp3-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: mcerp3-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.4

File hashes

Hashes for mcerp3-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 19143435494bab5072568e49fe997dc242ad66f49882588ce6cca7c9c879b857
MD5 2fd9db36173752199ce0eacdb25052cd
BLAKE2b-256 f9071b94577f8ed84d5aae8a4dbbe68a170d45bc6cf85372103bd37caf5e9c52

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