NestQuant Tournament
  • About Us
  • Homepage
  • NestQuant Tournament
    • Overview
    • Raw Data
      • Tournament
      • Blockchain
        • Centralized Exchanges
      • Stocks
        • Stocks at exchange
        • ETF & Indices
      • Forex
        • Raw currency pairs
      • Economy
        • Federal Reserve Economic Data
      • API documentation
    • Reward
    • Return and Risk Tournament
      • Introduction
      • Labeling Method
      • Correlation (CORR)
      • Movement Score (MS)
  • Connect
    • Facebook
    • Twitter
    • Discord
    • GitHub
Powered by GitBook
On this page
  • Motivation
  • Formula
  1. NestQuant Tournament
  2. Return and Risk Tournament

Labeling Method

How we create the Label (target prediction)

PreviousIntroductionNextCorrelation (CORR)

Last updated 1 year ago

Motivation

The primary and fundamental component of the label is, without a doubt, the fluctuation of price, specifically the increase or decrease. This aspect is straightforward and easily comprehensible.

The second aspect is the need to minimize the trading risk involved, as there is always a possibility of deviating significantly from our anticipated forecast. Managing risk is crucial in order to mitigate potential losses.

Formula

We provide the following formula to calculate the label:

y=r2PBMVy = \frac{r}{2\sqrt{P_{BM}V}}y=2PBM​V​r​

where:

  1. r is the return rate of the price.

  2. Pbm represents the probability of the price occurring at time t+n, which is estimated at time t. We employ as the method to estimate this value.

  3. V represents the price volatility change, which is calculated by dividing the next short-term standard deviation by the previous long-term standard deviation. This measurement helps assess the fluctuations in price over time.

  4. y is the label.

For a clearer understanding, you can refer to the following where you will find additional information and details.

What is n?

In this tournament, we are establishing the value of n as 1, designating the round as the unit, wherein each round spans a duration of 12 hours.

How will the conversion of input submissions take place?

Keep in mind that, for this type of input submission, you are required to provide three numerical values: the minimum price, the middle price (which represents your anticipated price), and the maximum price. The range between the minimum and maximum prices constitutes your expected price range. Pbm and V will be calculated as following:

  • Pbm will be determined using past prices, indicating that once the price hits the round time, Pbm will undergo recalculation. This process ensures a continuous update of Pbm at each round.

  • V will be calculated by taking the following formula:

V=Pmin2+Pmid2+Pmax2−PminPmax−PminPmid−PmidPmax18×1stdlongV = \sqrt{\frac{P_{min}^2+P_{mid}^2+P_{max}^2-P_{min}P_{max}-P_{min}P_{mid}-P_{mid}P_{max}}{18}} \times \frac{1}{std_{long}}V=18Pmin2​+Pmid2​+Pmax2​−Pmin​Pmax​−Pmin​Pmid​−Pmid​Pmax​​​×stdlong​1​

where the first multiplication term is employed for computing the standard deviation of the triangular distribution, while the subsequent term involves the reciprocal of the preceding long-term standard deviation. The reason we choose the triangular distribution is due to its simplicity in simulating price fluctuations centered around the median price, which holds the highest probability.

Brownian Motion
link