Sharpe ratio
Project description
📦 jsharpe
🚀 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jsharpe-0.1.0.tar.gz.
File metadata
- Download URL: jsharpe-0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a77e3ad1a697a6c59c00e796373ec192f6e0251cd2ba67f2c940295889f6b46
|
|
| MD5 |
b236c95dde104b950053c6df65df0950
|
|
| BLAKE2b-256 |
69e2efacc6b9de80587c34a21c5b4cfc194d886643f27337c3ff90cf5c64402c
|
Provenance
The following attestation bundles were made for jsharpe-0.1.0.tar.gz:
Publisher:
release.yml on tschm/jsharpe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jsharpe-0.1.0.tar.gz -
Subject digest:
8a77e3ad1a697a6c59c00e796373ec192f6e0251cd2ba67f2c940295889f6b46 - Sigstore transparency entry: 743076537
- Sigstore integration time:
-
Permalink:
tschm/jsharpe@92f360ec5e35f7a0cbb7a817906005e6606096a8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/tschm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@92f360ec5e35f7a0cbb7a817906005e6606096a8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file jsharpe-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jsharpe-0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38decc828bac53ff1a10b4c18a1c7e3e0d6d366e666465be9b8577bd417b4f84
|
|
| MD5 |
a768d911da2d0594e54840372989f379
|
|
| BLAKE2b-256 |
95bf7bb72fe82aa688bcc0d95bd49fc7f016c6c899cdf57f300ee874cc29f183
|
Provenance
The following attestation bundles were made for jsharpe-0.1.0-py3-none-any.whl:
Publisher:
release.yml on tschm/jsharpe
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jsharpe-0.1.0-py3-none-any.whl -
Subject digest:
38decc828bac53ff1a10b4c18a1c7e3e0d6d366e666465be9b8577bd417b4f84 - Sigstore transparency entry: 743076549
- Sigstore integration time:
-
Permalink:
tschm/jsharpe@92f360ec5e35f7a0cbb7a817906005e6606096a8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/tschm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@92f360ec5e35f7a0cbb7a817906005e6606096a8 -
Trigger Event:
push
-
Statement type: