Skip to main content

Mean Variance Portfolio

https://img.shields.io/pypi/v/mvport.svg https://img.shields.io/travis/condereis/mean-variance-portfolio.svg Documentation Status Updates

MV Port is a Python package to perform Mean-Variance Analysis. It provides a Portfolio class with a variety of methods to help on your portfolio optimization tasks.

Features

  • Easy portfolio setup

  • Portfolio evaluation

  • Random portfolio allocation

  • Minimum Variance Portfolio optimization

  • Efficient Frontier evaluation

  • Tangency Portfolio for a given risk free return rate

Installation

To install MV Port, run this command in your terminal:

$ pip install mvport

Check here for further information on installation.

Basic Usage

Instantiate a portfolio and add some stock and evaluate it given a set of weights:

>>> import mvport as mv
>>> p = mv.Portfolio()
>>> p.add_stock('AAPL', [.1,.2,.3])
>>> p.add_stock('AMZN', [.1,.3,.5])
>>> mean, variance, sharp_ratio, weights = p.evaluate([.5, .5])
>>> print '{} +- {}'.format(mean, variance)
0.25 +- 0.0225

Check here for further information on usage.

History

1.0.0 (2018-06-28)

  • First release on PyPI.

  • Stock class implemented.

  • Portfolio class implemented.

  • Minimum Variance Portfolio optimization

  • Efficient Frontier evaluation

  • Tangency Portfolio for a given risk free return rate

Metadata

Release files for mean-variance-portfolio 1.0.0

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

Source distribution (sdist)

Source distribution for mean-variance-portfolio 1.0.0
File Size Uploaded Provenance Actions
mean-variance-portfolio-1.0.0.tar.gz 13.1 kB Without provenance Details for mean-variance-portfolio-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mean-variance-portfolio 1.0.0
File Interpreter ABI Platform Actions
mean_variance_portfolio-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for mean_variance_portfolio-1.0.0-py2.py3-none-any.whl

Total release size: 22.2 kB

Release files / mean-variance-portfolio-1.0.0.tar.gz

Download URL mean-variance-portfolio-1.0.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ae06c105450a81a631ff6c8bc766ea564544a5074baa7c945764982cf8647710
BLAKE2b-256 checksum
How to use checksums
e626137821181ec48aa32ba7014b0be3b0d63a1ab4c2c8c37ea4c9f1e0ebf1f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

Release files / mean_variance_portfolio-1.0.0-py2.py3-none-any.whl

Download URL mean_variance_portfolio-1.0.0-py2.py3-none-any.whl
Size 9.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
44548ca6047124f481ecfaeff77d14590d0ee70a70d3e004673515032b02debc
BLAKE2b-256 checksum
How to use checksums
7ee3af1bbf485d07104629d1e9fa0d00843c2f4b62920bcf5fbfd33488f19020
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

Security for mean-variance-portfolio 1.0.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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