Comments (3)
I would be happy to promote the usage of the new random_
methods once they are inside our expected support window. I intend to deprecate the 5.x series soon for this project, but I don't want to remove backwards compatibility solely for the sake of breaking things.
Importantly, however, this is not a cryptographic library. That said, the cryptographic tests of randomness might have some interesting value in terms of what we mean by, say, "drawing from a uniform distribution." If there were a case to be made for this today, I would be willing to put a function_exists
or userland polyfill style implementation in place.
from probability-distributions-for-php.
Exactly - while definitely not a cryptographic library, it would seem that the 'true' randomness of a distribution is important when being used for A/B testing or optimizations. If PHP documentation is correct, random_int()
"should" produce a more truly reliable, mathematically correct result.
from probability-distributions-for-php.
This fundamentally comes down to what it means to be "truly" random. A question I've struggled with for a long time and is probably outside the scope of this chat. There are, however, a number of tests used to define true randomness.
I believe we should meet all the tests that would matter for that use case using Mersenne Twister, but it would be worth eventually adding unit tests to this library that ensure that is the case, to the extent they are meaningful.
For example, the Diehard tests or TestU01. I am not particularly familiar with the cryptographic randomness test suites, but the non-cryptographic properties should be sufficient with respect to A/B testing or any of the other common applications of these distributions like memoryless cache expiration or Monte Carlo simulations. Cryptographic tests aim to understand the impact of a form of randomness in a world where there is an active adversary.
from probability-distributions-for-php.
Related Issues (19)
- Abstract simulation testing strategy. HOT 1
- Normal icdf does not use Mean and Variance HOT 1
- please move implementations into declarations and git rid of ugly HOT 5
- Add parameter estimators for statistical distributions HOT 1
- Code organization for new distributions? HOT 3
- Parameters in Gamma distribution HOT 5
- Add versioning to the package HOT 1
- BadMethodCallException: PDF not implemented. Please create a pull request if you implement it yourself. in /Library/WebServer/Documents/playground-raj/vendor/gburtini/distributions/src/gburtini/Distributions/Distribution.php on line 10 HOT 5
- Interface of normal distribution - notice about convention
- Increase code coverage and show coverage HOT 1
- Replace Abstract Class Distribution by Interface HOT 1
- Tag a composer release.
- binomial icdf returns value > 1.0 HOT 2
- PHPUnit version is broken on PHP >=7.3
- Figure out why ugly branch is still diverged. Merge appropriately. HOT 1
- Question: about binomial distribution
- Student's T distribution buggy HOT 3
- Resolve licensing choices. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from probability-distributions-for-php.