Diskussion zum Artikel "Der naive Bayes-Klassifikator für die Signale einer Reihe von Indikatoren" - Seite 3

 
Комбинатор:

nur wenn alle Strategien voneinander unabhängig sind und eine Wahrscheinlichkeit von mehr als 0,5 ergeben

Ich habe mir die Formel genauer angesehen

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))) ]

Dieser Wert ist immer größer als eins (der Zähler ist größer als der Nenner). Wie lautet die richtige Formel?
 
fxsaber:

Ich habe mir die Formel genauer angesehen

Dieser Wert ist immer größer als eins (der Zähler ist größer als der Nenner). Wie lautet die richtige Formel?

Danke, dass Sie den Tippfehler bemerkt haben. Dort sollte ein "+" stehen, nicht ein Minus "-" 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

Korrigieren wir das.


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

ist bekannt, dass die Preisreihe als eine Reihe unabhängiger Inkremente betrachtet werden kann. Daher ist die Menge der n Zufallsvariablen d(1)=p(2)-p(1), d(2)=p(3)-p(2), ... d(n-1)=p(n)-p(n-1), p(n) annähernd unabhängig sein. Nun ist jede Menge von Funktionen aus unserer Menge unabhängig, wenn jedes Argument nur im Ausdruck einer der Funktionen enthalten ist. Einfach ausgedrückt: Die Menge für vier Balken aus den Funktionen I1(d1,d2) und I2(d3,p4) wird unabhängig sein, aber I1(d1,d2,d3) und I2(d3,p4) werden wegen d3 nicht unabhängig sein.
Zum Beispiel werden zwei verschiedene MAs immer abhängig sein. Nimmt man jedoch zwei MAs so, dass die zweite um die Periode der ersten zeitlich nach hinten verschoben ist, dann sind ein System der ersten MA und ihre Differenz unabhängig.

Dies ist der Bestimmung des Einbettungsraums N und der Zeitverzögerung Tau von chaotischen Prozessen sehr ähnlich, nur dass dort die "Menge" - ein Vektor für einen Punkt des modifizierten mehrdimensionalen Raums - aus N nicht aufeinanderfolgenden Proben der ursprünglichen Zeitreihe besteht, sondern mit einem Schritt Tau. Ursprüngliche Quelle. Die Autoren haben diesen Algorithmus für die Vorhersage mit neuronalen Netzen verwendet, aber das Wesentliche ist dasselbe - die Unabhängigkeit der Prädiktoren - sie wird dort am Eingang des Netzes genauso benötigt wie in unserer statistischen Formel.

 
Stanislav Korotky:

Dies ist der Ermittlung des Einbettungsraums N und der Zeitverzögerung Tau von chaotischen Prozessen sehr ähnlich, nur dass dort die "Menge" - ein Vektor für einen Punkt des modifizierten mehrdimensionalen Raums - aus N nicht aufeinanderfolgenden Proben der ursprünglichen Zeitreihe besteht, sondern mit einem Schritt Tau. Ursprüngliche Quelle. Die Autoren haben diesen Algorithmus für die Vorhersage mit neuronalen Netzen verwendet, aber die Essenz ist die gleiche - die Unabhängigkeit der Prädiktoren - sie wird dort am Eingang des Netzes genauso benötigt wie in unserer statistischen Formel.

Die Ähnlichkeit ist zweifellos gegeben, da im Bereich der dynamischen Chaosforschung Methoden der Theorie der Zufallsprozesse verwendet werden. Inwieweit und ob dies immer gerechtfertigt ist, kann ich nicht beurteilen. Einerseits wird immer wieder betont, dass stochastische und chaotische Systeme grundsätzlich verschieden sind (z.B. wenn die Dimensionalität der Einbettung zunimmt), andererseits sind z.B. alle unsere Computer-Zufallszahlengeneratoren immer noch dynamische Systeme, die aber irgendwie mit Hilfe der Theorie untersucht werden. Was die Anwendung des Chaos auf den Markt betrifft, so hat Peters in seinem Buch den Attraktor einiger Preise berechnet, und es stellte sich heraus, dass er eine sehr große Dimension hat.
 
Rashid Umarov:

Danke, dass Sie den Tippfehler bemerkt haben. Dort sollte ein "+" stehen, nicht ein Minus "-" 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

Korrigieren wir es


Es handelt sich um einen Tippfehler, den der Redakteur zwischen der 3. und 4. In der 3. Revision sind die Formeln von mir in Textform geschrieben - dort ist alles richtig, aber in der 4. Revision sind die Formeln bereits in Form eines Bildes und mit einem Fehler.

 

Die Implementierung wirft einige Fehler bei der Verwendung von RubbArray.mqh aus

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



 
Verbatino:

Die Implementierung wirft einige Fehler bei der Verwendung von RubbArray.mqh

Ja, MetaQuotes hat die MQL-Sprache seit dem Veröffentlichungsdatum geändert, wodurch die Rückwärtskompatibilität (leider) mit vielen existierenden Quellcodes gebrochen wurde. ArrayCopy kann nicht mehr für beliebige Zeiger verwendet werden.

Sie können die beigefügte Header-Datei als Ersatz verwenden.

Dateien:
RubbArray.mqh  3 kb
 

Wie zu beheben, dass etwas funktionieren würde? ) Expert Advisor kompiliert nicht, MT5.

code generation error           1 

und warum schreiben Code mit einer Menge von vornings?

'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
 

Wie für Code Generation Fehler - wie immer - in SD.

Warnungen können entfernt werden, ich habe sie nicht absichtlich erstellt, nur eine Menge von geerbten Code, aber jetzt habe ich weg von MQL bewegt - ich kann sie optimieren, wenn Sie wollen, ich habe den Quellcode.

 
Ich poste korrigierte Codes (ohne Warnungen). Auf alten MT5-Builds ohne Unterstützung von seriellen Funktionen a la MT4, ohne iBars und iBarShift - ihre Implementierungen werden durch MT5_BUILD_IS_LESS_THAN_1860 Makro aktiviert.
Dateien:
MQL45.zip  25 kb