記事"一連の指標シグナルに対する単純ベイズ分類器"についてのディスカッション - ページ 3

 
Комбинатор:

すべての戦略が相互に独立していて、0.5より大きい確率を与える場合のみ

計算式をよく見てみると

P(Win|ABC) = P(Win|A)* P(Win|B)* P(Win|C) /[ P(Win|A)* P(Win|B)* P(Win|C) - (1 - P(Win|A))* (1 - P(Win|B))* (1 - P(Win|C))].]

この値は常に1より大きい(分子が分母より大きい)。正しい式は?
 
fxsaber:

計算式をよく見てみると

この値は常に1より大きい(分子が分母より大きい)。正しい式は何ですか?

タイプミスに気づいてくれてありがとう。そこにはマイナス「-」ではなく、「+」があるべきです。https://ru.wikipedia.org/wiki/%D0%91%D0%B0%D0%B9%D0%B5%D1%81%D0%BE%D0%B2%D1%81%D0%BA%D0%B0%D1%8F_%D1%84%D0%B8%D0%BB%D1%8C%D1%82%D1%80%D0%B0%D1%86%D0%B8%D1%8F_%D1%81%D0%BF%D0%B0%D0%BC%D0%B0

修正しましょう。


Байесовская фильтрация спама — Википедия
Байесовская фильтрация спама — Википедия
  • ru.wikipedia.org
Ба́йесовская фильтра́ция спа́ма — метод для фильтрации спама, основанный на применении наивного байесовского классификатора, опирающегося на прямое использование теоремы Байеса. Теорема Байеса названа в честь её автора Томаса Байеса (1702—1761) — английского математика и священника, который первым предложил использование теоремы для...
 
Alexey Nikolaev:

価格の系列は独立した増分の系列とみなすのが近いことが知られている。したがって,n個の確率変数の集合d(1)=p(2)-p(1),d(2)=p(3)-p(2),...は独立に近い.d(n-1)=p(n)-p(n-1)、p(n)は独立に近い。さて、この集合のどの関数の集合も、そのうちの1つの関数の式にのみ引数が含まれていれば、独立である。簡単に言うと、関数I1(d1,d2)とI2(d3,p4)からなる4本の棒の集合は独立であるが、I1(d1,d2,d3)とI2(d3,p4)はd3のために独立ではない。
例えば、2つの異なるMAは常に従属である。しかし、もし2つ目のMAが1つ目のMAの周期だけ後ろにずれているような2つのMAをとれば、1つ目のMAとその差の系は独立になります。

これは、カオス過程の埋め込み空間Nと時間遅れTauを求めることに非常に似ているが、そこでは、"集合"-修正された多次元空間の1点に対するベクトル-は、元の時系列の連続した サンプルではなく、ステップ Tauを持つN個からできている。原典 著者はこのアルゴリズムをニューラルネットワーク予測に使用したが、本質は同じで、予測変数の独立性である。

 
Stanislav Korotky:

これは、カオス過程の埋め込み空間Nと時間遅延Tauを求めるのと非常に似ているが、そこでは、「集合」(修正された多次元空間の1点のベクトル)は、元の時系列の連続した サンプルではなく、ステップ Tauを持つN個のサンプルでできている。原典 著者らはこのアルゴリズムをニューラルネットワーク予測に使用したが、本質は同じで、予測変数の独立性である。

ダイナミック・カオスの研究分野では、ランダム過程の理論の手法を使っているので、類似性があるのは間違いない。それがどの程度までなのか、また常に正当化されるのか、私には判断がつかない。一方では、確率系とカオス系は根本的に異なるということが常に強調され(例えば、埋め込みの次元が大きくなった場合)、他方では、例えば、われわれのコンピュータの乱数発生器もすべて力学系であることに変わりはないが、何らかの理論的手段によって研究されている。カオスの市場への応用について、ピータースは彼の本の中でいくつかの価格のアトラクターを計算し、それは巨大な次元であることが判明した。
 
Rashid Umarov:

