- fitdistrplus
- actuar
- main.R: This files calls and run all function together to get best parameters for selected probability distributions.
- data_transformation.R: This files imports and transforms data to be used for our work.
- training.R: This files have methods which trains various probability models using MLE and MoM and gives best ones using AIC and K-S Tests.
-
transform(input_file, output_file): This method takes location of input csv file and transforms the data into intervent time form and stores the resulting dataframe in output_file.
-
model.fit(data, distribution, method): This methods takes distribution as input and fits the paramters using methods("mle/mme") on given data.
- Weibull Distribution (pass as "weibull")
- Gamma Distribution (pass as "gamma")
- Exponential Distribution (pass as "exp")
- Inverse Gaussian Distribution (pass as "invgauss")
- Log-normal Distribution (pass as "lnorm")
- Normal Distribution (pass as "norm")
- Inverse Weibull Distribution (pass as "invweibull")
- Pareto Distribution (pass as "pareto")
- Chi-Squared Distribution (pass as "chisq")
- Geometric Distribution (pass as "geom")
- Exponentiated Weibull (mle only) (pass as "expweibull")
- Exponentiated Exponential (mle only) (separate code, not to be passed to model.fit) REMOVED as its a special case of expweibull