This m-file returns the kewness, kurtosis and kurtosis excess of the negative binomial distribution with parameters R and P. S, K and E are the size of the input argument.
Syntax: function [s,k,e] = nbinskekur(r,p)
Inputs:
r - predefined number of failures
p - probability parameter (probability of success)
Outputs:
s - skewness
k - kurtosis
e - kurtosis excess
Antonio Trujillo-Ortiz (2021). nbinskekur (https://www.mathworks.com/matlabcentral/fileexchange/48780-nbinskekur), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.