How to do data fitting to find the distribution of given data

后端 未结 2 1703
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-17 05:33

I need to do data fitting to find the distribution of a given data.

I need to find the pdf function of the distribution.

I can use data fitting functions in

相关标签:
2条回答
  • 2021-01-17 06:23

    Maybe this post can help.

    I presented an example of how to find the best distribution according to BIC criterium using OpenTURNS.

    You define a list 'Distribution Factories' tested_distributions = [ot.WeibullMaxFactory(), ot.NormalFactory(), ot.UniformFactory()]

    then you call BestModelBIC to find the best fitting best_model, best_bic = ot.FittingTest.BestModelBIC(sample, tested_distributions)

    Currently, you can choose among 30 available 'Factories' in OpenTURNS (see below). TruncatedNormalFactory is available but not yet TruncatedBetaFactory

    print(ot.DistributionFactory.GetContinuousUniVariateFactories())
    
    [Out]: 
    [ArcsineFactory,
    BetaFactory, 
    BurrFactory, 
    ChiFactory, 
    ChiSquareFactory, 
    DirichletFactory,
    ExponentialFactory,
    FisherSnedecorFactory,
    FrechetFactory,
    GammaFactory,
    GeneralizedParetoFactory,
    GumbelFactory,HistogramFactory,
    InverseNormalFactory,
    LaplaceFactory,LogisticFactory,
    LogNormalFactory,
    LogUniformFactory,
    MeixnerDistributionFactory,
    NormalFactory,
    ParetoFactory,
    RayleighFactory,
    RiceFactory,
    StudentFactory,
    TrapezoidalFactory,
    TriangularFactory,
    TruncatedNormalFactory,
    UniformFactory,
    WeibullMaxFactory,
    WeibullMinFactory]
    #30
    
    0 讨论(0)
  • 2021-01-17 06:29

    Check out allfitdist in Matlab.

    Alternatively, consider specialty packages such as ExpertFit or EasyFit. The JMP statistical software also has a fairly easy to use distribution fitting option. All of these will evaluate goodness-of-fit criteria such as Cramer-von Mises and log likelihood estimates.

    Once you've picked the functional form of the distribution, parameter values are usually estimated by maximum likelihood estimators or method of moments.

    If you're planning on using the results in a simulation of some sort, you might consider just bootstrapping your sample rather than distribution fitting. Yet another option if simulating would be to run a designed experiment where you vary the distribution choice and see if alternatives have a significant impact on your results before worrying too much about fitting just the right distribution.

    0 讨论(0)
提交回复
热议问题