Bitcoin Forum
June 26, 2024, 11:44:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A math problem  (Read 595 times)
ninjabanker (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
September 19, 2013, 11:03:48 PM
 #1

S(t) is the spot price of a given currency pair on a given exchange at time t.
I is a closed interval in the domain of S
f(n,t) is the n-day simple moving average of S(t)
p ϵ [0,1]
P is a probability function

For a given S, I, p, and i, calculate n such that P( S(t+i) ≥ f(n,t) ) ≥ p for all t in I.
cunicula
Legendary
*
Offline Offline

Activity: 1050
Merit: 1003


View Profile
September 20, 2013, 05:15:14 AM
 #2

You need to specify the random process generating draws of daily spot prices.
I.e what is the probability distribution describing shocks to spot prices in each period? Are spot prices a random walk?
Are changes in spot prices autocorrelated? What is ther order of autocorrelation?

Perhaps the best question to ask is why do you want to know? If you're implementing something you are going to have to estimate the distribution based on historical data. That can easily go horribly wrong. It might be better to ask, "how can I implememt this without having to know the answer to this question myself?"
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!