xiaohongshu
xiaohongshu
betting-strategy
Details the core betting strategy, including edge calculation, sport-specific thresholds, Kelly Criterion sizing, and portfolio optimization.
Full skill instructions
edge = elo_probability - market_probability
A bet is recommended when:
elo_prob > threshold (high confidence)edge > 0.05 (5%+ edge over market)| Sport | Threshold | Min Edge | Notes |
|---|---|---|---|
| NBA | 73% | 5% | High-scoring, predictable |
| NHL | 66% | 5% | High variance sport |
| MLB | 67% | 5% | Lower home advantage |
| NFL | 70% | 5% | Small sample size |
def get_confidence(elo_prob, threshold):
if elo_prob > threshold + 0.10:
return "HIGH"
elif elo_prob > threshold:
return "MEDIUM"
return None # Don't bet
Validate model quality by decile:
from lift_gain_analysis import analyze_sport
overall, current = analyze_sport('nba')
# Key metrics:
# - Lift > 1.0: Better than random
# - Top decile lift > 1.3: Strong signal
# - Gain %: Cumulative wins captured
Interpretation:
Optimal bet sizing:
def kelly_fraction(win_prob, odds):
"""Calculate Kelly bet fraction."""
# odds in decimal format (2.0 = even money)
q = 1 - win_prob
b = odds - 1
return (win_prob * b - q) / b
# Use fractional Kelly (25-50%) to reduce variance
bet_fraction = kelly_fraction(prob, odds) * 0.25
from portfolio_optimizer import optimize_bets
# Optimize across all opportunities
optimized = optimize_bets(
opportunities=bets,
bankroll=1000,
max_exposure=0.10, # 10% max per bet
correlation_penalty=0.5 # Reduce correlated bets
)
All bets saved to placed_bets table:
default_db.execute("""
INSERT INTO placed_bets
(bet_id, game_id, sport, ticker, side, amount, price, elo_prob, edge, placed_at)
VALUES (...)
""")
Track if we beat the closing line:
from clv_tracker import calculate_clv
clv = calculate_clv(bet_id)
# Positive CLV = consistently beating market
plugins/portfolio_optimizer.py - Kelly and optimizationplugins/lift_gain_analysis.py - Model validationplugins/clv_tracker.py - CLV trackingdocs/VALUE_BETTING_THRESHOLDS.md - Threshold analysisxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience