pearspdf

Pearson system probability distributions
2,4K téléchargements
Mise à jour 14 août 2011

Afficher la licence

% pearspdf
% [p,type,coefs] = pearspdf(X,mu,sigma,skew,kurt)
%
% Returns the probability distribution denisty of the pearsons distribution
% with mean `mu`, standard deviation `sigma`, skewness `skew` and
% kurtosis `kurt`, evaluated at the values in X.
%
% Some combinations of moments are not valid for any random variable, and in
% particular, the kurtosis must be greater than the square of the skewness
% plus 1. The kurtosis of the normal distribution is defined to be 3.
%
% The seven distribution types in the Pearson system correspond to the
% following distributions:
%
% Type 0: Normal distribution
% Type 1: Four-parameter beta
% Type 2: Symmetric four-parameter beta
% Type 3: Three-parameter gamma
% Type 4: Not related to any standard distribution. Density proportional
% to (1+((x-a)/b)^2)^(-c) * exp(-d*arctan((x-a)/b)).
% Type 5: Inverse gamma location-scale
% Type 6: F location-scale
% Type 7: Student's t location-scale
%
% Examples
%
% See also
% pearspdf pearsrnd mean std skewness kurtosis
%

It's a modification of the pearsrnd function

Citation pour cette source

Pierce Brady (2024). pearspdf (https://www.mathworks.com/matlabcentral/fileexchange/26516-pearspdf), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2009b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.4.0.0

Many thanks to Carsten Allefeld who has modified the code so that pdfs are normalised correctly.

The type 5 distribution is not normalised correctly, so a warning is thrown to indicate this.

1.1.0.0

Added the line at 164
p = p/sigma;

as the type 4 distributions where off by this factor

1.0.0.0