Comments (3)
Dear lesshaste, Thank you for your feedback!
You are right about levy_l (and also stable), these are very slow so I removed them from the full list.
The loc parameter is automatically determined. There is no input parameter to force this to be a specified value.
Can you describe why you want to fixate this parameter?
try to pip install the new version and check the version. It should be 1.1.5.
pip install -U distfit
import distfit
print(distfit.__version__)
from distfit.
Thank you for the reply. In my case I know the distribution is symmetric with mean (and median) 0. So it makes sense to use that information I was thinking.
from distfit.
I you have sufficient data, your mean value will be towards zero. Maybe not exactly 0 but very close to it. If your data is symmetric, it will try to fit a distribution that shows the best fit. The fun part is that you do not have to worry about these parameters but are estimated for you.
For example a normal distribution with 10000 data points with mean ~0
X = np.random.normal(0, 2, 10000)
from distfit import distfit
dist = distfit()
model = dist.fit_transform(X)
dist.plot()
This gives the following output:
[distfit] >[norm ] [RSS: 0.0009400] [loc=0.017 scale=1.993]
[distfit] >[expon ] [RSS: 0.3300147] [loc=-8.140 scale=8.157]
[distfit] >[pareto ] [RSS: 0.3251750] [loc=-406937692.614 scale=406937684.474]
[distfit] >[dweibull ] [RSS: 0.0070768] [loc=0.011 scale=1.698]
[distfit] >[t ] [RSS: 0.0009299] [loc=0.017 scale=1.988]
[distfit] >[genextreme] [RSS: 0.0028985] [loc=-0.759 scale=1.961]
[distfit] >[gamma ] [RSS: 0.0008770] [loc=-85.198 scale=0.047]
[distfit] >[lognorm ] [RSS: 0.0009010] [loc=-74.206 scale=74.190]
[distfit] >[beta ] [RSS: 0.0008786] [loc=-82.021 scale=25037346.492]
[distfit] >[uniform ] [RSS: 0.2463460] [loc=-8.140 scale=16.556]
In case of a normal distribution the location (loc) keyword specifies the mean. The scale (scale) keyword specifies the standard deviation. But in different distribution these can have different properties. Mostly to shift and/or scale the distribution. So it may not be so straightforward to set these manually.
https://docs.scipy.org/doc/scipy/reference/stats.html
from distfit.
Related Issues (20)
- Can I use the best distribution as the true distribution of my data? HOT 3
- KS-test in fitdist HOT 13
- Add K distribution HOT 4
- Robustness of selected data models HOT 3
- pip install bnlearn? HOT 1
- Save best parameters HOT 2
- T Distribution Weirdness HOT 2
- Plots are not generated HOT 2
- A code snippet for `plotting` the best fit and the original data HOT 3
- New User Plot Question HOT 5
- new feature request - automatically fit multiple variables HOT 2
- plot_summary throws error HOT 2
- extend __init__.py descriptions HOT 3
- Help needed to interpret loc and scale HOT 2
- Boostrapping bug - The data contains non-finite values HOT 2
- Bug(?): lognorm distribution with negative loc parameter HOT 2
- Feature request: parallel execution when fitting multiple distributions HOT 3
- Quantile Bootstrap to avoid computationally expensive simple Bootstrap HOT 1
- plot freeze HOT 8
- Support Gaussian Mixture distribution fitting (2GMM, 3GMM..) HOT 1
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 distfit.