誤字に気づいてくれてありがとう。そこにはマイナス"-"ではなく、"+"があるべきだ。https://ru.wikipedia.org/wiki/%D0%91%D0%B0%D0%B9%D0%B5%D1%81%D0%BE%D0%B2%D1%81%D0%BA%D0%B0%D1%8F_%D1%84%D0%B8%D0%BB%D1%8C%D1%82%D1%80%D0%B0%D1%86%D0%B8%D1%8F_%D1%81%D0%BF%D0%B0%D0%BC%D0%B0

修正しよう


第3版と第4版の間の編集者によるタイプミスです。第3回改訂版では、数式は私がテキストで書いたもので、そこではすべてが正しいのですが、第4回改訂版では、数式はすでに絵の形になっており、誤りがあります。

 

RubbArray.mqhを使用する際、いくつかのエラーが発生します。

'data' - structures containing objects are not allowed  RubbArray.mqh   80      23



 
Verbatino:

RubbArray.mqhを使用している間、実装でいくつかのエラーが発生します。

はい、MetaQuotesは公開日以降にMQL言語を変更し、多くの既存のソースコードとの互換性を(残念ながら)壊してしまいました。ArrayCopyはアービタリポインタには使えなくなりました。

添付のヘッダーファイルで代用できます。

ファイル:
RubbArray.mqh  3 kb
 

どうすればうまくいくでしょうか?Expert Advisorがコンパイルされません。

code generation error           1 

そして、なぜ多くのボーニングでコードを書くのですか?

'indstats.mq5'  indstats.mq5    1       1
'MarketMQL4.mqh'        MarketMQL4.mqh  1       1
'ind4to5.mqh'   ind4to5.mqh     1       1
macro redefinition      ind4to5.mqh     170     9
macro redefinition      ind4to5.mqh     171     9
macro redefinition      ind4to5.mqh     174     9
'mt4orders.mqh' mt4orders.mqh   1       1
macro redefinition      mt4orders.mqh   412     9
macro redefinition      mt4orders.mqh   413     9
'IndicatN.mqh'  IndicatN.mqh    1       1
'fmtprnt2.mqh'  fmtprnt2.mqh    1       1
'RubbArray.mqh' RubbArray.mqh   1       1
'Expert0fix.mqh'        Expert0fix.mqh  1       1
'HashMapTemplate.mqh'   HashMapTemplate.mqh     1       1
possible loss of data due to type conversion    MarketMQL4.mqh  49      8
possible loss of data due to type conversion    MarketMQL4.mqh  61      8
possible loss of data due to type conversion    MarketMQL4.mqh  63      8
possible loss of data due to type conversion    MarketMQL4.mqh  65      8
possible loss of data due to type conversion    MarketMQL4.mqh  77      8
possible loss of data due to type conversion    MarketMQL4.mqh  79      8
possible loss of data due to type conversion    MarketMQL4.mqh  89      8
possible loss of data due to type conversion    MarketMQL4.mqh  91      8
possible loss of data due to type conversion    MarketMQL4.mqh  103     8
declaration of 'line' hides member declaration at line 14       fmtprnt2.mqh    21      39
   see previous declaration of 'line'   fmtprnt2.mqh    14      12
