Skip to main content

Sharpe ratio

Project description

📦 jsharpe

PyPI version License: MIT CI Created with qCradle

🚀 Getting Started

🔧 Set Up Environment

make install

This installs/updates uv, creates your virtual environment and installs dependencies.

For adding or removing packages:

uv add/remove requests  # for main dependencies
uv add/remove requests --dev  # for dev dependencies

✅ Configure Pre-commit Hooks

make fmt

Installs hooks to maintain code quality and formatting.

🛠️ Development Commands

make tests   # Run test suite
make marimo  # Start Marimo notebooks

👥 Contributing

  • 🍴 Fork the repository
  • 🌿 Create your feature branch (git checkout -b feature/amazing-feature)
  • 💾 Commit your changes (git commit -m 'Add some amazing feature')
  • 🚢 Push to the branch (git push origin feature/amazing-feature)
  • 🔍 Open a Pull Request

📚 Usage

Run this minimal, deterministic example to compute the Probabilistic Sharpe Ratio (PSR) from the package functions.

from jsharpe import probabilistic_sharpe_ratio

sr = 0.036 / 0.079
psr = probabilistic_sharpe_ratio(SR=sr, SR0=0, T=24, gamma3=-2.448, gamma4=10.164)
print(f"{psr:.3f}")
0.987

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

jsharpe-0.2.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsharpe-0.2.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsharpe-0.2.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jsharpe-0.2.0.tar.gz
Algorithm Hash digest
SHA256 be62e11fc61f3d5e1d4f3a249274f3790bbd07aa37d9748cfb4df5f60f9ad300
MD5 5f6ab404836c427c603e9d9f6df115c4
BLAKE2b-256 1e68c6f5329831662c3684ce267ac597a6c5f0328c633e11e20b85d43d2f4349

See more details on using hashes here.

Provenance

The following attestation bundles were made for jsharpe-0.2.0.tar.gz:

Publisher: release.yml on tschm/jsharpe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: jsharpe-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jsharpe-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f34546c0a219ed8dc8892743ec75371ed597737ef6f8db72961bb5c5617c1a9f
MD5 8485e348454dd761b51c99de3523f271
BLAKE2b-256 b2eaf308c34b372c1b932cfee80cf740a2e9883253877b7334eaaf11caae36cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for jsharpe-0.2.0-py3-none-any.whl:

Publisher: release.yml on tschm/jsharpe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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