How to fit univariate Generalized Logistic Distribution in MATLAB ?

5 views (last 30 days)
Generalized Logistic Distribution to fit hydrology data.

Answers (1)

Karanjot
Karanjot on 6 Jan 2024
Hi Pallab,
To fit a univariate Generalized Logistic Distribution in MATLAB, you can use the fitdist function from the Statistics and Machine Learning Toolbox. The fitdist function allows you to fit various probability distributions to your data, including the Generalized Logistic Distribution.
Here is an example of how to fit a univariate Generalized Logistic Distribution to your data:
% Generate some sample data
data = genlogisticrnd(2, 1, 3, 100);
% Fit the Generalized Logistic Distribution to the data
pd = fitdist(data, 'GeneralizedLogistic');
% Get the estimated parameters of the fitted distribution
params = pd.ParameterValues;
% Display the estimated parameters
disp(params);
In this example, genlogisticrnd is used to generate some sample data from a Generalized Logistic Distribution. The fitdist function is then used to fit a Generalized Logistic Distribution to the data. The estimated parameters of the fitted distribution are obtained using the ParameterValues property of the fitted distribution object.
Please note that the specific parameter values used in the genlogisticrnd function and the fitdist function in this example are just for demonstration purposes.
I hope this helps!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!