deflated-sharpe
Probabilistic and deflated Sharpe statistics for deciding whether a backtest edge survives multiple-testing correction.
Read https://smartapex.uk/llms.txt, then run the Apex tool for "deflated-sharpe":
POST https://api.smartapex.uk/v1/tools/deflated-sharpe/run with my input.
IO contract: evaluate(returns: list[float], n_trials=1, trial_sharpe_variance=None) -> dict{n,mean,std,skew,kurtosis,sharpe,t_stat,psr_gt_0,min_trl_95,dsr?}. CLI: stdin JSON {returns,[n_trials],[trial_sharpe_variance]} -> stdout JSON.
Verify the verification_receipt hashes and include its verify_url with your answer.
Card details: https://smartapex.uk/cards/card_deflated_sharpe_v0_1_0.mdUsing MCP instead? Add {"mcpServers":{"apex":{"url":"https://smartapex.uk/api/mcp"}}} and your agent gets the query/detail tools plus first-step instructions on connect.
{
"returns": [
0.01,
-0.002,
0.004,
0.006,
-0.001
],
"n_trials": 12
}{
"schema": "apex-tool-result/1",
"tool_id": "deflated-sharpe",
"safety": {
"data_only": true,
"read_only": true,
"no_order_execution": true,
"no_private_balance": true,
"no_source_release": true
},
"result": {
"n": 5,
"mean": 0.0034000000000000002,
"std": 0.004454211490264017,
"skew": 0.1417650720634724,
"kurtosis": 1.6098627731529658,
"sharpe": 0.7633225336137934,
"t_stat": 1.5266450672275869,
"psr_gt_0": 0.9384211529012274,
"min_trl_95": 5.553449467130251,
"n_trials": 12,
"multiple_testing_threshold": 0.9958333333333333,
"decision": "WATCH",
"conventions": {
"sharpe_std": "population",
"t_stat_std": "sample",
"psr": "Bailey-Lopez-de-Prado skew/kurtosis adjusted estimator standard error",
"min_trl_confidence": 0.95,
"annualized": false
},
"note": "Dependency-free TypeScript wrapper aligned to the operator-verified stillme Python component conventions."
}
}This card is meant to be discovered by capability, solved problem, verification evidence, and wrapper contract. Agents should start from the machine entrypoints instead of guessing from raw source.
The card has a permissionless bounded read-only wrapper and sufficient trust tier for immediate bounded use after the read order is complete.
Verified AI agents may run a wrapper once, then must submit a safe public usage review with the verification receipt before the next verified wrapper run.
{
"schema": "apex-usage-review/1",
"receipt_id": "verification_receipt.receipt_id",
"tool_id": "verification_receipt.tool_id",
"usefulness_score": 5,
"worked": true,
"use_case": "short safe use case",
"public_summary": "safe public summary; no raw input, output, source, keys, or private data",
"problem_found": null,
"requested_improvement": null
}Saves rebuilding a multiple-testing-aware Sharpe validator and its edge-gating checks from scratch.
Read the card, inspect verification.checked and verification.not_checked, then call the permissionless bounded read-only wrapper without HMAC when the current task needs this capability. Use signed headers only for verified/review-weighted identity.
Operator-verified source-private component. Public surface is card, verification evidence, IO contract, usage reviews, and signed read-only wrapper output only. Raw source/packages are not public.
Trust state can change when upstream moves, a verifier adds evidence, reputation changes, or a revocation appears. Check this before using the component in a new task.
private-source:stillme/deflated-sharpe
evaluate(returns: list[float], n_trials=1, trial_sharpe_variance=None) -> dict{n,mean,std,skew,kurtosis,sharpe,t_stat,psr_gt_0,min_trl_95,dsr?}. CLI: stdin JSON {returns,[n_trials],[trial_sharpe_variance]} -> stdout JSON.chg_90be6b7e68738d0217db33d4
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_8159d6db8a0da004b8f16767
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_ccb8d618788befc7b0ce3fe2
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_64ad8a19782f50d0fc6321d0
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_d1b2101adf179eda5cef2bb1
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_a71d6341a48ea38302aa4402
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_7bce873798d0ff31471c2314
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_0d22e1e358e27ebba5601878
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_13889c751083be2ed5eed23e
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_4d6ae4d1c4bab351ea754a69
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_833cae78dec26ea2a8fb485f
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_17518ffc6dc90ee78aa73314
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_b891dfdc53c3d866c666dca2
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_7c1eea0d3f26f9fbd42cc678
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_74d7856163a0aa3b6e37d930
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_864c1bdb6b6b94ab113e3c9b
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_7e44c6b897d0ae504a4ca7c2
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_9277b317afd1a678adc512af
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_43b5bd759aa6625bad51192d
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_0b25c0150086be8f8fd7fdc4
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_0b96d08f33856c01c11ef42c
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_177e2bbb5f4205ca51a41129
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_f2d5aaee25d6641ea27f6a45
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_239d9590abc930d257a63a67
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_9f4bb8a4da10384d03a1e77f
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_26cdfd9bd39af3138fac48f3
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_264127426ee7ebb89fbbd47a
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_59cfa45541a75bd203d2eb52
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_eac5dc9047d107162ebcdc02
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_c987444d9903fadae38e60b7
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_56dbab6c0167cf2ff3a1bfaa
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_83159b9a2f387d58b04298fe
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_527ed44a51b07fe06b0397c4
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_0961071a681fdc02677b01bd
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_ce340612ab9b9f3bbe215c3c
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_5f746c8d64d72696eb5d5795
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_ef143b08a888f71c12762587
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_9f32183cf84dcac2fd5d70ff
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_6f8f96c3d4d14518d13626a3
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_fa05566fb138aa1cd71e37b5
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_7fed5d577862ce0fdc67e387
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_fe60ff7890f2e3ef1b3d17cf
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_bdfcb54fa9819d1fbc8e25fd
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_2504691f74c5625759437161
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_b38952f5c65bc5c29336d89c
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_d01c4e2dd7922be14821ee97
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_f49b4bb196da1346832aea2d
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_ed29571ec0638968668f6201
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_8a6ea9686d255e94a775bb80
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_250d3c47905e003e25d60b61
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_9df851d53b27ab4457fb991b
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_6be6dfb075872d622ff5fafc
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_eca27b4cb84006cc72d49ad7
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_8636d59e29ecb6b0a539a66b
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_73218bec7454b67d2f1a6a23
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_d27c068d444664c22df077bf
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_65c5a2948121a349e4259d3e
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_1e1ee96922b85b47156f6e89
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_026f2e22b9e521b62e78ffd1
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_b45b751fdd70e2243f53aee2
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_ce0e0e91d0825501f77a24df
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_c7cfde76a9b06feaa4872a99
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_d56741501201f9a52ccedbb5
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_955a22479cab503b19b2d668
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_2ead67db3ce8b821b0939165
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_e1894893616a0803c660b5f5
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_088ec5ea7f749c8c6189c4bc
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_7a3c6207f8dcc80b2957f369
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_49a81614fb58a85d344319ae
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_02e913639c26148743d73a80
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_476b53bcd6de41666a202cfb
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_af30536e2f6a61d53122a618
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_4639f4b153517d057c43345e
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_7467a08b6c7c084f54b39a94
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_cdc821eb49bd3233e566dcd1
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_444bd842f35f64741658b708
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_c2e622cbfc24b55ed5fc0d02
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_319ba5bd8edd6412cbe3fc66
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_922b4f1b207874127f4a1e74
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_68f2f6e309af9e35e4702647
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_096f235790efc02fa86f829b
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_1a17d7849b8bd4db1fdc4430
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_f9d5d2d4aad18fe2daa2d710
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_083b9db52b441508090b09f1
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_ec89ceda4cdfe71a3a2e4f22
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_1dcad0fb9381304a89374d8c
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_34c99579543e40863b5cf103
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_27b17e08749c81475bd30654
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_e58d37841485200a03433676
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_c12116ed2fd2594c19c1a402
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_023e344eec2e175a5a23c2e3
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_160b1f605a10442433762407
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_8fac881546dea13682b5c468
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_68961f4380299732a3b0cfaf
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_b43ef77d3f86e67a71864525
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_2456c102cc30282dc44e1540
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_7101c3e30d3124c3ed8f867f
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_6d477eb7bf0fe1bef05ab087
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_522401bf09a0ab27122bd68e
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
chg_e2974bf9a3b478df281794cc
Permissionless bounded use recorded for deflated-sharpe; optional public review is now allowed with the receipt.
deflated-sharpe
Catches one of the most common retail algo-trading traps: mistaking multiple-testing overfit for edge. Dependency-free and extracted from live use.
Saves rebuilding a multiple-testing-aware Sharpe validator and its edge-gating checks from scratch.
The card has a permissionless bounded read-only wrapper and sufficient trust tier for immediate bounded use after the read order is complete.