possible loss of data due to type conversion    IndicatN.mqh    945     45
possible loss of data due to type conversion    IndicatN.mqh    947     51
possible loss of data due to type conversion    IndicatN.mqh    947     73
possible loss of data due to type conversion    IndicatN.mqh    947     95
possible loss of data due to type conversion    IndicatN.mqh    947     117
possible loss of data due to type conversion    IndicatN.mqh    947     139
possible loss of data due to type conversion    IndicatN.mqh    947     161
possible loss of data due to type conversion    IndicatN.mqh    951     45
possible loss of data due to type conversion    IndicatN.mqh    953     47
possible loss of data due to type conversion    IndicatN.mqh    953     69
possible loss of data due to type conversion    IndicatN.mqh    953     113
possible loss of data due to type conversion    IndicatN.mqh    955     52
possible loss of data due to type conversion    IndicatN.mqh    957     52
possible loss of data due to type conversion    IndicatN.mqh    961     45
possible loss of data due to type conversion    IndicatN.mqh    961     67
possible loss of data due to type conversion    IndicatN.mqh    963     50
possible loss of data due to type conversion    IndicatN.mqh    965     51
possible loss of data due to type conversion    IndicatN.mqh    965     73
possible loss of data due to type conversion    IndicatN.mqh    967     47
possible loss of data due to type conversion    IndicatN.mqh    971     47
possible loss of data due to type conversion    IndicatN.mqh    971     69
possible loss of data due to type conversion    IndicatN.mqh    971     91
possible loss of data due to type conversion    IndicatN.mqh    971     113
possible loss of data due to type conversion    IndicatN.mqh    971     135
possible loss of data due to type conversion    IndicatN.mqh    971     157
possible loss of data due to type conversion    IndicatN.mqh    973     50
possible loss of data due to type conversion    IndicatN.mqh    973     72
possible loss of data due to type conversion    IndicatN.mqh    973     94
possible loss of data due to type conversion    IndicatN.mqh    975     50
possible loss of data due to type conversion    IndicatN.mqh    975     72
possible loss of data due to type conversion    IndicatN.mqh    977     45
possible loss of data due to type conversion    IndicatN.mqh    979     44
possible loss of data due to type conversion    IndicatN.mqh    979     66
possible loss of data due to type conversion    IndicatN.mqh    981     46
possible loss of data due to type conversion    IndicatN.mqh    981     68
possible loss of data due to type conversion    IndicatN.mqh    981     90
possible loss of data due to type conversion    IndicatN.mqh    981     112
possible loss of data due to type conversion    IndicatN.mqh    985     46
possible loss of data due to type conversion    IndicatN.mqh    985     68
possible loss of data due to type conversion    IndicatN.mqh    985     90
possible loss of data due to type conversion    IndicatN.mqh    985     112
possible loss of data due to type conversion    IndicatN.mqh    987     45
possible loss of data due to type conversion    IndicatN.mqh    987     67
possible loss of data due to type conversion    IndicatN.mqh    989     45
possible loss of data due to type conversion    IndicatN.mqh    994     48
possible loss of data due to type conversion    IndicatN.mqh    994     70
possible loss of data due to type conversion    IndicatN.mqh    996     52
possible loss of data due to type conversion    IndicatN.mqh    996     74
possible loss of data due to type conversion    IndicatN.mqh    996     96
possible loss of data due to type conversion    IndicatN.mqh    998     45
possible loss of data due to type conversion    IndicatN.mqh    1011    42
possible loss of data due to type conversion    IndicatN.mqh    1419    54
possible loss of data due to type conversion    IndicatN.mqh    1538    15
declaration of 'e' hides global declaration in file 'indstats.mq5' at line 50   IndicatN.mqh    1582    160
   see previous declaration of 'e'      indstats.mq5    50      8
possible loss of data due to type conversion    IndicatN.mqh    1635    75
possible loss of data due to type conversion    IndicatN.mqh    1849    49
possible loss of data due to type conversion    Expert0fix.mqh  254     18
possible loss of data due to type conversion    IndicatN.mqh    707     9
possible loss of data due to type conversion    IndicatN.mqh    707     9
possible loss of data due to type conversion    IndicatN.mqh    707     9
possible loss of data due to type conversion    IndicatN.mqh    707     9
implicit conversion from 'number' to 'string'   fmtprnt2.mqh    62      44
implicit conversion from 'number' to 'string'   fmtprnt2.mqh    77      17
implicit conversion from 'number' to 'string'   fmtprnt2.mqh    93      17
code generation error           1       1
1 error(s), 79 warning(s)               2       80
 

コード生成のエラーに関しては、いつものようにSDにある。

警告は削除することができます。私は意図的に警告を作成したわけではなく、ただ多くのコードを受け継いだだけです。

 
修正したコード(警告なし)を掲載します。MT4 のようなシリアル関数のサポートがなく、iBars とiBarShift が ない古い MT5 ビルドでは、それらの実装は MT5_BUILD_IS_LESS_THAN_1860 マクロによって有効になっています。
ファイル:
MQL45.zip  25 kb