Discussion of article "Statistical Distributions in MQL5 - taking the best of R" - page 17

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Thanks for the message, you are right, there is an error in the normalisation of the empirical density. Attached is the corrected version of Math.mqh.
How can I get such a distribution for arbitrary data via Include\Math ? I.e. I input an array of original data, and on the output I get an array of distribution of the original data.
Another article has this
How to obtain such a distribution for arbitrary data via Include\Math ? I.e. I input an array of initial data, and on the output I get an array of distribution of initial data.
An example is given in the help - Normal distribution
An example is given in the help - Normal Distribution
Thank you! Why is this often needed function from the example not included in the SB?
Thank you! Why is this often needed feature from the example not included in the SB?
It is there. Those who need it will find it immediately, and those who don't need it will pass it by
It's right there. Those who need it will find it right away, and those who don't need it will pass it by
Even in the example, it is not called from the SB, but written from scratch. Where is it in SB? I specifically searched for it (in ME CTRL+SHIFT+F "Histogram"), I couldn't find it.
Even in the example it is not called from the SB, but written from scratch. Where is it in the SB? I searched specifically (in ME CTRL+SHIFT+F "Histogram"), I couldn't find it.
Ah, yes. It was written as an example in the help and was not included in the library sources.
And there may be problems in some cases, if I'm not mistaken.
Функция рассчитывает значение функции логнормального распределения вероятностей с параметрами mu и sigma для массива случайных величин x[]. В случае ошибки возвращает false. Аналогplnorm() в R.
What is that x-value?
Even in the example it is not called from the SB, but written from scratch. Where is it in the SB? I looked for it specifically (in ME CTRL+SHIFT+F "Histogram"), I couldn't find it right away.
There are MathProbabilityDensityEmpirical and MathCumulativeDistributionEmpirical (corrected version of Math.mqh in #155) to calculate empirical (from data) density and distribution function.
What is this x-value?
Since the function is vector-based and works with the array x[i], here you mean the specific value of x[i] (the first parameter).
The tail flag makes sense similar to lower.tail in R, if tail=true, the value of cdf(x) is returned, otherwise 1-cdf(x).There are MathProbabilityDensityEmpirical and MathCumulativeDistributionEmpirical (corrected version of Math.mqh in #155) to calculate the empirical (from data) density and distribution function
How can I use these functions to replace CalculateHistogramArray in this source?