graykode / distribution-is-all-you-need Goto Github PK
View Code? Open in Web Editor NEWThe basic distribution probability Tutorial for Deep Learning Researchers
License: MIT License
The basic distribution probability Tutorial for Deep Learning Researchers
License: MIT License
poisson distribution is the limit of binomial distribution
poisson distribution and gamma distribution are conjugate distributions
poisson distribution is also useful in machine learning such as Poisson Regression
It may be helpful if you could add it in the figure
plt.plot(x, y, label=r'$\mu=%.2f,\ \sigma=%.2f,'
r'\ \lambda=%d$' % (u, s, lamb))
lambda should be lambda=%.2f otherwise it will only display integers.
The output mu, and sigma is the mean and std of the y, not the expectation(mean) and variance of the distribution, which may be confusing.
I suggest return
mu = np.sum(x * y) * step
sigma = np.sum(x * x * y) * step - mu * mu
where step is the step option in np.arange
(eg: x = np.arange(0, 1, 0.001, dtype=np.float), then step is 0.001)
For example in beta ditribution, E(x) = a/(a+b) and Var(x) = ab/((a+b)^2(a+b+1)).
I suppose mu should be E(x) and sigma should be Var(x). And I get result like this:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.