Mizar
  • Whitepaper
    • Abstract
    • C-Mizar
      • Problem
      • Solution
      • Opportunity
      • Product
        • Marketplace
        • DCA Bots
        • API Bots
        • Smart Trading
        • Paper Trading
        • Portfolio Manager
    • D-Mizar
      • Problem
      • Solution
      • Opportunity
      • Product
        • Contract Sniffer
        • Sniper Bot
    • $MZR Token
      • Use Cases
      • Token Metrics
      • Vesting Schedule and Release
      • FAQ
    • Roadmap
      • Supersonic Phase (C-Phase)
      • Hypersonic Phase (D-Phase)
    • Team
  • SDK
    • DCA Bots
      • DCA Bot SDK
      • DCA Bot - TradingView
    • API Bots
      • API Trading SDK
      • API Trading - TradingView
  • Mizar AI (on hold)
    • Mizar AI (on hold)
    • Data Sources
    • Model
      • Downsampling with CUSUM Filter
      • Average Uniqueness
      • Sample Weights
      • Sequentially Bootstrapped Bagging Classifier
      • Metalabeling
      • Bet Sizing
      • Combinatorial Purged Cross Validation
    • Structural Breaks
    • Transformations
      • Labeling Methods
      • Technical Analysis Features
      • Microstructural Features
    • Strategy Backtesting
    • Strategy Deployment
Powered by GitBook
On this page

Was this helpful?

  1. Mizar AI (on hold)
  2. Model

Bet Sizing

Building a trading strategy with a model that predicts the side of the trade can be used to open positions, but opening the position with a predetermined fixed size can be inefficient. A better way would be to size your position according to how confident the model is about the prediction. This concept is called bet sizing and the following sections will formalise this concept further.

When metalabeling is applied on top of a primary model, which predicts the side of the trade, the metalabelling model outputs a predicted probability that can be used to determine the size. The metalabeling model is a binary classifier, which predicts whether to take or not take the trade.

The goal is to test the null hypothesis H0:p[x=1]=12,H_0: p[x =1] = \dfrac{1}{2}, H0​:p[x=1]=21​,where p[x=1]p[x = 1]p[x=1]is the probability whether the side is correct and x∈{−1,1}x \in \{-1, 1\}x∈{−1,1}, where -1 and 1 represents short and long respectively. The test statistic zzzis defined as

z=p[x=1]−12p[x=1](1−p[x=1])∼N(0,1),z∈(−∞,∞)z = \dfrac{p[x=1] - \dfrac{1}{2}}{\sqrt{p[x=1](1-p[x=1])}} \sim \mathcal{N}(0, 1), z \in (-\infty, \infty)z=p[x=1](1−p[x=1])​p[x=1]−21​​∼N(0,1),z∈(−∞,∞)

when the metalabelling model predicts p[x=1]p[x=1]p[x=1], we compute the zzztest statistic, which we can put into the CDF of the standard normal distribution to get a bet size. However, this can lead to excessive trading with small amounts when the predicted probability p[x=1]p[x=1]p[x=1]is close to 0.5. To filter out these noisy trades, we can discretise the CDF in steps such that probabilities close 0.5, are floored to a size of 0.

PreviousMetalabelingNextCombinatorial Purged Cross Validation

Last updated 4 years ago

Was this helpful?