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

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
These are the results.
Not very good either... In general, working with non-central beta distribution rather belongs to the class of non-trivial tasks. We managed to see Boost from the open source code. And it will be more complicated than the one we have in SB now.
The same Wikipedia has it:
I.e. two random variables are taken, where the first is from a non-central chi-square distribution and the second is from a central distribution. Probably the code can be corrected to this:
The modified graphs in the example will be below.
Thank you, you are right, we need to calculate through this formula, however there was another error, the lambda non-centrality parameter should be without multiplier 2.
Test script:
Result:
I also checked the CFD function for Noncentral Beta Distribution.
Some questionable results:
Alternative sources use the ASA310 algorithm:
For example some of the results in Wolfram Mathematica:
Which is more or less similar to the truth...