Comments (1)
Thanks for identifying this. It is caused by a floating point precision error which is inherent in Python. Numpy manages to resolve this somehow but python's sum function (which I was using) does not.
import numpy as np
p = np.full(10, 0.1)
print(np.sum(p))
print(p.sum())
print(sum(p)) # this has a floating point error
Output:
1.0
1.0
0.9999999999999999
I have fixed this, but I won't be doing a new release just for this since I believe it's a very rare bug to encounter. It will be part of the next release, which will be when I fix another more significant bug.
As for your use of the Mixture Model, please try to limit the number of components in the mixture to no more than 5. A lower number like 2 or 3 is better. This isn't for any mathematical or programmatic reasons, but it is for practical reasons. It's unlikely that a Distribution with 10 components will have all 10 components identified correctly from data, especially if they are similar distributions. In the Fit_Weibull_Mixture it only searches for 2 Weibull distributions. Also, in your example, all of the components are the same so it's not really a mixture.
from reliability.
Related Issues (20)
- [BUG] - Cannot replicate the results from example - Fitting all available distributions to data HOT 1
- [BUG] - parameters alpha, beta, gamma returned in Fit_Gamma_3P are not the same of Gamma_Distribution? HOT 1
- How to use reliability package to answer if test time can be reduced or should be augmented HOT 2
- [BUG] - force_beta is inversed when using RRX in Fit_Weibull_2P HOT 1
- [BUG] - Problem with matplotlib-3.7.0 HOT 1
- [BUG] - AttributeError: 'Line2D' object has no property 'ci_y' HOT 3
- [BUG] - AttributeError: 'Line2D' object has no property 'quantiles' HOT 1
- BUG about accelerated life experiment module HOT 10
- [BUG] - ALT_fitters.py IndexError: list index out of range HOT 3
- [BUG] - float128 and complex256 HOT 2
- RankAdjustment HOT 1
- [BUG] - A minor problem in Reliability_testing.chi2test related to numpy.histogram HOT 1
- [BUG] - Stress - Strength Interference Erroneous Result HOT 3
- FitEverything example error HOT 1
- [BUG] - Stress-Strength Mixture_Model and Loglogistic errors HOT 1
- Lognormal_Distribution.CDF does not return tuple HOT 1
- Extract confidence bounds HOT 1
- [BUG] - Lognormal_Distribution.random_samples give wrong values HOT 1
- [BUG] - Complex Distributions (Mixture, Competing Risks, DSZI) quantile and inverse_SF functions error when input is array-like
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 reliability.