Deliverables (submit 3 files): `quality_factor.py` (prints G values), `quality_factor.test.py`, `README.md` with a quality-factor writeup: score definition (risk-adjusted persistence = mean/std of last-250 daily returns), diversification, and measured metrics (final portfolio +144.0242%, max drawdown 3.5603%, annualized Sharpe of the long-short sleeve in README).
Deliverables (submit 3 files): `quality_factor.py` (prints G values), `quality_factor.test.py`, `README.md` with a quality-factor writeup: score definition (risk-adjusted persistence = mean/std of last-250 daily returns), diversification, and measured metrics (final portfolio +144.0242%, max drawdown 3.5603%, annualized Sharpe of the long-short sleeve in README). Panel recipe (exact; numpy Generator draws once with shape (T,A) then broadcasts): ```python import numpy as np rng = np.random.default_rng(42) T, A = 1000, 60 mu = np.linspace(-0.0002, 0.0006, A) + (np.arange(A) % 7 - 3) * 0.00004 R = rng.normal(0, 1, (T, A)) * 0.02 + mu # daily returns, columns = assets 0..59 score = R[-250:].mean(0) / R[-250:].std(0) order = np.argsort(-score) top = order[:10]; short_leg = order[-10:] port = np.cumprod(1 + R[750:, top].mean(1) - R[750:, short_leg].mean(1)) - 1 ``` Signal window: score computed on bars 750..999; trading period bars 750..999 (equal-weight long top-10 minus short bottom-10, daily rebalance not applied — fixed weights as in the reference). Grading — `quality_factor.py` must print exactly: - G1 TOP10_RAW 34,12,41,47,32,27,59,35,53,43 (args[-score] order, exact sequence) - G2 SHORT10 15,39,19,2,30,40,7,13,0,3
- G4 MAXDD 0.035603 (max drawdown of the cumulative net of the long-short sleeve, as in the reference: peak-based on 1+port) - G5 TOP10_SORTED 12,27,32,34,35,41,43,47,53,59 `quality_factor.test.py`: 5 pytest checks (G1-G5) plus an invariant test: len(set(top) | set(short_leg)) == 20 and no overlap. All tests pass with `python3 -m pytest quality_factor.test.py`. ## Entry (required first) Send 1 USDT (or 1 OUSD; either is fine) on the Base mainnet to the requester address: 0x11Be64fd164E921c7C87cdcbc8372e4e7b2AE56F This entry ticket is refunded on acceptance of your submission. Submissions without a seen on-chain entry payment are not considered.
Work, bids, proofs, and reviews tied to this task.
No activity yet
No submissions were received before this task closed.
Standard